winemac: Don't unminimize a window for SetFocus().
[wine.git] / configure
blob793f5a1a38b47c7be1a39928256bfdb816e785d4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.7.0.
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.0'
584 PACKAGE_STRING='Wine 1.7.0'
585 PACKAGE_BUGREPORT='wine-devel@winehq.org'
586 PACKAGE_URL='http://www.winehq.org'
588 ac_unique_file="server/atom.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 PORCFLAGS
628 LINGUAS
629 ALL_TEST_RESOURCES
630 LDAPLIBS
631 LIBRT
632 LIBPOLL
633 LIBDL
634 EXTRA_BINARIES
635 MAIN_BINARY
636 TOOLSEXT
637 LDPATH
638 UNWINDFLAGS
639 BUILTINFLAG
640 EXTRACFLAGS
641 LIBPROCSTAT
642 LIBKSTAT
643 LIBOPENAL
644 MPG123_LIBS
645 MPG123_CFLAGS
646 TIFF_LIBS
647 TIFF_CFLAGS
648 PNG_LIBS
649 PNG_CFLAGS
650 JPEG_LIBS
651 JPEG_CFLAGS
652 FONTCONFIGINCL
653 CUPSINCL
654 CAPI20_LIBS
655 CAPI20_CFLAGS
656 OSS4INCL
657 ALSALIBS
658 GSTREAMER_LIBS
659 GSTREAMER_CFLAGS
660 LIBGETTEXTPO
661 ZLIB
662 FREETYPE_LIBS
663 FREETYPE_CFLAGS
664 LCMS2_LIBS
665 LCMS2_CFLAGS
666 RESOLVLIBS
667 GPHOTO2_PORT_LIBS
668 GPHOTO2_PORT_CFLAGS
669 GPHOTO2_LIBS
670 GPHOTO2_CFLAGS
671 SANE_LIBS
672 SANE_CFLAGS
673 GNUTLS_LIBS
674 GNUTLS_CFLAGS
675 HAL_LIBS
676 HAL_CFLAGS
677 DBUS_LIBS
678 DBUS_CFLAGS
679 XSLT_LIBS
680 XSLT_CFLAGS
681 XML2_LIBS
682 XML2_CFLAGS
683 X_EXTRA_LIBS
684 X_LIBS
685 X_PRE_LIBS
686 X_CFLAGS
687 XMKMF
688 LIBPTHREAD
689 CROSSTARGET
690 CROSSCC
691 CROSSTEST_DISABLE
692 PRELINK
693 CARBONLIB
694 QUICKTIMELIB
695 LIBOPENCL
696 FRAMEWORK_OPENAL
697 COREAUDIO
698 SECURITYLIB
699 DISKARBITRATIONLIB
700 LDEXECFLAGS
701 APPKITLIB
702 CORESERVICESLIB
703 APPLICATIONSERVICESLIB
704 FORCEFEEDBACKLIB
705 IOKITLIB
706 COREFOUNDATIONLIB
707 LIBWINE_RULES
708 SOCKETLIBS
709 DLLTOOL
710 READELF
712 LDRPATH_LOCAL
713 LDRPATH_INSTALL
714 IMPLIBEXT
715 LDDLLFLAGS
716 DLLFLAGS
717 DLLEXT
719 OPENGL_LIBS
720 XLIB
721 MAINTAINER_MODE
722 PKG_CONFIG
723 MSGFMT
724 ICOTOOL
725 CONVERT
726 RSVG
727 FONTFORGE
728 LINTFLAGS
729 LINT
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 LDCONFIG
734 EGREP
735 GREP
736 LN_S
737 RANLIB
738 ARFLAGS
739 ac_ct_AR
741 BISON
742 FLEX
743 TOOLSDIR
744 WOW64_DISABLE
745 TARGETFLAGS
746 CPPBIN
747 ac_ct_CXX
748 CXXFLAGS
750 OBJEXT
751 EXEEXT
752 ac_ct_CC
753 CPPFLAGS
754 LDFLAGS
755 CFLAGS
757 SET_MAKE
758 host_os
759 host_vendor
760 host_cpu
761 host
762 build_os
763 build_vendor
764 build_cpu
765 build
766 target_alias
767 host_alias
768 build_alias
769 LIBS
770 ECHO_T
771 ECHO_N
772 ECHO_C
773 DEFS
774 mandir
775 localedir
776 libdir
777 psdir
778 pdfdir
779 dvidir
780 htmldir
781 infodir
782 docdir
783 oldincludedir
784 includedir
785 localstatedir
786 sharedstatedir
787 sysconfdir
788 datadir
789 datarootdir
790 libexecdir
791 sbindir
792 bindir
793 program_transform_name
794 prefix
795 exec_prefix
796 PACKAGE_URL
797 PACKAGE_BUGREPORT
798 PACKAGE_STRING
799 PACKAGE_VERSION
800 PACKAGE_TARNAME
801 PACKAGE_NAME
802 PATH_SEPARATOR
803 SHELL'
804 ac_subst_files='MAKE_RULES
805 MAKE_TEST_RULES
806 MAKE_DLL_RULES
807 MAKE_IMPLIB_RULES
808 MAKE_PROG_RULES'
809 ac_user_opts='
810 enable_option_checking
811 enable_win16
812 enable_win64
813 enable_tests
814 enable_maintainer_mode
815 with_alsa
816 with_capi
817 with_cms
818 with_coreaudio
819 with_cups
820 with_curses
821 with_dbus
822 with_fontconfig
823 with_freetype
824 with_gettext
825 with_gettextpo
826 with_gphoto
827 with_glu
828 with_gnutls
829 with_gsm
830 with_gstreamer
831 with_hal
832 with_jpeg
833 with_ldap
834 with_mpg123
835 with_openal
836 with_opencl
837 with_opengl
838 with_osmesa
839 with_oss
840 with_png
841 with_pthread
842 with_sane
843 with_tiff
844 with_v4l
845 with_xcomposite
846 with_xcursor
847 with_xinerama
848 with_xinput
849 with_xinput2
850 with_xml
851 with_xrandr
852 with_xrender
853 with_xshape
854 with_xshm
855 with_xslt
856 with_xxf86vm
857 with_zlib
858 with_wine_tools
859 with_wine64
860 enable_largefile
861 with_x
863 ac_precious_vars='build_alias
864 host_alias
865 target_alias
867 CFLAGS
868 LDFLAGS
869 LIBS
870 CPPFLAGS
872 CXXFLAGS
875 XMKMF
876 XML2_CFLAGS
877 XML2_LIBS
878 XSLT_CFLAGS
879 XSLT_LIBS
880 DBUS_CFLAGS
881 DBUS_LIBS
882 HAL_CFLAGS
883 HAL_LIBS
884 GNUTLS_CFLAGS
885 GNUTLS_LIBS
886 SANE_CFLAGS
887 SANE_LIBS
888 GPHOTO2_CFLAGS
889 GPHOTO2_LIBS
890 GPHOTO2_PORT_CFLAGS
891 GPHOTO2_PORT_LIBS
892 LCMS2_CFLAGS
893 LCMS2_LIBS
894 FREETYPE_CFLAGS
895 FREETYPE_LIBS
896 GSTREAMER_CFLAGS
897 GSTREAMER_LIBS
898 CAPI20_CFLAGS
899 CAPI20_LIBS
900 JPEG_CFLAGS
901 JPEG_LIBS
902 PNG_CFLAGS
903 PNG_LIBS
904 TIFF_CFLAGS
905 TIFF_LIBS
906 MPG123_CFLAGS
907 MPG123_LIBS'
910 # Initialize some variables set by options.
911 ac_init_help=
912 ac_init_version=false
913 ac_unrecognized_opts=
914 ac_unrecognized_sep=
915 # The variables have the same names as the options, with
916 # dashes changed to underlines.
917 cache_file=/dev/null
918 exec_prefix=NONE
919 no_create=
920 no_recursion=
921 prefix=NONE
922 program_prefix=NONE
923 program_suffix=NONE
924 program_transform_name=s,x,x,
925 silent=
926 site=
927 srcdir=
928 verbose=
929 x_includes=NONE
930 x_libraries=NONE
932 # Installation directory options.
933 # These are left unexpanded so users can "make install exec_prefix=/foo"
934 # and all the variables that are supposed to be based on exec_prefix
935 # by default will actually change.
936 # Use braces instead of parens because sh, perl, etc. also accept them.
937 # (The list follows the same order as the GNU Coding Standards.)
938 bindir='${exec_prefix}/bin'
939 sbindir='${exec_prefix}/sbin'
940 libexecdir='${exec_prefix}/libexec'
941 datarootdir='${prefix}/share'
942 datadir='${datarootdir}'
943 sysconfdir='${prefix}/etc'
944 sharedstatedir='${prefix}/com'
945 localstatedir='${prefix}/var'
946 includedir='${prefix}/include'
947 oldincludedir='/usr/include'
948 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
949 infodir='${datarootdir}/info'
950 htmldir='${docdir}'
951 dvidir='${docdir}'
952 pdfdir='${docdir}'
953 psdir='${docdir}'
954 libdir='${exec_prefix}/lib'
955 localedir='${datarootdir}/locale'
956 mandir='${datarootdir}/man'
958 ac_prev=
959 ac_dashdash=
960 for ac_option
962 # If the previous option needs an argument, assign it.
963 if test -n "$ac_prev"; then
964 eval $ac_prev=\$ac_option
965 ac_prev=
966 continue
969 case $ac_option in
970 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971 *=) ac_optarg= ;;
972 *) ac_optarg=yes ;;
973 esac
975 # Accept the important Cygnus configure options, so we can diagnose typos.
977 case $ac_dashdash$ac_option in
979 ac_dashdash=yes ;;
981 -bindir | --bindir | --bindi | --bind | --bin | --bi)
982 ac_prev=bindir ;;
983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984 bindir=$ac_optarg ;;
986 -build | --build | --buil | --bui | --bu)
987 ac_prev=build_alias ;;
988 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989 build_alias=$ac_optarg ;;
991 -cache-file | --cache-file | --cache-fil | --cache-fi \
992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993 ac_prev=cache_file ;;
994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996 cache_file=$ac_optarg ;;
998 --config-cache | -C)
999 cache_file=config.cache ;;
1001 -datadir | --datadir | --datadi | --datad)
1002 ac_prev=datadir ;;
1003 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004 datadir=$ac_optarg ;;
1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007 | --dataroo | --dataro | --datar)
1008 ac_prev=datarootdir ;;
1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011 datarootdir=$ac_optarg ;;
1013 -disable-* | --disable-*)
1014 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 as_fn_error $? "invalid feature name: $ac_useropt"
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1022 "enable_$ac_useropt"
1023 "*) ;;
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1026 esac
1027 eval enable_$ac_useropt=no ;;
1029 -docdir | --docdir | --docdi | --doc | --do)
1030 ac_prev=docdir ;;
1031 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1032 docdir=$ac_optarg ;;
1034 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1035 ac_prev=dvidir ;;
1036 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1037 dvidir=$ac_optarg ;;
1039 -enable-* | --enable-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 as_fn_error $? "invalid feature name: $ac_useropt"
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_$ac_useropt"
1049 "*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=\$ac_optarg ;;
1055 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1056 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1057 | --exec | --exe | --ex)
1058 ac_prev=exec_prefix ;;
1059 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1060 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1061 | --exec=* | --exe=* | --ex=*)
1062 exec_prefix=$ac_optarg ;;
1064 -gas | --gas | --ga | --g)
1065 # Obsolete; use --with-gas.
1066 with_gas=yes ;;
1068 -help | --help | --hel | --he | -h)
1069 ac_init_help=long ;;
1070 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1071 ac_init_help=recursive ;;
1072 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1073 ac_init_help=short ;;
1075 -host | --host | --hos | --ho)
1076 ac_prev=host_alias ;;
1077 -host=* | --host=* | --hos=* | --ho=*)
1078 host_alias=$ac_optarg ;;
1080 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1081 ac_prev=htmldir ;;
1082 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1083 | --ht=*)
1084 htmldir=$ac_optarg ;;
1086 -includedir | --includedir | --includedi | --included | --include \
1087 | --includ | --inclu | --incl | --inc)
1088 ac_prev=includedir ;;
1089 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1090 | --includ=* | --inclu=* | --incl=* | --inc=*)
1091 includedir=$ac_optarg ;;
1093 -infodir | --infodir | --infodi | --infod | --info | --inf)
1094 ac_prev=infodir ;;
1095 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1096 infodir=$ac_optarg ;;
1098 -libdir | --libdir | --libdi | --libd)
1099 ac_prev=libdir ;;
1100 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1101 libdir=$ac_optarg ;;
1103 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1104 | --libexe | --libex | --libe)
1105 ac_prev=libexecdir ;;
1106 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1107 | --libexe=* | --libex=* | --libe=*)
1108 libexecdir=$ac_optarg ;;
1110 -localedir | --localedir | --localedi | --localed | --locale)
1111 ac_prev=localedir ;;
1112 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1113 localedir=$ac_optarg ;;
1115 -localstatedir | --localstatedir | --localstatedi | --localstated \
1116 | --localstate | --localstat | --localsta | --localst | --locals)
1117 ac_prev=localstatedir ;;
1118 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1119 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1120 localstatedir=$ac_optarg ;;
1122 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1123 ac_prev=mandir ;;
1124 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1125 mandir=$ac_optarg ;;
1127 -nfp | --nfp | --nf)
1128 # Obsolete; use --without-fp.
1129 with_fp=no ;;
1131 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1132 | --no-cr | --no-c | -n)
1133 no_create=yes ;;
1135 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1136 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1137 no_recursion=yes ;;
1139 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1140 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1141 | --oldin | --oldi | --old | --ol | --o)
1142 ac_prev=oldincludedir ;;
1143 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1144 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1145 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1146 oldincludedir=$ac_optarg ;;
1148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1149 ac_prev=prefix ;;
1150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1151 prefix=$ac_optarg ;;
1153 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1154 | --program-pre | --program-pr | --program-p)
1155 ac_prev=program_prefix ;;
1156 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1157 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1158 program_prefix=$ac_optarg ;;
1160 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1161 | --program-suf | --program-su | --program-s)
1162 ac_prev=program_suffix ;;
1163 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1164 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1165 program_suffix=$ac_optarg ;;
1167 -program-transform-name | --program-transform-name \
1168 | --program-transform-nam | --program-transform-na \
1169 | --program-transform-n | --program-transform- \
1170 | --program-transform | --program-transfor \
1171 | --program-transfo | --program-transf \
1172 | --program-trans | --program-tran \
1173 | --progr-tra | --program-tr | --program-t)
1174 ac_prev=program_transform_name ;;
1175 -program-transform-name=* | --program-transform-name=* \
1176 | --program-transform-nam=* | --program-transform-na=* \
1177 | --program-transform-n=* | --program-transform-=* \
1178 | --program-transform=* | --program-transfor=* \
1179 | --program-transfo=* | --program-transf=* \
1180 | --program-trans=* | --program-tran=* \
1181 | --progr-tra=* | --program-tr=* | --program-t=*)
1182 program_transform_name=$ac_optarg ;;
1184 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1185 ac_prev=pdfdir ;;
1186 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1187 pdfdir=$ac_optarg ;;
1189 -psdir | --psdir | --psdi | --psd | --ps)
1190 ac_prev=psdir ;;
1191 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1192 psdir=$ac_optarg ;;
1194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1195 | -silent | --silent | --silen | --sile | --sil)
1196 silent=yes ;;
1198 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1199 ac_prev=sbindir ;;
1200 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1201 | --sbi=* | --sb=*)
1202 sbindir=$ac_optarg ;;
1204 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1205 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1206 | --sharedst | --shareds | --shared | --share | --shar \
1207 | --sha | --sh)
1208 ac_prev=sharedstatedir ;;
1209 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1210 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1211 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1212 | --sha=* | --sh=*)
1213 sharedstatedir=$ac_optarg ;;
1215 -site | --site | --sit)
1216 ac_prev=site ;;
1217 -site=* | --site=* | --sit=*)
1218 site=$ac_optarg ;;
1220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1221 ac_prev=srcdir ;;
1222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1223 srcdir=$ac_optarg ;;
1225 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1226 | --syscon | --sysco | --sysc | --sys | --sy)
1227 ac_prev=sysconfdir ;;
1228 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1229 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1230 sysconfdir=$ac_optarg ;;
1232 -target | --target | --targe | --targ | --tar | --ta | --t)
1233 ac_prev=target_alias ;;
1234 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1235 target_alias=$ac_optarg ;;
1237 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1238 verbose=yes ;;
1240 -version | --version | --versio | --versi | --vers | -V)
1241 ac_init_version=: ;;
1243 -with-* | --with-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error $? "invalid package name: $ac_useropt"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1252 "with_$ac_useropt"
1253 "*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=\$ac_optarg ;;
1259 -without-* | --without-*)
1260 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1263 as_fn_error $? "invalid package name: $ac_useropt"
1264 ac_useropt_orig=$ac_useropt
1265 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266 case $ac_user_opts in
1268 "with_$ac_useropt"
1269 "*) ;;
1270 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1271 ac_unrecognized_sep=', ';;
1272 esac
1273 eval with_$ac_useropt=no ;;
1275 --x)
1276 # Obsolete; use --with-x.
1277 with_x=yes ;;
1279 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1280 | --x-incl | --x-inc | --x-in | --x-i)
1281 ac_prev=x_includes ;;
1282 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1283 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1284 x_includes=$ac_optarg ;;
1286 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1287 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1288 ac_prev=x_libraries ;;
1289 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1290 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1291 x_libraries=$ac_optarg ;;
1293 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1294 Try \`$0 --help' for more information"
1297 *=*)
1298 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1299 # Reject names that are not valid shell variable names.
1300 case $ac_envvar in #(
1301 '' | [0-9]* | *[!_$as_cr_alnum]* )
1302 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1303 esac
1304 eval $ac_envvar=\$ac_optarg
1305 export $ac_envvar ;;
1308 # FIXME: should be removed in autoconf 3.0.
1309 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1310 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1311 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1312 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1315 esac
1316 done
1318 if test -n "$ac_prev"; then
1319 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1320 as_fn_error $? "missing argument to $ac_option"
1323 if test -n "$ac_unrecognized_opts"; then
1324 case $enable_option_checking in
1325 no) ;;
1326 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1327 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1328 esac
1331 # Check all directory arguments for consistency.
1332 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333 datadir sysconfdir sharedstatedir localstatedir includedir \
1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335 libdir localedir mandir
1337 eval ac_val=\$$ac_var
1338 # Remove trailing slashes.
1339 case $ac_val in
1340 */ )
1341 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1342 eval $ac_var=\$ac_val;;
1343 esac
1344 # Be sure to have absolute directory names.
1345 case $ac_val in
1346 [\\/$]* | ?:[\\/]* ) continue;;
1347 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1348 esac
1349 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1350 done
1352 # There might be people who depend on the old broken behavior: `$host'
1353 # used to hold the argument of --host etc.
1354 # FIXME: To remove some day.
1355 build=$build_alias
1356 host=$host_alias
1357 target=$target_alias
1359 # FIXME: To remove some day.
1360 if test "x$host_alias" != x; then
1361 if test "x$build_alias" = x; then
1362 cross_compiling=maybe
1363 elif test "x$build_alias" != "x$host_alias"; then
1364 cross_compiling=yes
1368 ac_tool_prefix=
1369 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371 test "$silent" = yes && exec 6>/dev/null
1374 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375 ac_ls_di=`ls -di .` &&
1376 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377 as_fn_error $? "working directory cannot be determined"
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379 as_fn_error $? "pwd does not report name of working directory"
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384 ac_srcdir_defaulted=yes
1385 # Try the directory containing this script, then the parent directory.
1386 ac_confdir=`$as_dirname -- "$as_myself" ||
1387 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388 X"$as_myself" : 'X\(//\)[^/]' \| \
1389 X"$as_myself" : 'X\(//\)$' \| \
1390 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1391 $as_echo X"$as_myself" |
1392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393 s//\1/
1396 /^X\(\/\/\)[^/].*/{
1397 s//\1/
1400 /^X\(\/\/\)$/{
1401 s//\1/
1404 /^X\(\/\).*/{
1405 s//\1/
1408 s/.*/./; q'`
1409 srcdir=$ac_confdir
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411 srcdir=..
1413 else
1414 ac_srcdir_defaulted=no
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1420 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1421 ac_abs_confdir=`(
1422 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1423 pwd)`
1424 # When building in place, set srcdir=.
1425 if test "$ac_abs_confdir" = "$ac_pwd"; then
1426 srcdir=.
1428 # Remove unnecessary trailing slashes from srcdir.
1429 # Double slashes in file names in object file debugging info
1430 # mess up M-x gdb in Emacs.
1431 case $srcdir in
1432 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 esac
1434 for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439 done
1442 # Report the --help message.
1444 if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1447 cat <<_ACEOF
1448 \`configure' configures Wine 1.7.0 to adapt to many kinds of systems.
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE. See below for descriptions of some of the useful variables.
1455 Defaults for the options are specified in brackets.
1457 Configuration:
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
1462 -q, --quiet, --silent do not print \`checking ...' messages
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1468 Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
1470 [$ac_default_prefix]
1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1472 [PREFIX]
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1479 For better control, use the options below.
1481 Fine tuning of the installation directories:
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
1501 _ACEOF
1503 cat <<\_ACEOF
1505 X features:
1506 --x-includes=DIR X include files are in DIR
1507 --x-libraries=DIR X library files are in DIR
1509 System types:
1510 --build=BUILD configure for building on BUILD [guessed]
1511 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1512 _ACEOF
1515 if test -n "$ac_init_help"; then
1516 case $ac_init_help in
1517 short | recursive ) echo "Configuration of Wine 1.7.0:";;
1518 esac
1519 cat <<\_ACEOF
1521 Optional Features:
1522 --disable-option-checking ignore unrecognized --enable/--with options
1523 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1524 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1525 --disable-win16 do not include Win16 support
1526 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1527 binaries)
1528 --disable-tests do not build the regression tests
1529 --enable-maintainer-mode
1530 enable maintainer-specific build rules
1531 --disable-largefile omit support for large files
1533 Optional Packages:
1534 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1535 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1536 --without-alsa do not use the Alsa sound support
1537 --without-capi do not use CAPI (ISDN support)
1538 --without-cms do not use CMS (color management support)
1539 --without-coreaudio do not use the CoreAudio sound support
1540 --without-cups do not use CUPS
1541 --without-curses do not use (n)curses
1542 --without-dbus do not use DBus (dynamic device support)
1543 --without-fontconfig do not use fontconfig
1544 --without-freetype do not use the FreeType library
1545 --without-gettext do not use gettext
1546 --with-gettextpo use the GetTextPO library to rebuild po files
1547 --without-gphoto do not use gphoto (Digital Camera support)
1548 --without-glu do not use the GLU library
1549 --without-gnutls do not use GnuTLS (schannel support)
1550 --without-gsm do not use libgsm (GSM 06.10 codec support)
1551 --without-gstreamer do not use GStreamer (codecs support)
1552 --without-hal do not use HAL (dynamic device support)
1553 --without-jpeg do not use JPEG
1554 --without-ldap do not use LDAP
1555 --without-mpg123 do not use the mpg123 library
1556 --without-openal do not use OpenAL
1557 --without-opencl do not use OpenCL
1558 --without-opengl do not use OpenGL
1559 --without-osmesa do not use the OSMesa library
1560 --without-oss do not use the OSS sound support
1561 --without-png do not use PNG
1562 --without-pthread do not use the pthread library
1563 --without-sane do not use SANE (scanner support)
1564 --without-tiff do not use TIFF
1565 --without-v4l do not use v4l1 (v4l support)
1566 --without-xcomposite do not use the Xcomposite extension
1567 --without-xcursor do not use the Xcursor extension
1568 --without-xinerama do not use Xinerama (multi-monitor support)
1569 --without-xinput do not use the Xinput extension
1570 --without-xinput2 do not use the Xinput 2 extension
1571 --without-xml do not use XML
1572 --without-xrandr do not use Xrandr (resolution changes)
1573 --without-xrender do not use the Xrender extension
1574 --without-xshape do not use the Xshape extension
1575 --without-xshm do not use XShm (shared memory extension)
1576 --without-xslt do not use XSLT
1577 --without-xxf86vm do not use XFree video mode extension
1578 --without-zlib do not use Zlib (data compression)
1579 --with-wine-tools=DIR use Wine tools from directory DIR
1580 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1581 --with-x use the X Window System
1583 Some influential environment variables:
1584 CC C compiler command
1585 CFLAGS C compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
1588 LIBS libraries to pass to the linker, e.g. -l<library>
1589 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1591 CXX C++ compiler command
1592 CXXFLAGS C++ compiler flags
1593 CPP C preprocessor
1594 XMKMF Path to xmkmf, Makefile generator for X Window System
1595 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
1596 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
1597 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
1598 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
1599 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
1600 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
1601 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
1602 HAL_LIBS Linker flags for hal, overriding pkg-config
1603 GNUTLS_CFLAGS
1604 C compiler flags for gnutls, overriding pkg-config
1605 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
1606 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
1607 SANE_LIBS Linker flags for libsane, overriding pkg-config
1608 GPHOTO2_CFLAGS
1609 C compiler flags for libgphoto2, overriding pkg-config
1610 GPHOTO2_LIBS
1611 Linker flags for libgphoto2, overriding pkg-config
1612 GPHOTO2_PORT_CFLAGS
1613 C compiler flags for libgphoto2_port, overriding pkg-config
1614 GPHOTO2_PORT_LIBS
1615 Linker flags for libgphoto2_port, overriding pkg-config
1616 LCMS2_CFLAGS
1617 C compiler flags for lcms2, overriding pkg-config
1618 LCMS2_LIBS Linker flags for lcms2, overriding pkg-config
1619 FREETYPE_CFLAGS
1620 C compiler flags for freetype2, overriding pkg-config
1621 FREETYPE_LIBS
1622 Linker flags for freetype2, overriding pkg-config
1623 GSTREAMER_CFLAGS
1624 C compiler flags for gstreamer-app-0.10, overriding pkg-config
1625 GSTREAMER_LIBS
1626 Linker flags for gstreamer-app-0.10, overriding pkg-config
1627 CAPI20_CFLAGS
1628 C compiler flags for capi20, overriding pkg-config
1629 CAPI20_LIBS Linker flags for capi20, overriding pkg-config
1630 JPEG_CFLAGS C compiler flags for libjpeg, overriding pkg-config
1631 JPEG_LIBS Linker flags for libjpeg, overriding pkg-config
1632 PNG_CFLAGS C compiler flags for libpng, overriding pkg-config
1633 PNG_LIBS Linker flags for libpng, overriding pkg-config
1634 TIFF_CFLAGS C compiler flags for libtiff, overriding pkg-config
1635 TIFF_LIBS Linker flags for libtiff, overriding pkg-config
1636 MPG123_CFLAGS
1637 C compiler flags for libmpg123, overriding pkg-config
1638 MPG123_LIBS Linker flags for libmpg123, overriding pkg-config
1640 Use these variables to override the choices made by `configure' or to help
1641 it to find libraries and programs with nonstandard names/locations.
1643 Report bugs to <wine-devel@winehq.org>.
1644 Wine home page: <http://www.winehq.org>.
1645 _ACEOF
1646 ac_status=$?
1649 if test "$ac_init_help" = "recursive"; then
1650 # If there are subdirs, report their specific --help.
1651 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1652 test -d "$ac_dir" ||
1653 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1654 continue
1655 ac_builddir=.
1657 case "$ac_dir" in
1658 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1661 # A ".." for each directory in $ac_dir_suffix.
1662 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1663 case $ac_top_builddir_sub in
1664 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1665 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1666 esac ;;
1667 esac
1668 ac_abs_top_builddir=$ac_pwd
1669 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1670 # for backward compatibility:
1671 ac_top_builddir=$ac_top_build_prefix
1673 case $srcdir in
1674 .) # We are building in place.
1675 ac_srcdir=.
1676 ac_top_srcdir=$ac_top_builddir_sub
1677 ac_abs_top_srcdir=$ac_pwd ;;
1678 [\\/]* | ?:[\\/]* ) # Absolute name.
1679 ac_srcdir=$srcdir$ac_dir_suffix;
1680 ac_top_srcdir=$srcdir
1681 ac_abs_top_srcdir=$srcdir ;;
1682 *) # Relative name.
1683 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1684 ac_top_srcdir=$ac_top_build_prefix$srcdir
1685 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1686 esac
1687 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1689 cd "$ac_dir" || { ac_status=$?; continue; }
1690 # Check for guested configure.
1691 if test -f "$ac_srcdir/configure.gnu"; then
1692 echo &&
1693 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1694 elif test -f "$ac_srcdir/configure"; then
1695 echo &&
1696 $SHELL "$ac_srcdir/configure" --help=recursive
1697 else
1698 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1699 fi || ac_status=$?
1700 cd "$ac_pwd" || { ac_status=$?; break; }
1701 done
1704 test -n "$ac_init_help" && exit $ac_status
1705 if $ac_init_version; then
1706 cat <<\_ACEOF
1707 Wine configure 1.7.0
1708 generated by GNU Autoconf 2.69
1710 Copyright (C) 2012 Free Software Foundation, Inc.
1711 This configure script is free software; the Free Software Foundation
1712 gives unlimited permission to copy, distribute and modify it.
1713 _ACEOF
1714 exit
1717 ## ------------------------ ##
1718 ## Autoconf initialization. ##
1719 ## ------------------------ ##
1721 # ac_fn_c_try_compile LINENO
1722 # --------------------------
1723 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1724 ac_fn_c_try_compile ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 rm -f conftest.$ac_objext
1728 if { { ac_try="$ac_compile"
1729 case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_compile") 2>conftest.err
1736 ac_status=$?
1737 if test -s conftest.err; then
1738 grep -v '^ *+' conftest.err >conftest.er1
1739 cat conftest.er1 >&5
1740 mv -f conftest.er1 conftest.err
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && {
1744 test -z "$ac_c_werror_flag" ||
1745 test ! -s conftest.err
1746 } && test -s conftest.$ac_objext; then :
1747 ac_retval=0
1748 else
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1752 ac_retval=1
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 as_fn_set_status $ac_retval
1757 } # ac_fn_c_try_compile
1759 # ac_fn_cxx_try_compile LINENO
1760 # ----------------------------
1761 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_cxx_try_compile ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 rm -f conftest.$ac_objext
1766 if { { ac_try="$ac_compile"
1767 case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_compile") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_cxx_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest.$ac_objext; then :
1785 ac_retval=0
1786 else
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1790 ac_retval=1
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1795 } # ac_fn_cxx_try_compile
1797 # ac_fn_c_try_link LINENO
1798 # -----------------------
1799 # Try to link conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_c_try_link ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 rm -f conftest.$ac_objext conftest$ac_exeext
1804 if { { ac_try="$ac_link"
1805 case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_link") 2>conftest.err
1812 ac_status=$?
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_c_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest$ac_exeext && {
1823 test "$cross_compiling" = yes ||
1824 test -x conftest$ac_exeext
1825 }; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1831 ac_retval=1
1833 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1834 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1835 # interfere with the next link command; also delete a directory that is
1836 # left behind by Apple's compiler. We do this before executing the actions.
1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1841 } # ac_fn_c_try_link
1843 # ac_fn_c_try_cpp LINENO
1844 # ----------------------
1845 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_c_try_cpp ()
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 if { { ac_try="$ac_cpp conftest.$ac_ext"
1850 case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1857 ac_status=$?
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } > conftest.i && {
1865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1866 test ! -s conftest.err
1867 }; then :
1868 ac_retval=0
1869 else
1870 $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1873 ac_retval=1
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1878 } # ac_fn_c_try_cpp
1880 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1881 # -------------------------------------------------------
1882 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1883 # the include files in INCLUDES and setting the cache variable VAR
1884 # accordingly.
1885 ac_fn_c_check_header_mongrel ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if eval \${$3+:} false; then :
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if eval \${$3+:} false; then :
1892 $as_echo_n "(cached) " >&6
1894 eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 else
1898 # Is the header compilable?
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1900 $as_echo_n "checking $2 usability... " >&6; }
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1904 #include <$2>
1905 _ACEOF
1906 if ac_fn_c_try_compile "$LINENO"; then :
1907 ac_header_compiler=yes
1908 else
1909 ac_header_compiler=no
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1913 $as_echo "$ac_header_compiler" >&6; }
1915 # Is the header present?
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1917 $as_echo_n "checking $2 presence... " >&6; }
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 #include <$2>
1921 _ACEOF
1922 if ac_fn_c_try_cpp "$LINENO"; then :
1923 ac_header_preproc=yes
1924 else
1925 ac_header_preproc=no
1927 rm -f conftest.err conftest.i conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1929 $as_echo "$ac_header_preproc" >&6; }
1931 # So? What about this header?
1932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1933 yes:no: )
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1935 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1937 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1939 no:yes:* )
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1941 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1943 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1945 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1947 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1949 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950 ( $as_echo "## ------------------------------------ ##
1951 ## Report this to wine-devel@winehq.org ##
1952 ## ------------------------------------ ##"
1953 ) | sed "s/^/$as_me: WARNING: /" >&2
1955 esac
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1960 else
1961 eval "$3=\$ac_header_compiler"
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 } # ac_fn_c_check_header_mongrel
1971 # ac_fn_c_try_run LINENO
1972 # ----------------------
1973 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1974 # that executables *can* be run.
1975 ac_fn_c_try_run ()
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 if { { ac_try="$ac_link"
1979 case "(($ac_try" in
1980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1982 esac
1983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 $as_echo "$ac_try_echo"; } >&5
1985 (eval "$ac_link") 2>&5
1986 ac_status=$?
1987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1989 { { case "(($ac_try" in
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1992 esac
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_try") 2>&5
1996 ac_status=$?
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; }; }; then :
1999 ac_retval=0
2000 else
2001 $as_echo "$as_me: program exited with status $ac_status" >&5
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2005 ac_retval=$ac_status
2007 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 as_fn_set_status $ac_retval
2011 } # ac_fn_c_try_run
2013 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2014 # -------------------------------------------------------
2015 # Tests whether HEADER exists and can be compiled using the include files in
2016 # INCLUDES, setting the cache variable VAR accordingly.
2017 ac_fn_c_check_header_compile ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval \${$3+:} false; then :
2023 $as_echo_n "(cached) " >&6
2024 else
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2028 #include <$2>
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 eval "$3=yes"
2032 else
2033 eval "$3=no"
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 eval ac_res=\$$3
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042 } # ac_fn_c_check_header_compile
2044 # ac_fn_c_check_func LINENO FUNC VAR
2045 # ----------------------------------
2046 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2047 ac_fn_c_check_func ()
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if eval \${$3+:} false; then :
2053 $as_echo_n "(cached) " >&6
2054 else
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2057 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2059 #define $2 innocuous_$2
2061 /* System header to define __stub macros and hopefully few prototypes,
2062 which can conflict with char $2 (); below.
2063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2064 <limits.h> exists even on freestanding compilers. */
2066 #ifdef __STDC__
2067 # include <limits.h>
2068 #else
2069 # include <assert.h>
2070 #endif
2072 #undef $2
2074 /* Override any GCC internal prototype to avoid an error.
2075 Use char because int might match the return type of a GCC
2076 builtin and then its argument prototype would still apply. */
2077 #ifdef __cplusplus
2078 extern "C"
2079 #endif
2080 char $2 ();
2081 /* The GNU C library defines this for functions which it implements
2082 to always fail with ENOSYS. Some functions are actually named
2083 something starting with __ and the normal name is an alias. */
2084 #if defined __stub_$2 || defined __stub___$2
2085 choke me
2086 #endif
2089 main ()
2091 return $2 ();
2093 return 0;
2095 _ACEOF
2096 if ac_fn_c_try_link "$LINENO"; then :
2097 eval "$3=yes"
2098 else
2099 eval "$3=no"
2101 rm -f core conftest.err conftest.$ac_objext \
2102 conftest$ac_exeext conftest.$ac_ext
2104 eval ac_res=\$$3
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109 } # ac_fn_c_check_func
2111 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2112 # ----------------------------------------------------
2113 # Tries to find if the field MEMBER exists in type AGGR, after including
2114 # INCLUDES, setting cache variable VAR accordingly.
2115 ac_fn_c_check_member ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2119 $as_echo_n "checking for $2.$3... " >&6; }
2120 if eval \${$4+:} false; then :
2121 $as_echo_n "(cached) " >&6
2122 else
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2127 main ()
2129 static $2 ac_aggr;
2130 if (ac_aggr.$3)
2131 return 0;
2133 return 0;
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 eval "$4=yes"
2138 else
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2143 main ()
2145 static $2 ac_aggr;
2146 if (sizeof ac_aggr.$3)
2147 return 0;
2149 return 0;
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2153 eval "$4=yes"
2154 else
2155 eval "$4=no"
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 eval ac_res=\$$4
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 } # ac_fn_c_check_member
2168 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2169 # -------------------------------------------
2170 # Tests whether TYPE exists after having included INCLUDES, setting cache
2171 # variable VAR accordingly.
2172 ac_fn_c_check_type ()
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; }
2177 if eval \${$3+:} false; then :
2178 $as_echo_n "(cached) " >&6
2179 else
2180 eval "$3=no"
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2185 main ()
2187 if (sizeof ($2))
2188 return 0;
2190 return 0;
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2198 main ()
2200 if (sizeof (($2)))
2201 return 0;
2203 return 0;
2205 _ACEOF
2206 if ac_fn_c_try_compile "$LINENO"; then :
2208 else
2209 eval "$3=yes"
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 eval ac_res=\$$3
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2220 } # ac_fn_c_check_type
2221 cat >config.log <<_ACEOF
2222 This file contains any messages produced by compilers while
2223 running configure, to aid debugging if configure makes a mistake.
2225 It was created by Wine $as_me 1.7.0, which was
2226 generated by GNU Autoconf 2.69. Invocation command line was
2228 $ $0 $@
2230 _ACEOF
2231 exec 5>>config.log
2233 cat <<_ASUNAME
2234 ## --------- ##
2235 ## Platform. ##
2236 ## --------- ##
2238 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2239 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2240 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2241 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2242 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2244 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2245 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2247 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2248 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2249 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2250 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2251 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2252 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2253 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2255 _ASUNAME
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 $as_echo "PATH: $as_dir"
2263 done
2264 IFS=$as_save_IFS
2266 } >&5
2268 cat >&5 <<_ACEOF
2271 ## ----------- ##
2272 ## Core tests. ##
2273 ## ----------- ##
2275 _ACEOF
2278 # Keep a trace of the command line.
2279 # Strip out --no-create and --no-recursion so they do not pile up.
2280 # Strip out --silent because we don't want to record it for future runs.
2281 # Also quote any args containing shell meta-characters.
2282 # Make two passes to allow for proper duplicate-argument suppression.
2283 ac_configure_args=
2284 ac_configure_args0=
2285 ac_configure_args1=
2286 ac_must_keep_next=false
2287 for ac_pass in 1 2
2289 for ac_arg
2291 case $ac_arg in
2292 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2294 | -silent | --silent | --silen | --sile | --sil)
2295 continue ;;
2296 *\'*)
2297 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2298 esac
2299 case $ac_pass in
2300 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2302 as_fn_append ac_configure_args1 " '$ac_arg'"
2303 if test $ac_must_keep_next = true; then
2304 ac_must_keep_next=false # Got value, back to normal.
2305 else
2306 case $ac_arg in
2307 *=* | --config-cache | -C | -disable-* | --disable-* \
2308 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2309 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2310 | -with-* | --with-* | -without-* | --without-* | --x)
2311 case "$ac_configure_args0 " in
2312 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2313 esac
2315 -* ) ac_must_keep_next=true ;;
2316 esac
2318 as_fn_append ac_configure_args " '$ac_arg'"
2320 esac
2321 done
2322 done
2323 { ac_configure_args0=; unset ac_configure_args0;}
2324 { ac_configure_args1=; unset ac_configure_args1;}
2326 # When interrupted or exit'd, cleanup temporary files, and complete
2327 # config.log. We remove comments because anyway the quotes in there
2328 # would cause problems or look ugly.
2329 # WARNING: Use '\'' to represent an apostrophe within the trap.
2330 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2331 trap 'exit_status=$?
2332 # Save into config.log some information that might help in debugging.
2334 echo
2336 $as_echo "## ---------------- ##
2337 ## Cache variables. ##
2338 ## ---------------- ##"
2339 echo
2340 # The following way of writing the cache mishandles newlines in values,
2342 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2343 eval ac_val=\$$ac_var
2344 case $ac_val in #(
2345 *${as_nl}*)
2346 case $ac_var in #(
2347 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2348 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2349 esac
2350 case $ac_var in #(
2351 _ | IFS | as_nl) ;; #(
2352 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2353 *) { eval $ac_var=; unset $ac_var;} ;;
2354 esac ;;
2355 esac
2356 done
2357 (set) 2>&1 |
2358 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2359 *${as_nl}ac_space=\ *)
2360 sed -n \
2361 "s/'\''/'\''\\\\'\'''\''/g;
2362 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2363 ;; #(
2365 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2367 esac |
2368 sort
2370 echo
2372 $as_echo "## ----------------- ##
2373 ## Output variables. ##
2374 ## ----------------- ##"
2375 echo
2376 for ac_var in $ac_subst_vars
2378 eval ac_val=\$$ac_var
2379 case $ac_val in
2380 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2381 esac
2382 $as_echo "$ac_var='\''$ac_val'\''"
2383 done | sort
2384 echo
2386 if test -n "$ac_subst_files"; then
2387 $as_echo "## ------------------- ##
2388 ## File substitutions. ##
2389 ## ------------------- ##"
2390 echo
2391 for ac_var in $ac_subst_files
2393 eval ac_val=\$$ac_var
2394 case $ac_val in
2395 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2396 esac
2397 $as_echo "$ac_var='\''$ac_val'\''"
2398 done | sort
2399 echo
2402 if test -s confdefs.h; then
2403 $as_echo "## ----------- ##
2404 ## confdefs.h. ##
2405 ## ----------- ##"
2406 echo
2407 cat confdefs.h
2408 echo
2410 test "$ac_signal" != 0 &&
2411 $as_echo "$as_me: caught signal $ac_signal"
2412 $as_echo "$as_me: exit $exit_status"
2413 } >&5
2414 rm -f core *.core core.conftest.* &&
2415 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2416 exit $exit_status
2418 for ac_signal in 1 2 13 15; do
2419 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2420 done
2421 ac_signal=0
2423 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2424 rm -f -r conftest* confdefs.h
2426 $as_echo "/* confdefs.h */" > confdefs.h
2428 # Predefined preprocessor variables.
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_NAME "$PACKAGE_NAME"
2432 _ACEOF
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2436 _ACEOF
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2440 _ACEOF
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_STRING "$PACKAGE_STRING"
2444 _ACEOF
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2448 _ACEOF
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_URL "$PACKAGE_URL"
2452 _ACEOF
2455 # Let the site file select an alternate cache file if it wants to.
2456 # Prefer an explicitly selected file to automatically selected ones.
2457 ac_site_file1=NONE
2458 ac_site_file2=NONE
2459 if test -n "$CONFIG_SITE"; then
2460 # We do not want a PATH search for config.site.
2461 case $CONFIG_SITE in #((
2462 -*) ac_site_file1=./$CONFIG_SITE;;
2463 */*) ac_site_file1=$CONFIG_SITE;;
2464 *) ac_site_file1=./$CONFIG_SITE;;
2465 esac
2466 elif test "x$prefix" != xNONE; then
2467 ac_site_file1=$prefix/share/config.site
2468 ac_site_file2=$prefix/etc/config.site
2469 else
2470 ac_site_file1=$ac_default_prefix/share/config.site
2471 ac_site_file2=$ac_default_prefix/etc/config.site
2473 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2475 test "x$ac_site_file" = xNONE && continue
2476 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2478 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2479 sed 's/^/| /' "$ac_site_file" >&5
2480 . "$ac_site_file" \
2481 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2483 as_fn_error $? "failed to load site script $ac_site_file
2484 See \`config.log' for more details" "$LINENO" 5; }
2486 done
2488 if test -r "$cache_file"; then
2489 # Some versions of bash will fail to source /dev/null (special files
2490 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2491 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2493 $as_echo "$as_me: loading cache $cache_file" >&6;}
2494 case $cache_file in
2495 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2496 *) . "./$cache_file";;
2497 esac
2499 else
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2501 $as_echo "$as_me: creating cache $cache_file" >&6;}
2502 >$cache_file
2505 # Check that the precious variables saved in the cache have kept the same
2506 # value.
2507 ac_cache_corrupted=false
2508 for ac_var in $ac_precious_vars; do
2509 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2510 eval ac_new_set=\$ac_env_${ac_var}_set
2511 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2512 eval ac_new_val=\$ac_env_${ac_var}_value
2513 case $ac_old_set,$ac_new_set in
2514 set,)
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2516 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2517 ac_cache_corrupted=: ;;
2518 ,set)
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2520 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2521 ac_cache_corrupted=: ;;
2522 ,);;
2524 if test "x$ac_old_val" != "x$ac_new_val"; then
2525 # differences in whitespace do not lead to failure.
2526 ac_old_val_w=`echo x $ac_old_val`
2527 ac_new_val_w=`echo x $ac_new_val`
2528 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2530 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2531 ac_cache_corrupted=:
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2534 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2535 eval $ac_var=\$ac_old_val
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2538 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2540 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2541 fi;;
2542 esac
2543 # Pass precious variables to config.status.
2544 if test "$ac_new_set" = set; then
2545 case $ac_new_val in
2546 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2547 *) ac_arg=$ac_var=$ac_new_val ;;
2548 esac
2549 case " $ac_configure_args " in
2550 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2551 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2552 esac
2554 done
2555 if $ac_cache_corrupted; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2559 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2560 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2562 ## -------------------- ##
2563 ## Main body of script. ##
2564 ## -------------------- ##
2566 ac_ext=c
2567 ac_cpp='$CPP $CPPFLAGS'
2568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574 ac_config_headers="$ac_config_headers include/config.h"
2576 ac_aux_dir=
2577 for ac_dir in tools "$srcdir"/tools; do
2578 if test -f "$ac_dir/install-sh"; then
2579 ac_aux_dir=$ac_dir
2580 ac_install_sh="$ac_aux_dir/install-sh -c"
2581 break
2582 elif test -f "$ac_dir/install.sh"; then
2583 ac_aux_dir=$ac_dir
2584 ac_install_sh="$ac_aux_dir/install.sh -c"
2585 break
2586 elif test -f "$ac_dir/shtool"; then
2587 ac_aux_dir=$ac_dir
2588 ac_install_sh="$ac_aux_dir/shtool install -c"
2589 break
2591 done
2592 if test -z "$ac_aux_dir"; then
2593 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2596 # These three variables are undocumented and unsupported,
2597 # and are intended to be withdrawn in a future Autoconf release.
2598 # They can cause serious problems if a builder's source tree is in a directory
2599 # whose full name contains unusual characters.
2600 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2601 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2602 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2608 # Check whether --enable-win16 was given.
2609 if test "${enable_win16+set}" = set; then :
2610 enableval=$enable_win16;
2613 # Check whether --enable-win64 was given.
2614 if test "${enable_win64+set}" = set; then :
2615 enableval=$enable_win64;
2618 # Check whether --enable-tests was given.
2619 if test "${enable_tests+set}" = set; then :
2620 enableval=$enable_tests;
2623 # Check whether --enable-maintainer-mode was given.
2624 if test "${enable_maintainer_mode+set}" = set; then :
2625 enableval=$enable_maintainer_mode;
2630 # Check whether --with-alsa was given.
2631 if test "${with_alsa+set}" = set; then :
2632 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2636 # Check whether --with-capi was given.
2637 if test "${with_capi+set}" = set; then :
2638 withval=$with_capi;
2642 # Check whether --with-cms was given.
2643 if test "${with_cms+set}" = set; then :
2644 withval=$with_cms;
2648 # Check whether --with-coreaudio was given.
2649 if test "${with_coreaudio+set}" = set; then :
2650 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2654 # Check whether --with-cups was given.
2655 if test "${with_cups+set}" = set; then :
2656 withval=$with_cups;
2660 # Check whether --with-curses was given.
2661 if test "${with_curses+set}" = set; then :
2662 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2666 # Check whether --with-dbus was given.
2667 if test "${with_dbus+set}" = set; then :
2668 withval=$with_dbus;
2672 # Check whether --with-fontconfig was given.
2673 if test "${with_fontconfig+set}" = set; then :
2674 withval=$with_fontconfig;
2678 # Check whether --with-freetype was given.
2679 if test "${with_freetype+set}" = set; then :
2680 withval=$with_freetype;
2684 # Check whether --with-gettext was given.
2685 if test "${with_gettext+set}" = set; then :
2686 withval=$with_gettext;
2690 # Check whether --with-gettextpo was given.
2691 if test "${with_gettextpo+set}" = set; then :
2692 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2696 # Check whether --with-gphoto was given.
2697 if test "${with_gphoto+set}" = set; then :
2698 withval=$with_gphoto;
2702 # Check whether --with-glu was given.
2703 if test "${with_glu+set}" = set; then :
2704 withval=$with_glu;
2708 # Check whether --with-gnutls was given.
2709 if test "${with_gnutls+set}" = set; then :
2710 withval=$with_gnutls;
2714 # Check whether --with-gsm was given.
2715 if test "${with_gsm+set}" = set; then :
2716 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2720 # Check whether --with-gstreamer was given.
2721 if test "${with_gstreamer+set}" = set; then :
2722 withval=$with_gstreamer;
2726 # Check whether --with-hal was given.
2727 if test "${with_hal+set}" = set; then :
2728 withval=$with_hal;
2732 # Check whether --with-jpeg was given.
2733 if test "${with_jpeg+set}" = set; then :
2734 withval=$with_jpeg;
2738 # Check whether --with-ldap was given.
2739 if test "${with_ldap+set}" = set; then :
2740 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2744 # Check whether --with-mpg123 was given.
2745 if test "${with_mpg123+set}" = set; then :
2746 withval=$with_mpg123;
2750 # Check whether --with-openal was given.
2751 if test "${with_openal+set}" = set; then :
2752 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2756 # Check whether --with-opencl was given.
2757 if test "${with_opencl+set}" = set; then :
2758 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2762 # Check whether --with-opengl was given.
2763 if test "${with_opengl+set}" = set; then :
2764 withval=$with_opengl;
2768 # Check whether --with-osmesa was given.
2769 if test "${with_osmesa+set}" = set; then :
2770 withval=$with_osmesa;
2774 # Check whether --with-oss was given.
2775 if test "${with_oss+set}" = set; then :
2776 withval=$with_oss;
2780 # Check whether --with-png was given.
2781 if test "${with_png+set}" = set; then :
2782 withval=$with_png;
2786 # Check whether --with-pthread was given.
2787 if test "${with_pthread+set}" = set; then :
2788 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2792 # Check whether --with-sane was given.
2793 if test "${with_sane+set}" = set; then :
2794 withval=$with_sane;
2798 # Check whether --with-tiff was given.
2799 if test "${with_tiff+set}" = set; then :
2800 withval=$with_tiff;
2804 # Check whether --with-v4l was given.
2805 if test "${with_v4l+set}" = set; then :
2806 withval=$with_v4l;
2810 # Check whether --with-xcomposite was given.
2811 if test "${with_xcomposite+set}" = set; then :
2812 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2816 # Check whether --with-xcursor was given.
2817 if test "${with_xcursor+set}" = set; then :
2818 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2822 # Check whether --with-xinerama was given.
2823 if test "${with_xinerama+set}" = set; then :
2824 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2828 # Check whether --with-xinput was given.
2829 if test "${with_xinput+set}" = set; then :
2830 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2834 # Check whether --with-xinput2 was given.
2835 if test "${with_xinput2+set}" = set; then :
2836 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2840 # Check whether --with-xml was given.
2841 if test "${with_xml+set}" = set; then :
2842 withval=$with_xml;
2846 # Check whether --with-xrandr was given.
2847 if test "${with_xrandr+set}" = set; then :
2848 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2852 # Check whether --with-xrender was given.
2853 if test "${with_xrender+set}" = set; then :
2854 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2858 # Check whether --with-xshape was given.
2859 if test "${with_xshape+set}" = set; then :
2860 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2864 # Check whether --with-xshm was given.
2865 if test "${with_xshm+set}" = set; then :
2866 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2870 # Check whether --with-xslt was given.
2871 if test "${with_xslt+set}" = set; then :
2872 withval=$with_xslt;
2876 # Check whether --with-xxf86vm was given.
2877 if test "${with_xxf86vm+set}" = set; then :
2878 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
2882 # Check whether --with-zlib was given.
2883 if test "${with_zlib+set}" = set; then :
2884 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2889 # Check whether --with-wine-tools was given.
2890 if test "${with_wine_tools+set}" = set; then :
2891 withval=$with_wine_tools;
2895 # Check whether --with-wine64 was given.
2896 if test "${with_wine64+set}" = set; then :
2897 withval=$with_wine64;
2901 # Make sure we can run config.sub.
2902 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2903 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2906 $as_echo_n "checking build system type... " >&6; }
2907 if ${ac_cv_build+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 ac_build_alias=$build_alias
2911 test "x$ac_build_alias" = x &&
2912 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2913 test "x$ac_build_alias" = x &&
2914 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2915 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2916 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2920 $as_echo "$ac_cv_build" >&6; }
2921 case $ac_cv_build in
2922 *-*-*) ;;
2923 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2924 esac
2925 build=$ac_cv_build
2926 ac_save_IFS=$IFS; IFS='-'
2927 set x $ac_cv_build
2928 shift
2929 build_cpu=$1
2930 build_vendor=$2
2931 shift; shift
2932 # Remember, the first character of IFS is used to create $*,
2933 # except with old shells:
2934 build_os=$*
2935 IFS=$ac_save_IFS
2936 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2940 $as_echo_n "checking host system type... " >&6; }
2941 if ${ac_cv_host+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 if test "x$host_alias" = x; then
2945 ac_cv_host=$ac_cv_build
2946 else
2947 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2948 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2953 $as_echo "$ac_cv_host" >&6; }
2954 case $ac_cv_host in
2955 *-*-*) ;;
2956 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2957 esac
2958 host=$ac_cv_host
2959 ac_save_IFS=$IFS; IFS='-'
2960 set x $ac_cv_host
2961 shift
2962 host_cpu=$1
2963 host_vendor=$2
2964 shift; shift
2965 # Remember, the first character of IFS is used to create $*,
2966 # except with old shells:
2967 host_os=$*
2968 IFS=$ac_save_IFS
2969 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2973 case "$srcdir" in
2974 .) ;;
2975 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2976 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2977 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2978 fi ;;
2979 esac
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2983 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2984 set x ${MAKE-make}
2985 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2986 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2987 $as_echo_n "(cached) " >&6
2988 else
2989 cat >conftest.make <<\_ACEOF
2990 SHELL = /bin/sh
2991 all:
2992 @echo '@@@%%%=$(MAKE)=@@@%%%'
2993 _ACEOF
2994 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2995 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2996 *@@@%%%=?*=@@@%%%*)
2997 eval ac_cv_prog_make_${ac_make}_set=yes;;
2999 eval ac_cv_prog_make_${ac_make}_set=no;;
3000 esac
3001 rm -f conftest.make
3003 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005 $as_echo "yes" >&6; }
3006 SET_MAKE=
3007 else
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3010 SET_MAKE="MAKE=${MAKE-make}"
3013 ac_ext=c
3014 ac_cpp='$CPP $CPPFLAGS'
3015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018 if test -n "$ac_tool_prefix"; then
3019 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3020 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_CC+:} false; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3040 done
3041 done
3042 IFS=$as_save_IFS
3046 CC=$ac_cv_prog_CC
3047 if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3057 if test -z "$ac_cv_prog_CC"; then
3058 ac_ct_CC=$CC
3059 # Extract the first word of "gcc", so it can be a program name with args.
3060 set dummy gcc; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 if test -n "$ac_ct_CC"; then
3067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_ac_ct_CC="gcc"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3080 done
3081 done
3082 IFS=$as_save_IFS
3086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3087 if test -n "$ac_ct_CC"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3089 $as_echo "$ac_ct_CC" >&6; }
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3095 if test "x$ac_ct_CC" = x; then
3096 CC=""
3097 else
3098 case $cross_compiling:$ac_tool_warned in
3099 yes:)
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102 ac_tool_warned=yes ;;
3103 esac
3104 CC=$ac_ct_CC
3106 else
3107 CC="$ac_cv_prog_CC"
3110 if test -z "$CC"; then
3111 if test -n "$ac_tool_prefix"; then
3112 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3113 set dummy ${ac_tool_prefix}cc; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if ${ac_cv_prog_CC+:} false; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test -n "$CC"; then
3120 ac_cv_prog_CC="$CC" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129 ac_cv_prog_CC="${ac_tool_prefix}cc"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 break 2
3133 done
3134 done
3135 IFS=$as_save_IFS
3139 CC=$ac_cv_prog_CC
3140 if test -n "$CC"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3151 if test -z "$CC"; then
3152 # Extract the first word of "cc", so it can be a program name with args.
3153 set dummy cc; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_prog_CC+:} false; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 else
3162 ac_prog_rejected=no
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH
3166 IFS=$as_save_IFS
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3170 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3171 ac_prog_rejected=yes
3172 continue
3174 ac_cv_prog_CC="cc"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3178 done
3179 done
3180 IFS=$as_save_IFS
3182 if test $ac_prog_rejected = yes; then
3183 # We found a bogon in the path, so make sure we never use it.
3184 set dummy $ac_cv_prog_CC
3185 shift
3186 if test $# != 0; then
3187 # We chose a different compiler from the bogus one.
3188 # However, it has the same basename, so the bogon will be chosen
3189 # first if we set CC to just the basename; use the full file name.
3190 shift
3191 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3196 CC=$ac_cv_prog_CC
3197 if test -n "$CC"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3199 $as_echo "$CC" >&6; }
3200 else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3207 if test -z "$CC"; then
3208 if test -n "$ac_tool_prefix"; then
3209 for ac_prog in cl.exe
3211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if ${ac_cv_prog_CC+:} false; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC="$CC" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3232 done
3233 done
3234 IFS=$as_save_IFS
3238 CC=$ac_cv_prog_CC
3239 if test -n "$CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241 $as_echo "$CC" >&6; }
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3248 test -n "$CC" && break
3249 done
3251 if test -z "$CC"; then
3252 ac_ct_CC=$CC
3253 for ac_prog in cl.exe
3255 # Extract the first word of "$ac_prog", so it can be a program name with args.
3256 set dummy $ac_prog; ac_word=$2
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 $as_echo_n "checking for $ac_word... " >&6; }
3259 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 if test -n "$ac_ct_CC"; then
3263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272 ac_cv_prog_ac_ct_CC="$ac_prog"
3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 break 2
3276 done
3277 done
3278 IFS=$as_save_IFS
3282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3283 if test -n "$ac_ct_CC"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3285 $as_echo "$ac_ct_CC" >&6; }
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3292 test -n "$ac_ct_CC" && break
3293 done
3295 if test "x$ac_ct_CC" = x; then
3296 CC=""
3297 else
3298 case $cross_compiling:$ac_tool_warned in
3299 yes:)
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3302 ac_tool_warned=yes ;;
3303 esac
3304 CC=$ac_ct_CC
3311 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error $? "no acceptable C compiler found in \$PATH
3314 See \`config.log' for more details" "$LINENO" 5; }
3316 # Provide some information about the compiler.
3317 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3318 set X $ac_compile
3319 ac_compiler=$2
3320 for ac_option in --version -v -V -qversion; do
3321 { { ac_try="$ac_compiler $ac_option >&5"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3329 ac_status=$?
3330 if test -s conftest.err; then
3331 sed '10a\
3332 ... rest of stderr output deleted ...
3333 10q' conftest.err >conftest.er1
3334 cat conftest.er1 >&5
3336 rm -f conftest.er1 conftest.err
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }
3339 done
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3345 main ()
3349 return 0;
3351 _ACEOF
3352 ac_clean_files_save=$ac_clean_files
3353 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3354 # Try to create an executable without -o first, disregard a.out.
3355 # It will help us diagnose broken compilers, and finding out an intuition
3356 # of exeext.
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3358 $as_echo_n "checking whether the C compiler works... " >&6; }
3359 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3361 # The possible output files:
3362 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3364 ac_rmfiles=
3365 for ac_file in $ac_files
3367 case $ac_file in
3368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3369 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3370 esac
3371 done
3372 rm -f $ac_rmfiles
3374 if { { ac_try="$ac_link_default"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_link_default") 2>&5
3382 ac_status=$?
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }; then :
3385 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3386 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3387 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3388 # so that the user can short-circuit this test for compilers unknown to
3389 # Autoconf.
3390 for ac_file in $ac_files ''
3392 test -f "$ac_file" || continue
3393 case $ac_file in
3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3396 [ab].out )
3397 # We found the default executable, but exeext='' is most
3398 # certainly right.
3399 break;;
3400 *.* )
3401 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3402 then :; else
3403 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3405 # We set ac_cv_exeext here because the later test for it is not
3406 # safe: cross compilers may not add the suffix if given an `-o'
3407 # argument, so we may need to know it at that point already.
3408 # Even if this section looks crufty: it has the advantage of
3409 # actually working.
3410 break;;
3412 break;;
3413 esac
3414 done
3415 test "$ac_cv_exeext" = no && ac_cv_exeext=
3417 else
3418 ac_file=''
3420 if test -z "$ac_file"; then :
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3423 $as_echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3428 as_fn_error 77 "C compiler cannot create executables
3429 See \`config.log' for more details" "$LINENO" 5; }
3430 else
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3432 $as_echo "yes" >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3435 $as_echo_n "checking for C compiler default output file name... " >&6; }
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3437 $as_echo "$ac_file" >&6; }
3438 ac_exeext=$ac_cv_exeext
3440 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3441 ac_clean_files=$ac_clean_files_save
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3443 $as_echo_n "checking for suffix of executables... " >&6; }
3444 if { { ac_try="$ac_link"
3445 case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448 esac
3449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450 $as_echo "$ac_try_echo"; } >&5
3451 (eval "$ac_link") 2>&5
3452 ac_status=$?
3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454 test $ac_status = 0; }; then :
3455 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3456 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3457 # work properly (i.e., refer to `conftest.exe'), while it won't with
3458 # `rm'.
3459 for ac_file in conftest.exe conftest conftest.*; do
3460 test -f "$ac_file" || continue
3461 case $ac_file in
3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3463 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3464 break;;
3465 * ) break;;
3466 esac
3467 done
3468 else
3469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3472 See \`config.log' for more details" "$LINENO" 5; }
3474 rm -f conftest conftest$ac_cv_exeext
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3476 $as_echo "$ac_cv_exeext" >&6; }
3478 rm -f conftest.$ac_ext
3479 EXEEXT=$ac_cv_exeext
3480 ac_exeext=$EXEEXT
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483 #include <stdio.h>
3485 main ()
3487 FILE *f = fopen ("conftest.out", "w");
3488 return ferror (f) || fclose (f) != 0;
3491 return 0;
3493 _ACEOF
3494 ac_clean_files="$ac_clean_files conftest.out"
3495 # Check that the compiler produces executables we can run. If not, either
3496 # the compiler is broken, or we cross compile.
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3498 $as_echo_n "checking whether we are cross compiling... " >&6; }
3499 if test "$cross_compiling" != yes; then
3500 { { ac_try="$ac_link"
3501 case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504 esac
3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506 $as_echo "$ac_try_echo"; } >&5
3507 (eval "$ac_link") 2>&5
3508 ac_status=$?
3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510 test $ac_status = 0; }
3511 if { ac_try='./conftest$ac_cv_exeext'
3512 { { case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515 esac
3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517 $as_echo "$ac_try_echo"; } >&5
3518 (eval "$ac_try") 2>&5
3519 ac_status=$?
3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521 test $ac_status = 0; }; }; then
3522 cross_compiling=no
3523 else
3524 if test "$cross_compiling" = maybe; then
3525 cross_compiling=yes
3526 else
3527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529 as_fn_error $? "cannot run C compiled programs.
3530 If you meant to cross compile, use \`--host'.
3531 See \`config.log' for more details" "$LINENO" 5; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3536 $as_echo "$cross_compiling" >&6; }
3538 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3539 ac_clean_files=$ac_clean_files_save
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3541 $as_echo_n "checking for suffix of object files... " >&6; }
3542 if ${ac_cv_objext+:} false; then :
3543 $as_echo_n "(cached) " >&6
3544 else
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3549 main ()
3553 return 0;
3555 _ACEOF
3556 rm -f conftest.o conftest.obj
3557 if { { ac_try="$ac_compile"
3558 case "(($ac_try" in
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3561 esac
3562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3563 $as_echo "$ac_try_echo"; } >&5
3564 (eval "$ac_compile") 2>&5
3565 ac_status=$?
3566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3567 test $ac_status = 0; }; then :
3568 for ac_file in conftest.o conftest.obj conftest.*; do
3569 test -f "$ac_file" || continue;
3570 case $ac_file in
3571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3572 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3573 break;;
3574 esac
3575 done
3576 else
3577 $as_echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3582 as_fn_error $? "cannot compute suffix of object files: cannot compile
3583 See \`config.log' for more details" "$LINENO" 5; }
3585 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3588 $as_echo "$ac_cv_objext" >&6; }
3589 OBJEXT=$ac_cv_objext
3590 ac_objext=$OBJEXT
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3592 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3593 if ${ac_cv_c_compiler_gnu+:} false; then :
3594 $as_echo_n "(cached) " >&6
3595 else
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3600 main ()
3602 #ifndef __GNUC__
3603 choke me
3604 #endif
3607 return 0;
3609 _ACEOF
3610 if ac_fn_c_try_compile "$LINENO"; then :
3611 ac_compiler_gnu=yes
3612 else
3613 ac_compiler_gnu=no
3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3620 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3621 if test $ac_compiler_gnu = yes; then
3622 GCC=yes
3623 else
3624 GCC=
3626 ac_test_CFLAGS=${CFLAGS+set}
3627 ac_save_CFLAGS=$CFLAGS
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3629 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3630 if ${ac_cv_prog_cc_g+:} false; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 ac_save_c_werror_flag=$ac_c_werror_flag
3634 ac_c_werror_flag=yes
3635 ac_cv_prog_cc_g=no
3636 CFLAGS="-g"
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3641 main ()
3645 return 0;
3647 _ACEOF
3648 if ac_fn_c_try_compile "$LINENO"; then :
3649 ac_cv_prog_cc_g=yes
3650 else
3651 CFLAGS=""
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3656 main ()
3660 return 0;
3662 _ACEOF
3663 if ac_fn_c_try_compile "$LINENO"; then :
3665 else
3666 ac_c_werror_flag=$ac_save_c_werror_flag
3667 CFLAGS="-g"
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3672 main ()
3676 return 0;
3678 _ACEOF
3679 if ac_fn_c_try_compile "$LINENO"; then :
3680 ac_cv_prog_cc_g=yes
3682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 ac_c_werror_flag=$ac_save_c_werror_flag
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3690 $as_echo "$ac_cv_prog_cc_g" >&6; }
3691 if test "$ac_test_CFLAGS" = set; then
3692 CFLAGS=$ac_save_CFLAGS
3693 elif test $ac_cv_prog_cc_g = yes; then
3694 if test "$GCC" = yes; then
3695 CFLAGS="-g -O2"
3696 else
3697 CFLAGS="-g"
3699 else
3700 if test "$GCC" = yes; then
3701 CFLAGS="-O2"
3702 else
3703 CFLAGS=
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3707 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3708 if ${ac_cv_prog_cc_c89+:} false; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 ac_cv_prog_cc_c89=no
3712 ac_save_CC=$CC
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715 #include <stdarg.h>
3716 #include <stdio.h>
3717 struct stat;
3718 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3719 struct buf { int x; };
3720 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3721 static char *e (p, i)
3722 char **p;
3723 int i;
3725 return p[i];
3727 static char *f (char * (*g) (char **, int), char **p, ...)
3729 char *s;
3730 va_list v;
3731 va_start (v,p);
3732 s = g (p, va_arg (v,int));
3733 va_end (v);
3734 return s;
3737 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3738 function prototypes and stuff, but not '\xHH' hex character constants.
3739 These don't provoke an error unfortunately, instead are silently treated
3740 as 'x'. The following induces an error, until -std is added to get
3741 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3742 array size at least. It's necessary to write '\x00'==0 to get something
3743 that's true only with -std. */
3744 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3746 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3747 inside strings and character constants. */
3748 #define FOO(x) 'x'
3749 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3751 int test (int i, double x);
3752 struct s1 {int (*f) (int a);};
3753 struct s2 {int (*f) (double a);};
3754 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3755 int argc;
3756 char **argv;
3758 main ()
3760 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3762 return 0;
3764 _ACEOF
3765 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3766 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3768 CC="$ac_save_CC $ac_arg"
3769 if ac_fn_c_try_compile "$LINENO"; then :
3770 ac_cv_prog_cc_c89=$ac_arg
3772 rm -f core conftest.err conftest.$ac_objext
3773 test "x$ac_cv_prog_cc_c89" != "xno" && break
3774 done
3775 rm -f conftest.$ac_ext
3776 CC=$ac_save_CC
3779 # AC_CACHE_VAL
3780 case "x$ac_cv_prog_cc_c89" in
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3783 $as_echo "none needed" >&6; } ;;
3784 xno)
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3786 $as_echo "unsupported" >&6; } ;;
3788 CC="$CC $ac_cv_prog_cc_c89"
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3790 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3791 esac
3792 if test "x$ac_cv_prog_cc_c89" != xno; then :
3796 ac_ext=c
3797 ac_cpp='$CPP $CPPFLAGS'
3798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3802 ac_ext=cpp
3803 ac_cpp='$CXXCPP $CPPFLAGS'
3804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3807 if test -z "$CXX"; then
3808 if test -n "$CCC"; then
3809 CXX=$CCC
3810 else
3811 if test -n "$ac_tool_prefix"; then
3812 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3817 $as_echo_n "checking for $ac_word... " >&6; }
3818 if ${ac_cv_prog_CXX+:} false; then :
3819 $as_echo_n "(cached) " >&6
3820 else
3821 if test -n "$CXX"; then
3822 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3823 else
3824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 for as_dir in $PATH
3827 IFS=$as_save_IFS
3828 test -z "$as_dir" && as_dir=.
3829 for ac_exec_ext in '' $ac_executable_extensions; do
3830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3831 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 break 2
3835 done
3836 done
3837 IFS=$as_save_IFS
3841 CXX=$ac_cv_prog_CXX
3842 if test -n "$CXX"; then
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3844 $as_echo "$CXX" >&6; }
3845 else
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847 $as_echo "no" >&6; }
3851 test -n "$CXX" && break
3852 done
3854 if test -z "$CXX"; then
3855 ac_ct_CXX=$CXX
3856 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3858 # Extract the first word of "$ac_prog", so it can be a program name with args.
3859 set dummy $ac_prog; ac_word=$2
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3861 $as_echo_n "checking for $ac_word... " >&6; }
3862 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3863 $as_echo_n "(cached) " >&6
3864 else
3865 if test -n "$ac_ct_CXX"; then
3866 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3867 else
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875 ac_cv_prog_ac_ct_CXX="$ac_prog"
3876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3877 break 2
3879 done
3880 done
3881 IFS=$as_save_IFS
3885 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3886 if test -n "$ac_ct_CXX"; then
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3888 $as_echo "$ac_ct_CXX" >&6; }
3889 else
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3891 $as_echo "no" >&6; }
3895 test -n "$ac_ct_CXX" && break
3896 done
3898 if test "x$ac_ct_CXX" = x; then
3899 CXX="g++"
3900 else
3901 case $cross_compiling:$ac_tool_warned in
3902 yes:)
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3905 ac_tool_warned=yes ;;
3906 esac
3907 CXX=$ac_ct_CXX
3913 # Provide some information about the compiler.
3914 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3915 set X $ac_compile
3916 ac_compiler=$2
3917 for ac_option in --version -v -V -qversion; do
3918 { { ac_try="$ac_compiler $ac_option >&5"
3919 case "(($ac_try" in
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3922 esac
3923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924 $as_echo "$ac_try_echo"; } >&5
3925 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3926 ac_status=$?
3927 if test -s conftest.err; then
3928 sed '10a\
3929 ... rest of stderr output deleted ...
3930 10q' conftest.err >conftest.er1
3931 cat conftest.er1 >&5
3933 rm -f conftest.er1 conftest.err
3934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }
3936 done
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3939 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3940 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3947 main ()
3949 #ifndef __GNUC__
3950 choke me
3951 #endif
3954 return 0;
3956 _ACEOF
3957 if ac_fn_cxx_try_compile "$LINENO"; then :
3958 ac_compiler_gnu=yes
3959 else
3960 ac_compiler_gnu=no
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3967 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3968 if test $ac_compiler_gnu = yes; then
3969 GXX=yes
3970 else
3971 GXX=
3973 ac_test_CXXFLAGS=${CXXFLAGS+set}
3974 ac_save_CXXFLAGS=$CXXFLAGS
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3976 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3977 if ${ac_cv_prog_cxx_g+:} false; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3981 ac_cxx_werror_flag=yes
3982 ac_cv_prog_cxx_g=no
3983 CXXFLAGS="-g"
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3988 main ()
3992 return 0;
3994 _ACEOF
3995 if ac_fn_cxx_try_compile "$LINENO"; then :
3996 ac_cv_prog_cxx_g=yes
3997 else
3998 CXXFLAGS=""
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4003 main ()
4007 return 0;
4009 _ACEOF
4010 if ac_fn_cxx_try_compile "$LINENO"; then :
4012 else
4013 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4014 CXXFLAGS="-g"
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4019 main ()
4023 return 0;
4025 _ACEOF
4026 if ac_fn_cxx_try_compile "$LINENO"; then :
4027 ac_cv_prog_cxx_g=yes
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4037 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4038 if test "$ac_test_CXXFLAGS" = set; then
4039 CXXFLAGS=$ac_save_CXXFLAGS
4040 elif test $ac_cv_prog_cxx_g = yes; then
4041 if test "$GXX" = yes; then
4042 CXXFLAGS="-g -O2"
4043 else
4044 CXXFLAGS="-g"
4046 else
4047 if test "$GXX" = yes; then
4048 CXXFLAGS="-O2"
4049 else
4050 CXXFLAGS=
4053 ac_ext=c
4054 ac_cpp='$CPP $CPPFLAGS'
4055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4059 if test -n "$ac_tool_prefix"; then
4060 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4061 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063 $as_echo_n "checking for $ac_word... " >&6; }
4064 if ${ac_cv_prog_CPPBIN+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 if test -n "$CPPBIN"; then
4068 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4069 else
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH
4073 IFS=$as_save_IFS
4074 test -z "$as_dir" && as_dir=.
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4077 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 break 2
4081 done
4082 done
4083 IFS=$as_save_IFS
4087 CPPBIN=$ac_cv_prog_CPPBIN
4088 if test -n "$CPPBIN"; then
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4090 $as_echo "$CPPBIN" >&6; }
4091 else
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 $as_echo "no" >&6; }
4098 if test -z "$ac_cv_prog_CPPBIN"; then
4099 ac_ct_CPPBIN=$CPPBIN
4100 # Extract the first word of "cpp", so it can be a program name with args.
4101 set dummy cpp; ac_word=$2
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4103 $as_echo_n "checking for $ac_word... " >&6; }
4104 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4105 $as_echo_n "(cached) " >&6
4106 else
4107 if test -n "$ac_ct_CPPBIN"; then
4108 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4109 else
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_prog_ac_ct_CPPBIN="cpp"
4118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 break 2
4121 done
4122 done
4123 IFS=$as_save_IFS
4127 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4128 if test -n "$ac_ct_CPPBIN"; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4130 $as_echo "$ac_ct_CPPBIN" >&6; }
4131 else
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 $as_echo "no" >&6; }
4136 if test "x$ac_ct_CPPBIN" = x; then
4137 CPPBIN="cpp"
4138 else
4139 case $cross_compiling:$ac_tool_warned in
4140 yes:)
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4143 ac_tool_warned=yes ;;
4144 esac
4145 CPPBIN=$ac_ct_CPPBIN
4147 else
4148 CPPBIN="$ac_cv_prog_CPPBIN"
4152 cat >>confdefs.h <<_ACEOF
4153 #define EXEEXT "$ac_exeext"
4154 _ACEOF
4157 case $host in
4158 *-darwin*)
4159 if test "x$enable_win64" = "xyes"
4160 then
4161 CC="$CC -m64"
4162 CXX="$CXX -m64"
4163 host_cpu="x86_64"
4164 notice_platform="64-bit "
4165 TARGETFLAGS="-m64"
4167 else
4168 CC="$CC -m32"
4169 CXX="$CXX -m32"
4170 host_cpu="i386"
4171 notice_platform="32-bit "
4172 TARGETFLAGS="-m32"
4174 enable_win16=${enable_win16:-yes}
4176 with_fontconfig=${with_fontconfig:-no}
4178 x86_64*)
4179 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4180 then
4181 CC="$CC -m32"
4182 CXX="$CXX -m32"
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4184 $as_echo_n "checking whether $CC works... " >&6; }
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4190 main ()
4194 return 0;
4196 _ACEOF
4197 if ac_fn_c_try_link "$LINENO"; then :
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4199 $as_echo "yes" >&6; }
4200 else
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 $as_echo "no" >&6; }
4203 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4205 rm -f core conftest.err conftest.$ac_objext \
4206 conftest$ac_exeext conftest.$ac_ext
4207 host_cpu="i386"
4208 notice_platform="32-bit "
4209 TARGETFLAGS="-m32"
4211 enable_win16=${enable_win16:-yes}
4212 else
4213 if test "x${GCC}" = "xyes"
4214 then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4216 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219 #include <stdarg.h>
4221 main ()
4223 void func(__builtin_ms_va_list *args);
4225 return 0;
4227 _ACEOF
4228 if ac_fn_c_try_compile "$LINENO"; then :
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4230 $as_echo "yes" >&6; }
4231 else
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4234 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4238 TARGETFLAGS="-m64"
4242 arm*)
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4244 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 int ac_test(int i) { return i; }
4249 main ()
4251 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4253 return 0;
4255 _ACEOF
4256 if ac_fn_c_try_link "$LINENO"; then :
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4258 $as_echo "yes" >&6; }
4259 else
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4262 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4264 rm -f core conftest.err conftest.$ac_objext \
4265 conftest$ac_exeext conftest.$ac_ext
4266 CFLAGS="$CFLAGS -marm"
4268 *-mingw32*|*-cygwin*)
4269 enable_win16=${enable_win16:-no}
4270 CFLAGS="$CFLAGS -D_WIN32"
4272 i[3456789]86*)
4273 enable_win16=${enable_win16:-yes}
4275 esac
4277 enable_win16=${enable_win16:-no}
4278 enable_win64=${enable_win64:-no}
4280 enable_winetest=${enable_winetest:-$enable_tests}
4282 if test -n "$with_wine64"
4283 then
4284 if test "x$enable_win64" = "xyes"
4285 then
4286 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4287 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4289 WOW64_DISABLE=\#
4291 enable_fonts=${enable_fonts:-no}
4292 enable_server=${enable_server:-no}
4293 enable_tools=${enable_tools:-no}
4294 elif test "x$enable_win64" = "xyes"
4295 then
4296 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4300 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4301 if ${wine_cv_toolsdir+:} false; then :
4302 $as_echo_n "(cached) " >&6
4303 else
4304 wine_cv_toolsdir="$with_wine_tools"
4305 if test -z "$with_wine_tools"; then
4306 if test "$cross_compiling" = "yes"; then
4307 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4308 elif test -n "$with_wine64"; then
4309 wine_cv_toolsdir="$with_wine64"
4312 if test -z "$wine_cv_toolsdir"; then
4313 wine_cv_toolsdir="\$(top_builddir)"
4314 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4315 case "$wine_cv_toolsdir" in
4316 /*) ;;
4317 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4318 esac
4319 else
4320 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4324 $as_echo "$wine_cv_toolsdir" >&6; }
4325 TOOLSDIR=$wine_cv_toolsdir
4327 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4328 then
4329 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4333 for ac_prog in flex
4335 # Extract the first word of "$ac_prog", so it can be a program name with args.
4336 set dummy $ac_prog; ac_word=$2
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338 $as_echo_n "checking for $ac_word... " >&6; }
4339 if ${ac_cv_prog_FLEX+:} false; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 if test -n "$FLEX"; then
4343 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4344 else
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4352 ac_cv_prog_FLEX="$ac_prog"
4353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 break 2
4356 done
4357 done
4358 IFS=$as_save_IFS
4362 FLEX=$ac_cv_prog_FLEX
4363 if test -n "$FLEX"; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4365 $as_echo "$FLEX" >&6; }
4366 else
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4372 test -n "$FLEX" && break
4373 done
4374 test -n "$FLEX" || FLEX="none"
4376 if test "$FLEX" = "none"
4377 then
4378 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4381 $as_echo_n "checking whether flex is recent enough... " >&6; }
4382 cat >conftest.l <<EOF
4383 %top{
4384 #include "prediluvian.h"
4388 if $FLEX -t conftest.l >/dev/null 2>&5
4389 then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4391 $as_echo "yes" >&6; }
4392 else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4395 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4398 for ac_prog in bison
4400 # Extract the first word of "$ac_prog", so it can be a program name with args.
4401 set dummy $ac_prog; ac_word=$2
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403 $as_echo_n "checking for $ac_word... " >&6; }
4404 if ${ac_cv_prog_BISON+:} false; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 if test -n "$BISON"; then
4408 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4409 else
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4417 ac_cv_prog_BISON="$ac_prog"
4418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 break 2
4421 done
4422 done
4423 IFS=$as_save_IFS
4427 BISON=$ac_cv_prog_BISON
4428 if test -n "$BISON"; then
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4430 $as_echo "$BISON" >&6; }
4431 else
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433 $as_echo "no" >&6; }
4437 test -n "$BISON" && break
4438 done
4439 test -n "$BISON" || BISON="none"
4441 if test "$BISON" = "none"
4442 then
4443 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4446 if test -n "$ac_tool_prefix"; then
4447 for ac_prog in ar gar
4449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452 $as_echo_n "checking for $ac_word... " >&6; }
4453 if ${ac_cv_prog_AR+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 if test -n "$AR"; then
4457 ac_cv_prog_AR="$AR" # Let the user override the test.
4458 else
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4466 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 break 2
4470 done
4471 done
4472 IFS=$as_save_IFS
4476 AR=$ac_cv_prog_AR
4477 if test -n "$AR"; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4479 $as_echo "$AR" >&6; }
4480 else
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482 $as_echo "no" >&6; }
4486 test -n "$AR" && break
4487 done
4489 if test -z "$AR"; then
4490 ac_ct_AR=$AR
4491 for ac_prog in ar gar
4493 # Extract the first word of "$ac_prog", so it can be a program name with args.
4494 set dummy $ac_prog; ac_word=$2
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4496 $as_echo_n "checking for $ac_word... " >&6; }
4497 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 if test -n "$ac_ct_AR"; then
4501 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4502 else
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4510 ac_cv_prog_ac_ct_AR="$ac_prog"
4511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 break 2
4514 done
4515 done
4516 IFS=$as_save_IFS
4520 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4521 if test -n "$ac_ct_AR"; then
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4523 $as_echo "$ac_ct_AR" >&6; }
4524 else
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4526 $as_echo "no" >&6; }
4530 test -n "$ac_ct_AR" && break
4531 done
4533 if test "x$ac_ct_AR" = x; then
4534 AR="ar"
4535 else
4536 case $cross_compiling:$ac_tool_warned in
4537 yes:)
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4540 ac_tool_warned=yes ;;
4541 esac
4542 AR=$ac_ct_AR
4546 ARFLAGS=rc
4548 if test -n "$ac_tool_prefix"; then
4549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4550 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if ${ac_cv_prog_RANLIB+:} false; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 if test -n "$RANLIB"; then
4557 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4558 else
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4562 IFS=$as_save_IFS
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4566 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 break 2
4570 done
4571 done
4572 IFS=$as_save_IFS
4576 RANLIB=$ac_cv_prog_RANLIB
4577 if test -n "$RANLIB"; then
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4579 $as_echo "$RANLIB" >&6; }
4580 else
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582 $as_echo "no" >&6; }
4587 if test -z "$ac_cv_prog_RANLIB"; then
4588 ac_ct_RANLIB=$RANLIB
4589 # Extract the first word of "ranlib", so it can be a program name with args.
4590 set dummy ranlib; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 if test -n "$ac_ct_RANLIB"; then
4597 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4606 ac_cv_prog_ac_ct_RANLIB="ranlib"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4610 done
4611 done
4612 IFS=$as_save_IFS
4616 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4617 if test -n "$ac_ct_RANLIB"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4619 $as_echo "$ac_ct_RANLIB" >&6; }
4620 else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4625 if test "x$ac_ct_RANLIB" = x; then
4626 RANLIB=":"
4627 else
4628 case $cross_compiling:$ac_tool_warned in
4629 yes:)
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4632 ac_tool_warned=yes ;;
4633 esac
4634 RANLIB=$ac_ct_RANLIB
4636 else
4637 RANLIB="$ac_cv_prog_RANLIB"
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4641 $as_echo_n "checking whether ln -s works... " >&6; }
4642 LN_S=$as_ln_s
4643 if test "$LN_S" = "ln -s"; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4645 $as_echo "yes" >&6; }
4646 else
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4648 $as_echo "no, using $LN_S" >&6; }
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4652 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4653 if ${ac_cv_path_GREP+:} false; then :
4654 $as_echo_n "(cached) " >&6
4655 else
4656 if test -z "$GREP"; then
4657 ac_path_GREP_found=false
4658 # Loop through the user's path and test for each of PROGNAME-LIST
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_prog in grep ggrep; do
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4667 as_fn_executable_p "$ac_path_GREP" || continue
4668 # Check for GNU ac_path_GREP and select it if it is found.
4669 # Check for GNU $ac_path_GREP
4670 case `"$ac_path_GREP" --version 2>&1` in
4671 *GNU*)
4672 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4674 ac_count=0
4675 $as_echo_n 0123456789 >"conftest.in"
4676 while :
4678 cat "conftest.in" "conftest.in" >"conftest.tmp"
4679 mv "conftest.tmp" "conftest.in"
4680 cp "conftest.in" "conftest.nl"
4681 $as_echo 'GREP' >> "conftest.nl"
4682 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4684 as_fn_arith $ac_count + 1 && ac_count=$as_val
4685 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4686 # Best one so far, save it but keep looking for a better one
4687 ac_cv_path_GREP="$ac_path_GREP"
4688 ac_path_GREP_max=$ac_count
4690 # 10*(2^10) chars as input seems more than enough
4691 test $ac_count -gt 10 && break
4692 done
4693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4694 esac
4696 $ac_path_GREP_found && break 3
4697 done
4698 done
4699 done
4700 IFS=$as_save_IFS
4701 if test -z "$ac_cv_path_GREP"; then
4702 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4704 else
4705 ac_cv_path_GREP=$GREP
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4710 $as_echo "$ac_cv_path_GREP" >&6; }
4711 GREP="$ac_cv_path_GREP"
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4715 $as_echo_n "checking for egrep... " >&6; }
4716 if ${ac_cv_path_EGREP+:} false; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4720 then ac_cv_path_EGREP="$GREP -E"
4721 else
4722 if test -z "$EGREP"; then
4723 ac_path_EGREP_found=false
4724 # Loop through the user's path and test for each of PROGNAME-LIST
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
4730 for ac_prog in egrep; do
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4733 as_fn_executable_p "$ac_path_EGREP" || continue
4734 # Check for GNU ac_path_EGREP and select it if it is found.
4735 # Check for GNU $ac_path_EGREP
4736 case `"$ac_path_EGREP" --version 2>&1` in
4737 *GNU*)
4738 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4740 ac_count=0
4741 $as_echo_n 0123456789 >"conftest.in"
4742 while :
4744 cat "conftest.in" "conftest.in" >"conftest.tmp"
4745 mv "conftest.tmp" "conftest.in"
4746 cp "conftest.in" "conftest.nl"
4747 $as_echo 'EGREP' >> "conftest.nl"
4748 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4750 as_fn_arith $ac_count + 1 && ac_count=$as_val
4751 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4752 # Best one so far, save it but keep looking for a better one
4753 ac_cv_path_EGREP="$ac_path_EGREP"
4754 ac_path_EGREP_max=$ac_count
4756 # 10*(2^10) chars as input seems more than enough
4757 test $ac_count -gt 10 && break
4758 done
4759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4760 esac
4762 $ac_path_EGREP_found && break 3
4763 done
4764 done
4765 done
4766 IFS=$as_save_IFS
4767 if test -z "$ac_cv_path_EGREP"; then
4768 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4770 else
4771 ac_cv_path_EGREP=$EGREP
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4777 $as_echo "$ac_cv_path_EGREP" >&6; }
4778 EGREP="$ac_cv_path_EGREP"
4781 # Extract the first word of "ldconfig", so it can be a program name with args.
4782 set dummy ldconfig; ac_word=$2
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4784 $as_echo_n "checking for $ac_word... " >&6; }
4785 if ${ac_cv_path_LDCONFIG+:} false; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 case $LDCONFIG in
4789 [\\/]* | ?:[\\/]*)
4790 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in /sbin /usr/sbin $PATH
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4800 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 break 2
4804 done
4805 done
4806 IFS=$as_save_IFS
4808 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4810 esac
4812 LDCONFIG=$ac_cv_path_LDCONFIG
4813 if test -n "$LDCONFIG"; then
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4815 $as_echo "$LDCONFIG" >&6; }
4816 else
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 $as_echo "no" >&6; }
4822 # Find a good install program. We prefer a C program (faster),
4823 # so one script is as good as another. But avoid the broken or
4824 # incompatible versions:
4825 # SysV /etc/install, /usr/sbin/install
4826 # SunOS /usr/etc/install
4827 # IRIX /sbin/install
4828 # AIX /bin/install
4829 # AmigaOS /C/install, which installs bootblocks on floppy discs
4830 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4831 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4832 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4833 # OS/2's system install, which has a completely different semantic
4834 # ./install, which can be erroneously created by make from ./install.sh.
4835 # Reject install programs that cannot install multiple files.
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4837 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4838 if test -z "$INSTALL"; then
4839 if ${ac_cv_path_install+:} false; then :
4840 $as_echo_n "(cached) " >&6
4841 else
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 # Account for people who put trailing slashes in PATH elements.
4848 case $as_dir/ in #((
4849 ./ | .// | /[cC]/* | \
4850 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4851 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4852 /usr/ucb/* ) ;;
4854 # OSF1 and SCO ODT 3.0 have their own names for install.
4855 # Don't use installbsd from OSF since it installs stuff as root
4856 # by default.
4857 for ac_prog in ginstall scoinst install; do
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4860 if test $ac_prog = install &&
4861 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4862 # AIX install. It has an incompatible calling convention.
4864 elif test $ac_prog = install &&
4865 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4866 # program-specific install script used by HP pwplus--don't use.
4868 else
4869 rm -rf conftest.one conftest.two conftest.dir
4870 echo one > conftest.one
4871 echo two > conftest.two
4872 mkdir conftest.dir
4873 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4874 test -s conftest.one && test -s conftest.two &&
4875 test -s conftest.dir/conftest.one &&
4876 test -s conftest.dir/conftest.two
4877 then
4878 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4879 break 3
4883 done
4884 done
4886 esac
4888 done
4889 IFS=$as_save_IFS
4891 rm -rf conftest.one conftest.two conftest.dir
4894 if test "${ac_cv_path_install+set}" = set; then
4895 INSTALL=$ac_cv_path_install
4896 else
4897 # As a last resort, use the slow shell script. Don't cache a
4898 # value for INSTALL within a source directory, because that will
4899 # break other packages using the cache if that directory is
4900 # removed, or if the value is a relative name.
4901 INSTALL=$ac_install_sh
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4905 $as_echo "$INSTALL" >&6; }
4907 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4908 # It thinks the first close brace ends the variable substitution.
4909 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4911 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4913 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4915 case "$INSTALL" in
4916 [\\/$]* | ?:[\\/]* ) ;;
4917 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4918 esac
4920 for ac_prog in lclint lint
4922 # Extract the first word of "$ac_prog", so it can be a program name with args.
4923 set dummy $ac_prog; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if ${ac_cv_prog_LINT+:} false; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 if test -n "$LINT"; then
4930 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4931 else
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4935 IFS=$as_save_IFS
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4939 ac_cv_prog_LINT="$ac_prog"
4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 break 2
4943 done
4944 done
4945 IFS=$as_save_IFS
4949 LINT=$ac_cv_prog_LINT
4950 if test -n "$LINT"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4952 $as_echo "$LINT" >&6; }
4953 else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4959 test -n "$LINT" && break
4960 done
4962 if test "$LINT" = "lint"
4963 then
4964 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4968 for ac_prog in fontforge
4970 # Extract the first word of "$ac_prog", so it can be a program name with args.
4971 set dummy $ac_prog; ac_word=$2
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4973 $as_echo_n "checking for $ac_word... " >&6; }
4974 if ${ac_cv_prog_FONTFORGE+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 if test -n "$FONTFORGE"; then
4978 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4979 else
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4983 IFS=$as_save_IFS
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987 ac_cv_prog_FONTFORGE="$ac_prog"
4988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 break 2
4991 done
4992 done
4993 IFS=$as_save_IFS
4997 FONTFORGE=$ac_cv_prog_FONTFORGE
4998 if test -n "$FONTFORGE"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
5000 $as_echo "$FONTFORGE" >&6; }
5001 else
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003 $as_echo "no" >&6; }
5007 test -n "$FONTFORGE" && break
5008 done
5009 test -n "$FONTFORGE" || FONTFORGE="false"
5011 for ac_prog in rsvg
5013 # Extract the first word of "$ac_prog", so it can be a program name with args.
5014 set dummy $ac_prog; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if ${ac_cv_prog_RSVG+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 if test -n "$RSVG"; then
5021 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_RSVG="$ac_prog"
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5034 done
5035 done
5036 IFS=$as_save_IFS
5040 RSVG=$ac_cv_prog_RSVG
5041 if test -n "$RSVG"; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5043 $as_echo "$RSVG" >&6; }
5044 else
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046 $as_echo "no" >&6; }
5050 test -n "$RSVG" && break
5051 done
5052 test -n "$RSVG" || RSVG="false"
5054 for ac_prog in convert
5056 # Extract the first word of "$ac_prog", so it can be a program name with args.
5057 set dummy $ac_prog; ac_word=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if ${ac_cv_prog_CONVERT+:} false; then :
5061 $as_echo_n "(cached) " >&6
5062 else
5063 if test -n "$CONVERT"; then
5064 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073 ac_cv_prog_CONVERT="$ac_prog"
5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5077 done
5078 done
5079 IFS=$as_save_IFS
5083 CONVERT=$ac_cv_prog_CONVERT
5084 if test -n "$CONVERT"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5086 $as_echo "$CONVERT" >&6; }
5087 else
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5093 test -n "$CONVERT" && break
5094 done
5095 test -n "$CONVERT" || CONVERT="false"
5097 for ac_prog in icotool
5099 # Extract the first word of "$ac_prog", so it can be a program name with args.
5100 set dummy $ac_prog; ac_word=$2
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if ${ac_cv_prog_ICOTOOL+:} false; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 if test -n "$ICOTOOL"; then
5107 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5108 else
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5116 ac_cv_prog_ICOTOOL="$ac_prog"
5117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 break 2
5120 done
5121 done
5122 IFS=$as_save_IFS
5126 ICOTOOL=$ac_cv_prog_ICOTOOL
5127 if test -n "$ICOTOOL"; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5129 $as_echo "$ICOTOOL" >&6; }
5130 else
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5136 test -n "$ICOTOOL" && break
5137 done
5138 test -n "$ICOTOOL" || ICOTOOL="false"
5140 for ac_prog in msgfmt
5142 # Extract the first word of "$ac_prog", so it can be a program name with args.
5143 set dummy $ac_prog; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_prog_MSGFMT+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 if test -n "$MSGFMT"; then
5150 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_MSGFMT="$ac_prog"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5163 done
5164 done
5165 IFS=$as_save_IFS
5169 MSGFMT=$ac_cv_prog_MSGFMT
5170 if test -n "$MSGFMT"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5172 $as_echo "$MSGFMT" >&6; }
5173 else
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5179 test -n "$MSGFMT" && break
5180 done
5181 test -n "$MSGFMT" || MSGFMT="false"
5183 if test -n "$ac_tool_prefix"; then
5184 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5185 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 if test -n "$PKG_CONFIG"; then
5192 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5205 done
5206 done
5207 IFS=$as_save_IFS
5211 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5212 if test -n "$PKG_CONFIG"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5214 $as_echo "$PKG_CONFIG" >&6; }
5215 else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5222 if test -n "$ac_cv_prog_PKG_CONFIG"; then
5223 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
5224 elif test "$cross_compiling" != yes; then
5225 unset ac_cv_prog_PKG_CONFIG
5226 # Extract the first word of "pkg-config", so it can be a program name with args.
5227 set dummy pkg-config; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 if test -n "$PKG_CONFIG"; then
5234 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5235 else
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243 ac_cv_prog_PKG_CONFIG="pkg-config"
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 break 2
5247 done
5248 done
5249 IFS=$as_save_IFS
5253 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5254 if test -n "$PKG_CONFIG"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5256 $as_echo "$PKG_CONFIG" >&6; }
5257 else
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5265 if test "x$enable_maintainer_mode" != "xyes"
5266 then
5267 MAINTAINER_MODE=\#
5269 else
5270 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5271 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5273 if test "$CONVERT" = false
5274 then
5275 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5278 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5279 convert_version=`convert --version | head -n1`
5280 if test "x$convert_version" != "x"
5281 then
5282 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5283 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5284 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5285 then
5286 CONVERT=false
5289 if test "$CONVERT" = false
5290 then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5292 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5293 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5294 else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5296 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5300 if test "$ICOTOOL" = false
5301 then
5302 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5303 else
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5305 $as_echo_n "checking for recent enough icotool... " >&6; }
5306 icotool_version=`icotool --version | head -n1`
5307 if test "x$icotool_version" != "x"
5308 then
5309 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5310 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5311 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5312 then
5313 ICOTOOL=false
5314 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5317 if test "$ICOTOOL" = false
5318 then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5320 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5321 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5322 else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5324 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5328 with_gettext=yes
5329 with_gettextpo=yes
5330 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5333 test "x$with_gettext" != xno || MSGFMT=false
5334 if test "$MSGFMT" != "false"
5335 then
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5337 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5338 cat >conftest.po <<EOF
5339 # comment
5340 msgctxt "ctxt"
5341 msgid "id"
5342 msgstr "str"
5344 if $MSGFMT -o /dev/null conftest.po 2>&5
5345 then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5347 $as_echo "yes" >&6; }
5348 else
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5351 MSGFMT=false
5354 if test "$MSGFMT" = false; then :
5355 case "x$with_gettext" in
5356 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5357 xno) ;;
5358 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5359 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5360 esac
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5365 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5366 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 ac_check_lib_save_LIBS=$LIBS
5370 LIBS="-li386 $LIBS"
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5374 /* Override any GCC internal prototype to avoid an error.
5375 Use char because int might match the return type of a GCC
5376 builtin and then its argument prototype would still apply. */
5377 #ifdef __cplusplus
5378 extern "C"
5379 #endif
5380 char i386_set_ldt ();
5382 main ()
5384 return i386_set_ldt ();
5386 return 0;
5388 _ACEOF
5389 if ac_fn_c_try_link "$LINENO"; then :
5390 ac_cv_lib_i386_i386_set_ldt=yes
5391 else
5392 ac_cv_lib_i386_i386_set_ldt=no
5394 rm -f core conftest.err conftest.$ac_objext \
5395 conftest$ac_exeext conftest.$ac_ext
5396 LIBS=$ac_check_lib_save_LIBS
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5399 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5400 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5401 cat >>confdefs.h <<_ACEOF
5402 #define HAVE_LIBI386 1
5403 _ACEOF
5405 LIBS="-li386 $LIBS"
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5410 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5411 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 ac_check_lib_save_LIBS=$LIBS
5415 LIBS="-lossaudio $LIBS"
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5419 /* Override any GCC internal prototype to avoid an error.
5420 Use char because int might match the return type of a GCC
5421 builtin and then its argument prototype would still apply. */
5422 #ifdef __cplusplus
5423 extern "C"
5424 #endif
5425 char _oss_ioctl ();
5427 main ()
5429 return _oss_ioctl ();
5431 return 0;
5433 _ACEOF
5434 if ac_fn_c_try_link "$LINENO"; then :
5435 ac_cv_lib_ossaudio__oss_ioctl=yes
5436 else
5437 ac_cv_lib_ossaudio__oss_ioctl=no
5439 rm -f core conftest.err conftest.$ac_objext \
5440 conftest$ac_exeext conftest.$ac_ext
5441 LIBS=$ac_check_lib_save_LIBS
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5444 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5445 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5446 cat >>confdefs.h <<_ACEOF
5447 #define HAVE_LIBOSSAUDIO 1
5448 _ACEOF
5450 LIBS="-lossaudio $LIBS"
5455 XLIB=""
5457 OPENGL_LIBS=""
5461 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5463 # Check whether --enable-largefile was given.
5464 if test "${enable_largefile+set}" = set; then :
5465 enableval=$enable_largefile;
5468 if test "$enable_largefile" != no; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5471 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5472 if ${ac_cv_sys_largefile_CC+:} false; then :
5473 $as_echo_n "(cached) " >&6
5474 else
5475 ac_cv_sys_largefile_CC=no
5476 if test "$GCC" != yes; then
5477 ac_save_CC=$CC
5478 while :; do
5479 # IRIX 6.2 and later do not support large files by default,
5480 # so use the C compiler's -n32 option if that helps.
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5483 #include <sys/types.h>
5484 /* Check that off_t can represent 2**63 - 1 correctly.
5485 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5486 since some C++ compilers masquerading as C compilers
5487 incorrectly reject 9223372036854775807. */
5488 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5489 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5490 && LARGE_OFF_T % 2147483647 == 1)
5491 ? 1 : -1];
5493 main ()
5497 return 0;
5499 _ACEOF
5500 if ac_fn_c_try_compile "$LINENO"; then :
5501 break
5503 rm -f core conftest.err conftest.$ac_objext
5504 CC="$CC -n32"
5505 if ac_fn_c_try_compile "$LINENO"; then :
5506 ac_cv_sys_largefile_CC=' -n32'; break
5508 rm -f core conftest.err conftest.$ac_objext
5509 break
5510 done
5511 CC=$ac_save_CC
5512 rm -f conftest.$ac_ext
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5516 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5517 if test "$ac_cv_sys_largefile_CC" != no; then
5518 CC=$CC$ac_cv_sys_largefile_CC
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5522 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5523 if ${ac_cv_sys_file_offset_bits+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 while :; do
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 #include <sys/types.h>
5530 /* Check that off_t can represent 2**63 - 1 correctly.
5531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5532 since some C++ compilers masquerading as C compilers
5533 incorrectly reject 9223372036854775807. */
5534 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5536 && LARGE_OFF_T % 2147483647 == 1)
5537 ? 1 : -1];
5539 main ()
5543 return 0;
5545 _ACEOF
5546 if ac_fn_c_try_compile "$LINENO"; then :
5547 ac_cv_sys_file_offset_bits=no; break
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5552 #define _FILE_OFFSET_BITS 64
5553 #include <sys/types.h>
5554 /* Check that off_t can represent 2**63 - 1 correctly.
5555 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5556 since some C++ compilers masquerading as C compilers
5557 incorrectly reject 9223372036854775807. */
5558 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5559 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5560 && LARGE_OFF_T % 2147483647 == 1)
5561 ? 1 : -1];
5563 main ()
5567 return 0;
5569 _ACEOF
5570 if ac_fn_c_try_compile "$LINENO"; then :
5571 ac_cv_sys_file_offset_bits=64; break
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 ac_cv_sys_file_offset_bits=unknown
5575 break
5576 done
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5579 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5580 case $ac_cv_sys_file_offset_bits in #(
5581 no | unknown) ;;
5583 cat >>confdefs.h <<_ACEOF
5584 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5585 _ACEOF
5587 esac
5588 rm -rf conftest*
5589 if test $ac_cv_sys_file_offset_bits = unknown; then
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5591 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5592 if ${ac_cv_sys_large_files+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 while :; do
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598 #include <sys/types.h>
5599 /* Check that off_t can represent 2**63 - 1 correctly.
5600 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5601 since some C++ compilers masquerading as C compilers
5602 incorrectly reject 9223372036854775807. */
5603 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5604 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5605 && LARGE_OFF_T % 2147483647 == 1)
5606 ? 1 : -1];
5608 main ()
5612 return 0;
5614 _ACEOF
5615 if ac_fn_c_try_compile "$LINENO"; then :
5616 ac_cv_sys_large_files=no; break
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621 #define _LARGE_FILES 1
5622 #include <sys/types.h>
5623 /* Check that off_t can represent 2**63 - 1 correctly.
5624 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5625 since some C++ compilers masquerading as C compilers
5626 incorrectly reject 9223372036854775807. */
5627 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5628 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5629 && LARGE_OFF_T % 2147483647 == 1)
5630 ? 1 : -1];
5632 main ()
5636 return 0;
5638 _ACEOF
5639 if ac_fn_c_try_compile "$LINENO"; then :
5640 ac_cv_sys_large_files=1; break
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 ac_cv_sys_large_files=unknown
5644 break
5645 done
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5648 $as_echo "$ac_cv_sys_large_files" >&6; }
5649 case $ac_cv_sys_large_files in #(
5650 no | unknown) ;;
5652 cat >>confdefs.h <<_ACEOF
5653 #define _LARGE_FILES $ac_cv_sys_large_files
5654 _ACEOF
5656 esac
5657 rm -rf conftest*
5664 ac_ext=c
5665 ac_cpp='$CPP $CPPFLAGS'
5666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5670 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5671 # On Suns, sometimes $CPP names a directory.
5672 if test -n "$CPP" && test -d "$CPP"; then
5673 CPP=
5675 if test -z "$CPP"; then
5676 if ${ac_cv_prog_CPP+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 # Double quotes because CPP needs to be expanded
5680 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5682 ac_preproc_ok=false
5683 for ac_c_preproc_warn_flag in '' yes
5685 # Use a header file that comes with gcc, so configuring glibc
5686 # with a fresh cross-compiler works.
5687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5688 # <limits.h> exists even on freestanding compilers.
5689 # On the NeXT, cc -E runs the code through the compiler's parser,
5690 # not just through cpp. "Syntax error" is here to catch this case.
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5693 #ifdef __STDC__
5694 # include <limits.h>
5695 #else
5696 # include <assert.h>
5697 #endif
5698 Syntax error
5699 _ACEOF
5700 if ac_fn_c_try_cpp "$LINENO"; then :
5702 else
5703 # Broken: fails on valid input.
5704 continue
5706 rm -f conftest.err conftest.i conftest.$ac_ext
5708 # OK, works on sane cases. Now check whether nonexistent headers
5709 # can be detected and how.
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h. */
5712 #include <ac_nonexistent.h>
5713 _ACEOF
5714 if ac_fn_c_try_cpp "$LINENO"; then :
5715 # Broken: success on invalid input.
5716 continue
5717 else
5718 # Passes both tests.
5719 ac_preproc_ok=:
5720 break
5722 rm -f conftest.err conftest.i conftest.$ac_ext
5724 done
5725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5726 rm -f conftest.i conftest.err conftest.$ac_ext
5727 if $ac_preproc_ok; then :
5728 break
5731 done
5732 ac_cv_prog_CPP=$CPP
5735 CPP=$ac_cv_prog_CPP
5736 else
5737 ac_cv_prog_CPP=$CPP
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5740 $as_echo "$CPP" >&6; }
5741 ac_preproc_ok=false
5742 for ac_c_preproc_warn_flag in '' yes
5744 # Use a header file that comes with gcc, so configuring glibc
5745 # with a fresh cross-compiler works.
5746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5747 # <limits.h> exists even on freestanding compilers.
5748 # On the NeXT, cc -E runs the code through the compiler's parser,
5749 # not just through cpp. "Syntax error" is here to catch this case.
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5752 #ifdef __STDC__
5753 # include <limits.h>
5754 #else
5755 # include <assert.h>
5756 #endif
5757 Syntax error
5758 _ACEOF
5759 if ac_fn_c_try_cpp "$LINENO"; then :
5761 else
5762 # Broken: fails on valid input.
5763 continue
5765 rm -f conftest.err conftest.i conftest.$ac_ext
5767 # OK, works on sane cases. Now check whether nonexistent headers
5768 # can be detected and how.
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5771 #include <ac_nonexistent.h>
5772 _ACEOF
5773 if ac_fn_c_try_cpp "$LINENO"; then :
5774 # Broken: success on invalid input.
5775 continue
5776 else
5777 # Passes both tests.
5778 ac_preproc_ok=:
5779 break
5781 rm -f conftest.err conftest.i conftest.$ac_ext
5783 done
5784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5785 rm -f conftest.i conftest.err conftest.$ac_ext
5786 if $ac_preproc_ok; then :
5788 else
5789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5791 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5792 See \`config.log' for more details" "$LINENO" 5; }
5795 ac_ext=c
5796 ac_cpp='$CPP $CPPFLAGS'
5797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5803 $as_echo_n "checking for ANSI C header files... " >&6; }
5804 if ${ac_cv_header_stdc+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5809 #include <stdlib.h>
5810 #include <stdarg.h>
5811 #include <string.h>
5812 #include <float.h>
5815 main ()
5819 return 0;
5821 _ACEOF
5822 if ac_fn_c_try_compile "$LINENO"; then :
5823 ac_cv_header_stdc=yes
5824 else
5825 ac_cv_header_stdc=no
5827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5829 if test $ac_cv_header_stdc = yes; then
5830 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5833 #include <string.h>
5835 _ACEOF
5836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5837 $EGREP "memchr" >/dev/null 2>&1; then :
5839 else
5840 ac_cv_header_stdc=no
5842 rm -f conftest*
5846 if test $ac_cv_header_stdc = yes; then
5847 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5850 #include <stdlib.h>
5852 _ACEOF
5853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5854 $EGREP "free" >/dev/null 2>&1; then :
5856 else
5857 ac_cv_header_stdc=no
5859 rm -f conftest*
5863 if test $ac_cv_header_stdc = yes; then
5864 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5865 if test "$cross_compiling" = yes; then :
5867 else
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 #include <ctype.h>
5871 #include <stdlib.h>
5872 #if ((' ' & 0x0FF) == 0x020)
5873 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5874 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5875 #else
5876 # define ISLOWER(c) \
5877 (('a' <= (c) && (c) <= 'i') \
5878 || ('j' <= (c) && (c) <= 'r') \
5879 || ('s' <= (c) && (c) <= 'z'))
5880 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5881 #endif
5883 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5885 main ()
5887 int i;
5888 for (i = 0; i < 256; i++)
5889 if (XOR (islower (i), ISLOWER (i))
5890 || toupper (i) != TOUPPER (i))
5891 return 2;
5892 return 0;
5894 _ACEOF
5895 if ac_fn_c_try_run "$LINENO"; then :
5897 else
5898 ac_cv_header_stdc=no
5900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5901 conftest.$ac_objext conftest.beam conftest.$ac_ext
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5907 $as_echo "$ac_cv_header_stdc" >&6; }
5908 if test $ac_cv_header_stdc = yes; then
5910 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5914 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5915 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5916 inttypes.h stdint.h unistd.h
5917 do :
5918 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5919 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5921 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5922 cat >>confdefs.h <<_ACEOF
5923 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5924 _ACEOF
5928 done
5931 for ac_header in \
5932 AL/al.h \
5933 ApplicationServices/ApplicationServices.h \
5934 AudioToolbox/AudioConverter.h \
5935 AudioUnit/AudioUnit.h \
5936 AudioUnit/AudioComponent.h \
5937 CL/cl.h \
5938 Carbon/Carbon.h \
5939 CoreAudio/CoreAudio.h \
5940 CoreServices/CoreServices.h \
5941 DiskArbitration/DiskArbitration.h \
5942 IOKit/IOKitLib.h \
5943 IOKit/hid/IOHIDLib.h \
5944 OpenAL/al.h \
5945 OpenCL/opencl.h \
5946 QuickTime/ImageCompression.h \
5947 Security/Security.h \
5948 alias.h \
5949 alsa/asoundlib.h \
5950 arpa/inet.h \
5951 arpa/nameser.h \
5952 asm/types.h \
5953 curses.h \
5954 direct.h \
5955 dirent.h \
5956 dlfcn.h \
5957 elf.h \
5958 float.h \
5959 fnmatch.h \
5960 fontconfig/fontconfig.h \
5961 getopt.h \
5962 gettext-po.h \
5963 grp.h \
5964 gsm.h \
5965 gsm/gsm.h \
5966 ieeefp.h \
5967 inet/mib2.h \
5968 io.h \
5969 kstat.h \
5970 lber.h \
5971 ldap.h \
5972 libproc.h \
5973 link.h \
5974 linux/cdrom.h \
5975 linux/compiler.h \
5976 linux/filter.h \
5977 linux/hdreg.h \
5978 linux/input.h \
5979 linux/ioctl.h \
5980 linux/joystick.h \
5981 linux/major.h \
5982 linux/param.h \
5983 linux/serial.h \
5984 linux/types.h \
5985 linux/ucdrom.h \
5986 lwp.h \
5987 mach-o/nlist.h \
5988 mach-o/loader.h \
5989 mach/mach.h \
5990 mach/machine.h \
5991 machine/cpu.h \
5992 machine/limits.h \
5993 machine/sysarch.h \
5994 mntent.h \
5995 ncurses.h \
5996 netdb.h \
5997 netinet/in.h \
5998 netinet/in_systm.h \
5999 netinet/tcp.h \
6000 netinet/tcp_fsm.h \
6001 poll.h \
6002 port.h \
6003 process.h \
6004 pthread.h \
6005 pwd.h \
6006 sched.h \
6007 scsi/scsi.h \
6008 scsi/scsi_ioctl.h \
6009 scsi/sg.h \
6010 stdbool.h \
6011 stdint.h \
6012 stropts.h \
6013 sys/asoundlib.h \
6014 sys/attr.h \
6015 sys/cdio.h \
6016 sys/elf32.h \
6017 sys/epoll.h \
6018 sys/event.h \
6019 sys/exec_elf.h \
6020 sys/filio.h \
6021 sys/inotify.h \
6022 sys/ioctl.h \
6023 sys/ipc.h \
6024 sys/limits.h \
6025 sys/link.h \
6026 sys/mman.h \
6027 sys/modem.h \
6028 sys/msg.h \
6029 sys/mtio.h \
6030 sys/param.h \
6031 sys/poll.h \
6032 sys/prctl.h \
6033 sys/protosw.h \
6034 sys/ptrace.h \
6035 sys/queue.h \
6036 sys/resource.h \
6037 sys/scsiio.h \
6038 sys/shm.h \
6039 sys/signal.h \
6040 sys/socket.h \
6041 sys/socketvar.h \
6042 sys/sockio.h \
6043 sys/statvfs.h \
6044 sys/strtio.h \
6045 sys/syscall.h \
6046 sys/tihdr.h \
6047 sys/time.h \
6048 sys/timeout.h \
6049 sys/times.h \
6050 sys/uio.h \
6051 sys/user.h \
6052 sys/utsname.h \
6053 sys/vm86.h \
6054 sys/wait.h \
6055 syscall.h \
6056 termios.h \
6057 unistd.h \
6058 utime.h \
6059 valgrind/memcheck.h \
6060 valgrind/valgrind.h \
6061 zlib.h
6063 do :
6064 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6065 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6066 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6067 cat >>confdefs.h <<_ACEOF
6068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6069 _ACEOF
6073 done
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6076 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6077 if ${ac_cv_header_stat_broken+:} false; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6082 #include <sys/types.h>
6083 #include <sys/stat.h>
6085 #if defined S_ISBLK && defined S_IFDIR
6086 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6087 #endif
6089 #if defined S_ISBLK && defined S_IFCHR
6090 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6091 #endif
6093 #if defined S_ISLNK && defined S_IFREG
6094 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6095 #endif
6097 #if defined S_ISSOCK && defined S_IFREG
6098 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6099 #endif
6101 _ACEOF
6102 if ac_fn_c_try_compile "$LINENO"; then :
6103 ac_cv_header_stat_broken=no
6104 else
6105 ac_cv_header_stat_broken=yes
6107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6110 $as_echo "$ac_cv_header_stat_broken" >&6; }
6111 if test $ac_cv_header_stat_broken = yes; then
6113 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6119 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6120 do :
6121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6122 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6123 #ifdef HAVE_SYS_PARAM_H
6124 # include <sys/param.h>
6125 #endif
6127 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6128 cat >>confdefs.h <<_ACEOF
6129 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6130 _ACEOF
6134 done
6137 for ac_header in \
6138 netinet/ip.h \
6139 net/if.h \
6140 net/if_arp.h \
6141 net/if_dl.h \
6142 net/if_types.h \
6143 net/route.h \
6144 netinet/if_ether.h \
6145 netinet/if_inarp.h \
6146 netinet/in_pcb.h \
6147 netinet/ip_icmp.h \
6148 netinet/ip_var.h \
6149 netinet/udp.h \
6150 netipx/ipx.h \
6151 sys/un.h \
6153 do :
6154 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6155 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6156 #ifdef HAVE_SYS_SOCKET_H
6157 # include <sys/socket.h>
6158 #endif
6159 #ifdef HAVE_SYS_SOCKETVAR_H
6160 # include <sys/socketvar.h>
6161 #endif
6162 #ifdef HAVE_NET_ROUTE_H
6163 # include <net/route.h>
6164 #endif
6165 #ifdef HAVE_NETINET_IN_H
6166 # include <netinet/in.h>
6167 #endif
6168 #ifdef HAVE_NETINET_IN_SYSTM_H
6169 # include <netinet/in_systm.h>
6170 #endif
6171 #ifdef HAVE_NET_IF_H
6172 # include <net/if.h>
6173 #endif
6174 #ifdef HAVE_NETINET_IP_H
6175 # include <netinet/ip.h>
6176 #endif
6178 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6179 cat >>confdefs.h <<_ACEOF
6180 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6181 _ACEOF
6185 done
6188 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6189 do :
6190 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6191 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6192 #ifdef HAVE_ALIAS_H
6193 # include <alias.h>
6194 #endif
6195 #ifdef HAVE_SYS_SOCKET_H
6196 # include <sys/socket.h>
6197 #endif
6198 #ifdef HAVE_SYS_SOCKETVAR_H
6199 # include <sys/socketvar.h>
6200 #endif
6201 #ifdef HAVE_SYS_TIMEOUT_H
6202 # include <sys/timeout.h>
6203 #endif
6204 #ifdef HAVE_NETINET_IN_H
6205 # include <netinet/in.h>
6206 #endif
6207 #ifdef HAVE_NETINET_IN_SYSTM_H
6208 # include <netinet/in_systm.h>
6209 #endif
6210 #ifdef HAVE_NETINET_IP_H
6211 # include <netinet/ip.h>
6212 #endif
6213 #ifdef HAVE_NETINET_IP_VAR_H
6214 # include <netinet/ip_var.h>
6215 #endif
6216 #ifdef HAVE_NETINET_IP_ICMP_H
6217 # include <netinet/ip_icmp.h>
6218 #endif
6219 #ifdef HAVE_NETINET_UDP_H
6220 # include <netinet/udp.h>
6221 #endif
6222 #ifdef HAVE_NETINET_TCP_H
6223 # include <netinet/tcp.h>
6224 #endif
6225 #ifdef HAVE_NETINET_TCP_TIMER_H
6226 #include <netinet/tcp_timer.h>
6227 #endif
6229 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6230 cat >>confdefs.h <<_ACEOF
6231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6232 _ACEOF
6236 done
6239 for ac_header in linux/ipx.h linux/irda.h
6240 do :
6241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6242 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6243 #ifdef HAVE_ASM_TYPES_H
6244 # include <asm/types.h>
6245 #endif
6246 #ifdef HAVE_SYS_SOCKET_H
6247 # include <sys/socket.h>
6248 #endif
6249 #ifdef HAVE_LINUX_TYPES_H
6250 # include <linux/types.h>
6251 #endif
6253 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6254 cat >>confdefs.h <<_ACEOF
6255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6256 _ACEOF
6260 done
6263 for ac_header in mach-o/dyld_images.h
6264 do :
6265 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6266 # include <stdbool.h>
6267 #endif
6268 #ifdef HAVE_STDINT_H
6269 # include <stdint.h>
6270 #endif
6272 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6273 cat >>confdefs.h <<_ACEOF
6274 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6275 _ACEOF
6279 done
6282 for ac_header in resolv.h
6283 do :
6284 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6285 #ifdef HAVE_SYS_SOCKET_H
6286 # include <sys/socket.h>
6287 #endif
6288 #ifdef HAVE_NETINET_IN_H
6289 # include <netinet/in.h>
6290 #endif
6291 #ifdef HAVE_ARPA_NAMESER_H
6292 # include <arpa/nameser.h>
6293 #endif
6295 if test "x$ac_cv_header_resolv_h" = xyes; then :
6296 cat >>confdefs.h <<_ACEOF
6297 #define HAVE_RESOLV_H 1
6298 _ACEOF
6302 done
6305 for ac_header in ifaddrs.h
6306 do :
6307 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6309 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6310 cat >>confdefs.h <<_ACEOF
6311 #define HAVE_IFADDRS_H 1
6312 _ACEOF
6316 done
6319 for ac_header in ucontext.h
6320 do :
6321 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6323 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6324 cat >>confdefs.h <<_ACEOF
6325 #define HAVE_UCONTEXT_H 1
6326 _ACEOF
6330 done
6333 for ac_header in sys/thr.h
6334 do :
6335 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6336 #ifdef HAVE_UCONTEXT_H
6337 #include <ucontext.h>
6338 #endif
6340 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6341 cat >>confdefs.h <<_ACEOF
6342 #define HAVE_SYS_THR_H 1
6343 _ACEOF
6347 done
6350 for ac_header in pthread_np.h
6351 do :
6352 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6353 #include <pthread.h>
6354 #endif
6356 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6357 cat >>confdefs.h <<_ACEOF
6358 #define HAVE_PTHREAD_NP_H 1
6359 _ACEOF
6363 done
6366 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6367 do :
6368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6369 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6370 #include <sys/time.h>
6371 #endif
6372 #include <sys/types.h>
6373 #ifdef HAVE_ASM_TYPES_H
6374 #include <asm/types.h>
6375 #endif
6377 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6378 cat >>confdefs.h <<_ACEOF
6379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6380 _ACEOF
6384 done
6387 for ac_header in libprocstat.h
6388 do :
6389 ac_fn_c_check_header_compile "$LINENO" "libprocstat.h" "ac_cv_header_libprocstat_h" "#ifdef HAVE_SYS_PARAM_H
6390 #include <sys/param.h>
6391 #endif
6392 #ifdef HAVE_SYS_QUEUE_H
6393 #include <sys/queue.h>
6394 #endif
6395 #ifdef HAVE_SYS_SOCKET_H
6396 #include <sys/socket.h>
6397 #endif
6399 if test "x$ac_cv_header_libprocstat_h" = xyes; then :
6400 cat >>confdefs.h <<_ACEOF
6401 #define HAVE_LIBPROCSTAT_H 1
6402 _ACEOF
6406 done
6410 DLLEXT=""
6412 DLLFLAGS="-D_REENTRANT"
6414 LDDLLFLAGS=""
6416 IMPLIBEXT="def"
6418 LDRPATH_INSTALL=""
6420 LDRPATH_LOCAL=""
6422 LIBEXT="so"
6423 STATIC_IMPLIBEXT="def.a"
6424 # Extract the first word of "ldd", so it can be a program name with args.
6425 set dummy ldd; ac_word=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if ${ac_cv_path_LDD+:} false; then :
6429 $as_echo_n "(cached) " >&6
6430 else
6431 case $LDD in
6432 [\\/]* | ?:[\\/]*)
6433 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 as_dummy="/sbin:/usr/sbin:$PATH"
6438 for as_dir in $as_dummy
6440 IFS=$as_save_IFS
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 break 2
6448 done
6449 done
6450 IFS=$as_save_IFS
6452 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6454 esac
6456 LDD=$ac_cv_path_LDD
6457 if test -n "$LDD"; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6459 $as_echo "$LDD" >&6; }
6460 else
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6466 if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
6468 set dummy ${ac_tool_prefix}readelf; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_prog_READELF+:} false; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 if test -n "$READELF"; then
6475 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6476 else
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 break 2
6488 done
6489 done
6490 IFS=$as_save_IFS
6494 READELF=$ac_cv_prog_READELF
6495 if test -n "$READELF"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6497 $as_echo "$READELF" >&6; }
6498 else
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6505 if test -z "$ac_cv_prog_READELF"; then
6506 ac_ct_READELF=$READELF
6507 # Extract the first word of "readelf", so it can be a program name with args.
6508 set dummy readelf; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6512 $as_echo_n "(cached) " >&6
6513 else
6514 if test -n "$ac_ct_READELF"; then
6515 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524 ac_cv_prog_ac_ct_READELF="readelf"
6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6528 done
6529 done
6530 IFS=$as_save_IFS
6534 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6535 if test -n "$ac_ct_READELF"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6537 $as_echo "$ac_ct_READELF" >&6; }
6538 else
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6543 if test "x$ac_ct_READELF" = x; then
6544 READELF="true"
6545 else
6546 case $cross_compiling:$ac_tool_warned in
6547 yes:)
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550 ac_tool_warned=yes ;;
6551 esac
6552 READELF=$ac_ct_READELF
6554 else
6555 READELF="$ac_cv_prog_READELF"
6559 case $host_os in
6560 cygwin*|mingw32*)
6561 if test -n "$ac_tool_prefix"; then
6562 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6563 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if ${ac_cv_prog_DLLTOOL+:} false; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569 if test -n "$DLLTOOL"; then
6570 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6571 else
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6575 IFS=$as_save_IFS
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6579 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 break 2
6583 done
6584 done
6585 IFS=$as_save_IFS
6589 DLLTOOL=$ac_cv_prog_DLLTOOL
6590 if test -n "$DLLTOOL"; then
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6592 $as_echo "$DLLTOOL" >&6; }
6593 else
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 $as_echo "no" >&6; }
6600 if test -z "$ac_cv_prog_DLLTOOL"; then
6601 ac_ct_DLLTOOL=$DLLTOOL
6602 # Extract the first word of "dlltool", so it can be a program name with args.
6603 set dummy dlltool; ac_word=$2
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605 $as_echo_n "checking for $ac_word... " >&6; }
6606 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6607 $as_echo_n "(cached) " >&6
6608 else
6609 if test -n "$ac_ct_DLLTOOL"; then
6610 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6611 else
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in $PATH
6615 IFS=$as_save_IFS
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6619 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 break 2
6623 done
6624 done
6625 IFS=$as_save_IFS
6629 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6630 if test -n "$ac_ct_DLLTOOL"; then
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6632 $as_echo "$ac_ct_DLLTOOL" >&6; }
6633 else
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635 $as_echo "no" >&6; }
6638 if test "x$ac_ct_DLLTOOL" = x; then
6639 DLLTOOL="false"
6640 else
6641 case $cross_compiling:$ac_tool_warned in
6642 yes:)
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6645 ac_tool_warned=yes ;;
6646 esac
6647 DLLTOOL=$ac_ct_DLLTOOL
6649 else
6650 DLLTOOL="$ac_cv_prog_DLLTOOL"
6653 LIBEXT="dll"
6654 IMPLIBEXT="a"
6655 STATIC_IMPLIBEXT="a"
6656 enable_iphlpapi=${enable_iphlpapi:-no}
6657 enable_kernel32=${enable_kernel32:-no}
6658 enable_msvcrt=${enable_msvcrt:-no}
6659 enable_ntdll=${enable_ntdll:-no}
6660 enable_ws2_32=${enable_ws2_32:-no}
6661 enable_loader=${enable_loader:-no}
6662 enable_server=${enable_server:-no}
6663 with_x=${with_x:-no}
6664 with_pthread=${with_pthread:-no}
6666 crtlibs=""
6667 case $host_os in
6668 mingw32*)
6669 crtlibs="-lmsvcrt"
6670 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
6672 esac
6674 LIBWINE_RULES="
6675 all: libwine.dll libwine.a
6677 libwine.a: wine.def
6678 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
6680 libwine.dll: \$(OBJS) wine.def Makefile.in
6681 \$(CC) -shared \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
6683 install install-lib:: libwine.dll \$(DESTDIR)\$(libdir) dummy
6684 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
6686 install install-dev:: libwine.a \$(DESTDIR)\$(libdir) dummy
6687 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
6689 uninstall::
6690 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
6692 clean::
6693 \$(RM) libwine.dll version.c
6698 darwin*|macosx*)
6699 DLLEXT=".so"
6700 LIBEXT="dylib"
6701 DLLFLAGS="$DLLFLAGS -fPIC"
6702 LDDLLFLAGS="-bundle -multiply_defined suppress"
6703 LIBWINE_LDFLAGS="-multiply_defined suppress"
6704 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6705 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
6706 COREFOUNDATIONLIB="-framework CoreFoundation"
6708 IOKITLIB="-framework IOKit -framework CoreFoundation"
6710 FORCEFEEDBACKLIB="-framework ForceFeedback -framework CoreFoundation"
6712 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6714 CORESERVICESLIB="-framework CoreServices"
6716 APPKITLIB="-framework AppKit"
6718 case $host_os in
6719 darwin11*)
6720 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6723 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6725 esac
6726 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6727 then
6728 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6731 if test "$ac_cv_header_Security_Security_h" = "yes"
6732 then
6733 SECURITYLIB="-framework Security -framework CoreFoundation"
6735 ac_save_LIBS="$LIBS"
6736 LIBS="$LIBS $SECURITYLIB"
6737 for ac_func in SSLCopyPeerCertificates
6738 do :
6739 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6740 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6741 cat >>confdefs.h <<_ACEOF
6742 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6743 _ACEOF
6746 done
6748 LIBS="$ac_save_LIBS"
6749 with_gnutls=${with_gnutls:-no}
6751 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6752 then
6753 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6754 then
6755 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6757 else
6758 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6761 ac_save_LIBS="$LIBS"
6762 LIBS="$LIBS $COREAUDIO"
6763 for ac_func in AUGraphAddNode
6764 do :
6765 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6766 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6767 cat >>confdefs.h <<_ACEOF
6768 #define HAVE_AUGRAPHADDNODE 1
6769 _ACEOF
6772 done
6774 LIBS="$ac_save_LIBS"
6776 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6777 then
6778 FRAMEWORK_OPENAL="-framework OpenAL"
6781 cat >>confdefs.h <<_ACEOF
6782 #define HAVE_OPENAL 1
6783 _ACEOF
6785 ac_cv_lib_openal=yes
6787 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6788 then
6789 LIBOPENCL="-framework OpenCL"
6791 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6793 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6794 then
6795 ac_save_LIBS="$LIBS"
6796 LIBS="$LIBS $IOKITLIB"
6797 for ac_func in IOHIDManagerCreate
6798 do :
6799 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6800 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6801 cat >>confdefs.h <<_ACEOF
6802 #define HAVE_IOHIDMANAGERCREATE 1
6803 _ACEOF
6806 done
6808 LIBS="$ac_save_LIBS"
6810 case $host_cpu in
6811 *powerpc*)
6812 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6813 esac
6814 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6815 then
6816 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6818 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6819 else
6820 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6822 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6823 then
6824 CARBONLIB="-framework Carbon"
6828 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
6829 then
6830 ac_save_LIBS="$LIBS"
6831 LIBS="$LIBS $APPLICATIONSERVICESLIB"
6832 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
6833 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
6834 enable_winemac_drv=${enable_winemac_drv:-yes}
6837 LIBS="$ac_save_LIBS"
6840 if test "x$enable_win16" = "xyes"
6841 then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6843 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6844 if test "$cross_compiling" = yes; then :
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6846 $as_echo "cross-compiling, assuming yes" >&6; }
6847 else
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 asm(".text\n"
6851 "bad:\tnop;nop\n"
6852 "good:\tnop;nop\n\t"
6853 ".globl _testfunc\n"
6854 "_testfunc:\tcallw good");
6855 extern void testfunc();
6857 main ()
6859 unsigned short *p = (unsigned short *)testfunc;
6860 return p[0] != 0xe866 || p[1] != 0xfffa
6862 return 0;
6864 _ACEOF
6865 if ac_fn_c_try_run "$LINENO"; then :
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6867 $as_echo "yes" >&6; }
6868 else
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6871 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
6873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6874 conftest.$ac_objext conftest.beam conftest.$ac_ext
6879 LIBWINE_RULES="
6880 all: libwine.dylib
6882 libwine.\$(VERSION).dylib: \$(OBJS) \$(RELPATH) Makefile.in
6883 \$(CC) -dynamiclib -install_name @rpath/libwine.\$(SOVERSION).dylib -Wl,-rpath,@loader_path/ -compatibility_version \$(SOVERSION) -current_version \$(VERSION) \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
6885 libwine.\$(SOVERSION).dylib: libwine.\$(VERSION).dylib
6886 \$(RM) \$@ && \$(LN_S) libwine.\$(VERSION).dylib \$@
6888 libwine.dylib: libwine.\$(SOVERSION).dylib
6889 \$(RM) \$@ && \$(LN_S) libwine.\$(SOVERSION).dylib \$@
6891 install install-lib:: libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir) dummy
6892 \$(INSTALL_PROGRAM) libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir)/libwine.\$(VERSION).dylib
6893 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.\$(SOVERSION).dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
6895 install install-dev:: \$(DESTDIR)\$(libdir) dummy
6896 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.dylib
6898 uninstall::
6899 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
6901 clean::
6902 \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib version.c
6907 linux-android*)
6908 DLLFLAGS="$DLLFLAGS -fPIC"
6909 DLLEXT=".so"
6910 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6912 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6913 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 ac_wine_try_cflags_saved=$CFLAGS
6917 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6920 int main(int argc, char **argv) { return 0; }
6921 _ACEOF
6922 if ac_fn_c_try_link "$LINENO"; then :
6923 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6924 else
6925 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6927 rm -f core conftest.err conftest.$ac_objext \
6928 conftest$ac_exeext conftest.$ac_ext
6929 CFLAGS=$ac_wine_try_cflags_saved
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6932 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6933 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6934 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
6937 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6938 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941 ac_wine_try_cflags_saved=$CFLAGS
6942 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944 /* end confdefs.h. */
6945 int main(int argc, char **argv) { return 0; }
6946 _ACEOF
6947 if ac_fn_c_try_link "$LINENO"; then :
6948 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6949 else
6950 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6952 rm -f core conftest.err conftest.$ac_objext \
6953 conftest$ac_exeext conftest.$ac_ext
6954 CFLAGS=$ac_wine_try_cflags_saved
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6957 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6958 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6959 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6962 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6963 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6964 $as_echo_n "(cached) " >&6
6965 else
6966 ac_wine_try_cflags_saved=$CFLAGS
6967 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6970 int main(int argc, char **argv) { return 0; }
6971 _ACEOF
6972 if ac_fn_c_try_link "$LINENO"; then :
6973 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6974 else
6975 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6977 rm -f core conftest.err conftest.$ac_objext \
6978 conftest$ac_exeext conftest.$ac_ext
6979 CFLAGS=$ac_wine_try_cflags_saved
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6982 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6983 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6984 LDEXECFLAGS="-Wl,--export-dynamic"
6987 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6989 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6990 if eval \${$as_ac_var+:} false; then :
6991 $as_echo_n "(cached) " >&6
6992 else
6993 ac_wine_try_cflags_saved=$CFLAGS
6994 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997 int main(int argc, char **argv) { return 0; }
6998 _ACEOF
6999 if ac_fn_c_try_link "$LINENO"; then :
7000 eval "$as_ac_var=yes"
7001 else
7002 eval "$as_ac_var=no"
7004 rm -f core conftest.err conftest.$ac_objext \
7005 conftest$ac_exeext conftest.$ac_ext
7006 CFLAGS=$ac_wine_try_cflags_saved
7008 eval ac_res=\$$as_ac_var
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7010 $as_echo "$ac_res" >&6; }
7011 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7012 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7013 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7014 else
7015 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7017 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7018 if eval \${$as_ac_var+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 ac_wine_try_cflags_saved=$CFLAGS
7022 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025 int main(int argc, char **argv) { return 0; }
7026 _ACEOF
7027 if ac_fn_c_try_link "$LINENO"; then :
7028 eval "$as_ac_var=yes"
7029 else
7030 eval "$as_ac_var=no"
7032 rm -f core conftest.err conftest.$ac_objext \
7033 conftest$ac_exeext conftest.$ac_ext
7034 CFLAGS=$ac_wine_try_cflags_saved
7036 eval ac_res=\$$as_ac_var
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7038 $as_echo "$ac_res" >&6; }
7039 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7040 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7041 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7046 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7047 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 ac_wine_try_cflags_saved=$CFLAGS
7051 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7054 int main(int argc, char **argv) { return 0; }
7055 _ACEOF
7056 if ac_fn_c_try_link "$LINENO"; then :
7057 ac_cv_cflags__Wl___enable_new_dtags=yes
7058 else
7059 ac_cv_cflags__Wl___enable_new_dtags=no
7061 rm -f core conftest.err conftest.$ac_objext \
7062 conftest$ac_exeext conftest.$ac_ext
7063 CFLAGS=$ac_wine_try_cflags_saved
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7066 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7067 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7068 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7071 case $host_cpu in
7072 *i[3456789]86* | x86_64)
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7074 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7075 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7076 $as_echo_n "(cached) " >&6
7077 else
7078 ac_wine_try_cflags_saved=$CFLAGS
7079 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7082 int main(int argc, char **argv) { return 0; }
7083 _ACEOF
7084 if ac_fn_c_try_link "$LINENO"; then :
7085 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7086 else
7087 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7089 rm -f core conftest.err conftest.$ac_objext \
7090 conftest$ac_exeext conftest.$ac_ext
7091 CFLAGS=$ac_wine_try_cflags_saved
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7094 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7095 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7096 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
7099 esac
7101 LIBWINE_RULES="
7102 all: libwine.so
7104 libwine.so: \$(OBJS) Makefile.in
7105 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7107 install install-lib:: libwine.so \$(DESTDIR)\$(libdir) dummy
7108 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
7110 uninstall::
7111 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
7113 clean::
7114 \$(RM) libwine.so version.c
7120 DLLFLAGS="$DLLFLAGS -fPIC"
7121 DLLEXT=".so"
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
7123 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
7124 if ${ac_cv_c_dll_gnuelf+:} false; then :
7125 $as_echo_n "(cached) " >&6
7126 else
7127 ac_wine_try_cflags_saved=$CFLAGS
7128 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7131 void myfunc() {}
7132 _ACEOF
7133 if ac_fn_c_try_link "$LINENO"; then :
7134 ac_cv_c_dll_gnuelf="yes"
7135 else
7136 ac_cv_c_dll_gnuelf="no"
7138 rm -f core conftest.err conftest.$ac_objext \
7139 conftest$ac_exeext conftest.$ac_ext
7140 CFLAGS=$ac_wine_try_cflags_saved
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
7143 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
7144 if test "$ac_cv_c_dll_gnuelf" = "yes"
7145 then
7146 LDSHARED="\$(CC) -shared"
7147 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
7149 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
7150 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 ac_wine_try_cflags_saved=$CFLAGS
7154 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7157 int main(int argc, char **argv) { return 0; }
7158 _ACEOF
7159 if ac_fn_c_try_link "$LINENO"; then :
7160 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
7161 else
7162 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
7164 rm -f core conftest.err conftest.$ac_objext \
7165 conftest$ac_exeext conftest.$ac_ext
7166 CFLAGS=$ac_wine_try_cflags_saved
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
7169 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
7170 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
7171 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.\$(SOVERSION)"
7172 else
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
7174 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
7175 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 ac_wine_try_cflags_saved=$CFLAGS
7179 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h. */
7182 int main(int argc, char **argv) { return 0; }
7183 _ACEOF
7184 if ac_fn_c_try_link "$LINENO"; then :
7185 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
7186 else
7187 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
7189 rm -f core conftest.err conftest.$ac_objext \
7190 conftest$ac_exeext conftest.$ac_ext
7191 CFLAGS=$ac_wine_try_cflags_saved
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
7194 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
7195 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
7196 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.\$(SOVERSION)"
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
7201 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
7202 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
7203 $as_echo_n "(cached) " >&6
7204 else
7205 ac_wine_try_cflags_saved=$CFLAGS
7206 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7209 int main(int argc, char **argv) { return 0; }
7210 _ACEOF
7211 if ac_fn_c_try_link "$LINENO"; then :
7212 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
7213 else
7214 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
7216 rm -f core conftest.err conftest.$ac_objext \
7217 conftest$ac_exeext conftest.$ac_ext
7218 CFLAGS=$ac_wine_try_cflags_saved
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
7221 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
7222 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
7223 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
7227 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
7228 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 ac_wine_try_cflags_saved=$CFLAGS
7232 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7235 int main(int argc, char **argv) { return 0; }
7236 _ACEOF
7237 if ac_fn_c_try_link "$LINENO"; then :
7238 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
7239 else
7240 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
7242 rm -f core conftest.err conftest.$ac_objext \
7243 conftest$ac_exeext conftest.$ac_ext
7244 CFLAGS=$ac_wine_try_cflags_saved
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
7247 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
7248 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
7249 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
7252 echo '{ global: *; };' >conftest.map
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
7254 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
7255 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
7256 $as_echo_n "(cached) " >&6
7257 else
7258 ac_wine_try_cflags_saved=$CFLAGS
7259 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7262 int main(int argc, char **argv) { return 0; }
7263 _ACEOF
7264 if ac_fn_c_try_link "$LINENO"; then :
7265 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
7266 else
7267 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
7269 rm -f core conftest.err conftest.$ac_objext \
7270 conftest$ac_exeext conftest.$ac_ext
7271 CFLAGS=$ac_wine_try_cflags_saved
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
7274 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
7275 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
7276 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
7278 rm -f conftest.map
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7281 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7282 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 ac_wine_try_cflags_saved=$CFLAGS
7286 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7289 int main(int argc, char **argv) { return 0; }
7290 _ACEOF
7291 if ac_fn_c_try_link "$LINENO"; then :
7292 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7293 else
7294 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7296 rm -f core conftest.err conftest.$ac_objext \
7297 conftest$ac_exeext conftest.$ac_ext
7298 CFLAGS=$ac_wine_try_cflags_saved
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7301 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7302 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7303 LDEXECFLAGS="-Wl,--export-dynamic"
7307 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7309 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7310 if eval \${$as_ac_var+:} false; then :
7311 $as_echo_n "(cached) " >&6
7312 else
7313 ac_wine_try_cflags_saved=$CFLAGS
7314 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7317 int main(int argc, char **argv) { return 0; }
7318 _ACEOF
7319 if ac_fn_c_try_link "$LINENO"; then :
7320 eval "$as_ac_var=yes"
7321 else
7322 eval "$as_ac_var=no"
7324 rm -f core conftest.err conftest.$ac_objext \
7325 conftest$ac_exeext conftest.$ac_ext
7326 CFLAGS=$ac_wine_try_cflags_saved
7328 eval ac_res=\$$as_ac_var
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7330 $as_echo "$ac_res" >&6; }
7331 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7332 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7333 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7334 else
7335 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7337 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7338 if eval \${$as_ac_var+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 ac_wine_try_cflags_saved=$CFLAGS
7342 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7345 int main(int argc, char **argv) { return 0; }
7346 _ACEOF
7347 if ac_fn_c_try_link "$LINENO"; then :
7348 eval "$as_ac_var=yes"
7349 else
7350 eval "$as_ac_var=no"
7352 rm -f core conftest.err conftest.$ac_objext \
7353 conftest$ac_exeext conftest.$ac_ext
7354 CFLAGS=$ac_wine_try_cflags_saved
7356 eval ac_res=\$$as_ac_var
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7358 $as_echo "$ac_res" >&6; }
7359 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7360 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7361 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7366 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7367 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 ac_wine_try_cflags_saved=$CFLAGS
7371 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h. */
7374 int main(int argc, char **argv) { return 0; }
7375 _ACEOF
7376 if ac_fn_c_try_link "$LINENO"; then :
7377 ac_cv_cflags__Wl___enable_new_dtags=yes
7378 else
7379 ac_cv_cflags__Wl___enable_new_dtags=no
7381 rm -f core conftest.err conftest.$ac_objext \
7382 conftest$ac_exeext conftest.$ac_ext
7383 CFLAGS=$ac_wine_try_cflags_saved
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7386 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7387 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7388 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7391 case $host_cpu in
7392 *i[3456789]86* | x86_64)
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7394 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7395 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7396 $as_echo_n "(cached) " >&6
7397 else
7398 ac_wine_try_cflags_saved=$CFLAGS
7399 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7402 int main(int argc, char **argv) { return 0; }
7403 _ACEOF
7404 if ac_fn_c_try_link "$LINENO"; then :
7405 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7406 else
7407 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7409 rm -f core conftest.err conftest.$ac_objext \
7410 conftest$ac_exeext conftest.$ac_ext
7411 CFLAGS=$ac_wine_try_cflags_saved
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7414 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7415 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7416 case $host_os in
7417 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
7418 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
7419 esac
7422 # Extract the first word of "prelink", so it can be a program name with args.
7423 set dummy prelink; ac_word=$2
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 $as_echo_n "checking for $ac_word... " >&6; }
7426 if ${ac_cv_path_PRELINK+:} false; then :
7427 $as_echo_n "(cached) " >&6
7428 else
7429 case $PRELINK in
7430 [\\/]* | ?:[\\/]*)
7431 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in /sbin /usr/sbin $PATH
7437 IFS=$as_save_IFS
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7441 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
7442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 break 2
7445 done
7446 done
7447 IFS=$as_save_IFS
7449 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7451 esac
7453 PRELINK=$ac_cv_path_PRELINK
7454 if test -n "$PRELINK"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7456 $as_echo "$PRELINK" >&6; }
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7463 if test "x$PRELINK" = xfalse
7464 then
7465 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7468 esac
7470 else
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7472 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7473 if ${ac_cv_c_dll_unixware+:} false; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 ac_wine_try_cflags_saved=$CFLAGS
7477 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7480 void myfunc() {}
7481 _ACEOF
7482 if ac_fn_c_try_link "$LINENO"; then :
7483 ac_cv_c_dll_unixware="yes"
7484 else
7485 ac_cv_c_dll_unixware="no"
7487 rm -f core conftest.err conftest.$ac_objext \
7488 conftest$ac_exeext conftest.$ac_ext
7489 CFLAGS=$ac_wine_try_cflags_saved
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7492 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7493 if test "$ac_cv_c_dll_unixware" = "yes"
7494 then
7495 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.\$(SOVERSION)"
7496 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7499 LIBWINE_RULES="
7500 all: libwine.so
7502 libwine.so.\$(VERSION): \$(OBJS) wine.map Makefile.in
7503 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7505 libwine.so.\$(SOVERSION): libwine.so.\$(VERSION)
7506 \$(RM) \$@ && \$(LN_S) libwine.so.\$(VERSION) \$@
7508 libwine.so: libwine.so.\$(SOVERSION)
7509 \$(RM) \$@ && \$(LN_S) libwine.so.\$(SOVERSION) \$@
7511 install install-lib:: libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir) dummy
7512 \$(INSTALL_PROGRAM) libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir)/libwine.so.\$(VERSION)
7513 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.\$(SOVERSION) && \$(LN_S) libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
7515 install install-dev:: \$(DESTDIR)\$(libdir) dummy
7516 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.\$(VERSION) libwine.so
7518 uninstall::
7519 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
7521 clean::
7522 \$(RM) libwine.so.\$(SOVERSION) libwine.so.\$(VERSION) version.c
7526 esac
7528 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7529 enable_winemac_drv=${enable_winemac_drv:-no}
7531 CROSSTEST_DISABLE=\#
7533 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7534 then
7535 case "$host_cpu" in
7536 i[3456789]86*)
7537 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
7538 mingw32-gcc" ;;
7539 x86_64)
7540 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 " ;;
7542 ac_prefix_list="" ;;
7543 esac
7544 for ac_prog in $ac_prefix_list
7546 # Extract the first word of "$ac_prog", so it can be a program name with args.
7547 set dummy $ac_prog; ac_word=$2
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549 $as_echo_n "checking for $ac_word... " >&6; }
7550 if ${ac_cv_prog_CROSSCC+:} false; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 if test -n "$CROSSCC"; then
7554 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7555 else
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7563 ac_cv_prog_CROSSCC="$ac_prog"
7564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7567 done
7568 done
7569 IFS=$as_save_IFS
7573 CROSSCC=$ac_cv_prog_CROSSCC
7574 if test -n "$CROSSCC"; then
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7576 $as_echo "$CROSSCC" >&6; }
7577 else
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7583 test -n "$CROSSCC" && break
7584 done
7585 test -n "$CROSSCC" || CROSSCC="false"
7587 if test "$CROSSCC" != "false"
7588 then
7589 ac_save_CC="$CC"
7590 CC="$CROSSCC"
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7592 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7597 main ()
7601 return 0;
7603 _ACEOF
7604 if ac_fn_c_try_compile "$LINENO"; then :
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7606 $as_echo "yes" >&6; }
7607 set x $CROSSCC
7608 shift
7609 target=""
7610 while test $# -ge 1
7612 case "$1" in
7613 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7614 esac
7615 shift
7616 done
7617 if test -n "$target"
7618 then
7619 CROSSTEST_DISABLE=""
7620 CROSSTARGET="$target"
7623 else
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 $as_echo "no" >&6; }
7627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7628 CC="$ac_save_CC"
7633 if test "$ac_cv_header_pthread_h" = "yes"
7634 then
7635 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
7636 if test "x$ac_cv_func_pthread_create" = xyes; then :
7638 else
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7640 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7641 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7642 $as_echo_n "(cached) " >&6
7643 else
7644 ac_check_lib_save_LIBS=$LIBS
7645 LIBS="-lpthread $LIBS"
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7649 /* Override any GCC internal prototype to avoid an error.
7650 Use char because int might match the return type of a GCC
7651 builtin and then its argument prototype would still apply. */
7652 #ifdef __cplusplus
7653 extern "C"
7654 #endif
7655 char pthread_create ();
7657 main ()
7659 return pthread_create ();
7661 return 0;
7663 _ACEOF
7664 if ac_fn_c_try_link "$LINENO"; then :
7665 ac_cv_lib_pthread_pthread_create=yes
7666 else
7667 ac_cv_lib_pthread_pthread_create=no
7669 rm -f core conftest.err conftest.$ac_objext \
7670 conftest$ac_exeext conftest.$ac_ext
7671 LIBS=$ac_check_lib_save_LIBS
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7674 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7675 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7676 LIBPTHREAD="-lpthread"
7683 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
7684 case "x$with_pthread" in
7685 xno) ;;
7686 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7687 Wine cannot support threads without libpthread.
7688 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7689 esac
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7694 $as_echo_n "checking for X... " >&6; }
7697 # Check whether --with-x was given.
7698 if test "${with_x+set}" = set; then :
7699 withval=$with_x;
7702 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7703 if test "x$with_x" = xno; then
7704 # The user explicitly disabled X.
7705 have_x=disabled
7706 else
7707 case $x_includes,$x_libraries in #(
7708 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7709 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7710 $as_echo_n "(cached) " >&6
7711 else
7712 # One or both of the vars are not set, and there is no cached value.
7713 ac_x_includes=no ac_x_libraries=no
7714 rm -f -r conftest.dir
7715 if mkdir conftest.dir; then
7716 cd conftest.dir
7717 cat >Imakefile <<'_ACEOF'
7718 incroot:
7719 @echo incroot='${INCROOT}'
7720 usrlibdir:
7721 @echo usrlibdir='${USRLIBDIR}'
7722 libdir:
7723 @echo libdir='${LIBDIR}'
7724 _ACEOF
7725 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7726 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7727 for ac_var in incroot usrlibdir libdir; do
7728 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7729 done
7730 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7731 for ac_extension in a so sl dylib la dll; do
7732 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7733 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7734 ac_im_usrlibdir=$ac_im_libdir; break
7736 done
7737 # Screen out bogus values from the imake configuration. They are
7738 # bogus both because they are the default anyway, and because
7739 # using them would break gcc on systems where it needs fixed includes.
7740 case $ac_im_incroot in
7741 /usr/include) ac_x_includes= ;;
7742 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7743 esac
7744 case $ac_im_usrlibdir in
7745 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7746 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7747 esac
7749 cd ..
7750 rm -f -r conftest.dir
7753 # Standard set of common directories for X headers.
7754 # Check X11 before X11Rn because it is often a symlink to the current release.
7755 ac_x_header_dirs='
7756 /usr/X11/include
7757 /usr/X11R7/include
7758 /usr/X11R6/include
7759 /usr/X11R5/include
7760 /usr/X11R4/include
7762 /usr/include/X11
7763 /usr/include/X11R7
7764 /usr/include/X11R6
7765 /usr/include/X11R5
7766 /usr/include/X11R4
7768 /usr/local/X11/include
7769 /usr/local/X11R7/include
7770 /usr/local/X11R6/include
7771 /usr/local/X11R5/include
7772 /usr/local/X11R4/include
7774 /usr/local/include/X11
7775 /usr/local/include/X11R7
7776 /usr/local/include/X11R6
7777 /usr/local/include/X11R5
7778 /usr/local/include/X11R4
7780 /usr/X386/include
7781 /usr/x386/include
7782 /usr/XFree86/include/X11
7784 /usr/include
7785 /usr/local/include
7786 /usr/unsupported/include
7787 /usr/athena/include
7788 /usr/local/x11r5/include
7789 /usr/lpp/Xamples/include
7791 /usr/openwin/include
7792 /usr/openwin/share/include'
7794 if test "$ac_x_includes" = no; then
7795 # Guess where to find include files, by looking for Xlib.h.
7796 # First, try using that file with no special directory specified.
7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h. */
7799 #include <X11/Xlib.h>
7800 _ACEOF
7801 if ac_fn_c_try_cpp "$LINENO"; then :
7802 # We can compile using X headers with no special include directory.
7803 ac_x_includes=
7804 else
7805 for ac_dir in $ac_x_header_dirs; do
7806 if test -r "$ac_dir/X11/Xlib.h"; then
7807 ac_x_includes=$ac_dir
7808 break
7810 done
7812 rm -f conftest.err conftest.i conftest.$ac_ext
7813 fi # $ac_x_includes = no
7815 if test "$ac_x_libraries" = no; then
7816 # Check for the libraries.
7817 # See if we find them without any special options.
7818 # Don't add to $LIBS permanently.
7819 ac_save_LIBS=$LIBS
7820 LIBS="-lX11 $LIBS"
7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h. */
7823 #include <X11/Xlib.h>
7825 main ()
7827 XrmInitialize ()
7829 return 0;
7831 _ACEOF
7832 if ac_fn_c_try_link "$LINENO"; then :
7833 LIBS=$ac_save_LIBS
7834 # We can link X programs with no special library path.
7835 ac_x_libraries=
7836 else
7837 LIBS=$ac_save_LIBS
7838 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7840 # Don't even attempt the hair of trying to link an X program!
7841 for ac_extension in a so sl dylib la dll; do
7842 if test -r "$ac_dir/libX11.$ac_extension"; then
7843 ac_x_libraries=$ac_dir
7844 break 2
7846 done
7847 done
7849 rm -f core conftest.err conftest.$ac_objext \
7850 conftest$ac_exeext conftest.$ac_ext
7851 fi # $ac_x_libraries = no
7853 case $ac_x_includes,$ac_x_libraries in #(
7854 no,* | *,no | *\'*)
7855 # Didn't find X, or a directory has "'" in its name.
7856 ac_cv_have_x="have_x=no";; #(
7858 # Record where we found X for the cache.
7859 ac_cv_have_x="have_x=yes\
7860 ac_x_includes='$ac_x_includes'\
7861 ac_x_libraries='$ac_x_libraries'"
7862 esac
7864 ;; #(
7865 *) have_x=yes;;
7866 esac
7867 eval "$ac_cv_have_x"
7868 fi # $with_x != no
7870 if test "$have_x" != yes; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7872 $as_echo "$have_x" >&6; }
7873 no_x=yes
7874 else
7875 # If each of the values was on the command line, it overrides each guess.
7876 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7877 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7878 # Update the cache value to reflect the command line values.
7879 ac_cv_have_x="have_x=yes\
7880 ac_x_includes='$x_includes'\
7881 ac_x_libraries='$x_libraries'"
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7883 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7886 if test "$no_x" = yes; then
7887 # Not all programs may use this symbol, but it does not hurt to define it.
7889 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7891 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7892 else
7893 if test -n "$x_includes"; then
7894 X_CFLAGS="$X_CFLAGS -I$x_includes"
7897 # It would also be nice to do this for all -L options, not just this one.
7898 if test -n "$x_libraries"; then
7899 X_LIBS="$X_LIBS -L$x_libraries"
7900 # For Solaris; some versions of Sun CC require a space after -R and
7901 # others require no space. Words are not sufficient . . . .
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7903 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7904 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7905 ac_xsave_c_werror_flag=$ac_c_werror_flag
7906 ac_c_werror_flag=yes
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7911 main ()
7915 return 0;
7917 _ACEOF
7918 if ac_fn_c_try_link "$LINENO"; then :
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7921 X_LIBS="$X_LIBS -R$x_libraries"
7922 else
7923 LIBS="$ac_xsave_LIBS -R $x_libraries"
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7928 main ()
7932 return 0;
7934 _ACEOF
7935 if ac_fn_c_try_link "$LINENO"; then :
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7937 $as_echo "yes" >&6; }
7938 X_LIBS="$X_LIBS -R $x_libraries"
7939 else
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7941 $as_echo "neither works" >&6; }
7943 rm -f core conftest.err conftest.$ac_objext \
7944 conftest$ac_exeext conftest.$ac_ext
7946 rm -f core conftest.err conftest.$ac_objext \
7947 conftest$ac_exeext conftest.$ac_ext
7948 ac_c_werror_flag=$ac_xsave_c_werror_flag
7949 LIBS=$ac_xsave_LIBS
7952 # Check for system-dependent libraries X programs must link with.
7953 # Do this before checking for the system-independent R6 libraries
7954 # (-lICE), since we may need -lsocket or whatever for X linking.
7956 if test "$ISC" = yes; then
7957 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7958 else
7959 # Martyn Johnson says this is needed for Ultrix, if the X
7960 # libraries were built with DECnet support. And Karl Berry says
7961 # the Alpha needs dnet_stub (dnet does not exist).
7962 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7966 /* Override any GCC internal prototype to avoid an error.
7967 Use char because int might match the return type of a GCC
7968 builtin and then its argument prototype would still apply. */
7969 #ifdef __cplusplus
7970 extern "C"
7971 #endif
7972 char XOpenDisplay ();
7974 main ()
7976 return XOpenDisplay ();
7978 return 0;
7980 _ACEOF
7981 if ac_fn_c_try_link "$LINENO"; then :
7983 else
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7985 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7986 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 ac_check_lib_save_LIBS=$LIBS
7990 LIBS="-ldnet $LIBS"
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7994 /* Override any GCC internal prototype to avoid an error.
7995 Use char because int might match the return type of a GCC
7996 builtin and then its argument prototype would still apply. */
7997 #ifdef __cplusplus
7998 extern "C"
7999 #endif
8000 char dnet_ntoa ();
8002 main ()
8004 return dnet_ntoa ();
8006 return 0;
8008 _ACEOF
8009 if ac_fn_c_try_link "$LINENO"; then :
8010 ac_cv_lib_dnet_dnet_ntoa=yes
8011 else
8012 ac_cv_lib_dnet_dnet_ntoa=no
8014 rm -f core conftest.err conftest.$ac_objext \
8015 conftest$ac_exeext conftest.$ac_ext
8016 LIBS=$ac_check_lib_save_LIBS
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8019 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8020 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8021 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8024 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8026 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8027 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8028 $as_echo_n "(cached) " >&6
8029 else
8030 ac_check_lib_save_LIBS=$LIBS
8031 LIBS="-ldnet_stub $LIBS"
8032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h. */
8035 /* Override any GCC internal prototype to avoid an error.
8036 Use char because int might match the return type of a GCC
8037 builtin and then its argument prototype would still apply. */
8038 #ifdef __cplusplus
8039 extern "C"
8040 #endif
8041 char dnet_ntoa ();
8043 main ()
8045 return dnet_ntoa ();
8047 return 0;
8049 _ACEOF
8050 if ac_fn_c_try_link "$LINENO"; then :
8051 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8052 else
8053 ac_cv_lib_dnet_stub_dnet_ntoa=no
8055 rm -f core conftest.err conftest.$ac_objext \
8056 conftest$ac_exeext conftest.$ac_ext
8057 LIBS=$ac_check_lib_save_LIBS
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8060 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8061 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8062 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8067 rm -f core conftest.err conftest.$ac_objext \
8068 conftest$ac_exeext conftest.$ac_ext
8069 LIBS="$ac_xsave_LIBS"
8071 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8072 # to get the SysV transport functions.
8073 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8074 # needs -lnsl.
8075 # The nsl library prevents programs from opening the X display
8076 # on Irix 5.2, according to T.E. Dickey.
8077 # The functions gethostbyname, getservbyname, and inet_addr are
8078 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8079 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8080 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8084 if test $ac_cv_func_gethostbyname = no; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8086 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8087 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8088 $as_echo_n "(cached) " >&6
8089 else
8090 ac_check_lib_save_LIBS=$LIBS
8091 LIBS="-lnsl $LIBS"
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8095 /* Override any GCC internal prototype to avoid an error.
8096 Use char because int might match the return type of a GCC
8097 builtin and then its argument prototype would still apply. */
8098 #ifdef __cplusplus
8099 extern "C"
8100 #endif
8101 char gethostbyname ();
8103 main ()
8105 return gethostbyname ();
8107 return 0;
8109 _ACEOF
8110 if ac_fn_c_try_link "$LINENO"; then :
8111 ac_cv_lib_nsl_gethostbyname=yes
8112 else
8113 ac_cv_lib_nsl_gethostbyname=no
8115 rm -f core conftest.err conftest.$ac_objext \
8116 conftest$ac_exeext conftest.$ac_ext
8117 LIBS=$ac_check_lib_save_LIBS
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8120 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8121 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8122 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8125 if test $ac_cv_lib_nsl_gethostbyname = no; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8127 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8128 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131 ac_check_lib_save_LIBS=$LIBS
8132 LIBS="-lbsd $LIBS"
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8136 /* Override any GCC internal prototype to avoid an error.
8137 Use char because int might match the return type of a GCC
8138 builtin and then its argument prototype would still apply. */
8139 #ifdef __cplusplus
8140 extern "C"
8141 #endif
8142 char gethostbyname ();
8144 main ()
8146 return gethostbyname ();
8148 return 0;
8150 _ACEOF
8151 if ac_fn_c_try_link "$LINENO"; then :
8152 ac_cv_lib_bsd_gethostbyname=yes
8153 else
8154 ac_cv_lib_bsd_gethostbyname=no
8156 rm -f core conftest.err conftest.$ac_objext \
8157 conftest$ac_exeext conftest.$ac_ext
8158 LIBS=$ac_check_lib_save_LIBS
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8161 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8162 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8163 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8169 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8170 # socket/setsockopt and other routines are undefined under SCO ODT
8171 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8172 # on later versions), says Simon Leinen: it contains gethostby*
8173 # variants that don't use the name server (or something). -lsocket
8174 # must be given before -lnsl if both are needed. We assume that
8175 # if connect needs -lnsl, so does gethostbyname.
8176 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8177 if test "x$ac_cv_func_connect" = xyes; then :
8181 if test $ac_cv_func_connect = no; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8183 $as_echo_n "checking for connect in -lsocket... " >&6; }
8184 if ${ac_cv_lib_socket_connect+:} false; then :
8185 $as_echo_n "(cached) " >&6
8186 else
8187 ac_check_lib_save_LIBS=$LIBS
8188 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8192 /* Override any GCC internal prototype to avoid an error.
8193 Use char because int might match the return type of a GCC
8194 builtin and then its argument prototype would still apply. */
8195 #ifdef __cplusplus
8196 extern "C"
8197 #endif
8198 char connect ();
8200 main ()
8202 return connect ();
8204 return 0;
8206 _ACEOF
8207 if ac_fn_c_try_link "$LINENO"; then :
8208 ac_cv_lib_socket_connect=yes
8209 else
8210 ac_cv_lib_socket_connect=no
8212 rm -f core conftest.err conftest.$ac_objext \
8213 conftest$ac_exeext conftest.$ac_ext
8214 LIBS=$ac_check_lib_save_LIBS
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8217 $as_echo "$ac_cv_lib_socket_connect" >&6; }
8218 if test "x$ac_cv_lib_socket_connect" = xyes; then :
8219 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8224 # Guillermo Gomez says -lposix is necessary on A/UX.
8225 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8226 if test "x$ac_cv_func_remove" = xyes; then :
8230 if test $ac_cv_func_remove = no; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8232 $as_echo_n "checking for remove in -lposix... " >&6; }
8233 if ${ac_cv_lib_posix_remove+:} false; then :
8234 $as_echo_n "(cached) " >&6
8235 else
8236 ac_check_lib_save_LIBS=$LIBS
8237 LIBS="-lposix $LIBS"
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8241 /* Override any GCC internal prototype to avoid an error.
8242 Use char because int might match the return type of a GCC
8243 builtin and then its argument prototype would still apply. */
8244 #ifdef __cplusplus
8245 extern "C"
8246 #endif
8247 char remove ();
8249 main ()
8251 return remove ();
8253 return 0;
8255 _ACEOF
8256 if ac_fn_c_try_link "$LINENO"; then :
8257 ac_cv_lib_posix_remove=yes
8258 else
8259 ac_cv_lib_posix_remove=no
8261 rm -f core conftest.err conftest.$ac_objext \
8262 conftest$ac_exeext conftest.$ac_ext
8263 LIBS=$ac_check_lib_save_LIBS
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8266 $as_echo "$ac_cv_lib_posix_remove" >&6; }
8267 if test "x$ac_cv_lib_posix_remove" = xyes; then :
8268 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8273 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8274 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8275 if test "x$ac_cv_func_shmat" = xyes; then :
8279 if test $ac_cv_func_shmat = no; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8281 $as_echo_n "checking for shmat in -lipc... " >&6; }
8282 if ${ac_cv_lib_ipc_shmat+:} false; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 ac_check_lib_save_LIBS=$LIBS
8286 LIBS="-lipc $LIBS"
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8290 /* Override any GCC internal prototype to avoid an error.
8291 Use char because int might match the return type of a GCC
8292 builtin and then its argument prototype would still apply. */
8293 #ifdef __cplusplus
8294 extern "C"
8295 #endif
8296 char shmat ();
8298 main ()
8300 return shmat ();
8302 return 0;
8304 _ACEOF
8305 if ac_fn_c_try_link "$LINENO"; then :
8306 ac_cv_lib_ipc_shmat=yes
8307 else
8308 ac_cv_lib_ipc_shmat=no
8310 rm -f core conftest.err conftest.$ac_objext \
8311 conftest$ac_exeext conftest.$ac_ext
8312 LIBS=$ac_check_lib_save_LIBS
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8315 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8316 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8317 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8323 # Check for libraries that X11R6 Xt/Xaw programs need.
8324 ac_save_LDFLAGS=$LDFLAGS
8325 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8326 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8327 # check for ICE first), but we must link in the order -lSM -lICE or
8328 # we get undefined symbols. So assume we have SM if we have ICE.
8329 # These have to be linked with before -lX11, unlike the other
8330 # libraries we check for below, so use a different variable.
8331 # John Interrante, Karl Berry
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8333 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8334 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 ac_check_lib_save_LIBS=$LIBS
8338 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8342 /* Override any GCC internal prototype to avoid an error.
8343 Use char because int might match the return type of a GCC
8344 builtin and then its argument prototype would still apply. */
8345 #ifdef __cplusplus
8346 extern "C"
8347 #endif
8348 char IceConnectionNumber ();
8350 main ()
8352 return IceConnectionNumber ();
8354 return 0;
8356 _ACEOF
8357 if ac_fn_c_try_link "$LINENO"; then :
8358 ac_cv_lib_ICE_IceConnectionNumber=yes
8359 else
8360 ac_cv_lib_ICE_IceConnectionNumber=no
8362 rm -f core conftest.err conftest.$ac_objext \
8363 conftest$ac_exeext conftest.$ac_ext
8364 LIBS=$ac_check_lib_save_LIBS
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8367 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8368 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8369 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8372 LDFLAGS=$ac_save_LDFLAGS
8377 if test "$have_x" = "yes"
8378 then
8379 XLIB="-lX11"
8380 ac_save_CPPFLAGS="$CPPFLAGS"
8381 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
8384 $as_echo_n "checking for -lX11... " >&6; }
8385 if ${ac_cv_lib_soname_X11+:} false; then :
8386 $as_echo_n "(cached) " >&6
8387 else
8388 ac_check_soname_save_LIBS=$LIBS
8389 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h. */
8393 /* Override any GCC internal prototype to avoid an error.
8394 Use char because int might match the return type of a GCC
8395 builtin and then its argument prototype would still apply. */
8396 #ifdef __cplusplus
8397 extern "C"
8398 #endif
8399 char XCreateWindow ();
8401 main ()
8403 return XCreateWindow ();
8405 return 0;
8407 _ACEOF
8408 if ac_fn_c_try_link "$LINENO"; then :
8409 case "$LIBEXT" in
8410 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8411 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'` ;;
8412 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8413 if test "x$ac_cv_lib_soname_X11" = x; then :
8414 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8415 fi ;;
8416 esac
8418 rm -f core conftest.err conftest.$ac_objext \
8419 conftest$ac_exeext conftest.$ac_ext
8420 LIBS=$ac_check_soname_save_LIBS
8422 if test "x$ac_cv_lib_soname_X11" = "x"; then :
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8424 $as_echo "not found" >&6; }
8426 else
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
8428 $as_echo "$ac_cv_lib_soname_X11" >&6; }
8430 cat >>confdefs.h <<_ACEOF
8431 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
8432 _ACEOF
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
8437 $as_echo_n "checking for -lXext... " >&6; }
8438 if ${ac_cv_lib_soname_Xext+:} false; then :
8439 $as_echo_n "(cached) " >&6
8440 else
8441 ac_check_soname_save_LIBS=$LIBS
8442 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8446 /* Override any GCC internal prototype to avoid an error.
8447 Use char because int might match the return type of a GCC
8448 builtin and then its argument prototype would still apply. */
8449 #ifdef __cplusplus
8450 extern "C"
8451 #endif
8452 char XextCreateExtension ();
8454 main ()
8456 return XextCreateExtension ();
8458 return 0;
8460 _ACEOF
8461 if ac_fn_c_try_link "$LINENO"; then :
8462 case "$LIBEXT" in
8463 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8464 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'` ;;
8465 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8466 if test "x$ac_cv_lib_soname_Xext" = x; then :
8467 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8468 fi ;;
8469 esac
8471 rm -f core conftest.err conftest.$ac_objext \
8472 conftest$ac_exeext conftest.$ac_ext
8473 LIBS=$ac_check_soname_save_LIBS
8475 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8477 $as_echo "not found" >&6; }
8479 else
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8481 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8483 cat >>confdefs.h <<_ACEOF
8484 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8485 _ACEOF
8487 XLIB="-lXext $XLIB"
8490 for ac_header in X11/Xlib.h \
8491 X11/XKBlib.h \
8492 X11/Xutil.h \
8493 X11/Xcursor/Xcursor.h \
8494 X11/extensions/shape.h \
8495 X11/extensions/XInput.h \
8496 X11/extensions/XInput2.h \
8497 X11/extensions/XShm.h \
8498 X11/extensions/Xcomposite.h \
8499 X11/extensions/Xinerama.h \
8500 X11/extensions/Xrandr.h \
8501 X11/extensions/Xrender.h \
8502 X11/extensions/xf86vmode.h \
8503 X11/extensions/xf86vmproto.h
8504 do :
8505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8506 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8507 # include <X11/Xlib.h>
8508 #endif
8509 #ifdef HAVE_X11_XUTIL_H
8510 # include <X11/Xutil.h>
8511 #endif
8513 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8514 cat >>confdefs.h <<_ACEOF
8515 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8516 _ACEOF
8520 done
8523 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8524 then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8526 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8527 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8528 $as_echo_n "(cached) " >&6
8529 else
8530 ac_check_lib_save_LIBS=$LIBS
8531 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533 /* end confdefs.h. */
8535 /* Override any GCC internal prototype to avoid an error.
8536 Use char because int might match the return type of a GCC
8537 builtin and then its argument prototype would still apply. */
8538 #ifdef __cplusplus
8539 extern "C"
8540 #endif
8541 char XkbQueryExtension ();
8543 main ()
8545 return XkbQueryExtension ();
8547 return 0;
8549 _ACEOF
8550 if ac_fn_c_try_link "$LINENO"; then :
8551 ac_cv_lib_X11_XkbQueryExtension=yes
8552 else
8553 ac_cv_lib_X11_XkbQueryExtension=no
8555 rm -f core conftest.err conftest.$ac_objext \
8556 conftest$ac_exeext conftest.$ac_ext
8557 LIBS=$ac_check_lib_save_LIBS
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8560 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8561 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8563 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8569 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8570 then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8572 $as_echo_n "checking for -lXcursor... " >&6; }
8573 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8574 $as_echo_n "(cached) " >&6
8575 else
8576 ac_check_soname_save_LIBS=$LIBS
8577 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8581 /* Override any GCC internal prototype to avoid an error.
8582 Use char because int might match the return type of a GCC
8583 builtin and then its argument prototype would still apply. */
8584 #ifdef __cplusplus
8585 extern "C"
8586 #endif
8587 char XcursorImageLoadCursor ();
8589 main ()
8591 return XcursorImageLoadCursor ();
8593 return 0;
8595 _ACEOF
8596 if ac_fn_c_try_link "$LINENO"; then :
8597 case "$LIBEXT" in
8598 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8599 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'` ;;
8600 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8601 if test "x$ac_cv_lib_soname_Xcursor" = x; then :
8602 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8603 fi ;;
8604 esac
8606 rm -f core conftest.err conftest.$ac_objext \
8607 conftest$ac_exeext conftest.$ac_ext
8608 LIBS=$ac_check_soname_save_LIBS
8610 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8612 $as_echo "not found" >&6; }
8614 else
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8616 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8618 cat >>confdefs.h <<_ACEOF
8619 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8620 _ACEOF
8625 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8626 case "x$with_xcursor" in
8627 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8628 xno) ;;
8629 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8630 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8631 esac
8634 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8635 then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8637 $as_echo_n "checking for -lXi... " >&6; }
8638 if ${ac_cv_lib_soname_Xi+:} false; then :
8639 $as_echo_n "(cached) " >&6
8640 else
8641 ac_check_soname_save_LIBS=$LIBS
8642 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8646 /* Override any GCC internal prototype to avoid an error.
8647 Use char because int might match the return type of a GCC
8648 builtin and then its argument prototype would still apply. */
8649 #ifdef __cplusplus
8650 extern "C"
8651 #endif
8652 char XOpenDevice ();
8654 main ()
8656 return XOpenDevice ();
8658 return 0;
8660 _ACEOF
8661 if ac_fn_c_try_link "$LINENO"; then :
8662 case "$LIBEXT" in
8663 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8664 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'` ;;
8665 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8666 if test "x$ac_cv_lib_soname_Xi" = x; then :
8667 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8668 fi ;;
8669 esac
8671 rm -f core conftest.err conftest.$ac_objext \
8672 conftest$ac_exeext conftest.$ac_ext
8673 LIBS=$ac_check_soname_save_LIBS
8675 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8677 $as_echo "not found" >&6; }
8679 else
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8681 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8683 cat >>confdefs.h <<_ACEOF
8684 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8685 _ACEOF
8690 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8691 case "x$with_xinput" in
8692 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8693 xno) ;;
8694 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8695 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8696 esac
8699 if test "x$ac_cv_lib_soname_Xi" != x
8700 then
8701 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8702 case "x$with_xinput2" in
8703 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8704 xno) ;;
8705 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8706 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8707 esac
8711 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8712 then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8714 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8715 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8716 $as_echo_n "(cached) " >&6
8717 else
8718 ac_check_lib_save_LIBS=$LIBS
8719 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8723 /* Override any GCC internal prototype to avoid an error.
8724 Use char because int might match the return type of a GCC
8725 builtin and then its argument prototype would still apply. */
8726 #ifdef __cplusplus
8727 extern "C"
8728 #endif
8729 char XShmQueryExtension ();
8731 main ()
8733 return XShmQueryExtension ();
8735 return 0;
8737 _ACEOF
8738 if ac_fn_c_try_link "$LINENO"; then :
8739 ac_cv_lib_Xext_XShmQueryExtension=yes
8740 else
8741 ac_cv_lib_Xext_XShmQueryExtension=no
8743 rm -f core conftest.err conftest.$ac_objext \
8744 conftest$ac_exeext conftest.$ac_ext
8745 LIBS=$ac_check_lib_save_LIBS
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8748 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8749 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8751 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8756 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8757 case "x$with_xshm" in
8758 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8759 xno) ;;
8760 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8761 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8762 esac
8765 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8766 then
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8768 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8769 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8770 $as_echo_n "(cached) " >&6
8771 else
8772 ac_check_lib_save_LIBS=$LIBS
8773 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8777 /* Override any GCC internal prototype to avoid an error.
8778 Use char because int might match the return type of a GCC
8779 builtin and then its argument prototype would still apply. */
8780 #ifdef __cplusplus
8781 extern "C"
8782 #endif
8783 char XShapeQueryExtension ();
8785 main ()
8787 return XShapeQueryExtension ();
8789 return 0;
8791 _ACEOF
8792 if ac_fn_c_try_link "$LINENO"; then :
8793 ac_cv_lib_Xext_XShapeQueryExtension=yes
8794 else
8795 ac_cv_lib_Xext_XShapeQueryExtension=no
8797 rm -f core conftest.err conftest.$ac_objext \
8798 conftest$ac_exeext conftest.$ac_ext
8799 LIBS=$ac_check_lib_save_LIBS
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8802 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8803 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8805 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8810 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8811 case "x$with_xshape" in
8812 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8813 xno) ;;
8814 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8815 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8816 esac
8819 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8820 then
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8822 $as_echo_n "checking for -lXxf86vm... " >&6; }
8823 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8824 $as_echo_n "(cached) " >&6
8825 else
8826 ac_check_soname_save_LIBS=$LIBS
8827 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829 /* end confdefs.h. */
8831 /* Override any GCC internal prototype to avoid an error.
8832 Use char because int might match the return type of a GCC
8833 builtin and then its argument prototype would still apply. */
8834 #ifdef __cplusplus
8835 extern "C"
8836 #endif
8837 char XF86VidModeQueryExtension ();
8839 main ()
8841 return XF86VidModeQueryExtension ();
8843 return 0;
8845 _ACEOF
8846 if ac_fn_c_try_link "$LINENO"; then :
8847 case "$LIBEXT" in
8848 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8849 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'` ;;
8850 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8851 if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
8852 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8853 fi ;;
8854 esac
8856 rm -f core conftest.err conftest.$ac_objext \
8857 conftest$ac_exeext conftest.$ac_ext
8858 LIBS=$ac_check_soname_save_LIBS
8860 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8862 $as_echo "not found" >&6; }
8864 else
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8866 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8868 cat >>confdefs.h <<_ACEOF
8869 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8870 _ACEOF
8875 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8876 case "x$with_xxf86vm" in
8877 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8878 xno) ;;
8879 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8880 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8881 esac
8884 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" -a "x$ac_cv_lib_soname_X11" != "x" -a "x$ac_cv_lib_soname_Xext" != "x"
8885 then
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8887 $as_echo_n "checking for -lXrender... " >&6; }
8888 if ${ac_cv_lib_soname_Xrender+:} false; then :
8889 $as_echo_n "(cached) " >&6
8890 else
8891 ac_check_soname_save_LIBS=$LIBS
8892 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8896 /* Override any GCC internal prototype to avoid an error.
8897 Use char because int might match the return type of a GCC
8898 builtin and then its argument prototype would still apply. */
8899 #ifdef __cplusplus
8900 extern "C"
8901 #endif
8902 char XRenderQueryExtension ();
8904 main ()
8906 return XRenderQueryExtension ();
8908 return 0;
8910 _ACEOF
8911 if ac_fn_c_try_link "$LINENO"; then :
8912 case "$LIBEXT" in
8913 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8914 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'` ;;
8915 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8916 if test "x$ac_cv_lib_soname_Xrender" = x; then :
8917 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8918 fi ;;
8919 esac
8921 rm -f core conftest.err conftest.$ac_objext \
8922 conftest$ac_exeext conftest.$ac_ext
8923 LIBS=$ac_check_soname_save_LIBS
8925 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8927 $as_echo "not found" >&6; }
8929 else
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8931 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8933 cat >>confdefs.h <<_ACEOF
8934 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8935 _ACEOF
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8938 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8939 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 ac_check_lib_save_LIBS=$LIBS
8943 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h. */
8947 /* Override any GCC internal prototype to avoid an error.
8948 Use char because int might match the return type of a GCC
8949 builtin and then its argument prototype would still apply. */
8950 #ifdef __cplusplus
8951 extern "C"
8952 #endif
8953 char XRenderSetPictureTransform ();
8955 main ()
8957 return XRenderSetPictureTransform ();
8959 return 0;
8961 _ACEOF
8962 if ac_fn_c_try_link "$LINENO"; then :
8963 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8964 else
8965 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8967 rm -f core conftest.err conftest.$ac_objext \
8968 conftest$ac_exeext conftest.$ac_ext
8969 LIBS=$ac_check_lib_save_LIBS
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8972 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8973 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8975 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8980 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8981 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 ac_check_lib_save_LIBS=$LIBS
8985 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8989 /* Override any GCC internal prototype to avoid an error.
8990 Use char because int might match the return type of a GCC
8991 builtin and then its argument prototype would still apply. */
8992 #ifdef __cplusplus
8993 extern "C"
8994 #endif
8995 char XRenderCreateLinearGradient ();
8997 main ()
8999 return XRenderCreateLinearGradient ();
9001 return 0;
9003 _ACEOF
9004 if ac_fn_c_try_link "$LINENO"; then :
9005 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
9006 else
9007 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
9009 rm -f core conftest.err conftest.$ac_objext \
9010 conftest$ac_exeext conftest.$ac_ext
9011 LIBS=$ac_check_lib_save_LIBS
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
9014 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
9015 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
9017 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
9024 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
9025 case "x$with_xrender" in
9026 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
9027 xno) ;;
9028 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
9029 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
9030 esac
9033 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
9034 then
9035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036 /* end confdefs.h. */
9037 #include <X11/Xlib.h>
9038 #include <X11/extensions/Xrandr.h>
9040 main ()
9042 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
9044 return 0;
9046 _ACEOF
9047 if ac_fn_c_try_compile "$LINENO"; then :
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
9049 $as_echo_n "checking for -lXrandr... " >&6; }
9050 if ${ac_cv_lib_soname_Xrandr+:} false; then :
9051 $as_echo_n "(cached) " >&6
9052 else
9053 ac_check_soname_save_LIBS=$LIBS
9054 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9058 /* Override any GCC internal prototype to avoid an error.
9059 Use char because int might match the return type of a GCC
9060 builtin and then its argument prototype would still apply. */
9061 #ifdef __cplusplus
9062 extern "C"
9063 #endif
9064 char XRRQueryExtension ();
9066 main ()
9068 return XRRQueryExtension ();
9070 return 0;
9072 _ACEOF
9073 if ac_fn_c_try_link "$LINENO"; then :
9074 case "$LIBEXT" in
9075 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9076 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'` ;;
9077 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9078 if test "x$ac_cv_lib_soname_Xrandr" = x; then :
9079 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9080 fi ;;
9081 esac
9083 rm -f core conftest.err conftest.$ac_objext \
9084 conftest$ac_exeext conftest.$ac_ext
9085 LIBS=$ac_check_soname_save_LIBS
9087 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9089 $as_echo "not found" >&6; }
9091 else
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
9093 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
9095 cat >>confdefs.h <<_ACEOF
9096 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
9097 _ACEOF
9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9101 #include <X11/Xlib.h>
9102 #include <X11/extensions/Xrandr.h>
9104 main ()
9106 static typeof(XRRGetScreenResources) *f; if (f) return 0;
9108 return 0;
9110 _ACEOF
9111 if ac_fn_c_try_compile "$LINENO"; then :
9113 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
9116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9121 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9122 case "x$with_xrandr" in
9123 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
9124 xno) ;;
9125 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
9126 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
9127 esac
9130 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
9131 then
9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h. */
9134 #include <X11/Xlib.h>
9135 #include <X11/extensions/Xinerama.h>
9137 main ()
9139 static typeof(XineramaQueryScreens) * func; if (func) return 0;
9141 return 0;
9143 _ACEOF
9144 if ac_fn_c_try_compile "$LINENO"; then :
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
9146 $as_echo_n "checking for -lXinerama... " >&6; }
9147 if ${ac_cv_lib_soname_Xinerama+:} false; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 ac_check_soname_save_LIBS=$LIBS
9151 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9155 /* Override any GCC internal prototype to avoid an error.
9156 Use char because int might match the return type of a GCC
9157 builtin and then its argument prototype would still apply. */
9158 #ifdef __cplusplus
9159 extern "C"
9160 #endif
9161 char XineramaQueryScreens ();
9163 main ()
9165 return XineramaQueryScreens ();
9167 return 0;
9169 _ACEOF
9170 if ac_fn_c_try_link "$LINENO"; then :
9171 case "$LIBEXT" in
9172 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9173 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'` ;;
9174 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9175 if test "x$ac_cv_lib_soname_Xinerama" = x; then :
9176 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9177 fi ;;
9178 esac
9180 rm -f core conftest.err conftest.$ac_objext \
9181 conftest$ac_exeext conftest.$ac_ext
9182 LIBS=$ac_check_soname_save_LIBS
9184 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9186 $as_echo "not found" >&6; }
9188 else
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
9190 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
9192 cat >>confdefs.h <<_ACEOF
9193 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
9194 _ACEOF
9199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9202 case "x$with_xinerama" in
9203 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
9204 xno) ;;
9205 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
9206 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
9207 esac
9210 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
9211 then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
9213 $as_echo_n "checking for -lXcomposite... " >&6; }
9214 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 ac_check_soname_save_LIBS=$LIBS
9218 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9222 /* Override any GCC internal prototype to avoid an error.
9223 Use char because int might match the return type of a GCC
9224 builtin and then its argument prototype would still apply. */
9225 #ifdef __cplusplus
9226 extern "C"
9227 #endif
9228 char XCompositeRedirectWindow ();
9230 main ()
9232 return XCompositeRedirectWindow ();
9234 return 0;
9236 _ACEOF
9237 if ac_fn_c_try_link "$LINENO"; then :
9238 case "$LIBEXT" in
9239 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9240 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'` ;;
9241 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9242 if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
9243 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9244 fi ;;
9245 esac
9247 rm -f core conftest.err conftest.$ac_objext \
9248 conftest$ac_exeext conftest.$ac_ext
9249 LIBS=$ac_check_soname_save_LIBS
9251 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9253 $as_echo "not found" >&6; }
9255 else
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
9257 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
9259 cat >>confdefs.h <<_ACEOF
9260 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
9261 _ACEOF
9266 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9267 case "x$with_xcomposite" in
9268 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
9269 xno) ;;
9270 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
9271 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
9272 esac
9275 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
9276 #include <X11/Xlib.h>
9277 #endif
9279 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
9281 cat >>confdefs.h <<_ACEOF
9282 #define HAVE_XICCALLBACK_CALLBACK 1
9283 _ACEOF
9287 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
9288 #include <X11/Xlib.h>
9289 #endif
9291 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
9293 cat >>confdefs.h <<_ACEOF
9294 #define HAVE_XEVENT_XCOOKIE 1
9295 _ACEOF
9302 opengl_msg=""
9303 if test "x$with_opengl" != "xno"
9304 then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9306 $as_echo_n "checking for -lGL... " >&6; }
9307 if ${ac_cv_lib_soname_GL+:} false; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 ac_check_soname_save_LIBS=$LIBS
9311 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h. */
9315 /* Override any GCC internal prototype to avoid an error.
9316 Use char because int might match the return type of a GCC
9317 builtin and then its argument prototype would still apply. */
9318 #ifdef __cplusplus
9319 extern "C"
9320 #endif
9321 char glXCreateContext ();
9323 main ()
9325 return glXCreateContext ();
9327 return 0;
9329 _ACEOF
9330 if ac_fn_c_try_link "$LINENO"; then :
9331 case "$LIBEXT" in
9332 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9333 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'` ;;
9334 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9335 if test "x$ac_cv_lib_soname_GL" = x; then :
9336 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9337 fi ;;
9338 esac
9340 rm -f core conftest.err conftest.$ac_objext \
9341 conftest$ac_exeext conftest.$ac_ext
9342 LIBS=$ac_check_soname_save_LIBS
9344 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9346 $as_echo "not found" >&6; }
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9348 $as_echo_n "checking for -lGL... " >&6; }
9349 if ${ac_cv_lib_soname_GL+:} false; then :
9350 $as_echo_n "(cached) " >&6
9351 else
9352 ac_check_soname_save_LIBS=$LIBS
9353 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib $LIBS"
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9357 /* Override any GCC internal prototype to avoid an error.
9358 Use char because int might match the return type of a GCC
9359 builtin and then its argument prototype would still apply. */
9360 #ifdef __cplusplus
9361 extern "C"
9362 #endif
9363 char glXCreateContext ();
9365 main ()
9367 return glXCreateContext ();
9369 return 0;
9371 _ACEOF
9372 if ac_fn_c_try_link "$LINENO"; then :
9373 case "$LIBEXT" in
9374 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9375 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'` ;;
9376 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9377 if test "x$ac_cv_lib_soname_GL" = x; then :
9378 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9379 fi ;;
9380 esac
9382 rm -f core conftest.err conftest.$ac_objext \
9383 conftest$ac_exeext conftest.$ac_ext
9384 LIBS=$ac_check_soname_save_LIBS
9386 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9388 $as_echo "not found" >&6; }
9389 if test -f /usr/X11R6/lib/libGL.a
9390 then
9391 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
9392 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
9393 else
9394 opengl_msg="No OpenGL library found on this system."
9396 else
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9398 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9400 cat >>confdefs.h <<_ACEOF
9401 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9402 _ACEOF
9404 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"
9406 else
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9408 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9410 cat >>confdefs.h <<_ACEOF
9411 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9412 _ACEOF
9414 OPENGL_LIBS="-lGL"
9416 if test "x$with_glu" != "xno"
9417 then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
9419 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
9420 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
9421 $as_echo_n "(cached) " >&6
9422 else
9423 ac_check_lib_save_LIBS=$LIBS
9424 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9428 /* Override any GCC internal prototype to avoid an error.
9429 Use char because int might match the return type of a GCC
9430 builtin and then its argument prototype would still apply. */
9431 #ifdef __cplusplus
9432 extern "C"
9433 #endif
9434 char gluLookAt ();
9436 main ()
9438 return gluLookAt ();
9440 return 0;
9442 _ACEOF
9443 if ac_fn_c_try_link "$LINENO"; then :
9444 ac_cv_lib_GLU_gluLookAt=yes
9445 else
9446 ac_cv_lib_GLU_gluLookAt=no
9448 rm -f core conftest.err conftest.$ac_objext \
9449 conftest$ac_exeext conftest.$ac_ext
9450 LIBS=$ac_check_lib_save_LIBS
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
9453 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
9454 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
9458 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
9459 case "x$with_glu" in
9460 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
9461 xno) ;;
9462 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9463 This is an error since --with-glu was requested." "$LINENO" 5 ;;
9464 esac
9468 if test "x$with_osmesa" != "xno"
9469 then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
9471 $as_echo_n "checking for -lOSMesa... " >&6; }
9472 if ${ac_cv_lib_soname_OSMesa+:} false; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 ac_check_soname_save_LIBS=$LIBS
9476 LIBS="-lOSMesa $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9480 /* Override any GCC internal prototype to avoid an error.
9481 Use char because int might match the return type of a GCC
9482 builtin and then its argument prototype would still apply. */
9483 #ifdef __cplusplus
9484 extern "C"
9485 #endif
9486 char glAccum ();
9488 main ()
9490 return glAccum ();
9492 return 0;
9494 _ACEOF
9495 if ac_fn_c_try_link "$LINENO"; then :
9496 case "$LIBEXT" in
9497 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9498 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'` ;;
9499 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9500 if test "x$ac_cv_lib_soname_OSMesa" = x; then :
9501 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9502 fi ;;
9503 esac
9505 rm -f core conftest.err conftest.$ac_objext \
9506 conftest$ac_exeext conftest.$ac_ext
9507 LIBS=$ac_check_soname_save_LIBS
9509 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9511 $as_echo "not found" >&6; }
9513 else
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
9515 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
9517 cat >>confdefs.h <<_ACEOF
9518 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
9519 _ACEOF
9523 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9524 case "x$with_osmesa" in
9525 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
9526 xno) ;;
9527 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
9528 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
9529 esac
9533 if test -n "$opengl_msg"; then :
9534 case "x$with_opengl" in
9535 x) as_fn_append wine_warnings "|$opengl_msg
9536 OpenGL and Direct3D won't be supported." ;;
9537 xno) ;;
9538 *) as_fn_error $? "$opengl_msg
9539 OpenGL and Direct3D won't be supported.
9540 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9541 esac
9544 CPPFLAGS="$ac_save_CPPFLAGS"
9545 else
9546 XLIB=""
9547 X_CFLAGS=""
9548 X_LIBS=""
9549 enable_winex11_drv=${enable_winex11_drv:-no}
9551 if test "x$XLIB" = "x"; then :
9552 case "x$with_x" in
9553 xno) ;;
9554 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9555 without X support, which probably isn't what you want. You will need
9556 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9557 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9558 esac
9561 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
9563 if test "$ac_cv_header_CL_cl_h" = "yes"
9564 then
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9566 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9567 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 ac_check_lib_save_LIBS=$LIBS
9571 LIBS="-lOpenCL $LIBS"
9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9575 /* Override any GCC internal prototype to avoid an error.
9576 Use char because int might match the return type of a GCC
9577 builtin and then its argument prototype would still apply. */
9578 #ifdef __cplusplus
9579 extern "C"
9580 #endif
9581 char clGetPlatformInfo ();
9583 main ()
9585 return clGetPlatformInfo ();
9587 return 0;
9589 _ACEOF
9590 if ac_fn_c_try_link "$LINENO"; then :
9591 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9592 else
9593 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9595 rm -f core conftest.err conftest.$ac_objext \
9596 conftest$ac_exeext conftest.$ac_ext
9597 LIBS=$ac_check_lib_save_LIBS
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9600 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9601 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9602 LIBOPENCL="-lOpenCL"
9607 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9608 case "x$with_opencl" in
9609 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9610 xno) ;;
9611 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9612 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9613 esac
9615 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9618 if test "x$with_xml" != "xno"
9619 then
9620 if test -n "$XML2_CFLAGS"; then :
9622 elif test -n "$PKG_CONFIG"; then :
9623 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
9625 test "$cross_compiling" = yes || XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
9626 if test -n "$XML2_LIBS"; then :
9628 elif test -n "$PKG_CONFIG"; then :
9629 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
9631 test "$cross_compiling" = yes || XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
9632 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
9633 ac_save_CPPFLAGS=$CPPFLAGS
9634 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
9635 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9636 do :
9637 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9638 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9639 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9640 cat >>confdefs.h <<_ACEOF
9641 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9642 _ACEOF
9646 done
9648 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"
9649 then
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9651 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9652 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9653 $as_echo_n "(cached) " >&6
9654 else
9655 ac_check_lib_save_LIBS=$LIBS
9656 LIBS="-lxml2 $XML2_LIBS $LIBS"
9657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658 /* end confdefs.h. */
9660 /* Override any GCC internal prototype to avoid an error.
9661 Use char because int might match the return type of a GCC
9662 builtin and then its argument prototype would still apply. */
9663 #ifdef __cplusplus
9664 extern "C"
9665 #endif
9666 char xmlParseMemory ();
9668 main ()
9670 return xmlParseMemory ();
9672 return 0;
9674 _ACEOF
9675 if ac_fn_c_try_link "$LINENO"; then :
9676 ac_cv_lib_xml2_xmlParseMemory=yes
9677 else
9678 ac_cv_lib_xml2_xmlParseMemory=no
9680 rm -f core conftest.err conftest.$ac_objext \
9681 conftest$ac_exeext conftest.$ac_ext
9682 LIBS=$ac_check_lib_save_LIBS
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9685 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9686 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9688 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9690 else
9691 XML2_LIBS=""
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9695 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9696 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9697 $as_echo_n "(cached) " >&6
9698 else
9699 ac_check_lib_save_LIBS=$LIBS
9700 LIBS="-lxml2 $XML2_LIBS $LIBS"
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h. */
9704 /* Override any GCC internal prototype to avoid an error.
9705 Use char because int might match the return type of a GCC
9706 builtin and then its argument prototype would still apply. */
9707 #ifdef __cplusplus
9708 extern "C"
9709 #endif
9710 char xmlReadMemory ();
9712 main ()
9714 return xmlReadMemory ();
9716 return 0;
9718 _ACEOF
9719 if ac_fn_c_try_link "$LINENO"; then :
9720 ac_cv_lib_xml2_xmlReadMemory=yes
9721 else
9722 ac_cv_lib_xml2_xmlReadMemory=no
9724 rm -f core conftest.err conftest.$ac_objext \
9725 conftest$ac_exeext conftest.$ac_ext
9726 LIBS=$ac_check_lib_save_LIBS
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9729 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9730 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9732 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9737 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9738 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9741 ac_check_lib_save_LIBS=$LIBS
9742 LIBS="-lxml2 $XML2_LIBS $LIBS"
9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744 /* end confdefs.h. */
9746 /* Override any GCC internal prototype to avoid an error.
9747 Use char because int might match the return type of a GCC
9748 builtin and then its argument prototype would still apply. */
9749 #ifdef __cplusplus
9750 extern "C"
9751 #endif
9752 char xmlNewDocPI ();
9754 main ()
9756 return xmlNewDocPI ();
9758 return 0;
9760 _ACEOF
9761 if ac_fn_c_try_link "$LINENO"; then :
9762 ac_cv_lib_xml2_xmlNewDocPI=yes
9763 else
9764 ac_cv_lib_xml2_xmlNewDocPI=no
9766 rm -f core conftest.err conftest.$ac_objext \
9767 conftest$ac_exeext conftest.$ac_ext
9768 LIBS=$ac_check_lib_save_LIBS
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9771 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9772 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9774 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9779 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9780 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9781 $as_echo_n "(cached) " >&6
9782 else
9783 ac_check_lib_save_LIBS=$LIBS
9784 LIBS="-lxml2 $XML2_LIBS $LIBS"
9785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9786 /* end confdefs.h. */
9788 /* Override any GCC internal prototype to avoid an error.
9789 Use char because int might match the return type of a GCC
9790 builtin and then its argument prototype would still apply. */
9791 #ifdef __cplusplus
9792 extern "C"
9793 #endif
9794 char xmlSchemaSetParserStructuredErrors ();
9796 main ()
9798 return xmlSchemaSetParserStructuredErrors ();
9800 return 0;
9802 _ACEOF
9803 if ac_fn_c_try_link "$LINENO"; then :
9804 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9805 else
9806 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9808 rm -f core conftest.err conftest.$ac_objext \
9809 conftest$ac_exeext conftest.$ac_ext
9810 LIBS=$ac_check_lib_save_LIBS
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9813 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9814 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9816 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9821 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9822 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9823 $as_echo_n "(cached) " >&6
9824 else
9825 ac_check_lib_save_LIBS=$LIBS
9826 LIBS="-lxml2 $XML2_LIBS $LIBS"
9827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828 /* end confdefs.h. */
9830 /* Override any GCC internal prototype to avoid an error.
9831 Use char because int might match the return type of a GCC
9832 builtin and then its argument prototype would still apply. */
9833 #ifdef __cplusplus
9834 extern "C"
9835 #endif
9836 char xmlSchemaSetValidStructuredErrors ();
9838 main ()
9840 return xmlSchemaSetValidStructuredErrors ();
9842 return 0;
9844 _ACEOF
9845 if ac_fn_c_try_link "$LINENO"; then :
9846 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9847 else
9848 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9850 rm -f core conftest.err conftest.$ac_objext \
9851 conftest$ac_exeext conftest.$ac_ext
9852 LIBS=$ac_check_lib_save_LIBS
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9855 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9856 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9858 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9863 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9864 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 ac_check_lib_save_LIBS=$LIBS
9868 LIBS="-lxml2 $XML2_LIBS $LIBS"
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9872 /* Override any GCC internal prototype to avoid an error.
9873 Use char because int might match the return type of a GCC
9874 builtin and then its argument prototype would still apply. */
9875 #ifdef __cplusplus
9876 extern "C"
9877 #endif
9878 char xmlFirstElementChild ();
9880 main ()
9882 return xmlFirstElementChild ();
9884 return 0;
9886 _ACEOF
9887 if ac_fn_c_try_link "$LINENO"; then :
9888 ac_cv_lib_xml2_xmlFirstElementChild=yes
9889 else
9890 ac_cv_lib_xml2_xmlFirstElementChild=no
9892 rm -f core conftest.err conftest.$ac_objext \
9893 conftest$ac_exeext conftest.$ac_ext
9894 LIBS=$ac_check_lib_save_LIBS
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9897 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9898 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9900 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9904 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9906 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9908 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9912 else
9913 XML2_CFLAGS=""
9914 XML2_LIBS=""
9916 CPPFLAGS=$ac_save_CPPFLAGS
9917 test -z "$XML2_CFLAGS" || XML2_CFLAGS=`echo " $XML2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
9918 test -z "$XML2_LIBS" || XML2_LIBS=`echo " $XML2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
9921 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9922 case "x$with_xml" in
9923 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9924 xno) ;;
9925 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9926 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9927 esac
9930 if test "x$with_xslt" != "xno"
9931 then
9932 if test -n "$XSLT_CFLAGS"; then :
9934 elif test -n "$PKG_CONFIG"; then :
9935 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
9937 test "$cross_compiling" = yes || XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
9938 if test -n "$XSLT_LIBS"; then :
9940 elif test -n "$PKG_CONFIG"; then :
9941 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
9943 test "$cross_compiling" = yes || XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
9944 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
9945 ac_save_CPPFLAGS=$CPPFLAGS
9946 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
9947 for ac_header in libxslt/pattern.h libxslt/transform.h
9948 do :
9949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9950 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9951 # include <libxslt/pattern.h>
9952 #endif
9954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9955 cat >>confdefs.h <<_ACEOF
9956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9957 _ACEOF
9961 done
9963 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9964 then
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9966 $as_echo_n "checking for -lxslt... " >&6; }
9967 if ${ac_cv_lib_soname_xslt+:} false; then :
9968 $as_echo_n "(cached) " >&6
9969 else
9970 ac_check_soname_save_LIBS=$LIBS
9971 LIBS="-lxslt $XSLT_LIBS $LIBS"
9972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973 /* end confdefs.h. */
9975 /* Override any GCC internal prototype to avoid an error.
9976 Use char because int might match the return type of a GCC
9977 builtin and then its argument prototype would still apply. */
9978 #ifdef __cplusplus
9979 extern "C"
9980 #endif
9981 char xsltCompilePattern ();
9983 main ()
9985 return xsltCompilePattern ();
9987 return 0;
9989 _ACEOF
9990 if ac_fn_c_try_link "$LINENO"; then :
9991 case "$LIBEXT" in
9992 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9993 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'` ;;
9994 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9995 if test "x$ac_cv_lib_soname_xslt" = x; then :
9996 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9997 fi ;;
9998 esac
10000 rm -f core conftest.err conftest.$ac_objext \
10001 conftest$ac_exeext conftest.$ac_ext
10002 LIBS=$ac_check_soname_save_LIBS
10004 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10006 $as_echo "not found" >&6; }
10008 else
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
10010 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
10012 cat >>confdefs.h <<_ACEOF
10013 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
10014 _ACEOF
10018 else
10019 XSLT_CFLAGS=""
10021 CPPFLAGS=$ac_save_CPPFLAGS
10022 test -z "$XSLT_CFLAGS" || XSLT_CFLAGS=`echo " $XSLT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10023 test -z "$XSLT_LIBS" || XSLT_LIBS=`echo " $XSLT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10026 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10027 case "x$with_xslt" in
10028 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
10029 xno) ;;
10030 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
10031 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
10032 esac
10035 if test "x$with_dbus" != "xno"
10036 then
10037 if test -n "$DBUS_CFLAGS"; then :
10039 elif test -n "$PKG_CONFIG"; then :
10040 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
10043 if test -n "$DBUS_LIBS"; then :
10045 elif test -n "$PKG_CONFIG"; then :
10046 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
10050 ac_save_CPPFLAGS=$CPPFLAGS
10051 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
10052 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
10053 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
10055 $as_echo_n "checking for -ldbus-1... " >&6; }
10056 if ${ac_cv_lib_soname_dbus_1+:} false; then :
10057 $as_echo_n "(cached) " >&6
10058 else
10059 ac_check_soname_save_LIBS=$LIBS
10060 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10064 /* Override any GCC internal prototype to avoid an error.
10065 Use char because int might match the return type of a GCC
10066 builtin and then its argument prototype would still apply. */
10067 #ifdef __cplusplus
10068 extern "C"
10069 #endif
10070 char dbus_connection_close ();
10072 main ()
10074 return dbus_connection_close ();
10076 return 0;
10078 _ACEOF
10079 if ac_fn_c_try_link "$LINENO"; then :
10080 case "$LIBEXT" in
10081 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10082 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'` ;;
10083 *) 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'`
10084 if test "x$ac_cv_lib_soname_dbus_1" = x; then :
10085 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10086 fi ;;
10087 esac
10089 rm -f core conftest.err conftest.$ac_objext \
10090 conftest$ac_exeext conftest.$ac_ext
10091 LIBS=$ac_check_soname_save_LIBS
10093 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10095 $as_echo "not found" >&6; }
10096 DBUS_CFLAGS=""
10097 else
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
10099 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
10101 cat >>confdefs.h <<_ACEOF
10102 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
10103 _ACEOF
10107 else
10108 DBUS_CFLAGS=""
10112 CPPFLAGS=$ac_save_CPPFLAGS
10113 test -z "$DBUS_CFLAGS" || DBUS_CFLAGS=`echo " $DBUS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10114 test -z "$DBUS_LIBS" || DBUS_LIBS=`echo " $DBUS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10117 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
10118 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10119 case "x$with_dbus" in
10120 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
10121 xno) ;;
10122 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
10123 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
10124 esac
10127 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
10128 then
10129 if test -n "$HAL_CFLAGS"; then :
10131 elif test -n "$PKG_CONFIG"; then :
10132 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
10135 if test -n "$HAL_LIBS"; then :
10137 elif test -n "$PKG_CONFIG"; then :
10138 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
10141 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
10142 ac_save_CPPFLAGS=$CPPFLAGS
10143 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
10144 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
10145 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
10147 $as_echo_n "checking for -lhal... " >&6; }
10148 if ${ac_cv_lib_soname_hal+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150 else
10151 ac_check_soname_save_LIBS=$LIBS
10152 LIBS="-lhal $HAL_LIBS $LIBS"
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h. */
10156 /* Override any GCC internal prototype to avoid an error.
10157 Use char because int might match the return type of a GCC
10158 builtin and then its argument prototype would still apply. */
10159 #ifdef __cplusplus
10160 extern "C"
10161 #endif
10162 char libhal_ctx_new ();
10164 main ()
10166 return libhal_ctx_new ();
10168 return 0;
10170 _ACEOF
10171 if ac_fn_c_try_link "$LINENO"; then :
10172 case "$LIBEXT" in
10173 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10174 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'` ;;
10175 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10176 if test "x$ac_cv_lib_soname_hal" = x; then :
10177 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10178 fi ;;
10179 esac
10181 rm -f core conftest.err conftest.$ac_objext \
10182 conftest$ac_exeext conftest.$ac_ext
10183 LIBS=$ac_check_soname_save_LIBS
10185 if test "x$ac_cv_lib_soname_hal" = "x"; then :
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10187 $as_echo "not found" >&6; }
10188 HAL_CFLAGS=""
10189 else
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
10191 $as_echo "$ac_cv_lib_soname_hal" >&6; }
10193 cat >>confdefs.h <<_ACEOF
10194 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
10195 _ACEOF
10199 else
10200 HAL_CFLAGS=""
10204 CPPFLAGS=$ac_save_CPPFLAGS
10205 test -z "$HAL_CFLAGS" || HAL_CFLAGS=`echo " $HAL_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10206 test -z "$HAL_LIBS" || HAL_LIBS=`echo " $HAL_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10208 if test "x$ac_cv_lib_soname_hal" = "x" -a \
10209 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10210 case "x$with_hal" in
10211 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
10212 xno) ;;
10213 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
10214 This is an error since --with-hal was requested." "$LINENO" 5 ;;
10215 esac
10219 if test "x$with_gnutls" != "xno"
10220 then
10221 if test -n "$GNUTLS_CFLAGS"; then :
10223 elif test -n "$PKG_CONFIG"; then :
10224 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
10227 if test -n "$GNUTLS_LIBS"; then :
10229 elif test -n "$PKG_CONFIG"; then :
10230 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
10234 ac_save_CPPFLAGS=$CPPFLAGS
10235 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
10236 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
10237 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h. */
10240 #include <gnutls/gnutls.h>
10241 #include <gnutls/crypto.h>
10243 main ()
10245 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
10247 return 0;
10249 _ACEOF
10250 if ac_fn_c_try_compile "$LINENO"; then :
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
10252 $as_echo_n "checking for -lgnutls... " >&6; }
10253 if ${ac_cv_lib_soname_gnutls+:} false; then :
10254 $as_echo_n "(cached) " >&6
10255 else
10256 ac_check_soname_save_LIBS=$LIBS
10257 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
10258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10259 /* end confdefs.h. */
10261 /* Override any GCC internal prototype to avoid an error.
10262 Use char because int might match the return type of a GCC
10263 builtin and then its argument prototype would still apply. */
10264 #ifdef __cplusplus
10265 extern "C"
10266 #endif
10267 char gnutls_global_init ();
10269 main ()
10271 return gnutls_global_init ();
10273 return 0;
10275 _ACEOF
10276 if ac_fn_c_try_link "$LINENO"; then :
10277 case "$LIBEXT" in
10278 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10279 dylib) ac_cv_lib_soname_gnutls=`otool -L conftest$ac_exeext | grep "libgnutls\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libgnutls\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10280 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10281 if test "x$ac_cv_lib_soname_gnutls" = x; then :
10282 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10283 fi ;;
10284 esac
10286 rm -f core conftest.err conftest.$ac_objext \
10287 conftest$ac_exeext conftest.$ac_ext
10288 LIBS=$ac_check_soname_save_LIBS
10290 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10292 $as_echo "not found" >&6; }
10293 GNUTLS_CFLAGS=""
10294 else
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
10296 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
10298 cat >>confdefs.h <<_ACEOF
10299 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
10300 _ACEOF
10305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10306 else
10307 GNUTLS_CFLAGS=""
10311 CPPFLAGS=$ac_save_CPPFLAGS
10312 test -z "$GNUTLS_CFLAGS" || GNUTLS_CFLAGS=`echo " $GNUTLS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10313 test -z "$GNUTLS_LIBS" || GNUTLS_LIBS=`echo " $GNUTLS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10316 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10317 case "x$with_gnutls" in
10318 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
10319 xno) ;;
10320 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
10321 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
10322 esac
10325 CURSESLIBS=""
10326 if test "$ac_cv_header_ncurses_h" = "yes"
10327 then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
10329 $as_echo_n "checking for -lncurses... " >&6; }
10330 if ${ac_cv_lib_soname_ncurses+:} false; then :
10331 $as_echo_n "(cached) " >&6
10332 else
10333 ac_check_soname_save_LIBS=$LIBS
10334 LIBS="-lncurses $LIBS"
10335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10336 /* end confdefs.h. */
10338 /* Override any GCC internal prototype to avoid an error.
10339 Use char because int might match the return type of a GCC
10340 builtin and then its argument prototype would still apply. */
10341 #ifdef __cplusplus
10342 extern "C"
10343 #endif
10344 char waddch ();
10346 main ()
10348 return waddch ();
10350 return 0;
10352 _ACEOF
10353 if ac_fn_c_try_link "$LINENO"; then :
10354 case "$LIBEXT" in
10355 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10356 dylib) ac_cv_lib_soname_ncurses=`otool -L conftest$ac_exeext | grep "libncurses\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libncurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10357 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10358 if test "x$ac_cv_lib_soname_ncurses" = x; then :
10359 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10360 fi ;;
10361 esac
10363 rm -f core conftest.err conftest.$ac_objext \
10364 conftest$ac_exeext conftest.$ac_ext
10365 LIBS=$ac_check_soname_save_LIBS
10367 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10369 $as_echo "not found" >&6; }
10371 else
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
10373 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
10375 cat >>confdefs.h <<_ACEOF
10376 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
10377 _ACEOF
10379 CURSESLIBS="-lncurses"
10381 elif test "$ac_cv_header_curses_h" = "yes"
10382 then
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
10384 $as_echo_n "checking for -lcurses... " >&6; }
10385 if ${ac_cv_lib_soname_curses+:} false; then :
10386 $as_echo_n "(cached) " >&6
10387 else
10388 ac_check_soname_save_LIBS=$LIBS
10389 LIBS="-lcurses $LIBS"
10390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10391 /* end confdefs.h. */
10393 /* Override any GCC internal prototype to avoid an error.
10394 Use char because int might match the return type of a GCC
10395 builtin and then its argument prototype would still apply. */
10396 #ifdef __cplusplus
10397 extern "C"
10398 #endif
10399 char waddch ();
10401 main ()
10403 return waddch ();
10405 return 0;
10407 _ACEOF
10408 if ac_fn_c_try_link "$LINENO"; then :
10409 case "$LIBEXT" in
10410 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10411 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'` ;;
10412 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10413 if test "x$ac_cv_lib_soname_curses" = x; then :
10414 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10415 fi ;;
10416 esac
10418 rm -f core conftest.err conftest.$ac_objext \
10419 conftest$ac_exeext conftest.$ac_ext
10420 LIBS=$ac_check_soname_save_LIBS
10422 if test "x$ac_cv_lib_soname_curses" = "x"; then :
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10424 $as_echo "not found" >&6; }
10426 else
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
10428 $as_echo "$ac_cv_lib_soname_curses" >&6; }
10430 cat >>confdefs.h <<_ACEOF
10431 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
10432 _ACEOF
10434 CURSESLIBS="-lcurses"
10437 ac_save_LIBS="$LIBS"
10438 LIBS="$LIBS $CURSESLIBS"
10439 for ac_func in mousemask
10440 do :
10441 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
10442 if test "x$ac_cv_func_mousemask" = xyes; then :
10443 cat >>confdefs.h <<_ACEOF
10444 #define HAVE_MOUSEMASK 1
10445 _ACEOF
10448 done
10450 LIBS="$ac_save_LIBS"
10451 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
10452 case "x$with_curses" in
10453 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
10454 xno) ;;
10455 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
10456 This is an error since --with-curses was requested." "$LINENO" 5 ;;
10457 esac
10460 if test "x$with_sane" != "xno"
10461 then
10462 if test -n "$SANE_CFLAGS"; then :
10464 elif test -n "$PKG_CONFIG"; then :
10465 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
10467 test "$cross_compiling" = yes || SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
10468 if test -n "$SANE_LIBS"; then :
10470 elif test -n "$PKG_CONFIG"; then :
10471 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
10473 test "$cross_compiling" = yes || SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
10475 ac_save_CPPFLAGS=$CPPFLAGS
10476 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
10477 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
10478 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
10480 $as_echo_n "checking for -lsane... " >&6; }
10481 if ${ac_cv_lib_soname_sane+:} false; then :
10482 $as_echo_n "(cached) " >&6
10483 else
10484 ac_check_soname_save_LIBS=$LIBS
10485 LIBS="-lsane $SANE_LIBS $LIBS"
10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10489 /* Override any GCC internal prototype to avoid an error.
10490 Use char because int might match the return type of a GCC
10491 builtin and then its argument prototype would still apply. */
10492 #ifdef __cplusplus
10493 extern "C"
10494 #endif
10495 char sane_init ();
10497 main ()
10499 return sane_init ();
10501 return 0;
10503 _ACEOF
10504 if ac_fn_c_try_link "$LINENO"; then :
10505 case "$LIBEXT" in
10506 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10507 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'` ;;
10508 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10509 if test "x$ac_cv_lib_soname_sane" = x; then :
10510 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10511 fi ;;
10512 esac
10514 rm -f core conftest.err conftest.$ac_objext \
10515 conftest$ac_exeext conftest.$ac_ext
10516 LIBS=$ac_check_soname_save_LIBS
10518 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10520 $as_echo "not found" >&6; }
10521 SANE_CFLAGS=""
10522 else
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
10524 $as_echo "$ac_cv_lib_soname_sane" >&6; }
10526 cat >>confdefs.h <<_ACEOF
10527 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10528 _ACEOF
10532 else
10533 SANE_CFLAGS=""
10537 CPPFLAGS=$ac_save_CPPFLAGS
10538 test -z "$SANE_CFLAGS" || SANE_CFLAGS=`echo " $SANE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10539 test -z "$SANE_LIBS" || SANE_LIBS=`echo " $SANE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10542 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10543 case "x$with_sane" in
10544 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10545 xno) ;;
10546 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10547 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10548 esac
10551 if test "x$with_v4l" != "xno"
10552 then
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10554 $as_echo_n "checking for -lv4l1... " >&6; }
10555 if ${ac_cv_lib_soname_v4l1+:} false; then :
10556 $as_echo_n "(cached) " >&6
10557 else
10558 ac_check_soname_save_LIBS=$LIBS
10559 LIBS="-lv4l1 $LIBS"
10560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10561 /* end confdefs.h. */
10563 /* Override any GCC internal prototype to avoid an error.
10564 Use char because int might match the return type of a GCC
10565 builtin and then its argument prototype would still apply. */
10566 #ifdef __cplusplus
10567 extern "C"
10568 #endif
10569 char v4l1_open ();
10571 main ()
10573 return v4l1_open ();
10575 return 0;
10577 _ACEOF
10578 if ac_fn_c_try_link "$LINENO"; then :
10579 case "$LIBEXT" in
10580 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10581 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'` ;;
10582 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10583 if test "x$ac_cv_lib_soname_v4l1" = x; then :
10584 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10585 fi ;;
10586 esac
10588 rm -f core conftest.err conftest.$ac_objext \
10589 conftest$ac_exeext conftest.$ac_ext
10590 LIBS=$ac_check_soname_save_LIBS
10592 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10594 $as_echo "not found" >&6; }
10596 else
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10598 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10600 cat >>confdefs.h <<_ACEOF
10601 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10602 _ACEOF
10607 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10608 case "x$with_v4l" in
10609 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10610 xno) ;;
10611 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10612 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10613 esac
10616 if test "x$with_gphoto" != "xno"
10617 then
10618 if test -n "$GPHOTO2_CFLAGS"; then :
10620 elif test -n "$PKG_CONFIG"; then :
10621 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
10623 test "$cross_compiling" = yes || GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
10624 if test -n "$GPHOTO2_LIBS"; then :
10626 elif test -n "$PKG_CONFIG"; then :
10627 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
10629 test "$cross_compiling" = yes || GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
10630 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
10631 ac_save_CPPFLAGS=$CPPFLAGS
10632 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
10633 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10634 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10636 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10637 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10638 $as_echo_n "(cached) " >&6
10639 else
10640 ac_check_lib_save_LIBS=$LIBS
10641 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
10642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643 /* end confdefs.h. */
10645 /* Override any GCC internal prototype to avoid an error.
10646 Use char because int might match the return type of a GCC
10647 builtin and then its argument prototype would still apply. */
10648 #ifdef __cplusplus
10649 extern "C"
10650 #endif
10651 char gp_camera_new ();
10653 main ()
10655 return gp_camera_new ();
10657 return 0;
10659 _ACEOF
10660 if ac_fn_c_try_link "$LINENO"; then :
10661 ac_cv_lib_gphoto2_gp_camera_new=yes
10662 else
10663 ac_cv_lib_gphoto2_gp_camera_new=no
10665 rm -f core conftest.err conftest.$ac_objext \
10666 conftest$ac_exeext conftest.$ac_ext
10667 LIBS=$ac_check_lib_save_LIBS
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10670 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10671 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10673 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10675 else
10676 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
10679 else
10680 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
10684 CPPFLAGS=$ac_save_CPPFLAGS
10685 test -z "$GPHOTO2_CFLAGS" || GPHOTO2_CFLAGS=`echo " $GPHOTO2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10686 test -z "$GPHOTO2_LIBS" || GPHOTO2_LIBS=`echo " $GPHOTO2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10688 if test -n "$GPHOTO2_PORT_CFLAGS"; then :
10690 elif test -n "$PKG_CONFIG"; then :
10691 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
10693 test "$cross_compiling" = yes || GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
10694 if test -n "$GPHOTO2_PORT_LIBS"; then :
10696 elif test -n "$PKG_CONFIG"; then :
10697 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
10699 test "$cross_compiling" = yes || GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
10700 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
10701 ac_save_CPPFLAGS=$CPPFLAGS
10702 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
10703 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
10704 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
10706 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
10707 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
10708 $as_echo_n "(cached) " >&6
10709 else
10710 ac_check_lib_save_LIBS=$LIBS
10711 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
10712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h. */
10715 /* Override any GCC internal prototype to avoid an error.
10716 Use char because int might match the return type of a GCC
10717 builtin and then its argument prototype would still apply. */
10718 #ifdef __cplusplus
10719 extern "C"
10720 #endif
10721 char gp_port_info_list_new ();
10723 main ()
10725 return gp_port_info_list_new ();
10727 return 0;
10729 _ACEOF
10730 if ac_fn_c_try_link "$LINENO"; then :
10731 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
10732 else
10733 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
10735 rm -f core conftest.err conftest.$ac_objext \
10736 conftest$ac_exeext conftest.$ac_ext
10737 LIBS=$ac_check_lib_save_LIBS
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
10740 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
10741 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
10743 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
10745 else
10746 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
10749 else
10750 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
10754 CPPFLAGS=$ac_save_CPPFLAGS
10755 test -z "$GPHOTO2_PORT_CFLAGS" || GPHOTO2_PORT_CFLAGS=`echo " $GPHOTO2_PORT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10756 test -z "$GPHOTO2_PORT_LIBS" || GPHOTO2_PORT_LIBS=`echo " $GPHOTO2_PORT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10759 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10760 case "x$with_gphoto" in
10761 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10762 xno) ;;
10763 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10764 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10765 esac
10767 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
10768 case "x$with_gphoto" in
10769 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
10770 xno) ;;
10771 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
10772 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10773 esac
10777 if test "$ac_cv_header_resolv_h" = "yes"
10778 then
10779 ac_save_LIBS="$LIBS"
10780 for lib in '' -lresolv
10782 LIBS="$lib $ac_save_LIBS"
10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10785 #ifdef HAVE_NETINET_IN_H
10786 #include <netinet/in.h>
10787 #endif
10788 #include <resolv.h>
10790 main ()
10792 res_query("foo",ns_c_in,0,0,0);
10794 return 0;
10796 _ACEOF
10797 if ac_fn_c_try_link "$LINENO"; then :
10799 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10801 RESOLVLIBS="$lib"
10804 rm -f core conftest.err conftest.$ac_objext \
10805 conftest$ac_exeext conftest.$ac_ext
10806 if test "${RESOLVLIBS+set}" = set; then
10807 break
10809 done
10810 LIBS="$ac_save_LIBS"
10813 if test "x$with_lcms2" != "xno"
10814 then
10815 if test -n "$LCMS2_CFLAGS"; then :
10817 elif test -n "$PKG_CONFIG"; then :
10818 LCMS2_CFLAGS=`$PKG_CONFIG --cflags lcms2 2>/dev/null`
10821 if test -n "$LCMS2_LIBS"; then :
10823 elif test -n "$PKG_CONFIG"; then :
10824 LCMS2_LIBS=`$PKG_CONFIG --libs lcms2 2>/dev/null`
10827 LCMS2_LIBS=${LCMS2_LIBS:-"-llcms2"}
10828 ac_save_CPPFLAGS=$CPPFLAGS
10829 CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS"
10830 for ac_header in lcms2.h
10831 do :
10832 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
10833 if test "x$ac_cv_header_lcms2_h" = xyes; then :
10834 cat >>confdefs.h <<_ACEOF
10835 #define HAVE_LCMS2_H 1
10836 _ACEOF
10840 done
10842 if test "$ac_cv_header_lcms2_h" = "yes"
10843 then
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
10845 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
10846 if ${ac_cv_lib_lcms2_cmsOpenProfileFromFile+:} false; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 ac_check_lib_save_LIBS=$LIBS
10850 LIBS="-llcms2 $LIBS"
10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10854 /* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10857 #ifdef __cplusplus
10858 extern "C"
10859 #endif
10860 char cmsOpenProfileFromFile ();
10862 main ()
10864 return cmsOpenProfileFromFile ();
10866 return 0;
10868 _ACEOF
10869 if ac_fn_c_try_link "$LINENO"; then :
10870 ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
10871 else
10872 ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
10874 rm -f core conftest.err conftest.$ac_objext \
10875 conftest$ac_exeext conftest.$ac_ext
10876 LIBS=$ac_check_lib_save_LIBS
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
10879 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
10880 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = xyes; then :
10882 $as_echo "#define HAVE_LCMS2 1" >>confdefs.h
10884 else
10885 LCMS2_LIBS=""
10888 else
10889 LCMS2_CFLAGS=""
10890 LCMS2_LIBS=""
10892 CPPFLAGS=$ac_save_CPPFLAGS
10893 test -z "$LCMS2_CFLAGS" || LCMS2_CFLAGS=`echo " $LCMS2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10894 test -z "$LCMS2_LIBS" || LCMS2_LIBS=`echo " $LCMS2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10897 if test "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" != "yes"; then :
10898 case "x$with_cms" in
10899 x) as_fn_append wine_notices "|liblcms2 ${notice_platform}development files not found, Color Management won't be supported." ;;
10900 xno) ;;
10901 *) as_fn_error $? "liblcms2 ${notice_platform}development files not found, Color Management won't be supported.
10902 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10903 esac
10906 if test "x$with_freetype" != "xno"
10907 then
10908 if test -n "$FREETYPE_CFLAGS"; then :
10910 elif test -n "$PKG_CONFIG"; then :
10911 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
10913 test "$cross_compiling" = yes || FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
10914 if test -n "$FREETYPE_LIBS"; then :
10916 elif test -n "$PKG_CONFIG"; then :
10917 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
10919 test "$cross_compiling" = yes || FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
10920 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
10921 ac_save_CPPFLAGS=$CPPFLAGS
10922 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10924 $as_echo_n "checking for -lfreetype... " >&6; }
10925 if ${ac_cv_lib_soname_freetype+:} false; then :
10926 $as_echo_n "(cached) " >&6
10927 else
10928 ac_check_soname_save_LIBS=$LIBS
10929 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
10930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10931 /* end confdefs.h. */
10933 /* Override any GCC internal prototype to avoid an error.
10934 Use char because int might match the return type of a GCC
10935 builtin and then its argument prototype would still apply. */
10936 #ifdef __cplusplus
10937 extern "C"
10938 #endif
10939 char FT_Init_FreeType ();
10941 main ()
10943 return FT_Init_FreeType ();
10945 return 0;
10947 _ACEOF
10948 if ac_fn_c_try_link "$LINENO"; then :
10949 case "$LIBEXT" in
10950 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10951 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'` ;;
10952 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10953 if test "x$ac_cv_lib_soname_freetype" = x; then :
10954 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10955 fi ;;
10956 esac
10958 rm -f core conftest.err conftest.$ac_objext \
10959 conftest$ac_exeext conftest.$ac_ext
10960 LIBS=$ac_check_soname_save_LIBS
10962 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10964 $as_echo "not found" >&6; }
10965 ft_lib=no
10966 else
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10968 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10970 cat >>confdefs.h <<_ACEOF
10971 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10972 _ACEOF
10974 ft_lib=yes
10976 if test "$ft_lib" = "yes"
10977 then
10978 for ac_header in ft2build.h \
10979 freetype/freetype.h \
10980 freetype/ftglyph.h \
10981 freetype/fttypes.h \
10982 freetype/tttables.h \
10983 freetype/ftsnames.h \
10984 freetype/ttnameid.h \
10985 freetype/ftoutln.h \
10986 freetype/ftwinfnt.h \
10987 freetype/ftmodapi.h \
10988 freetype/ftlcdfil.h
10989 do :
10990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10991 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10992 # include <ft2build.h>
10993 #endif
10995 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10996 cat >>confdefs.h <<_ACEOF
10997 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10998 _ACEOF
11002 done
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11006 #include <ft2build.h>
11007 #include <freetype/fttrigon.h>
11008 _ACEOF
11009 if ac_fn_c_try_cpp "$LINENO"; then :
11011 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
11013 wine_cv_fttrigon=yes
11014 else
11015 wine_cv_fttrigon=no
11017 rm -f conftest.err conftest.i conftest.$ac_ext
11018 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
11020 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
11022 cat >>confdefs.h <<_ACEOF
11023 #define HAVE_FT_TRUETYPEENGINETYPE 1
11024 _ACEOF
11029 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
11030 then
11032 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11034 else
11035 FREETYPE_LIBS=""
11037 else
11038 FREETYPE_LIBS=""
11040 CPPFLAGS=$ac_save_CPPFLAGS
11041 test -z "$FREETYPE_CFLAGS" || FREETYPE_CFLAGS=`echo " $FREETYPE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11042 test -z "$FREETYPE_LIBS" || FREETYPE_LIBS=`echo " $FREETYPE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11045 if test "x$ac_cv_header_freetype_freetype_h" != xyes -o "x$wine_cv_fttrigon" != xyes; then :
11046 case "x$with_freetype" in
11047 xno) ;;
11048 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
11049 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
11050 esac
11052 test "x$ac_cv_header_freetype_freetype_h" = xyes -a "x$wine_cv_fttrigon" = xyes || enable_fonts=${enable_fonts:-no}
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
11055 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
11056 if ${ac_cv_c_ppdev+:} false; then :
11057 $as_echo_n "(cached) " >&6
11058 else
11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11061 #ifdef HAVE_SYS_IOCTL_H
11062 # include <sys/ioctl.h>
11063 #endif
11064 #include <linux/ppdev.h>
11066 main ()
11068 ioctl (1,PPCLAIM,0)
11070 return 0;
11072 _ACEOF
11073 if ac_fn_c_try_compile "$LINENO"; then :
11074 ac_cv_c_ppdev="yes"
11075 else
11076 ac_cv_c_ppdev="no"
11078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
11081 $as_echo "$ac_cv_c_ppdev" >&6; }
11082 if test "$ac_cv_c_ppdev" = "yes"
11083 then
11085 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
11089 ac_wine_check_funcs_save_LIBS="$LIBS"
11090 LIBS="$LIBS $LIBPTHREAD"
11091 for ac_func in \
11092 pthread_attr_get_np \
11093 pthread_getattr_np \
11094 pthread_getthreadid_np \
11095 pthread_get_stackaddr_np \
11096 pthread_get_stacksize_np
11097 do :
11098 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11099 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11100 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11101 cat >>confdefs.h <<_ACEOF
11102 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11103 _ACEOF
11106 done
11108 LIBS="$ac_wine_check_funcs_save_LIBS"
11110 if test "$ac_cv_header_zlib_h" = "yes"
11111 then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11113 $as_echo_n "checking for inflate in -lz... " >&6; }
11114 if ${ac_cv_lib_z_inflate+:} false; then :
11115 $as_echo_n "(cached) " >&6
11116 else
11117 ac_check_lib_save_LIBS=$LIBS
11118 LIBS="-lz $LIBS"
11119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h. */
11122 /* Override any GCC internal prototype to avoid an error.
11123 Use char because int might match the return type of a GCC
11124 builtin and then its argument prototype would still apply. */
11125 #ifdef __cplusplus
11126 extern "C"
11127 #endif
11128 char inflate ();
11130 main ()
11132 return inflate ();
11134 return 0;
11136 _ACEOF
11137 if ac_fn_c_try_link "$LINENO"; then :
11138 ac_cv_lib_z_inflate=yes
11139 else
11140 ac_cv_lib_z_inflate=no
11142 rm -f core conftest.err conftest.$ac_objext \
11143 conftest$ac_exeext conftest.$ac_ext
11144 LIBS=$ac_check_lib_save_LIBS
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
11147 $as_echo "$ac_cv_lib_z_inflate" >&6; }
11148 if test "x$ac_cv_lib_z_inflate" = xyes; then :
11150 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
11152 ZLIB="-lz"
11157 if test "x$ZLIB" = "x"; then :
11158 case "x$with_zlib" in
11159 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
11160 xno) ;;
11161 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
11162 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
11163 esac
11166 if test "x$enable_tools" != xno
11167 then
11168 if test "$ac_cv_header_gettext_po_h" = "yes"
11169 then
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
11171 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
11172 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
11173 $as_echo_n "(cached) " >&6
11174 else
11175 ac_check_lib_save_LIBS=$LIBS
11176 LIBS="-lgettextpo $LIBS"
11177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11178 /* end confdefs.h. */
11180 /* Override any GCC internal prototype to avoid an error.
11181 Use char because int might match the return type of a GCC
11182 builtin and then its argument prototype would still apply. */
11183 #ifdef __cplusplus
11184 extern "C"
11185 #endif
11186 char po_message_msgctxt ();
11188 main ()
11190 return po_message_msgctxt ();
11192 return 0;
11194 _ACEOF
11195 if ac_fn_c_try_link "$LINENO"; then :
11196 ac_cv_lib_gettextpo_po_message_msgctxt=yes
11197 else
11198 ac_cv_lib_gettextpo_po_message_msgctxt=no
11200 rm -f core conftest.err conftest.$ac_objext \
11201 conftest$ac_exeext conftest.$ac_ext
11202 LIBS=$ac_check_lib_save_LIBS
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
11205 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
11206 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
11208 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
11210 LIBGETTEXTPO="-lgettextpo"
11215 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
11216 case "x$with_gettextpo" in
11217 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
11218 xno) ;;
11219 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
11220 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
11221 esac
11225 if test "x$with_gstreamer" != "xno"
11226 then
11227 if test -n "$GSTREAMER_CFLAGS"; then :
11229 elif test -n "$PKG_CONFIG"; then :
11230 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
11233 if test -n "$GSTREAMER_LIBS"; then :
11235 elif test -n "$PKG_CONFIG"; then :
11236 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
11240 ac_save_CPPFLAGS=$CPPFLAGS
11241 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
11242 ac_gst_incl=""
11243 for i in $GSTREAMER_CFLAGS
11245 case "$i" in
11246 -I*) ac_gst_incl="$ac_gst_incl $i";;
11247 esac
11248 done
11249 GSTREAMER_CFLAGS=$ac_gst_incl
11250 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
11251 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
11252 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
11253 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
11254 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
11256 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
11257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11258 /* end confdefs.h. */
11259 #include <gst/app/gstappsink.h>
11261 main ()
11263 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
11265 return 0;
11267 _ACEOF
11268 if ac_fn_c_try_compile "$LINENO"; then :
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11270 $as_echo "yes" >&6; }
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
11272 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
11273 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
11274 $as_echo_n "(cached) " >&6
11275 else
11276 ac_check_lib_save_LIBS=$LIBS
11277 LIBS="-lgstreamer-0.10 $LIBS"
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11281 /* Override any GCC internal prototype to avoid an error.
11282 Use char because int might match the return type of a GCC
11283 builtin and then its argument prototype would still apply. */
11284 #ifdef __cplusplus
11285 extern "C"
11286 #endif
11287 char gst_pad_get_caps_reffed ();
11289 main ()
11291 return gst_pad_get_caps_reffed ();
11293 return 0;
11295 _ACEOF
11296 if ac_fn_c_try_link "$LINENO"; then :
11297 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
11298 else
11299 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
11301 rm -f core conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11303 LIBS=$ac_check_lib_save_LIBS
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
11306 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
11307 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
11309 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
11310 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313 ac_check_lib_save_LIBS=$LIBS
11314 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
11315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h. */
11318 /* Override any GCC internal prototype to avoid an error.
11319 Use char because int might match the return type of a GCC
11320 builtin and then its argument prototype would still apply. */
11321 #ifdef __cplusplus
11322 extern "C"
11323 #endif
11324 char gst_app_buffer_new ();
11326 main ()
11328 return gst_app_buffer_new ();
11330 return 0;
11332 _ACEOF
11333 if ac_fn_c_try_link "$LINENO"; then :
11334 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
11335 else
11336 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
11338 rm -f core conftest.err conftest.$ac_objext \
11339 conftest$ac_exeext conftest.$ac_ext
11340 LIBS=$ac_check_lib_save_LIBS
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
11343 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
11344 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
11350 else
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352 $as_echo "no" >&6; }
11354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11358 else
11359 GSTREAMER_CFLAGS=""
11363 CPPFLAGS=$ac_save_CPPFLAGS
11364 test -z "$GSTREAMER_CFLAGS" || GSTREAMER_CFLAGS=`echo " $GSTREAMER_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11365 test -z "$GSTREAMER_LIBS" || GSTREAMER_LIBS=`echo " $GSTREAMER_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11368 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
11369 case "x$with_gstreamer" in
11370 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
11371 xno) ;;
11372 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
11373 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
11374 esac
11376 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
11378 ALSALIBS=""
11380 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11381 then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
11383 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
11384 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
11385 $as_echo_n "(cached) " >&6
11386 else
11387 ac_check_lib_save_LIBS=$LIBS
11388 LIBS="-lasound $LIBS"
11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h. */
11392 /* Override any GCC internal prototype to avoid an error.
11393 Use char because int might match the return type of a GCC
11394 builtin and then its argument prototype would still apply. */
11395 #ifdef __cplusplus
11396 extern "C"
11397 #endif
11398 char snd_pcm_hw_params_get_access_mask ();
11400 main ()
11402 return snd_pcm_hw_params_get_access_mask ();
11404 return 0;
11406 _ACEOF
11407 if ac_fn_c_try_link "$LINENO"; then :
11408 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
11409 else
11410 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
11412 rm -f core conftest.err conftest.$ac_objext \
11413 conftest$ac_exeext conftest.$ac_ext
11414 LIBS=$ac_check_lib_save_LIBS
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
11417 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
11418 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
11419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11421 #ifdef HAVE_ALSA_ASOUNDLIB_H
11422 #include <alsa/asoundlib.h>
11423 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11424 #include <sys/asoundlib.h>
11425 #endif
11427 main ()
11429 snd_pcm_hw_params_get_access_mask(NULL, NULL)
11431 return 0;
11433 _ACEOF
11434 if ac_fn_c_try_compile "$LINENO"; then :
11435 ALSALIBS="-lasound"
11437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11442 if test "x$with_oss" != xno
11443 then
11444 ac_save_CPPFLAGS="$CPPFLAGS"
11445 if test -f /etc/oss.conf
11446 then
11447 . /etc/oss.conf
11449 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
11450 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
11451 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11452 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
11453 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
11455 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
11457 cat >>confdefs.h <<_ACEOF
11458 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
11459 _ACEOF
11461 OSS4INCL="$ac_oss_incl"
11468 CPPFLAGS="$ac_save_CPPFLAGS"
11469 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
11470 then
11471 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
11475 if test "x$with_capi" != "xno"
11476 then
11477 if test -n "$CAPI20_CFLAGS"; then :
11479 elif test -n "$PKG_CONFIG"; then :
11480 CAPI20_CFLAGS=`$PKG_CONFIG --cflags capi20 2>/dev/null`
11483 if test -n "$CAPI20_LIBS"; then :
11485 elif test -n "$PKG_CONFIG"; then :
11486 CAPI20_LIBS=`$PKG_CONFIG --libs capi20 2>/dev/null`
11490 ac_save_CPPFLAGS=$CPPFLAGS
11491 CPPFLAGS="$CPPFLAGS $CAPI20_CFLAGS"
11492 for ac_header in capi20.h linux/capi.h
11493 do :
11494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11495 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define __user
11497 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11498 cat >>confdefs.h <<_ACEOF
11499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11500 _ACEOF
11504 done
11506 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
11507 then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
11509 $as_echo_n "checking for -lcapi20... " >&6; }
11510 if ${ac_cv_lib_soname_capi20+:} false; then :
11511 $as_echo_n "(cached) " >&6
11512 else
11513 ac_check_soname_save_LIBS=$LIBS
11514 LIBS="-lcapi20 $CAPI20_LIBS $LIBS"
11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h. */
11518 /* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
11521 #ifdef __cplusplus
11522 extern "C"
11523 #endif
11524 char capi20_register ();
11526 main ()
11528 return capi20_register ();
11530 return 0;
11532 _ACEOF
11533 if ac_fn_c_try_link "$LINENO"; then :
11534 case "$LIBEXT" in
11535 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11536 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'` ;;
11537 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11538 if test "x$ac_cv_lib_soname_capi20" = x; then :
11539 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11540 fi ;;
11541 esac
11543 rm -f core conftest.err conftest.$ac_objext \
11544 conftest$ac_exeext conftest.$ac_ext
11545 LIBS=$ac_check_soname_save_LIBS
11547 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11549 $as_echo "not found" >&6; }
11551 else
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11553 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11555 cat >>confdefs.h <<_ACEOF
11556 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11557 _ACEOF
11562 CPPFLAGS=$ac_save_CPPFLAGS
11563 test -z "$CAPI20_CFLAGS" || CAPI20_CFLAGS=`echo " $CAPI20_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11564 test -z "$CAPI20_LIBS" || CAPI20_LIBS=`echo " $CAPI20_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11567 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11568 case "x$with_capi" in
11569 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11570 xno) ;;
11571 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11572 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11573 esac
11576 CUPSINCL=""
11578 if test "x$with_cups" != "xno"
11579 then
11580 ac_save_CPPFLAGS="$CPPFLAGS"
11581 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11582 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11583 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11584 for ac_header in cups/cups.h
11585 do :
11586 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11587 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11588 cat >>confdefs.h <<_ACEOF
11589 #define HAVE_CUPS_CUPS_H 1
11590 _ACEOF
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11592 $as_echo_n "checking for -lcups... " >&6; }
11593 if ${ac_cv_lib_soname_cups+:} false; then :
11594 $as_echo_n "(cached) " >&6
11595 else
11596 ac_check_soname_save_LIBS=$LIBS
11597 LIBS="-lcups $ac_cups_libs $LIBS"
11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599 /* end confdefs.h. */
11601 /* Override any GCC internal prototype to avoid an error.
11602 Use char because int might match the return type of a GCC
11603 builtin and then its argument prototype would still apply. */
11604 #ifdef __cplusplus
11605 extern "C"
11606 #endif
11607 char cupsGetDefault ();
11609 main ()
11611 return cupsGetDefault ();
11613 return 0;
11615 _ACEOF
11616 if ac_fn_c_try_link "$LINENO"; then :
11617 case "$LIBEXT" in
11618 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11619 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'` ;;
11620 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11621 if test "x$ac_cv_lib_soname_cups" = x; then :
11622 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11623 fi ;;
11624 esac
11626 rm -f core conftest.err conftest.$ac_objext \
11627 conftest$ac_exeext conftest.$ac_ext
11628 LIBS=$ac_check_soname_save_LIBS
11630 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11632 $as_echo "not found" >&6; }
11634 else
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11636 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11638 cat >>confdefs.h <<_ACEOF
11639 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11640 _ACEOF
11642 CUPSINCL="$ac_cups_cflags"
11646 done
11648 CPPFLAGS="$ac_save_CPPFLAGS"
11650 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11651 case "x$with_cups" in
11652 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11653 xno) ;;
11654 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11655 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11656 esac
11659 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11660 then
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11662 $as_echo_n "checking for -lfontconfig... " >&6; }
11663 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 ac_check_soname_save_LIBS=$LIBS
11667 LIBS="-lfontconfig $LIBS"
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11671 /* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11674 #ifdef __cplusplus
11675 extern "C"
11676 #endif
11677 char FcInit ();
11679 main ()
11681 return FcInit ();
11683 return 0;
11685 _ACEOF
11686 if ac_fn_c_try_link "$LINENO"; then :
11687 case "$LIBEXT" in
11688 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11689 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'` ;;
11690 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11691 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11692 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11693 fi ;;
11694 esac
11696 rm -f core conftest.err conftest.$ac_objext \
11697 conftest$ac_exeext conftest.$ac_ext
11698 LIBS=$ac_check_soname_save_LIBS
11700 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11702 $as_echo "not found" >&6; }
11704 else
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11706 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11708 cat >>confdefs.h <<_ACEOF
11709 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11710 _ACEOF
11714 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11715 then
11716 ac_save_CPPFLAGS="$CPPFLAGS"
11717 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11718 $as_unset ac_cv_header_fontconfig_fontconfig_h
11719 for ac_header in fontconfig/fontconfig.h
11720 do :
11721 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11722 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11723 cat >>confdefs.h <<_ACEOF
11724 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11725 _ACEOF
11729 done
11731 CPPFLAGS="$ac_save_CPPFLAGS"
11732 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11733 then
11734 FONTCONFIGINCL="$X_CFLAGS"
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11737 $as_echo_n "checking for -lfontconfig... " >&6; }
11738 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11739 $as_echo_n "(cached) " >&6
11740 else
11741 ac_check_soname_save_LIBS=$LIBS
11742 LIBS="-lfontconfig $X_LIBS $LIBS"
11743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744 /* end confdefs.h. */
11746 /* Override any GCC internal prototype to avoid an error.
11747 Use char because int might match the return type of a GCC
11748 builtin and then its argument prototype would still apply. */
11749 #ifdef __cplusplus
11750 extern "C"
11751 #endif
11752 char FcInit ();
11754 main ()
11756 return FcInit ();
11758 return 0;
11760 _ACEOF
11761 if ac_fn_c_try_link "$LINENO"; then :
11762 case "$LIBEXT" in
11763 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11764 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'` ;;
11765 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11766 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11767 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11768 fi ;;
11769 esac
11771 rm -f core conftest.err conftest.$ac_objext \
11772 conftest$ac_exeext conftest.$ac_ext
11773 LIBS=$ac_check_soname_save_LIBS
11775 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11777 $as_echo "not found" >&6; }
11779 else
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11781 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11783 cat >>confdefs.h <<_ACEOF
11784 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11785 _ACEOF
11791 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11792 case "x$with_fontconfig" in
11793 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11794 xno) ;;
11795 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11796 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11797 esac
11800 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11801 then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11803 $as_echo_n "checking for -lgsm... " >&6; }
11804 if ${ac_cv_lib_soname_gsm+:} false; then :
11805 $as_echo_n "(cached) " >&6
11806 else
11807 ac_check_soname_save_LIBS=$LIBS
11808 LIBS="-lgsm $LIBS"
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11812 /* Override any GCC internal prototype to avoid an error.
11813 Use char because int might match the return type of a GCC
11814 builtin and then its argument prototype would still apply. */
11815 #ifdef __cplusplus
11816 extern "C"
11817 #endif
11818 char gsm_create ();
11820 main ()
11822 return gsm_create ();
11824 return 0;
11826 _ACEOF
11827 if ac_fn_c_try_link "$LINENO"; then :
11828 case "$LIBEXT" in
11829 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11830 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'` ;;
11831 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11832 if test "x$ac_cv_lib_soname_gsm" = x; then :
11833 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11834 fi ;;
11835 esac
11837 rm -f core conftest.err conftest.$ac_objext \
11838 conftest$ac_exeext conftest.$ac_ext
11839 LIBS=$ac_check_soname_save_LIBS
11841 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11843 $as_echo "not found" >&6; }
11845 else
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11847 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11849 cat >>confdefs.h <<_ACEOF
11850 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11851 _ACEOF
11856 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11857 case "x$with_gsm" in
11858 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11859 xno) ;;
11860 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11861 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11862 esac
11865 if test "x$with_jpeg" != "xno"
11866 then
11867 if test -n "$JPEG_CFLAGS"; then :
11869 elif test -n "$PKG_CONFIG"; then :
11870 JPEG_CFLAGS=`$PKG_CONFIG --cflags libjpeg 2>/dev/null`
11873 if test -n "$JPEG_LIBS"; then :
11875 elif test -n "$PKG_CONFIG"; then :
11876 JPEG_LIBS=`$PKG_CONFIG --libs libjpeg 2>/dev/null`
11880 ac_save_CPPFLAGS=$CPPFLAGS
11881 CPPFLAGS="$CPPFLAGS $JPEG_CFLAGS"
11882 for ac_header in jpeglib.h
11883 do :
11884 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
11885 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
11886 cat >>confdefs.h <<_ACEOF
11887 #define HAVE_JPEGLIB_H 1
11888 _ACEOF
11892 done
11894 if test "$ac_cv_header_jpeglib_h" = "yes"
11895 then
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11897 $as_echo_n "checking for -ljpeg... " >&6; }
11898 if ${ac_cv_lib_soname_jpeg+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901 ac_check_soname_save_LIBS=$LIBS
11902 LIBS="-ljpeg $JPEG_LIBS $LIBS"
11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h. */
11906 /* Override any GCC internal prototype to avoid an error.
11907 Use char because int might match the return type of a GCC
11908 builtin and then its argument prototype would still apply. */
11909 #ifdef __cplusplus
11910 extern "C"
11911 #endif
11912 char jpeg_start_decompress ();
11914 main ()
11916 return jpeg_start_decompress ();
11918 return 0;
11920 _ACEOF
11921 if ac_fn_c_try_link "$LINENO"; then :
11922 case "$LIBEXT" in
11923 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11924 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'` ;;
11925 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11926 if test "x$ac_cv_lib_soname_jpeg" = x; then :
11927 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11928 fi ;;
11929 esac
11931 rm -f core conftest.err conftest.$ac_objext \
11932 conftest$ac_exeext conftest.$ac_ext
11933 LIBS=$ac_check_soname_save_LIBS
11935 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11937 $as_echo "not found" >&6; }
11938 JPEG_CFLAGS=""
11939 else
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11941 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11943 cat >>confdefs.h <<_ACEOF
11944 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11945 _ACEOF
11949 else
11950 JPEG_CFLAGS=""
11952 CPPFLAGS=$ac_save_CPPFLAGS
11953 test -z "$JPEG_CFLAGS" || JPEG_CFLAGS=`echo " $JPEG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11954 test -z "$JPEG_LIBS" || JPEG_LIBS=`echo " $JPEG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11957 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11958 case "x$with_jpeg" in
11959 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11960 xno) ;;
11961 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11962 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11963 esac
11966 if test "x$with_png" != "xno"
11967 then
11968 if test -n "$PNG_CFLAGS"; then :
11970 elif test -n "$PKG_CONFIG"; then :
11971 PNG_CFLAGS=`$PKG_CONFIG --cflags libpng 2>/dev/null`
11973 test "$cross_compiling" = yes || PNG_CFLAGS=${PNG_CFLAGS:-$X_CFLAGS}
11974 if test -n "$PNG_LIBS"; then :
11976 elif test -n "$PKG_CONFIG"; then :
11977 PNG_LIBS=`$PKG_CONFIG --libs libpng 2>/dev/null`
11979 test "$cross_compiling" = yes || PNG_LIBS=${PNG_LIBS:-$X_LIBS}
11981 ac_save_CPPFLAGS=$CPPFLAGS
11982 CPPFLAGS="$CPPFLAGS $PNG_CFLAGS"
11983 for ac_header in png.h
11984 do :
11985 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11986 if test "x$ac_cv_header_png_h" = xyes; then :
11987 cat >>confdefs.h <<_ACEOF
11988 #define HAVE_PNG_H 1
11989 _ACEOF
11993 done
11995 if test "$ac_cv_header_png_h" = "yes"
11996 then
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11998 $as_echo_n "checking for -lpng... " >&6; }
11999 if ${ac_cv_lib_soname_png+:} false; then :
12000 $as_echo_n "(cached) " >&6
12001 else
12002 ac_check_soname_save_LIBS=$LIBS
12003 LIBS="-lpng $PNG_LIBS -lm -lz $LIBS"
12004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h. */
12007 /* Override any GCC internal prototype to avoid an error.
12008 Use char because int might match the return type of a GCC
12009 builtin and then its argument prototype would still apply. */
12010 #ifdef __cplusplus
12011 extern "C"
12012 #endif
12013 char png_create_read_struct ();
12015 main ()
12017 return png_create_read_struct ();
12019 return 0;
12021 _ACEOF
12022 if ac_fn_c_try_link "$LINENO"; then :
12023 case "$LIBEXT" in
12024 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12025 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'` ;;
12026 *) 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'`
12027 if test "x$ac_cv_lib_soname_png" = x; then :
12028 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12029 fi ;;
12030 esac
12032 rm -f core conftest.err conftest.$ac_objext \
12033 conftest$ac_exeext conftest.$ac_ext
12034 LIBS=$ac_check_soname_save_LIBS
12036 if test "x$ac_cv_lib_soname_png" = "x"; then :
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12038 $as_echo "not found" >&6; }
12039 PNG_CFLAGS=""
12040 else
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
12042 $as_echo "$ac_cv_lib_soname_png" >&6; }
12044 cat >>confdefs.h <<_ACEOF
12045 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
12046 _ACEOF
12048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h. */
12050 #include <png.h>
12052 main ()
12054 typeof(png_set_expand_gray_1_2_4_to_8) *p
12056 return 0;
12058 _ACEOF
12059 if ac_fn_c_try_compile "$LINENO"; then :
12061 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
12064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12066 else
12067 PNG_CFLAGS=""
12069 CPPFLAGS=$ac_save_CPPFLAGS
12070 test -z "$PNG_CFLAGS" || PNG_CFLAGS=`echo " $PNG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12071 test -z "$PNG_LIBS" || PNG_LIBS=`echo " $PNG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12074 if test "x$ac_cv_lib_soname_png" = "x"; then :
12075 case "x$with_png" in
12076 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
12077 xno) ;;
12078 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
12079 This is an error since --with-png was requested." "$LINENO" 5 ;;
12080 esac
12083 if test "x$with_tiff" != "xno"
12084 then
12085 if test -n "$TIFF_CFLAGS"; then :
12087 elif test -n "$PKG_CONFIG"; then :
12088 TIFF_CFLAGS=`$PKG_CONFIG --cflags libtiff 2>/dev/null`
12091 if test -n "$TIFF_LIBS"; then :
12093 elif test -n "$PKG_CONFIG"; then :
12094 TIFF_LIBS=`$PKG_CONFIG --libs libtiff 2>/dev/null`
12098 ac_save_CPPFLAGS=$CPPFLAGS
12099 CPPFLAGS="$CPPFLAGS $TIFF_CFLAGS"
12100 for ac_header in tiffio.h
12101 do :
12102 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12103 if test "x$ac_cv_header_tiffio_h" = xyes; then :
12104 cat >>confdefs.h <<_ACEOF
12105 #define HAVE_TIFFIO_H 1
12106 _ACEOF
12110 done
12112 if test "$ac_cv_header_tiffio_h" = "yes"
12113 then
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
12115 $as_echo_n "checking for -ltiff... " >&6; }
12116 if ${ac_cv_lib_soname_tiff+:} false; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 ac_check_soname_save_LIBS=$LIBS
12120 LIBS="-ltiff $TIFF_LIBS $LIBS"
12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12124 /* Override any GCC internal prototype to avoid an error.
12125 Use char because int might match the return type of a GCC
12126 builtin and then its argument prototype would still apply. */
12127 #ifdef __cplusplus
12128 extern "C"
12129 #endif
12130 char TIFFClientOpen ();
12132 main ()
12134 return TIFFClientOpen ();
12136 return 0;
12138 _ACEOF
12139 if ac_fn_c_try_link "$LINENO"; then :
12140 case "$LIBEXT" in
12141 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12142 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'` ;;
12143 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12144 if test "x$ac_cv_lib_soname_tiff" = x; then :
12145 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12146 fi ;;
12147 esac
12149 rm -f core conftest.err conftest.$ac_objext \
12150 conftest$ac_exeext conftest.$ac_ext
12151 LIBS=$ac_check_soname_save_LIBS
12153 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12155 $as_echo "not found" >&6; }
12157 else
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
12159 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
12161 cat >>confdefs.h <<_ACEOF
12162 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
12163 _ACEOF
12168 CPPFLAGS=$ac_save_CPPFLAGS
12169 test -z "$TIFF_CFLAGS" || TIFF_CFLAGS=`echo " $TIFF_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12170 test -z "$TIFF_LIBS" || TIFF_LIBS=`echo " $TIFF_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12173 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12174 case "x$with_tiff" in
12175 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
12176 xno) ;;
12177 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
12178 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
12179 esac
12182 if test "x$with_mpg123" != "xno"
12183 then
12184 if test -n "$MPG123_CFLAGS"; then :
12186 elif test -n "$PKG_CONFIG"; then :
12187 MPG123_CFLAGS=`$PKG_CONFIG --cflags libmpg123 2>/dev/null`
12190 if test -n "$MPG123_LIBS"; then :
12192 elif test -n "$PKG_CONFIG"; then :
12193 MPG123_LIBS=`$PKG_CONFIG --libs libmpg123 2>/dev/null`
12196 MPG123_LIBS=${MPG123_LIBS:-"-lmpg123"}
12197 ac_save_CPPFLAGS=$CPPFLAGS
12198 CPPFLAGS="$CPPFLAGS $MPG123_CFLAGS"
12199 for ac_header in mpg123.h
12200 do :
12201 ac_fn_c_check_header_mongrel "$LINENO" "mpg123.h" "ac_cv_header_mpg123_h" "$ac_includes_default"
12202 if test "x$ac_cv_header_mpg123_h" = xyes; then :
12203 cat >>confdefs.h <<_ACEOF
12204 #define HAVE_MPG123_H 1
12205 _ACEOF
12209 done
12211 if test "$ac_cv_header_mpg123_h" = "yes"
12212 then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
12214 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
12215 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
12216 $as_echo_n "(cached) " >&6
12217 else
12218 ac_check_lib_save_LIBS=$LIBS
12219 LIBS="-lmpg123 $MPG123_LIBS $LIBS"
12220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12221 /* end confdefs.h. */
12223 /* Override any GCC internal prototype to avoid an error.
12224 Use char because int might match the return type of a GCC
12225 builtin and then its argument prototype would still apply. */
12226 #ifdef __cplusplus
12227 extern "C"
12228 #endif
12229 char mpg123_feed ();
12231 main ()
12233 return mpg123_feed ();
12235 return 0;
12237 _ACEOF
12238 if ac_fn_c_try_link "$LINENO"; then :
12239 ac_cv_lib_mpg123_mpg123_feed=yes
12240 else
12241 ac_cv_lib_mpg123_mpg123_feed=no
12243 rm -f core conftest.err conftest.$ac_objext \
12244 conftest$ac_exeext conftest.$ac_ext
12245 LIBS=$ac_check_lib_save_LIBS
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
12248 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
12249 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
12251 else
12252 MPG123_LIBS=""
12255 else
12256 MPG123_CFLAGS=""
12257 MPG123_LIBS=""
12259 CPPFLAGS=$ac_save_CPPFLAGS
12260 test -z "$MPG123_CFLAGS" || MPG123_CFLAGS=`echo " $MPG123_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12261 test -z "$MPG123_LIBS" || MPG123_LIBS=`echo " $MPG123_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12264 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
12265 case "x$with_mpg123" in
12266 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
12267 xno) ;;
12268 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
12269 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
12270 esac
12272 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}
12274 if test "$ac_cv_header_AL_al_h" = "yes"
12275 then
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
12277 $as_echo_n "checking for -lopenal... " >&6; }
12278 if ${ac_cv_lib_soname_openal+:} false; then :
12279 $as_echo_n "(cached) " >&6
12280 else
12281 ac_check_soname_save_LIBS=$LIBS
12282 LIBS="-lopenal $LIBS"
12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h. */
12286 /* Override any GCC internal prototype to avoid an error.
12287 Use char because int might match the return type of a GCC
12288 builtin and then its argument prototype would still apply. */
12289 #ifdef __cplusplus
12290 extern "C"
12291 #endif
12292 char alGetSource3i ();
12294 main ()
12296 return alGetSource3i ();
12298 return 0;
12300 _ACEOF
12301 if ac_fn_c_try_link "$LINENO"; then :
12302 case "$LIBEXT" in
12303 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12304 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'` ;;
12305 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12306 if test "x$ac_cv_lib_soname_openal" = x; then :
12307 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12308 fi ;;
12309 esac
12311 rm -f core conftest.err conftest.$ac_objext \
12312 conftest$ac_exeext conftest.$ac_ext
12313 LIBS=$ac_check_soname_save_LIBS
12315 if test "x$ac_cv_lib_soname_openal" = "x"; then :
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12317 $as_echo "not found" >&6; }
12319 else
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
12321 $as_echo "$ac_cv_lib_soname_openal" >&6; }
12323 cat >>confdefs.h <<_ACEOF
12324 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
12325 _ACEOF
12327 LIBOPENAL="-lopenal"
12329 ac_cv_lib_openal=yes
12331 cat >>confdefs.h <<_ACEOF
12332 #define HAVE_OPENAL 1
12333 _ACEOF
12337 if test "x$ac_cv_lib_openal" != xyes; then :
12338 case "x$with_openal" in
12339 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
12340 xno) ;;
12341 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
12342 This is an error since --with-openal was requested." "$LINENO" 5 ;;
12343 esac
12345 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
12347 if test "$ac_cv_header_kstat_h" = "yes"
12348 then
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12350 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12351 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12352 $as_echo_n "(cached) " >&6
12353 else
12354 ac_check_lib_save_LIBS=$LIBS
12355 LIBS="-lkstat $LIBS"
12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h. */
12359 /* Override any GCC internal prototype to avoid an error.
12360 Use char because int might match the return type of a GCC
12361 builtin and then its argument prototype would still apply. */
12362 #ifdef __cplusplus
12363 extern "C"
12364 #endif
12365 char kstat_open ();
12367 main ()
12369 return kstat_open ();
12371 return 0;
12373 _ACEOF
12374 if ac_fn_c_try_link "$LINENO"; then :
12375 ac_cv_lib_kstat_kstat_open=yes
12376 else
12377 ac_cv_lib_kstat_kstat_open=no
12379 rm -f core conftest.err conftest.$ac_objext \
12380 conftest$ac_exeext conftest.$ac_ext
12381 LIBS=$ac_check_lib_save_LIBS
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12384 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12385 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12387 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12389 LIBKSTAT="-lkstat"
12395 if test "$ac_cv_header_libprocstat_h" = "yes"
12396 then
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5
12398 $as_echo_n "checking for procstat_open_sysctl in -lprocstat... " >&6; }
12399 if ${ac_cv_lib_procstat_procstat_open_sysctl+:} false; then :
12400 $as_echo_n "(cached) " >&6
12401 else
12402 ac_check_lib_save_LIBS=$LIBS
12403 LIBS="-lprocstat $LIBS"
12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405 /* end confdefs.h. */
12407 /* Override any GCC internal prototype to avoid an error.
12408 Use char because int might match the return type of a GCC
12409 builtin and then its argument prototype would still apply. */
12410 #ifdef __cplusplus
12411 extern "C"
12412 #endif
12413 char procstat_open_sysctl ();
12415 main ()
12417 return procstat_open_sysctl ();
12419 return 0;
12421 _ACEOF
12422 if ac_fn_c_try_link "$LINENO"; then :
12423 ac_cv_lib_procstat_procstat_open_sysctl=yes
12424 else
12425 ac_cv_lib_procstat_procstat_open_sysctl=no
12427 rm -f core conftest.err conftest.$ac_objext \
12428 conftest$ac_exeext conftest.$ac_ext
12429 LIBS=$ac_check_lib_save_LIBS
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_procstat_procstat_open_sysctl" >&5
12432 $as_echo "$ac_cv_lib_procstat_procstat_open_sysctl" >&6; }
12433 if test "x$ac_cv_lib_procstat_procstat_open_sysctl" = xyes; then :
12435 $as_echo "#define HAVE_LIBPROCSTAT 1" >>confdefs.h
12437 LIBPROCSTAT="-lprocstat"
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12444 $as_echo_n "checking for -lodbc... " >&6; }
12445 if ${ac_cv_lib_soname_odbc+:} false; then :
12446 $as_echo_n "(cached) " >&6
12447 else
12448 ac_check_soname_save_LIBS=$LIBS
12449 LIBS="-lodbc $LIBS"
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12453 /* Override any GCC internal prototype to avoid an error.
12454 Use char because int might match the return type of a GCC
12455 builtin and then its argument prototype would still apply. */
12456 #ifdef __cplusplus
12457 extern "C"
12458 #endif
12459 char SQLConnect ();
12461 main ()
12463 return SQLConnect ();
12465 return 0;
12467 _ACEOF
12468 if ac_fn_c_try_link "$LINENO"; then :
12469 case "$LIBEXT" in
12470 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12471 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'` ;;
12472 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12473 if test "x$ac_cv_lib_soname_odbc" = x; then :
12474 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12475 fi ;;
12476 esac
12478 rm -f core conftest.err conftest.$ac_objext \
12479 conftest$ac_exeext conftest.$ac_ext
12480 LIBS=$ac_check_soname_save_LIBS
12482 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12484 $as_echo "not found" >&6; }
12485 cat >>confdefs.h <<_ACEOF
12486 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12487 _ACEOF
12489 else
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12491 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12493 cat >>confdefs.h <<_ACEOF
12494 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12495 _ACEOF
12500 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12501 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12502 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
12503 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12505 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
12506 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
12507 "x$with_alsa$with_coreaudio$with_oss" != xnonono
12508 then
12509 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12513 EXTRACFLAGS=""
12515 if test "x${GCC}" = "xyes"
12516 then
12517 EXTRACFLAGS="-Wall -pipe"
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12520 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12521 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 if test "$cross_compiling" = yes; then :
12525 ac_cv_c_gcc_strength_bug="yes"
12526 else
12527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528 /* end confdefs.h. */
12529 int L[4] = {0,1,2,3};
12531 main ()
12533 static int Array[3];
12534 unsigned int B = 3;
12535 int i;
12536 for(i=0; i<B; i++) Array[i] = i - 3;
12537 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12538 L[i] = 4;
12539 return (Array[1] != -2 || L[2] != 3)
12541 return 0;
12543 _ACEOF
12544 if ac_fn_c_try_run "$LINENO"; then :
12545 ac_cv_c_gcc_strength_bug="no"
12546 else
12547 ac_cv_c_gcc_strength_bug="yes"
12549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12550 conftest.$ac_objext conftest.beam conftest.$ac_ext
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12555 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12556 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12557 then
12558 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12562 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12563 if ${ac_cv_cflags__fno_builtin+:} false; then :
12564 $as_echo_n "(cached) " >&6
12565 else
12566 ac_wine_try_cflags_saved=$CFLAGS
12567 CFLAGS="$CFLAGS -fno-builtin"
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12570 int main(int argc, char **argv) { return 0; }
12571 _ACEOF
12572 if ac_fn_c_try_link "$LINENO"; then :
12573 ac_cv_cflags__fno_builtin=yes
12574 else
12575 ac_cv_cflags__fno_builtin=no
12577 rm -f core conftest.err conftest.$ac_objext \
12578 conftest$ac_exeext conftest.$ac_ext
12579 CFLAGS=$ac_wine_try_cflags_saved
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12582 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12583 if test $ac_cv_cflags__fno_builtin = yes; then :
12584 BUILTINFLAG="-fno-builtin"
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12588 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12589 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12590 $as_echo_n "(cached) " >&6
12591 else
12592 ac_wine_try_cflags_saved=$CFLAGS
12593 CFLAGS="$CFLAGS -fno-strict-aliasing"
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596 int main(int argc, char **argv) { return 0; }
12597 _ACEOF
12598 if ac_fn_c_try_link "$LINENO"; then :
12599 ac_cv_cflags__fno_strict_aliasing=yes
12600 else
12601 ac_cv_cflags__fno_strict_aliasing=no
12603 rm -f core conftest.err conftest.$ac_objext \
12604 conftest$ac_exeext conftest.$ac_ext
12605 CFLAGS=$ac_wine_try_cflags_saved
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12608 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12609 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12610 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12612 saved_CFLAGS=$CFLAGS
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror=unknown-warning-option" >&5
12614 $as_echo_n "checking whether the compiler supports -Werror=unknown-warning-option... " >&6; }
12615 if ${ac_cv_cflags__Werror_unknown_warning_option+:} false; then :
12616 $as_echo_n "(cached) " >&6
12617 else
12618 ac_wine_try_cflags_saved=$CFLAGS
12619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12622 int main(int argc, char **argv) { return 0; }
12623 _ACEOF
12624 if ac_fn_c_try_link "$LINENO"; then :
12625 ac_cv_cflags__Werror_unknown_warning_option=yes
12626 else
12627 ac_cv_cflags__Werror_unknown_warning_option=no
12629 rm -f core conftest.err conftest.$ac_objext \
12630 conftest$ac_exeext conftest.$ac_ext
12631 CFLAGS=$ac_wine_try_cflags_saved
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror_unknown_warning_option" >&5
12634 $as_echo "$ac_cv_cflags__Werror_unknown_warning_option" >&6; }
12635 if test $ac_cv_cflags__Werror_unknown_warning_option = yes; then :
12636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12639 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12640 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12641 $as_echo_n "(cached) " >&6
12642 else
12643 ac_wine_try_cflags_saved=$CFLAGS
12644 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12647 int main(int argc, char **argv) { return 0; }
12648 _ACEOF
12649 if ac_fn_c_try_link "$LINENO"; then :
12650 ac_cv_cflags__Wdeclaration_after_statement=yes
12651 else
12652 ac_cv_cflags__Wdeclaration_after_statement=no
12654 rm -f core conftest.err conftest.$ac_objext \
12655 conftest$ac_exeext conftest.$ac_ext
12656 CFLAGS=$ac_wine_try_cflags_saved
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12659 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12660 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12661 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12664 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12665 if ${ac_cv_cflags__Wempty_body+:} false; then :
12666 $as_echo_n "(cached) " >&6
12667 else
12668 ac_wine_try_cflags_saved=$CFLAGS
12669 CFLAGS="$CFLAGS -Wempty-body"
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12672 int main(int argc, char **argv) { return 0; }
12673 _ACEOF
12674 if ac_fn_c_try_link "$LINENO"; then :
12675 ac_cv_cflags__Wempty_body=yes
12676 else
12677 ac_cv_cflags__Wempty_body=no
12679 rm -f core conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
12681 CFLAGS=$ac_wine_try_cflags_saved
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12684 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12685 if test $ac_cv_cflags__Wempty_body = yes; then :
12686 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12689 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12690 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12691 $as_echo_n "(cached) " >&6
12692 else
12693 ac_wine_try_cflags_saved=$CFLAGS
12694 CFLAGS="$CFLAGS -Wignored-qualifiers"
12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12697 int main(int argc, char **argv) { return 0; }
12698 _ACEOF
12699 if ac_fn_c_try_link "$LINENO"; then :
12700 ac_cv_cflags__Wignored_qualifiers=yes
12701 else
12702 ac_cv_cflags__Wignored_qualifiers=no
12704 rm -f core conftest.err conftest.$ac_objext \
12705 conftest$ac_exeext conftest.$ac_ext
12706 CFLAGS=$ac_wine_try_cflags_saved
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12709 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12710 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12711 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12714 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12715 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 ac_wine_try_cflags_saved=$CFLAGS
12719 CFLAGS="$CFLAGS -Wstrict-prototypes"
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12722 int main(int argc, char **argv) { return 0; }
12723 _ACEOF
12724 if ac_fn_c_try_link "$LINENO"; then :
12725 ac_cv_cflags__Wstrict_prototypes=yes
12726 else
12727 ac_cv_cflags__Wstrict_prototypes=no
12729 rm -f core conftest.err conftest.$ac_objext \
12730 conftest$ac_exeext conftest.$ac_ext
12731 CFLAGS=$ac_wine_try_cflags_saved
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12734 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12735 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12736 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12739 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12740 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12741 $as_echo_n "(cached) " >&6
12742 else
12743 ac_wine_try_cflags_saved=$CFLAGS
12744 CFLAGS="$CFLAGS -Wtype-limits"
12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h. */
12747 int main(int argc, char **argv) { return 0; }
12748 _ACEOF
12749 if ac_fn_c_try_link "$LINENO"; then :
12750 ac_cv_cflags__Wtype_limits=yes
12751 else
12752 ac_cv_cflags__Wtype_limits=no
12754 rm -f core conftest.err conftest.$ac_objext \
12755 conftest$ac_exeext conftest.$ac_ext
12756 CFLAGS=$ac_wine_try_cflags_saved
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12759 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12760 if test $ac_cv_cflags__Wtype_limits = yes; then :
12761 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12764 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12765 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12766 $as_echo_n "(cached) " >&6
12767 else
12768 ac_wine_try_cflags_saved=$CFLAGS
12769 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h. */
12772 int main(int argc, char **argv) { return 0; }
12773 _ACEOF
12774 if ac_fn_c_try_link "$LINENO"; then :
12775 ac_cv_cflags__Wunused_but_set_parameter=yes
12776 else
12777 ac_cv_cflags__Wunused_but_set_parameter=no
12779 rm -f core conftest.err conftest.$ac_objext \
12780 conftest$ac_exeext conftest.$ac_ext
12781 CFLAGS=$ac_wine_try_cflags_saved
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12784 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12785 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12786 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12789 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12790 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12791 $as_echo_n "(cached) " >&6
12792 else
12793 ac_wine_try_cflags_saved=$CFLAGS
12794 CFLAGS="$CFLAGS -Wwrite-strings"
12795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12796 /* end confdefs.h. */
12797 int main(int argc, char **argv) { return 0; }
12798 _ACEOF
12799 if ac_fn_c_try_link "$LINENO"; then :
12800 ac_cv_cflags__Wwrite_strings=yes
12801 else
12802 ac_cv_cflags__Wwrite_strings=no
12804 rm -f core conftest.err conftest.$ac_objext \
12805 conftest$ac_exeext conftest.$ac_ext
12806 CFLAGS=$ac_wine_try_cflags_saved
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12809 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12810 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12811 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wpointer-arith" >&5
12815 $as_echo_n "checking whether the compiler supports -Wpointer-arith... " >&6; }
12816 if ${ac_cv_cflags__Wpointer_arith+:} false; then :
12817 $as_echo_n "(cached) " >&6
12818 else
12819 ac_wine_try_cflags_saved=$CFLAGS
12820 CFLAGS="$CFLAGS -Wpointer-arith"
12821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h. */
12823 int main(int argc, char **argv) { return 0; }
12824 _ACEOF
12825 if ac_fn_c_try_link "$LINENO"; then :
12826 ac_cv_cflags__Wpointer_arith=yes
12827 else
12828 ac_cv_cflags__Wpointer_arith=no
12830 rm -f core conftest.err conftest.$ac_objext \
12831 conftest$ac_exeext conftest.$ac_ext
12832 CFLAGS=$ac_wine_try_cflags_saved
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wpointer_arith" >&5
12835 $as_echo "$ac_cv_cflags__Wpointer_arith" >&6; }
12836 if test $ac_cv_cflags__Wpointer_arith = yes; then :
12837 saved_string_h_CFLAGS=$CFLAGS
12838 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12840 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12841 if ${ac_cv_c_string_h_warnings+:} false; then :
12842 $as_echo_n "(cached) " >&6
12843 else
12844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12846 #include <string.h>
12848 main ()
12852 return 0;
12854 _ACEOF
12855 if ac_fn_c_try_compile "$LINENO"; then :
12856 ac_cv_c_string_h_warnings=no
12857 else
12858 ac_cv_c_string_h_warnings=yes
12860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12863 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12864 test "$ac_cv_c_string_h_warnings" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12865 CFLAGS=$saved_string_h_CFLAGS
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wlogical-op" >&5
12869 $as_echo_n "checking whether the compiler supports -Wlogical-op... " >&6; }
12870 if ${ac_cv_cflags__Wlogical_op+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 ac_wine_try_cflags_saved=$CFLAGS
12874 CFLAGS="$CFLAGS -Wlogical-op"
12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h. */
12877 int main(int argc, char **argv) { return 0; }
12878 _ACEOF
12879 if ac_fn_c_try_link "$LINENO"; then :
12880 ac_cv_cflags__Wlogical_op=yes
12881 else
12882 ac_cv_cflags__Wlogical_op=no
12884 rm -f core conftest.err conftest.$ac_objext \
12885 conftest$ac_exeext conftest.$ac_ext
12886 CFLAGS=$ac_wine_try_cflags_saved
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wlogical_op" >&5
12889 $as_echo "$ac_cv_cflags__Wlogical_op" >&6; }
12890 if test $ac_cv_cflags__Wlogical_op = yes; then :
12891 saved_string_h_CFLAGS=$CFLAGS
12892 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12894 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12895 if ${ac_cv_c_logicalop_noisy+:} false; then :
12896 $as_echo_n "(cached) " >&6
12897 else
12898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899 /* end confdefs.h. */
12900 #include <string.h>
12901 char*f(const char *h,char n) {return strchr(h,n);}
12903 main ()
12907 return 0;
12909 _ACEOF
12910 if ac_fn_c_try_compile "$LINENO"; then :
12911 ac_cv_c_logicalop_noisy=no
12912 else
12913 ac_cv_c_logicalop_noisy=yes
12915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12918 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12919 CFLAGS=$saved_string_h_CFLAGS
12920 test "$ac_cv_c_logicalop_noisy" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12923 CFLAGS=$saved_CFLAGS
12925 for ac_flag in $CFLAGS; do
12926 case $ac_flag in
12927 -g) case $host_os in
12928 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
12929 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
12930 if ${ac_cv_cflags__gstabsp+:} false; then :
12931 $as_echo_n "(cached) " >&6
12932 else
12933 ac_wine_try_cflags_saved=$CFLAGS
12934 CFLAGS="$CFLAGS -gstabs+"
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12937 int main(int argc, char **argv) { return 0; }
12938 _ACEOF
12939 if ac_fn_c_try_link "$LINENO"; then :
12940 ac_cv_cflags__gstabsp=yes
12941 else
12942 ac_cv_cflags__gstabsp=no
12944 rm -f core conftest.err conftest.$ac_objext \
12945 conftest$ac_exeext conftest.$ac_ext
12946 CFLAGS=$ac_wine_try_cflags_saved
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
12949 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
12950 if test $ac_cv_cflags__gstabsp = yes; then :
12951 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12952 fi ;;
12953 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
12954 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
12955 if ${ac_cv_cflags__gdwarf_2+:} false; then :
12956 $as_echo_n "(cached) " >&6
12957 else
12958 ac_wine_try_cflags_saved=$CFLAGS
12959 CFLAGS="$CFLAGS -gdwarf-2"
12960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961 /* end confdefs.h. */
12962 int main(int argc, char **argv) { return 0; }
12963 _ACEOF
12964 if ac_fn_c_try_link "$LINENO"; then :
12965 ac_cv_cflags__gdwarf_2=yes
12966 else
12967 ac_cv_cflags__gdwarf_2=no
12969 rm -f core conftest.err conftest.$ac_objext \
12970 conftest$ac_exeext conftest.$ac_ext
12971 CFLAGS=$ac_wine_try_cflags_saved
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
12974 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
12975 if test $ac_cv_cflags__gdwarf_2 = yes; then :
12976 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
12979 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
12980 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
12981 $as_echo_n "(cached) " >&6
12982 else
12983 ac_wine_try_cflags_saved=$CFLAGS
12984 CFLAGS="$CFLAGS -gstrict-dwarf"
12985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h. */
12987 int main(int argc, char **argv) { return 0; }
12988 _ACEOF
12989 if ac_fn_c_try_link "$LINENO"; then :
12990 ac_cv_cflags__gstrict_dwarf=yes
12991 else
12992 ac_cv_cflags__gstrict_dwarf=no
12994 rm -f core conftest.err conftest.$ac_objext \
12995 conftest$ac_exeext conftest.$ac_ext
12996 CFLAGS=$ac_wine_try_cflags_saved
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
12999 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
13000 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
13001 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
13002 fi ;;
13003 esac ;;
13004 esac
13005 done
13007 case $host_cpu in
13008 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
13009 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
13010 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
13011 $as_echo_n "(cached) " >&6
13012 else
13013 ac_wine_try_cflags_saved=$CFLAGS
13014 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
13015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016 /* end confdefs.h. */
13017 int main(int argc, char **argv) { return 0; }
13018 _ACEOF
13019 if ac_fn_c_try_link "$LINENO"; then :
13020 ac_cv_cflags__fno_omit_frame_pointer=yes
13021 else
13022 ac_cv_cflags__fno_omit_frame_pointer=no
13024 rm -f core conftest.err conftest.$ac_objext \
13025 conftest$ac_exeext conftest.$ac_ext
13026 CFLAGS=$ac_wine_try_cflags_saved
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
13029 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
13030 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
13031 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
13032 fi ;;
13033 esac
13035 case $host in
13036 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
13037 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
13038 if ${ac_cv_cflags__Wno_format+:} false; then :
13039 $as_echo_n "(cached) " >&6
13040 else
13041 ac_wine_try_cflags_saved=$CFLAGS
13042 CFLAGS="$CFLAGS -Wno-format"
13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h. */
13045 int main(int argc, char **argv) { return 0; }
13046 _ACEOF
13047 if ac_fn_c_try_link "$LINENO"; then :
13048 ac_cv_cflags__Wno_format=yes
13049 else
13050 ac_cv_cflags__Wno_format=no
13052 rm -f core conftest.err conftest.$ac_objext \
13053 conftest$ac_exeext conftest.$ac_ext
13054 CFLAGS=$ac_wine_try_cflags_saved
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
13057 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
13058 if test $ac_cv_cflags__Wno_format = yes; then :
13059 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
13060 fi ;;
13061 esac
13063 if test "x$enable_maintainer_mode" = "xyes"
13064 then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
13066 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
13067 if ${ac_cv_cflags__Werror+:} false; then :
13068 $as_echo_n "(cached) " >&6
13069 else
13070 ac_wine_try_cflags_saved=$CFLAGS
13071 CFLAGS="$CFLAGS -Werror"
13072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13073 /* end confdefs.h. */
13074 int main(int argc, char **argv) { return 0; }
13075 _ACEOF
13076 if ac_fn_c_try_link "$LINENO"; then :
13077 ac_cv_cflags__Werror=yes
13078 else
13079 ac_cv_cflags__Werror=no
13081 rm -f core conftest.err conftest.$ac_objext \
13082 conftest$ac_exeext conftest.$ac_ext
13083 CFLAGS=$ac_wine_try_cflags_saved
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
13086 $as_echo "$ac_cv_cflags__Werror" >&6; }
13087 if test $ac_cv_cflags__Werror = yes; then :
13088 EXTRACFLAGS="$EXTRACFLAGS -Werror"
13092 saved_CFLAGS="$CFLAGS"
13093 CFLAGS="$CFLAGS -Werror"
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
13095 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
13096 if ${ac_cv_have_ms_hook_prologue+:} false; then :
13097 $as_echo_n "(cached) " >&6
13098 else
13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h. */
13101 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
13103 main ()
13107 return 0;
13109 _ACEOF
13110 if ac_fn_c_try_compile "$LINENO"; then :
13111 ac_cv_have_ms_hook_prologue="yes"
13112 else
13113 ac_cv_have_ms_hook_prologue="no"
13115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
13118 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
13119 CFLAGS="$saved_CFLAGS"
13120 if test "$ac_cv_have_ms_hook_prologue" = "yes"
13121 then
13123 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
13125 else
13126 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
13133 $as_echo_n "checking for the need to disable Fortify... " >&6; }
13134 if ${ac_cv_c_fortify_enabled+:} false; then :
13135 $as_echo_n "(cached) " >&6
13136 else
13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h. */
13139 #include <string.h>
13141 main ()
13143 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
13144 #error Fortify enabled
13145 #endif
13147 return 0;
13149 _ACEOF
13150 if ac_fn_c_try_compile "$LINENO"; then :
13151 ac_cv_c_fortify_enabled=no
13152 else
13153 ac_cv_c_fortify_enabled=yes
13155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
13158 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
13159 if test "$ac_cv_c_fortify_enabled" = yes
13160 then
13161 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
13166 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
13167 if ${ac_cv_c_extern_prefix+:} false; then :
13168 $as_echo_n "(cached) " >&6
13169 else
13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13172 extern int ac_test;
13174 main ()
13176 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
13178 return 0;
13180 _ACEOF
13181 if ac_fn_c_try_link "$LINENO"; then :
13182 ac_cv_c_extern_prefix="yes"
13183 else
13184 ac_cv_c_extern_prefix="no"
13186 rm -f core conftest.err conftest.$ac_objext \
13187 conftest$ac_exeext conftest.$ac_ext
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
13190 $as_echo "$ac_cv_c_extern_prefix" >&6; }
13192 case $host_cpu in
13193 *i[3456789]86*)
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
13195 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
13196 if ${ac_cv_c_stdcall_suffix+:} false; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13201 #ifndef _MSC_VER
13202 #define __stdcall __attribute__((__stdcall__))
13203 #endif
13204 int __stdcall ac_test(int i) { return i; }
13206 main ()
13208 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
13210 return 0;
13212 _ACEOF
13213 if ac_fn_c_try_link "$LINENO"; then :
13214 ac_cv_c_stdcall_suffix="yes"
13215 else
13216 ac_cv_c_stdcall_suffix="no"
13218 rm -f core conftest.err conftest.$ac_objext \
13219 conftest$ac_exeext conftest.$ac_ext
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
13222 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
13223 *) ac_cv_c_stdcall_suffix="no" ;;
13224 esac
13227 if test "$ac_cv_c_extern_prefix" = "yes"
13228 then
13229 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
13231 asm_name_prefix="_"
13232 else
13233 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
13235 asm_name_prefix=""
13239 if test "$ac_cv_c_stdcall_suffix" = "yes"
13240 then
13241 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
13243 else
13244 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
13250 $as_echo_n "checking how to define a function in assembly code... " >&6; }
13251 if ${ac_cv_asm_func_def+:} false; then :
13252 $as_echo_n "(cached) " >&6
13253 else
13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255 /* end confdefs.h. */
13258 main ()
13260 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
13262 return 0;
13264 _ACEOF
13265 if ac_fn_c_try_link "$LINENO"; then :
13266 ac_cv_asm_func_def=".def"
13267 else
13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h. */
13272 main ()
13274 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
13276 return 0;
13278 _ACEOF
13279 if ac_fn_c_try_link "$LINENO"; then :
13280 ac_cv_asm_func_def=".type @function"
13281 else
13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h. */
13286 main ()
13288 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
13290 return 0;
13292 _ACEOF
13293 if ac_fn_c_try_link "$LINENO"; then :
13294 ac_cv_asm_func_def=".type 2"
13295 else
13296 ac_cv_asm_func_def="unknown"
13298 rm -f core conftest.err conftest.$ac_objext \
13299 conftest$ac_exeext conftest.$ac_ext
13301 rm -f core conftest.err conftest.$ac_objext \
13302 conftest$ac_exeext conftest.$ac_ext
13304 rm -f core conftest.err conftest.$ac_objext \
13305 conftest$ac_exeext conftest.$ac_ext
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
13308 $as_echo "$ac_cv_asm_func_def" >&6; }
13311 case "$ac_cv_asm_func_def" in
13312 ".def")
13313 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
13315 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
13316 ".type @function")
13317 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
13319 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
13320 ".type 2")
13321 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
13323 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
13325 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
13327 asm_func_header="" ;;
13328 esac
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
13331 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
13332 if ${ac_cv_c_asm_outside_funcs+:} false; then :
13333 $as_echo_n "(cached) " >&6
13334 else
13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13337 asm(".text\n\t.long 0");
13339 main ()
13343 return 0;
13345 _ACEOF
13346 if ac_fn_c_try_compile "$LINENO"; then :
13347 ac_cv_c_asm_outside_funcs="yes"
13348 else
13349 ac_cv_c_asm_outside_funcs="no"
13351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
13354 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
13357 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
13358 if ${ac_cv_c_dot_previous+:} false; then :
13359 $as_echo_n "(cached) " >&6
13360 else
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13365 main ()
13367 asm(".text\nac_test:\t.long 0\n\t.previous");
13369 return 0;
13371 _ACEOF
13372 if ac_fn_c_try_link "$LINENO"; then :
13373 ac_cv_c_dot_previous="yes"
13374 else
13375 ac_cv_c_dot_previous="no"
13377 rm -f core conftest.err conftest.$ac_objext \
13378 conftest$ac_exeext conftest.$ac_ext
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
13381 $as_echo "$ac_cv_c_dot_previous" >&6; }
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
13384 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
13385 if ${ac_cv_c_cfi_support+:} false; then :
13386 $as_echo_n "(cached) " >&6
13387 else
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13390 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
13392 main ()
13396 return 0;
13398 _ACEOF
13399 if ac_fn_c_try_compile "$LINENO"; then :
13400 ac_cv_c_cfi_support="yes"
13401 else
13402 ac_cv_c_cfi_support="no"
13404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
13407 $as_echo "$ac_cv_c_cfi_support" >&6; }
13409 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
13410 asm_func_trailer=""
13411 if test "$ac_cv_c_dot_previous" = "yes"
13412 then
13413 asm_func_trailer="\\n\\t.previous"
13415 if test "$ac_cv_c_cfi_support" = "yes"
13416 then
13417 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
13418 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
13420 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
13422 UNWINDFLAGS=-fasynchronous-unwind-tables
13424 else
13425 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
13429 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
13432 if test "$ac_cv_c_asm_outside_funcs" = "yes"
13433 then
13434 cat >>confdefs.h <<_ACEOF
13435 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
13436 _ACEOF
13438 else
13439 cat >>confdefs.h <<_ACEOF
13440 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
13441 _ACEOF
13445 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
13448 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
13452 LDPATH=""
13454 case $build_os in
13455 cygwin*|mingw32*)
13456 TOOLSEXT=".exe"
13458 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
13460 darwin*|macosx*)
13463 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
13465 esac
13467 MAIN_BINARY="wine"
13469 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
13471 case $host_os in
13472 linux*)
13473 case $host_cpu in
13474 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
13476 x86_64*) EXTRA_BINARIES="wine64-preloader"
13478 esac
13480 esac
13483 ac_save_CFLAGS="$CFLAGS"
13484 CFLAGS="$CFLAGS $BUILTINFLAG"
13485 for ac_func in \
13486 _finite \
13487 _isnan \
13488 _pclose \
13489 _popen \
13490 _snprintf \
13491 _spawnvp \
13492 _strdup \
13493 _stricmp \
13494 _strnicmp \
13495 _strtoi64 \
13496 _strtoui64 \
13497 _vsnprintf \
13498 asctime_r \
13499 chsize \
13500 dlopen \
13501 epoll_create \
13502 ffs \
13503 finite \
13504 fnmatch \
13505 fork \
13506 fpclass \
13507 fstatfs \
13508 fstatvfs \
13509 ftruncate \
13510 futimens \
13511 futimes \
13512 futimesat \
13513 getattrlist \
13514 getdirentries \
13515 getopt_long_only \
13516 getpwuid \
13517 gettimeofday \
13518 getuid \
13519 kqueue \
13520 lstat \
13521 memmove \
13522 mmap \
13523 pclose \
13524 pipe2 \
13525 poll \
13526 popen \
13527 port_create \
13528 prctl \
13529 pread \
13530 pwrite \
13531 readdir \
13532 readlink \
13533 sched_yield \
13534 select \
13535 setproctitle \
13536 setrlimit \
13537 settimeofday \
13538 sigaltstack \
13539 sigprocmask \
13540 snprintf \
13541 statfs \
13542 statvfs \
13543 strcasecmp \
13544 strdup \
13545 strerror \
13546 strncasecmp \
13547 strtold \
13548 strtoll \
13549 strtoull \
13550 symlink \
13551 tcgetattr \
13552 thr_kill2 \
13553 timegm \
13554 usleep \
13555 vsnprintf
13557 do :
13558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13559 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13560 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13561 cat >>confdefs.h <<_ACEOF
13562 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13563 _ACEOF
13566 done
13568 CFLAGS="$ac_save_CFLAGS"
13570 if test "$ac_cv_func_dlopen" = no
13571 then
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13573 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13574 if ${ac_cv_lib_dl_dlopen+:} false; then :
13575 $as_echo_n "(cached) " >&6
13576 else
13577 ac_check_lib_save_LIBS=$LIBS
13578 LIBS="-ldl $LIBS"
13579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13580 /* end confdefs.h. */
13582 /* Override any GCC internal prototype to avoid an error.
13583 Use char because int might match the return type of a GCC
13584 builtin and then its argument prototype would still apply. */
13585 #ifdef __cplusplus
13586 extern "C"
13587 #endif
13588 char dlopen ();
13590 main ()
13592 return dlopen ();
13594 return 0;
13596 _ACEOF
13597 if ac_fn_c_try_link "$LINENO"; then :
13598 ac_cv_lib_dl_dlopen=yes
13599 else
13600 ac_cv_lib_dl_dlopen=no
13602 rm -f core conftest.err conftest.$ac_objext \
13603 conftest$ac_exeext conftest.$ac_ext
13604 LIBS=$ac_check_lib_save_LIBS
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13607 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13608 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13609 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13610 LIBDL="-ldl"
13615 ac_wine_check_funcs_save_LIBS="$LIBS"
13616 LIBS="$LIBS $LIBDL"
13617 for ac_func in dladdr
13618 do :
13619 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
13620 if test "x$ac_cv_func_dladdr" = xyes; then :
13621 cat >>confdefs.h <<_ACEOF
13622 #define HAVE_DLADDR 1
13623 _ACEOF
13626 done
13628 LIBS="$ac_wine_check_funcs_save_LIBS"
13630 if test "$ac_cv_func_poll" = no
13631 then
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
13633 $as_echo_n "checking for poll in -lpoll... " >&6; }
13634 if ${ac_cv_lib_poll_poll+:} false; then :
13635 $as_echo_n "(cached) " >&6
13636 else
13637 ac_check_lib_save_LIBS=$LIBS
13638 LIBS="-lpoll $LIBS"
13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h. */
13642 /* Override any GCC internal prototype to avoid an error.
13643 Use char because int might match the return type of a GCC
13644 builtin and then its argument prototype would still apply. */
13645 #ifdef __cplusplus
13646 extern "C"
13647 #endif
13648 char poll ();
13650 main ()
13652 return poll ();
13654 return 0;
13656 _ACEOF
13657 if ac_fn_c_try_link "$LINENO"; then :
13658 ac_cv_lib_poll_poll=yes
13659 else
13660 ac_cv_lib_poll_poll=no
13662 rm -f core conftest.err conftest.$ac_objext \
13663 conftest$ac_exeext conftest.$ac_ext
13664 LIBS=$ac_check_lib_save_LIBS
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
13667 $as_echo "$ac_cv_lib_poll_poll" >&6; }
13668 if test "x$ac_cv_lib_poll_poll" = xyes; then :
13669 $as_echo "#define HAVE_POLL 1" >>confdefs.h
13670 LIBPOLL="-lpoll"
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13677 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13678 if ${ac_cv_search_gethostbyname+:} false; then :
13679 $as_echo_n "(cached) " >&6
13680 else
13681 ac_func_search_save_LIBS=$LIBS
13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683 /* end confdefs.h. */
13685 /* Override any GCC internal prototype to avoid an error.
13686 Use char because int might match the return type of a GCC
13687 builtin and then its argument prototype would still apply. */
13688 #ifdef __cplusplus
13689 extern "C"
13690 #endif
13691 char gethostbyname ();
13693 main ()
13695 return gethostbyname ();
13697 return 0;
13699 _ACEOF
13700 for ac_lib in '' nsl; do
13701 if test -z "$ac_lib"; then
13702 ac_res="none required"
13703 else
13704 ac_res=-l$ac_lib
13705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13707 if ac_fn_c_try_link "$LINENO"; then :
13708 ac_cv_search_gethostbyname=$ac_res
13710 rm -f core conftest.err conftest.$ac_objext \
13711 conftest$ac_exeext
13712 if ${ac_cv_search_gethostbyname+:} false; then :
13713 break
13715 done
13716 if ${ac_cv_search_gethostbyname+:} false; then :
13718 else
13719 ac_cv_search_gethostbyname=no
13721 rm conftest.$ac_ext
13722 LIBS=$ac_func_search_save_LIBS
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13725 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13726 ac_res=$ac_cv_search_gethostbyname
13727 if test "$ac_res" != no; then :
13728 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13734 $as_echo_n "checking for library containing connect... " >&6; }
13735 if ${ac_cv_search_connect+:} false; then :
13736 $as_echo_n "(cached) " >&6
13737 else
13738 ac_func_search_save_LIBS=$LIBS
13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h. */
13742 /* Override any GCC internal prototype to avoid an error.
13743 Use char because int might match the return type of a GCC
13744 builtin and then its argument prototype would still apply. */
13745 #ifdef __cplusplus
13746 extern "C"
13747 #endif
13748 char connect ();
13750 main ()
13752 return connect ();
13754 return 0;
13756 _ACEOF
13757 for ac_lib in '' socket; do
13758 if test -z "$ac_lib"; then
13759 ac_res="none required"
13760 else
13761 ac_res=-l$ac_lib
13762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13764 if ac_fn_c_try_link "$LINENO"; then :
13765 ac_cv_search_connect=$ac_res
13767 rm -f core conftest.err conftest.$ac_objext \
13768 conftest$ac_exeext
13769 if ${ac_cv_search_connect+:} false; then :
13770 break
13772 done
13773 if ${ac_cv_search_connect+:} false; then :
13775 else
13776 ac_cv_search_connect=no
13778 rm conftest.$ac_ext
13779 LIBS=$ac_func_search_save_LIBS
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13782 $as_echo "$ac_cv_search_connect" >&6; }
13783 ac_res=$ac_cv_search_connect
13784 if test "$ac_res" != no; then :
13785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13791 $as_echo_n "checking for library containing inet_aton... " >&6; }
13792 if ${ac_cv_search_inet_aton+:} false; then :
13793 $as_echo_n "(cached) " >&6
13794 else
13795 ac_func_search_save_LIBS=$LIBS
13796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797 /* end confdefs.h. */
13799 /* Override any GCC internal prototype to avoid an error.
13800 Use char because int might match the return type of a GCC
13801 builtin and then its argument prototype would still apply. */
13802 #ifdef __cplusplus
13803 extern "C"
13804 #endif
13805 char inet_aton ();
13807 main ()
13809 return inet_aton ();
13811 return 0;
13813 _ACEOF
13814 for ac_lib in '' resolv; do
13815 if test -z "$ac_lib"; then
13816 ac_res="none required"
13817 else
13818 ac_res=-l$ac_lib
13819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13821 if ac_fn_c_try_link "$LINENO"; then :
13822 ac_cv_search_inet_aton=$ac_res
13824 rm -f core conftest.err conftest.$ac_objext \
13825 conftest$ac_exeext
13826 if ${ac_cv_search_inet_aton+:} false; then :
13827 break
13829 done
13830 if ${ac_cv_search_inet_aton+:} false; then :
13832 else
13833 ac_cv_search_inet_aton=no
13835 rm conftest.$ac_ext
13836 LIBS=$ac_func_search_save_LIBS
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13839 $as_echo "$ac_cv_search_inet_aton" >&6; }
13840 ac_res=$ac_cv_search_inet_aton
13841 if test "$ac_res" != no; then :
13842 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13847 for ac_func in \
13848 getaddrinfo \
13849 getnameinfo \
13850 getnetbyname \
13851 getprotobyname \
13852 getprotobynumber \
13853 getservbyport \
13854 inet_network \
13855 inet_ntop \
13856 inet_pton \
13857 sendmsg \
13858 socketpair \
13860 do :
13861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13862 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13863 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13864 cat >>confdefs.h <<_ACEOF
13865 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13866 _ACEOF
13869 done
13872 ac_save_LIBS=$LIBS
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13874 $as_echo_n "checking for library containing clock_gettime... " >&6; }
13875 if ${ac_cv_search_clock_gettime+:} false; then :
13876 $as_echo_n "(cached) " >&6
13877 else
13878 ac_func_search_save_LIBS=$LIBS
13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13882 /* Override any GCC internal prototype to avoid an error.
13883 Use char because int might match the return type of a GCC
13884 builtin and then its argument prototype would still apply. */
13885 #ifdef __cplusplus
13886 extern "C"
13887 #endif
13888 char clock_gettime ();
13890 main ()
13892 return clock_gettime ();
13894 return 0;
13896 _ACEOF
13897 for ac_lib in '' rt; do
13898 if test -z "$ac_lib"; then
13899 ac_res="none required"
13900 else
13901 ac_res=-l$ac_lib
13902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13904 if ac_fn_c_try_link "$LINENO"; then :
13905 ac_cv_search_clock_gettime=$ac_res
13907 rm -f core conftest.err conftest.$ac_objext \
13908 conftest$ac_exeext
13909 if ${ac_cv_search_clock_gettime+:} false; then :
13910 break
13912 done
13913 if ${ac_cv_search_clock_gettime+:} false; then :
13915 else
13916 ac_cv_search_clock_gettime=no
13918 rm conftest.$ac_ext
13919 LIBS=$ac_func_search_save_LIBS
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13922 $as_echo "$ac_cv_search_clock_gettime" >&6; }
13923 ac_res=$ac_cv_search_clock_gettime
13924 if test "$ac_res" != no; then :
13925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13927 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13929 test "$ac_res" = "none required" || LIBRT="$ac_res"
13933 LIBS=$ac_save_LIBS
13935 LDAPLIBS=""
13937 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13938 then
13939 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13941 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13943 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13944 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13945 $as_echo_n "(cached) " >&6
13946 else
13947 ac_check_lib_save_LIBS=$LIBS
13948 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h. */
13952 /* Override any GCC internal prototype to avoid an error.
13953 Use char because int might match the return type of a GCC
13954 builtin and then its argument prototype would still apply. */
13955 #ifdef __cplusplus
13956 extern "C"
13957 #endif
13958 char ldap_initialize ();
13960 main ()
13962 return ldap_initialize ();
13964 return 0;
13966 _ACEOF
13967 if ac_fn_c_try_link "$LINENO"; then :
13968 ac_cv_lib_ldap_r_ldap_initialize=yes
13969 else
13970 ac_cv_lib_ldap_r_ldap_initialize=no
13972 rm -f core conftest.err conftest.$ac_objext \
13973 conftest$ac_exeext conftest.$ac_ext
13974 LIBS=$ac_check_lib_save_LIBS
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13977 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13978 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13980 $as_echo_n "checking for ber_init in -llber... " >&6; }
13981 if ${ac_cv_lib_lber_ber_init+:} false; then :
13982 $as_echo_n "(cached) " >&6
13983 else
13984 ac_check_lib_save_LIBS=$LIBS
13985 LIBS="-llber $LIBPTHREAD $LIBS"
13986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987 /* end confdefs.h. */
13989 /* Override any GCC internal prototype to avoid an error.
13990 Use char because int might match the return type of a GCC
13991 builtin and then its argument prototype would still apply. */
13992 #ifdef __cplusplus
13993 extern "C"
13994 #endif
13995 char ber_init ();
13997 main ()
13999 return ber_init ();
14001 return 0;
14003 _ACEOF
14004 if ac_fn_c_try_link "$LINENO"; then :
14005 ac_cv_lib_lber_ber_init=yes
14006 else
14007 ac_cv_lib_lber_ber_init=no
14009 rm -f core conftest.err conftest.$ac_objext \
14010 conftest$ac_exeext conftest.$ac_ext
14011 LIBS=$ac_check_lib_save_LIBS
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
14014 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
14015 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
14017 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
14019 LDAPLIBS="-lldap_r -llber"
14026 ac_wine_check_funcs_save_LIBS="$LIBS"
14027 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
14028 for ac_func in \
14029 ldap_count_references \
14030 ldap_first_reference \
14031 ldap_next_reference \
14032 ldap_parse_reference \
14033 ldap_parse_sort_control \
14034 ldap_parse_sortresponse_control \
14035 ldap_parse_vlv_control \
14036 ldap_parse_vlvresponse_control
14037 do :
14038 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14039 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14040 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14041 cat >>confdefs.h <<_ACEOF
14042 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14043 _ACEOF
14046 done
14048 LIBS="$ac_wine_check_funcs_save_LIBS"
14050 if test "x$LDAPLIBS" = "x"; then :
14051 case "x$with_ldap" in
14052 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
14053 xno) ;;
14054 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
14055 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
14056 esac
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
14060 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
14061 if ${wine_cv_one_arg_mkdir+:} false; then :
14062 $as_echo_n "(cached) " >&6
14063 else
14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h. */
14066 #include <sys/stat.h>
14068 main ()
14070 mkdir("foo");
14072 return 0;
14074 _ACEOF
14075 if ac_fn_c_try_compile "$LINENO"; then :
14076 wine_cv_one_arg_mkdir=yes
14077 else
14078 wine_cv_one_arg_mkdir=no
14080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
14083 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
14084 if test "$wine_cv_one_arg_mkdir" = "yes"
14085 then
14087 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
14092 $as_echo_n "checking for sched_setaffinity... " >&6; }
14093 if ${wine_cv_have_sched_setaffinity+:} false; then :
14094 $as_echo_n "(cached) " >&6
14095 else
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h. */
14098 #define _GNU_SOURCE
14099 #include <sched.h>
14101 main ()
14103 sched_setaffinity(0, 0, 0);
14105 return 0;
14107 _ACEOF
14108 if ac_fn_c_try_link "$LINENO"; then :
14109 wine_cv_have_sched_setaffinity=yes
14110 else
14111 wine_cv_have_sched_setaffinity=no
14113 rm -f core conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
14117 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
14118 if test "$wine_cv_have_sched_setaffinity" = "yes"
14119 then
14121 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
14126 $as_echo_n "checking for fallocate... " >&6; }
14127 if ${wine_cv_have_fallocate+:} false; then :
14128 $as_echo_n "(cached) " >&6
14129 else
14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h. */
14132 #define _GNU_SOURCE
14133 #include <fcntl.h>
14135 main ()
14137 fallocate(-1, 0, 0, 0);
14139 return 0;
14141 _ACEOF
14142 if ac_fn_c_try_link "$LINENO"; then :
14143 wine_cv_have_fallocate=yes
14144 else
14145 wine_cv_have_fallocate=no
14147 rm -f core conftest.err conftest.$ac_objext \
14148 conftest$ac_exeext conftest.$ac_ext
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
14151 $as_echo "$wine_cv_have_fallocate" >&6; }
14152 if test "$wine_cv_have_fallocate" = "yes"
14153 then
14155 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14161 $as_echo_n "checking for inline... " >&6; }
14162 if ${ac_cv_c_inline+:} false; then :
14163 $as_echo_n "(cached) " >&6
14164 else
14165 ac_cv_c_inline=no
14166 for ac_kw in inline __inline__ __inline; do
14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14168 /* end confdefs.h. */
14169 #ifndef __cplusplus
14170 typedef int foo_t;
14171 static $ac_kw foo_t static_foo () {return 0; }
14172 $ac_kw foo_t foo () {return 0; }
14173 #endif
14175 _ACEOF
14176 if ac_fn_c_try_compile "$LINENO"; then :
14177 ac_cv_c_inline=$ac_kw
14179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14180 test "$ac_cv_c_inline" != no && break
14181 done
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14185 $as_echo "$ac_cv_c_inline" >&6; }
14187 case $ac_cv_c_inline in
14188 inline | yes) ;;
14190 case $ac_cv_c_inline in
14191 no) ac_val=;;
14192 *) ac_val=$ac_cv_c_inline;;
14193 esac
14194 cat >>confdefs.h <<_ACEOF
14195 #ifndef __cplusplus
14196 #define inline $ac_val
14197 #endif
14198 _ACEOF
14200 esac
14202 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
14203 if test "x$ac_cv_type_mode_t" = xyes; then :
14205 cat >>confdefs.h <<_ACEOF
14206 #define HAVE_MODE_T 1
14207 _ACEOF
14211 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14212 if test "x$ac_cv_type_off_t" = xyes; then :
14214 cat >>confdefs.h <<_ACEOF
14215 #define HAVE_OFF_T 1
14216 _ACEOF
14220 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14221 if test "x$ac_cv_type_pid_t" = xyes; then :
14223 cat >>confdefs.h <<_ACEOF
14224 #define HAVE_PID_T 1
14225 _ACEOF
14229 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14230 if test "x$ac_cv_type_size_t" = xyes; then :
14232 cat >>confdefs.h <<_ACEOF
14233 #define HAVE_SIZE_T 1
14234 _ACEOF
14238 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14239 if test "x$ac_cv_type_ssize_t" = xyes; then :
14241 cat >>confdefs.h <<_ACEOF
14242 #define HAVE_SSIZE_T 1
14243 _ACEOF
14247 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
14248 if test "x$ac_cv_type_long_long" = xyes; then :
14250 cat >>confdefs.h <<_ACEOF
14251 #define HAVE_LONG_LONG 1
14252 _ACEOF
14256 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
14257 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
14259 cat >>confdefs.h <<_ACEOF
14260 #define HAVE_FSBLKCNT_T 1
14261 _ACEOF
14265 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
14266 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
14268 cat >>confdefs.h <<_ACEOF
14269 #define HAVE_FSFILCNT_T 1
14270 _ACEOF
14275 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
14276 #include <signal.h>
14278 if test "x$ac_cv_type_sigset_t" = xyes; then :
14280 cat >>confdefs.h <<_ACEOF
14281 #define HAVE_SIGSET_T 1
14282 _ACEOF
14287 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
14289 if test "x$ac_cv_type_request_sense" = xyes; then :
14291 cat >>confdefs.h <<_ACEOF
14292 #define HAVE_REQUEST_SENSE 1
14293 _ACEOF
14299 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
14300 #ifdef HAVE_SYS_SOCKET_H
14301 #include <sys/socket.h>
14302 #endif
14303 #ifdef HAVE_SYS_SOCKETVAR_H
14304 #include <sys/socketvar.h>
14305 #endif
14306 #ifdef HAVE_NET_ROUTE_H
14307 #include <net/route.h>
14308 #endif
14309 #ifdef HAVE_NETINET_IN_H
14310 #include <netinet/in.h>
14311 #endif
14312 #ifdef HAVE_NETINET_IN_SYSTM_H
14313 #include <netinet/in_systm.h>
14314 #endif
14315 #ifdef HAVE_NETINET_IP_H
14316 #include <netinet/ip.h>
14317 #endif
14318 #ifdef HAVE_NETINET_IN_PCB_H
14319 #include <netinet/in_pcb.h>
14320 #endif
14322 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
14324 cat >>confdefs.h <<_ACEOF
14325 #define HAVE_STRUCT_XINPGEN 1
14326 _ACEOF
14332 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
14333 #include <linux/input.h>
14334 #endif
14336 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
14338 cat >>confdefs.h <<_ACEOF
14339 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
14340 _ACEOF
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
14347 $as_echo_n "checking for sigaddset... " >&6; }
14348 if ${wine_cv_have_sigaddset+:} false; then :
14349 $as_echo_n "(cached) " >&6
14350 else
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h. */
14353 #include <signal.h>
14355 main ()
14357 sigset_t set; sigaddset(&set,SIGTERM);
14359 return 0;
14361 _ACEOF
14362 if ac_fn_c_try_link "$LINENO"; then :
14363 wine_cv_have_sigaddset=yes
14364 else
14365 wine_cv_have_sigaddset=no
14367 rm -f core conftest.err conftest.$ac_objext \
14368 conftest$ac_exeext conftest.$ac_ext
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
14371 $as_echo "$wine_cv_have_sigaddset" >&6; }
14372 if test "$wine_cv_have_sigaddset" = "yes"
14373 then
14375 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
14381 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
14382 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
14383 $as_echo_n "(cached) " >&6
14384 else
14385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386 /* end confdefs.h. */
14387 #include <netdb.h>
14389 main ()
14392 char *name=0;
14393 struct hostent he;
14394 struct hostent *result;
14395 char *buf=0;
14396 int bufsize=0;
14397 int errnr;
14398 char *addr=0;
14399 int addrlen=0;
14400 int addrtype=0;
14401 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14402 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
14405 return 0;
14407 _ACEOF
14408 if ac_fn_c_try_link "$LINENO"; then :
14409 wine_cv_linux_gethostbyname_r_6=yes
14410 else
14411 wine_cv_linux_gethostbyname_r_6=no
14414 rm -f core conftest.err conftest.$ac_objext \
14415 conftest$ac_exeext conftest.$ac_ext
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
14419 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
14420 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14421 then
14423 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
14427 if test "$ac_cv_header_linux_joystick_h" = "yes"
14428 then
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
14430 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
14431 if ${wine_cv_linux_joystick_22_api+:} false; then :
14432 $as_echo_n "(cached) " >&6
14433 else
14434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435 /* end confdefs.h. */
14437 #include <sys/ioctl.h>
14438 #include <sys/types.h>
14439 #include <linux/joystick.h>
14441 struct js_event blub;
14442 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14443 #error "no 2.2 header"
14444 #endif
14447 main ()
14449 /*empty*/
14451 return 0;
14453 _ACEOF
14454 if ac_fn_c_try_compile "$LINENO"; then :
14455 wine_cv_linux_joystick_22_api=yes
14456 else
14457 wine_cv_linux_joystick_22_api=no
14459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
14463 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
14464 if test "$wine_cv_linux_joystick_22_api" = "yes"
14465 then
14467 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
14473 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
14474 #ifdef HAVE_SYS_PARAM_H
14475 # include <sys/param.h>
14476 #endif
14477 #ifdef HAVE_SYS_MOUNT_H
14478 # include <sys/mount.h>
14479 #endif
14480 #ifdef HAVE_SYS_VFS_H
14481 # include <sys/vfs.h>
14482 #endif
14483 #ifdef HAVE_SYS_STATFS_H
14484 # include <sys/statfs.h>
14485 #endif
14487 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
14489 cat >>confdefs.h <<_ACEOF
14490 #define HAVE_STRUCT_STATFS_F_BFREE 1
14491 _ACEOF
14495 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
14496 #ifdef HAVE_SYS_PARAM_H
14497 # include <sys/param.h>
14498 #endif
14499 #ifdef HAVE_SYS_MOUNT_H
14500 # include <sys/mount.h>
14501 #endif
14502 #ifdef HAVE_SYS_VFS_H
14503 # include <sys/vfs.h>
14504 #endif
14505 #ifdef HAVE_SYS_STATFS_H
14506 # include <sys/statfs.h>
14507 #endif
14509 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
14511 cat >>confdefs.h <<_ACEOF
14512 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
14513 _ACEOF
14517 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
14518 #ifdef HAVE_SYS_PARAM_H
14519 # include <sys/param.h>
14520 #endif
14521 #ifdef HAVE_SYS_MOUNT_H
14522 # include <sys/mount.h>
14523 #endif
14524 #ifdef HAVE_SYS_VFS_H
14525 # include <sys/vfs.h>
14526 #endif
14527 #ifdef HAVE_SYS_STATFS_H
14528 # include <sys/statfs.h>
14529 #endif
14531 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
14533 cat >>confdefs.h <<_ACEOF
14534 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
14535 _ACEOF
14539 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
14540 #ifdef HAVE_SYS_PARAM_H
14541 # include <sys/param.h>
14542 #endif
14543 #ifdef HAVE_SYS_MOUNT_H
14544 # include <sys/mount.h>
14545 #endif
14546 #ifdef HAVE_SYS_VFS_H
14547 # include <sys/vfs.h>
14548 #endif
14549 #ifdef HAVE_SYS_STATFS_H
14550 # include <sys/statfs.h>
14551 #endif
14553 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
14555 cat >>confdefs.h <<_ACEOF
14556 #define HAVE_STRUCT_STATFS_F_FFREE 1
14557 _ACEOF
14561 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
14562 #ifdef HAVE_SYS_PARAM_H
14563 # include <sys/param.h>
14564 #endif
14565 #ifdef HAVE_SYS_MOUNT_H
14566 # include <sys/mount.h>
14567 #endif
14568 #ifdef HAVE_SYS_VFS_H
14569 # include <sys/vfs.h>
14570 #endif
14571 #ifdef HAVE_SYS_STATFS_H
14572 # include <sys/statfs.h>
14573 #endif
14575 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
14577 cat >>confdefs.h <<_ACEOF
14578 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
14579 _ACEOF
14583 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
14584 #ifdef HAVE_SYS_PARAM_H
14585 # include <sys/param.h>
14586 #endif
14587 #ifdef HAVE_SYS_MOUNT_H
14588 # include <sys/mount.h>
14589 #endif
14590 #ifdef HAVE_SYS_VFS_H
14591 # include <sys/vfs.h>
14592 #endif
14593 #ifdef HAVE_SYS_STATFS_H
14594 # include <sys/statfs.h>
14595 #endif
14597 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
14599 cat >>confdefs.h <<_ACEOF
14600 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
14601 _ACEOF
14607 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
14608 #include <sys/statvfs.h>
14609 #endif
14611 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
14613 cat >>confdefs.h <<_ACEOF
14614 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
14615 _ACEOF
14621 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
14622 #include <dirent.h>
14623 #endif
14625 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
14627 cat >>confdefs.h <<_ACEOF
14628 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
14629 _ACEOF
14635 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
14636 #ifdef HAVE_SYS_SOCKET_H
14637 # include <sys/socket.h>
14638 #endif
14639 #ifdef HAVE_SYS_UN_H
14640 # include <sys/un.h>
14641 #endif
14643 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
14645 cat >>confdefs.h <<_ACEOF
14646 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
14647 _ACEOF
14651 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14652 #ifdef HAVE_SYS_SOCKET_H
14653 # include <sys/socket.h>
14654 #endif
14655 #ifdef HAVE_SYS_UN_H
14656 # include <sys/un.h>
14657 #endif
14659 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14661 cat >>confdefs.h <<_ACEOF
14662 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14663 _ACEOF
14667 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
14668 #ifdef HAVE_SYS_SOCKET_H
14669 # include <sys/socket.h>
14670 #endif
14671 #ifdef HAVE_SYS_UN_H
14672 # include <sys/un.h>
14673 #endif
14675 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
14677 cat >>confdefs.h <<_ACEOF
14678 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
14679 _ACEOF
14685 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
14686 #ifdef HAVE_SCSI_SG_H
14687 #include <scsi/sg.h>
14688 #endif
14690 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
14692 cat >>confdefs.h <<_ACEOF
14693 #define HAVE_SCSIREQ_T_CMD 1
14694 _ACEOF
14698 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>
14699 #ifdef HAVE_SCSI_SG_H
14700 #include <scsi/sg.h>
14701 #endif
14703 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
14705 cat >>confdefs.h <<_ACEOF
14706 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
14707 _ACEOF
14713 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14715 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
14717 cat >>confdefs.h <<_ACEOF
14718 #define HAVE_SIGINFO_T_SI_FD 1
14719 _ACEOF
14725 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14726 #ifdef HAVE_SYS_MTIO_H
14727 #include <sys/mtio.h>
14728 #endif
14730 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14732 cat >>confdefs.h <<_ACEOF
14733 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14734 _ACEOF
14738 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14739 #ifdef HAVE_SYS_MTIO_H
14740 #include <sys/mtio.h>
14741 #endif
14743 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14745 cat >>confdefs.h <<_ACEOF
14746 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14747 _ACEOF
14751 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14752 #ifdef HAVE_SYS_MTIO_H
14753 #include <sys/mtio.h>
14754 #endif
14756 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14758 cat >>confdefs.h <<_ACEOF
14759 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14760 _ACEOF
14766 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14767 #include <getopt.h>
14768 #endif
14770 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14772 cat >>confdefs.h <<_ACEOF
14773 #define HAVE_STRUCT_OPTION_NAME 1
14774 _ACEOF
14780 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14781 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14783 cat >>confdefs.h <<_ACEOF
14784 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14785 _ACEOF
14789 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14790 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14792 cat >>confdefs.h <<_ACEOF
14793 #define HAVE_STRUCT_STAT_ST_MTIM 1
14794 _ACEOF
14798 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
14799 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
14801 cat >>confdefs.h <<_ACEOF
14802 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
14803 _ACEOF
14807 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14808 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14810 cat >>confdefs.h <<_ACEOF
14811 #define HAVE_STRUCT_STAT_ST_CTIM 1
14812 _ACEOF
14816 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
14817 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
14819 cat >>confdefs.h <<_ACEOF
14820 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
14821 _ACEOF
14825 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14826 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14828 cat >>confdefs.h <<_ACEOF
14829 #define HAVE_STRUCT_STAT_ST_ATIM 1
14830 _ACEOF
14834 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
14835 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
14837 cat >>confdefs.h <<_ACEOF
14838 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
14839 _ACEOF
14843 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
14844 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
14846 cat >>confdefs.h <<_ACEOF
14847 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
14848 _ACEOF
14852 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
14853 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
14855 cat >>confdefs.h <<_ACEOF
14856 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
14857 _ACEOF
14861 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
14862 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
14864 cat >>confdefs.h <<_ACEOF
14865 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
14866 _ACEOF
14870 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
14871 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
14873 cat >>confdefs.h <<_ACEOF
14874 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
14875 _ACEOF
14879 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
14880 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
14882 cat >>confdefs.h <<_ACEOF
14883 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
14884 _ACEOF
14890 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
14891 #include <sys/types.h>
14892 #endif
14893 #ifdef HAVE_NETINET_IN_H
14894 #include <netinet/in.h>
14895 #endif
14897 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14899 cat >>confdefs.h <<_ACEOF
14900 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14901 _ACEOF
14907 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14908 #include <sys/types.h>
14909 #endif
14910 #ifdef HAVE_NETINET_IN_H
14911 # include <netinet/in.h>
14912 #endif
14913 #ifdef HAVE_ARPA_NAMESER_H
14914 # include <arpa/nameser.h>
14915 #endif
14917 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14919 cat >>confdefs.h <<_ACEOF
14920 #define HAVE_NS_MSG__MSG_PTR 1
14921 _ACEOF
14927 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
14928 #include <sys/types.h>
14929 #endif
14930 #ifdef HAVE_NETINET_IP_H
14931 #include <netinet/ip.h>
14932 #endif
14933 #ifdef HAVE_NETINET_IP_ICMP_H
14934 #include <netinet/ip_icmp.h>
14935 #endif
14936 #ifdef HAVE_NETINET_ICMP_VAR_H
14937 #include <netinet/icmp_var.h>
14938 #endif
14940 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
14942 cat >>confdefs.h <<_ACEOF
14943 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
14944 _ACEOF
14950 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14951 #include <sys/types.h>
14952 #endif
14953 #ifdef HAVE_ALIAS_H
14954 #include <alias.h>
14955 #endif
14956 #ifdef HAVE_SYS_SOCKET_H
14957 #include <sys/socket.h>
14958 #endif
14959 #ifdef HAVE_SYS_SOCKETVAR_H
14960 #include <sys/socketvar.h>
14961 #endif
14962 #ifdef HAVE_SYS_TIMEOUT_H
14963 #include <sys/timeout.h>
14964 #endif
14965 #ifdef HAVE_NETINET_IN_H
14966 #include <netinet/in.h>
14967 #endif
14968 #ifdef HAVE_NETINET_IN_SYSTM_H
14969 #include <netinet/in_systm.h>
14970 #endif
14971 #ifdef HAVE_NETINET_IP_H
14972 #include <netinet/ip.h>
14973 #endif
14974 #ifdef HAVE_NETINET_IP_VAR_H
14975 #include <netinet/ip_var.h>
14976 #endif
14977 #ifdef HAVE_NETINET_IP_ICMP_H
14978 #include <netinet/ip_icmp.h>
14979 #endif
14980 #ifdef HAVE_NETINET_ICMP_VAR_H
14981 #include <netinet/icmp_var.h>
14982 #endif
14984 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14986 cat >>confdefs.h <<_ACEOF
14987 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14988 _ACEOF
14994 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
14995 #include <sys/types.h>
14996 #endif
14997 #ifdef HAVE_SYS_SOCKETVAR_H
14998 #include <sys/socketvar.h>
14999 #endif
15000 #ifdef HAVE_NETINET_IN_H
15001 #include <netinet/in.h>
15002 #endif
15003 #ifdef HAVE_NETINET_IP_VAR_H
15004 #include <netinet/ip_var.h>
15005 #endif
15007 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
15009 cat >>confdefs.h <<_ACEOF
15010 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
15011 _ACEOF
15017 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
15018 #include <netinet/ip_var.h>
15019 #endif
15021 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
15023 cat >>confdefs.h <<_ACEOF
15024 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
15025 _ACEOF
15031 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
15032 #include <sys/types.h>
15033 #endif
15034 #ifdef HAVE_SYS_SOCKETVAR_H
15035 #include <sys/socketvar.h>
15036 #endif
15037 #ifdef HAVE_NETINET_IN_H
15038 #include <netinet/in.h>
15039 #endif
15040 #ifdef HAVE_NETINET_TCP_H
15041 #include <netinet/tcp.h>
15042 #endif
15043 #ifdef HAVE_NETINET_TCP_VAR_H
15044 #include <netinet/tcp_var.h>
15045 #endif
15047 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
15049 cat >>confdefs.h <<_ACEOF
15050 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
15051 _ACEOF
15057 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
15058 #include <netinet/tcp_var.h>
15059 #endif
15061 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
15063 cat >>confdefs.h <<_ACEOF
15064 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
15065 _ACEOF
15071 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
15072 #include <sys/types.h>
15073 #endif
15074 #ifdef HAVE_NETINET_IN_H
15075 #include <netinet/in.h>
15076 #endif
15077 #ifdef HAVE_NETINET_IP_VAR_H
15078 #include <netinet/ip_var.h>
15079 #endif
15080 #ifdef HAVE_NETINET_UDP_H
15081 #include <netinet/udp.h>
15082 #endif
15083 #ifdef HAVE_NETINET_UDP_VAR_H
15084 #include <netinet/udp_var.h>
15085 #endif
15087 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
15089 cat >>confdefs.h <<_ACEOF
15090 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
15091 _ACEOF
15097 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
15098 #include <sys/types.h>
15099 #endif
15100 #ifdef HAVE_NET_IF_H
15101 # include <net/if.h>
15102 #endif
15104 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
15106 cat >>confdefs.h <<_ACEOF
15107 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
15108 _ACEOF
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
15115 $as_echo_n "checking for timezone variable... " >&6; }
15116 if ${ac_cv_have_timezone+:} false; then :
15117 $as_echo_n "(cached) " >&6
15118 else
15119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15120 /* end confdefs.h. */
15121 #include <time.h>
15123 main ()
15125 timezone = 1
15127 return 0;
15129 _ACEOF
15130 if ac_fn_c_try_link "$LINENO"; then :
15131 ac_cv_have_timezone="yes"
15132 else
15133 ac_cv_have_timezone="no"
15135 rm -f core conftest.err conftest.$ac_objext \
15136 conftest$ac_exeext conftest.$ac_ext
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
15139 $as_echo "$ac_cv_have_timezone" >&6; }
15140 if test "$ac_cv_have_timezone" = "yes"
15141 then
15143 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
15147 $as_echo_n "checking for daylight variable... " >&6; }
15148 if ${ac_cv_have_daylight+:} false; then :
15149 $as_echo_n "(cached) " >&6
15150 else
15151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15152 /* end confdefs.h. */
15153 #include <time.h>
15155 main ()
15157 daylight = 1
15159 return 0;
15161 _ACEOF
15162 if ac_fn_c_try_link "$LINENO"; then :
15163 ac_cv_have_daylight="yes"
15164 else
15165 ac_cv_have_daylight="no"
15167 rm -f core conftest.err conftest.$ac_objext \
15168 conftest$ac_exeext conftest.$ac_ext
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
15171 $as_echo "$ac_cv_have_daylight" >&6; }
15172 if test "$ac_cv_have_daylight" = "yes"
15173 then
15175 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
15179 ac_save_LIBS="$LIBS"
15180 LIBS="$LIBS -lm"
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
15182 $as_echo_n "checking for isinf... " >&6; }
15183 if ${ac_cv_have_isinf+:} false; then :
15184 $as_echo_n "(cached) " >&6
15185 else
15186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187 /* end confdefs.h. */
15188 #include <math.h>
15190 main ()
15192 float f = 0.0; return isinf(f)
15194 return 0;
15196 _ACEOF
15197 if ac_fn_c_try_link "$LINENO"; then :
15198 ac_cv_have_isinf="yes"
15199 else
15200 ac_cv_have_isinf="no"
15202 rm -f core conftest.err conftest.$ac_objext \
15203 conftest$ac_exeext conftest.$ac_ext
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
15206 $as_echo "$ac_cv_have_isinf" >&6; }
15207 if test "$ac_cv_have_isinf" = "yes"
15208 then
15210 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
15215 $as_echo_n "checking for isnan... " >&6; }
15216 if ${ac_cv_have_isnan+:} false; then :
15217 $as_echo_n "(cached) " >&6
15218 else
15219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220 /* end confdefs.h. */
15221 #include <math.h>
15223 main ()
15225 float f = 0.0; return isnan(f)
15227 return 0;
15229 _ACEOF
15230 if ac_fn_c_try_link "$LINENO"; then :
15231 ac_cv_have_isnan="yes"
15232 else
15233 ac_cv_have_isnan="no"
15235 rm -f core conftest.err conftest.$ac_objext \
15236 conftest$ac_exeext conftest.$ac_ext
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
15239 $as_echo "$ac_cv_have_isnan" >&6; }
15240 if test "$ac_cv_have_isnan" = "yes"
15241 then
15243 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
15246 LIBS="$ac_save_LIBS"
15249 case $host_cpu in
15250 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
15251 $as_echo_n "checking whether we need to define __i386__... " >&6; }
15252 if ${ac_cv_cpp_def___i386__+:} false; then :
15253 $as_echo_n "(cached) " >&6
15254 else
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15257 #ifndef __i386__
15259 #endif
15260 _ACEOF
15261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15262 $EGREP "yes" >/dev/null 2>&1; then :
15263 ac_cv_cpp_def___i386__=yes
15264 else
15265 ac_cv_cpp_def___i386__=no
15267 rm -f conftest*
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
15271 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
15272 if test $ac_cv_cpp_def___i386__ = yes; then :
15273 CFLAGS="$CFLAGS -D__i386__"
15274 LINTFLAGS="$LINTFLAGS -D__i386__"
15275 fi ;;
15276 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
15277 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
15278 if ${ac_cv_cpp_def___x86_64__+:} false; then :
15279 $as_echo_n "(cached) " >&6
15280 else
15281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h. */
15283 #ifndef __x86_64__
15285 #endif
15286 _ACEOF
15287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15288 $EGREP "yes" >/dev/null 2>&1; then :
15289 ac_cv_cpp_def___x86_64__=yes
15290 else
15291 ac_cv_cpp_def___x86_64__=no
15293 rm -f conftest*
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
15297 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
15298 if test $ac_cv_cpp_def___x86_64__ = yes; then :
15299 CFLAGS="$CFLAGS -D__x86_64__"
15300 LINTFLAGS="$LINTFLAGS -D__x86_64__"
15301 fi ;;
15302 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
15303 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
15304 if ${ac_cv_cpp_def___sparc64__+:} false; then :
15305 $as_echo_n "(cached) " >&6
15306 else
15307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15308 /* end confdefs.h. */
15309 #ifndef __sparc64__
15311 #endif
15312 _ACEOF
15313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15314 $EGREP "yes" >/dev/null 2>&1; then :
15315 ac_cv_cpp_def___sparc64__=yes
15316 else
15317 ac_cv_cpp_def___sparc64__=no
15319 rm -f conftest*
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
15323 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
15324 if test $ac_cv_cpp_def___sparc64__ = yes; then :
15325 CFLAGS="$CFLAGS -D__sparc64__"
15326 LINTFLAGS="$LINTFLAGS -D__sparc64__"
15327 fi ;;
15328 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
15329 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
15330 if ${ac_cv_cpp_def___sparc__+:} false; then :
15331 $as_echo_n "(cached) " >&6
15332 else
15333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15334 /* end confdefs.h. */
15335 #ifndef __sparc__
15337 #endif
15338 _ACEOF
15339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15340 $EGREP "yes" >/dev/null 2>&1; then :
15341 ac_cv_cpp_def___sparc__=yes
15342 else
15343 ac_cv_cpp_def___sparc__=no
15345 rm -f conftest*
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
15349 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
15350 if test $ac_cv_cpp_def___sparc__ = yes; then :
15351 CFLAGS="$CFLAGS -D__sparc__"
15352 LINTFLAGS="$LINTFLAGS -D__sparc__"
15353 fi ;;
15354 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
15355 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
15356 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
15357 $as_echo_n "(cached) " >&6
15358 else
15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h. */
15361 #ifndef __powerpc64__
15363 #endif
15364 _ACEOF
15365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15366 $EGREP "yes" >/dev/null 2>&1; then :
15367 ac_cv_cpp_def___powerpc64__=yes
15368 else
15369 ac_cv_cpp_def___powerpc64__=no
15371 rm -f conftest*
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
15375 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
15376 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
15377 CFLAGS="$CFLAGS -D__powerpc64__"
15378 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
15379 fi ;;
15380 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
15381 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
15382 if ${ac_cv_cpp_def___powerpc__+:} false; then :
15383 $as_echo_n "(cached) " >&6
15384 else
15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15386 /* end confdefs.h. */
15387 #ifndef __powerpc__
15389 #endif
15390 _ACEOF
15391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15392 $EGREP "yes" >/dev/null 2>&1; then :
15393 ac_cv_cpp_def___powerpc__=yes
15394 else
15395 ac_cv_cpp_def___powerpc__=no
15397 rm -f conftest*
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
15401 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
15402 if test $ac_cv_cpp_def___powerpc__ = yes; then :
15403 CFLAGS="$CFLAGS -D__powerpc__"
15404 LINTFLAGS="$LINTFLAGS -D__powerpc__"
15405 fi ;;
15406 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
15407 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
15408 if ${ac_cv_cpp_def___aarch64__+:} false; then :
15409 $as_echo_n "(cached) " >&6
15410 else
15411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15412 /* end confdefs.h. */
15413 #ifndef __aarch64__
15415 #endif
15416 _ACEOF
15417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15418 $EGREP "yes" >/dev/null 2>&1; then :
15419 ac_cv_cpp_def___aarch64__=yes
15420 else
15421 ac_cv_cpp_def___aarch64__=no
15423 rm -f conftest*
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
15427 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
15428 if test $ac_cv_cpp_def___aarch64__ = yes; then :
15429 CFLAGS="$CFLAGS -D__aarch64__"
15430 LINTFLAGS="$LINTFLAGS -D__aarch64__"
15431 fi ;;
15432 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
15433 $as_echo_n "checking whether we need to define __arm__... " >&6; }
15434 if ${ac_cv_cpp_def___arm__+:} false; then :
15435 $as_echo_n "(cached) " >&6
15436 else
15437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438 /* end confdefs.h. */
15439 #ifndef __arm__
15441 #endif
15442 _ACEOF
15443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15444 $EGREP "yes" >/dev/null 2>&1; then :
15445 ac_cv_cpp_def___arm__=yes
15446 else
15447 ac_cv_cpp_def___arm__=no
15449 rm -f conftest*
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
15453 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
15454 if test $ac_cv_cpp_def___arm__ = yes; then :
15455 CFLAGS="$CFLAGS -D__arm__"
15456 LINTFLAGS="$LINTFLAGS -D__arm__"
15457 fi ;;
15458 esac
15460 case $host_vendor in
15461 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
15462 $as_echo_n "checking whether we need to define __sun__... " >&6; }
15463 if ${ac_cv_cpp_def___sun__+:} false; then :
15464 $as_echo_n "(cached) " >&6
15465 else
15466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15467 /* end confdefs.h. */
15468 #ifndef __sun__
15470 #endif
15471 _ACEOF
15472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15473 $EGREP "yes" >/dev/null 2>&1; then :
15474 ac_cv_cpp_def___sun__=yes
15475 else
15476 ac_cv_cpp_def___sun__=no
15478 rm -f conftest*
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
15482 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
15483 if test $ac_cv_cpp_def___sun__ = yes; then :
15484 CFLAGS="$CFLAGS -D__sun__"
15485 LINTFLAGS="$LINTFLAGS -D__sun__"
15486 fi ;;
15487 esac
15493 ac_config_commands="$ac_config_commands include/stamp-h"
15496 ALL_MAKEFILE_DEPENDS="
15497 # Rules automatically generated by configure
15499 .INIT: Makefile
15500 .MAKEFILEDEPS:
15501 all: Makefile
15502 Makefile: Makefile.in Make.vars.in Make.rules config.status
15503 @./config.status Make.tmp Makefile"
15505 ALL_POT_FILES=""
15506 ALL_TEST_RESOURCES=""
15509 wine_fn_append_file ()
15511 as_fn_append $1 " \\$as_nl $2"
15514 wine_fn_append_rule ()
15516 as_fn_append $1 "$as_nl$2"
15519 wine_fn_has_flag ()
15521 expr ",$2," : ".*,$1,.*" >/dev/null
15524 wine_fn_all_dir_rules ()
15526 ac_dir=$1
15527 ac_alldeps=$2
15528 ac_makedep="\$(MAKEDEP)"
15529 ac_input=Make.vars.in:$ac_dir/Makefile.in
15530 if test $ac_dir != tools
15531 then
15532 ac_alldeps="$2 $ac_makedep"
15533 else
15534 ac_alldeps="$2 include/config.h"
15536 case $2 in
15537 *.in) ac_input=$ac_input:$2 ;;
15538 *) ac_makedep="$2 $ac_makedep" ;;
15539 esac
15541 wine_fn_append_file ALL_DIRS $ac_dir
15542 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15543 "__clean__: $ac_dir/__clean__
15544 .PHONY: $ac_dir/__clean__
15545 $ac_dir/__clean__: $ac_dir/Makefile
15546 @cd $ac_dir && \$(MAKE) clean
15547 \$(RM) $ac_dir/Makefile
15548 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
15549 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
15550 depend: $ac_dir/__depend__
15551 .PHONY: $ac_dir/__depend__
15552 $ac_dir/__depend__: $ac_makedep dummy
15553 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
15556 wine_fn_pot_rules ()
15558 ac_dir=$1
15559 ac_flags=$2
15561 test "x$with_gettextpo" = xyes || return
15563 if wine_fn_has_flag mc $ac_flags
15564 then
15565 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
15566 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15567 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
15568 @cd $ac_dir && \$(MAKE) msg.pot
15569 $ac_dir/msg.pot: tools/wmc include"
15571 if wine_fn_has_flag po $ac_flags
15572 then
15573 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
15574 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15575 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
15576 @cd $ac_dir && \$(MAKE) rsrc.pot
15577 $ac_dir/rsrc.pot: tools/wrc include"
15581 wine_fn_config_makefile ()
15583 ac_dir=$1
15584 ac_enable=$2
15585 ac_flags=$3
15586 ac_rules=$4
15587 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15588 return 0
15591 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
15592 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15593 "all: $ac_dir
15594 .PHONY: $ac_dir
15595 $ac_dir: $ac_dir/Makefile dummy
15596 @cd $ac_dir && \$(MAKE)"
15598 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
15600 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15601 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15602 $ac_dir/__install__:: $ac_dir
15603 @cd $ac_dir && \$(MAKE) install
15604 $ac_dir/__uninstall__:: $ac_dir/Makefile
15605 @cd $ac_dir && \$(MAKE) uninstall
15606 install:: $ac_dir/__install__
15607 __uninstall__: $ac_dir/__uninstall__"
15609 if wine_fn_has_flag install-lib $ac_flags
15610 then
15611 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15612 ".PHONY: $ac_dir/__install-lib__
15613 $ac_dir/__install-lib__:: $ac_dir
15614 @cd $ac_dir && \$(MAKE) install-lib
15615 install-lib:: $ac_dir/__install-lib__"
15618 if wine_fn_has_flag install-dev $ac_flags
15619 then
15620 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15621 ".PHONY: $ac_dir/__install-dev
15622 $ac_dir/__install-dev__:: $ac_dir
15623 @cd $ac_dir && \$(MAKE) install-dev
15624 install-dev:: $ac_dir/__install-dev__"
15628 wine_fn_config_lib ()
15630 ac_name=$1
15631 ac_flags=$2
15632 ac_dir=dlls/$ac_name
15633 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
15635 if wine_fn_has_flag install-dev $ac_flags
15636 then :
15637 else
15638 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15639 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15640 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
15641 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15642 $ac_dir/__uninstall__::
15643 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15644 install install-dev:: $ac_dir/__install__
15645 __uninstall__: $ac_dir/__uninstall__"
15648 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
15649 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
15652 wine_fn_config_dll ()
15654 ac_name=$1
15655 ac_dir=dlls/$ac_name
15656 ac_enable=$2
15657 ac_flags=$3
15658 ac_implib=${4:-$ac_name}
15659 ac_file=$ac_dir/lib$ac_implib
15660 ac_dll=$ac_name
15661 ac_deps="tools/widl tools/winebuild tools/winegcc include"
15662 ac_implibflags=""
15664 case $ac_name in
15665 *16) ac_implibflags=" -m16" ;;
15666 *.*) ;;
15667 *) ac_dll=$ac_dll.dll ;;
15668 esac
15670 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
15672 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15673 test "$ac_enable" != enable_win16 || return 0
15674 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
15675 else
15676 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15677 "$ac_dir: __builddeps__
15678 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
15679 @cd $ac_dir && \$(MAKE) \$@"
15681 if wine_fn_has_flag install-lib $ac_flags
15682 then :
15683 else
15684 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15685 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
15686 install install-lib:: $ac_dir/__install-lib__
15687 __uninstall__: $ac_dir/__uninstall__"
15688 if test -n "$DLLEXT"
15689 then
15690 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15691 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15692 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
15693 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
15694 $ac_dir/__uninstall__::
15695 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
15696 else
15697 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15698 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15699 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
15700 $ac_dir/__uninstall__::
15701 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
15705 wine_fn_pot_rules $ac_dir $ac_flags
15708 if wine_fn_has_flag staticimplib $ac_flags
15709 then
15710 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15711 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
15712 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
15713 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
15714 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
15715 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
15716 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
15717 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15718 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15719 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15720 $ac_dir/__uninstall__::
15721 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15722 install install-dev:: $ac_dir/__install-dev__
15723 __uninstall__: $ac_dir/__uninstall__"
15725 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
15726 then
15727 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15728 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
15729 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
15730 $ac_dir/__uninstall__::
15731 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
15734 if test "x$CROSSTEST_DISABLE" = x
15735 then
15736 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15737 "__builddeps__: $ac_file.cross.a
15738 $ac_file.cross.a: $ac_dir/Makefile dummy
15739 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
15742 elif wine_fn_has_flag implib $ac_flags
15743 then
15744 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15745 "__builddeps__: $ac_file.$IMPLIBEXT
15746 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15747 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15748 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15749 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15750 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15751 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15752 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15753 $ac_dir/__uninstall__::
15754 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15755 install install-dev:: $ac_dir/__install-dev__
15756 __uninstall__: $ac_dir/__uninstall__"
15757 if test "x$CROSSTEST_DISABLE" = x
15758 then
15759 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15760 "__builddeps__: $ac_file.cross.a
15761 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15762 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
15765 if test "$ac_name" != "$ac_implib"
15766 then
15767 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15768 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
15769 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
15770 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
15771 clean::
15772 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
15773 if test "x$CROSSTEST_DISABLE" = x
15774 then
15775 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15776 "__builddeps__: dlls/lib$ac_implib.cross.a
15777 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
15778 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
15784 wine_fn_config_program ()
15786 ac_name=$1
15787 ac_dir=programs/$ac_name
15788 ac_enable=$2
15789 ac_flags=$3
15790 ac_program=$ac_name
15792 case $ac_name in
15793 *.*) ;;
15794 *) ac_program=$ac_program.exe ;;
15795 esac
15797 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
15799 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15801 else
15802 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15803 "$ac_dir: __builddeps__"
15805 wine_fn_pot_rules $ac_dir $ac_flags
15807 wine_fn_has_flag install $ac_flags || return
15808 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15809 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15810 install install-lib:: $ac_dir/__install__
15811 __uninstall__: $ac_dir/__uninstall__"
15813 if test -n "$DLLEXT"
15814 then
15815 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15816 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15817 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
15818 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
15819 $ac_dir/__uninstall__::
15820 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
15822 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
15823 then
15824 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15825 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
15826 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
15827 $ac_dir/__uninstall__::
15828 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
15830 else
15831 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15832 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15833 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
15834 $ac_dir/__uninstall__::
15835 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
15838 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
15839 then
15840 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15841 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
15842 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
15843 $ac_dir/__uninstall__::
15844 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
15849 wine_fn_config_test ()
15851 ac_dir=$1
15852 ac_name=$2
15853 ac_flags=$3
15854 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
15855 wine_fn_all_dir_rules $ac_dir Maketest.rules
15857 if test "x$enable_tests" = xno; then :
15859 else
15860 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15861 "all: $ac_dir
15862 .PHONY: $ac_dir
15863 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
15864 @cd $ac_dir && \$(MAKE)
15865 programs/winetest: $ac_dir
15866 check test: $ac_dir/__test__
15867 .PHONY: $ac_dir/__test__
15868 $ac_dir/__test__: dummy
15869 @cd $ac_dir && \$(MAKE) test
15870 testclean::
15871 \$(RM) $ac_dir/*.ok"
15873 if test "x$CROSSTEST_DISABLE" = x
15874 then
15875 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15876 "crosstest: $ac_dir/__crosstest__
15877 .PHONY: $ac_dir/__crosstest__
15878 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
15879 @cd $ac_dir && \$(MAKE) crosstest"
15884 wine_fn_config_tool ()
15886 ac_dir=$1
15887 ac_flags=$2
15888 if test "x$enable_tools" = xno; then :
15889 return 0
15892 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
15894 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
15895 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
15896 case $ac_dir in
15897 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
15898 esac
15901 wine_fn_config_makerules ()
15903 ac_rules=$1
15904 ac_deps=$2
15905 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15906 "$ac_rules: $ac_rules.in $ac_deps config.status
15907 @./config.status $ac_rules
15908 distclean::
15909 \$(RM) $ac_rules"
15912 wine_fn_config_symlink ()
15914 ac_link=$1
15915 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15916 "$ac_link:
15917 @./config.status $ac_link
15918 distclean::
15919 \$(RM) $ac_link"
15922 if test "x$CROSSTEST_DISABLE" != x
15923 then
15924 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15925 "crosstest:
15926 @echo \"crosstest is not supported (mingw not installed?)\" && false"
15928 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
15929 wine_fn_config_symlink dlls/shell32/AUTHORS
15930 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
15931 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
15932 if test "x$enable_fonts" != xno; then
15933 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
15934 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
15936 if test "x$enable_fonts" != xno; then
15937 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
15938 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
15940 if test "x$enable_fonts" != xno; then
15941 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
15942 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
15944 if test "x$enable_fonts" != xno; then
15945 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
15946 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
15948 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
15949 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
15950 if test "x$enable_tools" != xno; then
15951 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
15952 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
15954 ac_config_links="$ac_config_links wine:tools/winewrapper"
15955 wine_fn_config_symlink wine
15956 if test "x$enable_win64" != xno; then
15957 ac_config_links="$ac_config_links wine64:tools/winewrapper"
15958 wine_fn_config_symlink wine64
15961 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
15963 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
15965 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
15967 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
15969 ac_config_commands="$ac_config_commands dlls/user32/resources"
15971 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
15973 ac_config_commands="$ac_config_commands include/wine"
15976 wine_fn_config_makerules Make.rules
15977 MAKE_RULES=Make.rules
15978 ac_config_files="$ac_config_files Make.rules"
15980 wine_fn_config_makerules Maketest.rules Make.rules
15981 MAKE_TEST_RULES=Maketest.rules
15982 ac_config_files="$ac_config_files Maketest.rules"
15984 wine_fn_config_makerules dlls/Makedll.rules Make.rules
15985 MAKE_DLL_RULES=dlls/Makedll.rules
15986 ac_config_files="$ac_config_files dlls/Makedll.rules"
15988 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
15989 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
15990 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
15992 wine_fn_config_makerules programs/Makeprog.rules Make.rules
15993 MAKE_PROG_RULES=programs/Makeprog.rules
15994 ac_config_files="$ac_config_files programs/Makeprog.rules"
15997 wine_fn_config_dll acledit enable_acledit
15998 wine_fn_config_dll aclui enable_aclui implib
15999 wine_fn_config_dll activeds enable_activeds implib
16000 wine_fn_config_dll actxprxy enable_actxprxy
16001 wine_fn_config_lib adsiid
16002 wine_fn_config_dll advapi32 enable_advapi32 implib
16003 wine_fn_config_test dlls/advapi32/tests advapi32_test
16004 wine_fn_config_dll advpack enable_advpack implib
16005 wine_fn_config_test dlls/advpack/tests advpack_test
16006 wine_fn_config_dll amstream enable_amstream
16007 wine_fn_config_test dlls/amstream/tests amstream_test
16008 wine_fn_config_dll api-ms-win-core-localregistry-l1-1-0 enable_api_ms_win_core_localregistry_l1_1_0
16009 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-0 enable_api_ms_win_core_processthreads_l1_1_0
16010 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
16011 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
16012 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
16013 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
16014 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
16015 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
16016 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
16017 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
16018 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
16019 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
16020 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
16021 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
16022 wine_fn_config_dll apphelp enable_apphelp
16023 wine_fn_config_test dlls/apphelp/tests apphelp_test
16024 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
16025 wine_fn_config_dll atl enable_atl implib
16026 wine_fn_config_test dlls/atl/tests atl_test
16027 wine_fn_config_dll atl100 enable_atl100 implib
16028 wine_fn_config_test dlls/atl100/tests atl100_test
16029 wine_fn_config_dll atl80 enable_atl80 implib
16030 wine_fn_config_test dlls/atl80/tests atl80_test
16031 wine_fn_config_dll authz enable_authz
16032 wine_fn_config_dll avicap32 enable_avicap32 implib
16033 wine_fn_config_dll avifil32 enable_avifil32 implib,po
16034 wine_fn_config_test dlls/avifil32/tests avifil32_test
16035 wine_fn_config_dll avifile.dll16 enable_win16
16036 wine_fn_config_dll avrt enable_avrt implib
16037 wine_fn_config_dll bcrypt enable_bcrypt
16038 wine_fn_config_dll browseui enable_browseui po
16039 wine_fn_config_test dlls/browseui/tests browseui_test
16040 wine_fn_config_dll cabinet enable_cabinet implib
16041 wine_fn_config_test dlls/cabinet/tests cabinet_test
16042 wine_fn_config_dll capi2032 enable_capi2032 implib
16043 wine_fn_config_dll cards enable_cards implib
16044 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
16045 wine_fn_config_dll clusapi enable_clusapi implib
16046 wine_fn_config_dll comcat enable_comcat
16047 wine_fn_config_test dlls/comcat/tests comcat_test
16048 wine_fn_config_dll comctl32 enable_comctl32 implib,po
16049 wine_fn_config_test dlls/comctl32/tests comctl32_test
16050 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
16051 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
16052 wine_fn_config_dll comm.drv16 enable_win16
16053 wine_fn_config_dll commdlg.dll16 enable_win16
16054 wine_fn_config_dll compobj.dll16 enable_win16
16055 wine_fn_config_dll compstui enable_compstui implib
16056 wine_fn_config_dll comsvcs enable_comsvcs implib
16057 wine_fn_config_dll credui enable_credui implib,po
16058 wine_fn_config_test dlls/credui/tests credui_test
16059 wine_fn_config_dll crtdll enable_crtdll implib
16060 wine_fn_config_dll crypt32 enable_crypt32 implib,po
16061 wine_fn_config_test dlls/crypt32/tests crypt32_test
16062 wine_fn_config_dll cryptdlg enable_cryptdlg po
16063 wine_fn_config_dll cryptdll enable_cryptdll implib
16064 wine_fn_config_dll cryptnet enable_cryptnet implib
16065 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
16066 wine_fn_config_dll cryptui enable_cryptui implib,po
16067 wine_fn_config_test dlls/cryptui/tests cryptui_test
16068 wine_fn_config_dll ctapi32 enable_ctapi32
16069 wine_fn_config_dll ctl3d.dll16 enable_win16
16070 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
16071 wine_fn_config_dll ctl3dv2.dll16 enable_win16
16072 wine_fn_config_dll d3d10 enable_d3d10 implib
16073 wine_fn_config_test dlls/d3d10/tests d3d10_test
16074 wine_fn_config_dll d3d10core enable_d3d10core implib
16075 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
16076 wine_fn_config_dll d3d11 enable_d3d11
16077 wine_fn_config_dll d3d8 enable_d3d8 implib
16078 wine_fn_config_test dlls/d3d8/tests d3d8_test
16079 wine_fn_config_dll d3d9 enable_d3d9 implib
16080 wine_fn_config_test dlls/d3d9/tests d3d9_test
16081 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
16082 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
16083 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
16084 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
16085 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
16086 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
16087 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
16088 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
16089 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
16090 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
16091 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
16092 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
16093 wine_fn_config_dll d3dim enable_d3dim implib
16094 wine_fn_config_dll d3drm enable_d3drm implib
16095 wine_fn_config_test dlls/d3drm/tests d3drm_test
16096 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
16097 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
16098 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
16099 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
16100 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
16101 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
16102 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
16103 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
16104 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
16105 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
16106 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
16107 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
16108 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
16109 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
16110 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
16111 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
16112 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
16113 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
16114 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
16115 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
16116 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
16117 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
16118 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
16119 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
16120 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
16121 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
16122 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
16123 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
16124 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
16125 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
16126 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
16127 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
16128 wine_fn_config_dll d3dxof enable_d3dxof implib
16129 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
16130 wine_fn_config_dll dbgeng enable_dbgeng implib
16131 wine_fn_config_dll dbghelp enable_dbghelp implib
16132 wine_fn_config_dll dciman32 enable_dciman32 implib
16133 wine_fn_config_dll ddeml.dll16 enable_win16
16134 wine_fn_config_dll ddraw enable_ddraw implib
16135 wine_fn_config_test dlls/ddraw/tests ddraw_test
16136 wine_fn_config_dll ddrawex enable_ddrawex
16137 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
16138 wine_fn_config_dll devenum enable_devenum po
16139 wine_fn_config_test dlls/devenum/tests devenum_test
16140 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
16141 wine_fn_config_dll difxapi enable_difxapi
16142 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
16143 wine_fn_config_test dlls/dinput/tests dinput_test
16144 wine_fn_config_dll dinput8 enable_dinput8 implib
16145 wine_fn_config_test dlls/dinput8/tests dinput8_test
16146 wine_fn_config_dll dispdib.dll16 enable_win16
16147 wine_fn_config_dll dispex enable_dispex
16148 wine_fn_config_test dlls/dispex/tests dispex_test
16149 wine_fn_config_dll display.drv16 enable_win16
16150 wine_fn_config_dll dmband enable_dmband
16151 wine_fn_config_test dlls/dmband/tests dmband_test
16152 wine_fn_config_dll dmcompos enable_dmcompos
16153 wine_fn_config_dll dmime enable_dmime
16154 wine_fn_config_test dlls/dmime/tests dmime_test
16155 wine_fn_config_dll dmloader enable_dmloader
16156 wine_fn_config_test dlls/dmloader/tests dmloader_test
16157 wine_fn_config_dll dmscript enable_dmscript
16158 wine_fn_config_dll dmstyle enable_dmstyle
16159 wine_fn_config_dll dmsynth enable_dmsynth
16160 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
16161 wine_fn_config_dll dmusic enable_dmusic
16162 wine_fn_config_test dlls/dmusic/tests dmusic_test
16163 wine_fn_config_dll dmusic32 enable_dmusic32 implib
16164 wine_fn_config_dll dnsapi enable_dnsapi implib
16165 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
16166 wine_fn_config_dll dplay enable_dplay implib
16167 wine_fn_config_dll dplayx enable_dplayx implib
16168 wine_fn_config_test dlls/dplayx/tests dplayx_test
16169 wine_fn_config_dll dpnaddr enable_dpnaddr
16170 wine_fn_config_dll dpnet enable_dpnet implib
16171 wine_fn_config_test dlls/dpnet/tests dpnet_test
16172 wine_fn_config_dll dpnhpast enable_dpnhpast
16173 wine_fn_config_dll dpnlobby enable_dpnlobby
16174 wine_fn_config_dll dpwsockx enable_dpwsockx
16175 wine_fn_config_dll drmclien enable_drmclien
16176 wine_fn_config_dll dsound enable_dsound implib
16177 wine_fn_config_test dlls/dsound/tests dsound_test
16178 wine_fn_config_dll dssenh enable_dssenh
16179 wine_fn_config_test dlls/dssenh/tests dssenh_test
16180 wine_fn_config_dll dswave enable_dswave
16181 wine_fn_config_dll dwmapi enable_dwmapi implib
16182 wine_fn_config_dll dwrite enable_dwrite implib
16183 wine_fn_config_test dlls/dwrite/tests dwrite_test
16184 wine_fn_config_dll dxdiagn enable_dxdiagn po
16185 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
16186 wine_fn_config_lib dxerr8
16187 wine_fn_config_lib dxerr9
16188 wine_fn_config_dll dxgi enable_dxgi implib
16189 wine_fn_config_test dlls/dxgi/tests dxgi_test
16190 wine_fn_config_lib dxguid
16191 wine_fn_config_dll explorerframe enable_explorerframe
16192 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
16193 wine_fn_config_dll faultrep enable_faultrep implib
16194 wine_fn_config_test dlls/faultrep/tests faultrep_test
16195 wine_fn_config_dll fltlib enable_fltlib
16196 wine_fn_config_dll fusion enable_fusion
16197 wine_fn_config_test dlls/fusion/tests fusion_test
16198 wine_fn_config_dll fwpuclnt enable_fwpuclnt
16199 wine_fn_config_dll gameux enable_gameux
16200 wine_fn_config_test dlls/gameux/tests gameux_test
16201 wine_fn_config_dll gdi.exe16 enable_win16
16202 wine_fn_config_dll gdi32 enable_gdi32 implib,po
16203 wine_fn_config_test dlls/gdi32/tests gdi32_test
16204 wine_fn_config_dll gdiplus enable_gdiplus implib
16205 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
16206 wine_fn_config_dll glu32 enable_glu32 implib
16207 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
16208 wine_fn_config_dll gpkcsp enable_gpkcsp
16209 wine_fn_config_dll hal enable_hal
16210 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx implib,po htmlhelp
16211 wine_fn_config_dll hid enable_hid implib
16212 wine_fn_config_dll hlink enable_hlink implib
16213 wine_fn_config_test dlls/hlink/tests hlink_test
16214 wine_fn_config_dll hnetcfg enable_hnetcfg
16215 wine_fn_config_dll httpapi enable_httpapi
16216 wine_fn_config_dll iccvid enable_iccvid po
16217 wine_fn_config_dll icmp enable_icmp
16218 wine_fn_config_dll ieframe enable_ieframe implib,po
16219 wine_fn_config_test dlls/ieframe/tests ieframe_test
16220 wine_fn_config_dll ifsmgr.vxd enable_win16
16221 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
16222 wine_fn_config_dll imagehlp enable_imagehlp implib
16223 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
16224 wine_fn_config_dll imm.dll16 enable_win16
16225 wine_fn_config_dll imm32 enable_imm32 implib
16226 wine_fn_config_test dlls/imm32/tests imm32_test
16227 wine_fn_config_dll inetcomm enable_inetcomm implib
16228 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
16229 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
16230 wine_fn_config_dll inetmib1 enable_inetmib1
16231 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
16232 wine_fn_config_dll infosoft enable_infosoft
16233 wine_fn_config_test dlls/infosoft/tests infosoft_test
16234 wine_fn_config_dll initpki enable_initpki
16235 wine_fn_config_dll inkobj enable_inkobj
16236 wine_fn_config_dll inseng enable_inseng
16237 wine_fn_config_dll iphlpapi enable_iphlpapi implib
16238 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
16239 wine_fn_config_dll itircl enable_itircl
16240 wine_fn_config_dll itss enable_itss
16241 wine_fn_config_test dlls/itss/tests itss_test
16242 wine_fn_config_dll joy.cpl enable_joy_cpl po
16243 wine_fn_config_dll jscript enable_jscript po
16244 wine_fn_config_test dlls/jscript/tests jscript_test
16245 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
16246 wine_fn_config_test dlls/kernel32/tests kernel32_test
16247 wine_fn_config_dll keyboard.drv16 enable_win16
16248 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
16249 wine_fn_config_dll ktmw32 enable_ktmw32
16250 wine_fn_config_dll loadperf enable_loadperf implib
16251 wine_fn_config_dll localspl enable_localspl po
16252 wine_fn_config_test dlls/localspl/tests localspl_test
16253 wine_fn_config_dll localui enable_localui po
16254 wine_fn_config_test dlls/localui/tests localui_test
16255 wine_fn_config_dll lz32 enable_lz32 implib
16256 wine_fn_config_test dlls/lz32/tests lz32_test
16257 wine_fn_config_dll lzexpand.dll16 enable_win16
16258 wine_fn_config_dll mapi32 enable_mapi32 implib,po
16259 wine_fn_config_test dlls/mapi32/tests mapi32_test
16260 wine_fn_config_dll mapistub enable_mapistub
16261 wine_fn_config_dll mciavi32 enable_mciavi32
16262 wine_fn_config_dll mcicda enable_mcicda
16263 wine_fn_config_dll mciqtz32 enable_mciqtz32
16264 wine_fn_config_dll mciseq enable_mciseq
16265 wine_fn_config_dll mciwave enable_mciwave
16266 wine_fn_config_dll mgmtapi enable_mgmtapi
16267 wine_fn_config_dll midimap enable_midimap
16268 wine_fn_config_dll mlang enable_mlang implib
16269 wine_fn_config_test dlls/mlang/tests mlang_test
16270 wine_fn_config_dll mmcndmgr enable_mmcndmgr
16271 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
16272 wine_fn_config_dll mmdevapi enable_mmdevapi
16273 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
16274 wine_fn_config_dll mmdevldr.vxd enable_win16
16275 wine_fn_config_dll mmsystem.dll16 enable_win16
16276 wine_fn_config_dll monodebg.vxd enable_win16
16277 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
16278 wine_fn_config_dll mouse.drv16 enable_win16
16279 wine_fn_config_dll mpr enable_mpr implib,po
16280 wine_fn_config_test dlls/mpr/tests mpr_test
16281 wine_fn_config_dll mprapi enable_mprapi implib
16282 wine_fn_config_dll msacm.dll16 enable_win16
16283 wine_fn_config_dll msacm32.drv enable_msacm32_drv
16284 wine_fn_config_dll msacm32 enable_msacm32 implib,po
16285 wine_fn_config_test dlls/msacm32/tests msacm32_test
16286 wine_fn_config_dll msadp32.acm enable_msadp32_acm
16287 wine_fn_config_dll mscat32 enable_mscat32
16288 wine_fn_config_dll mscms enable_mscms implib
16289 wine_fn_config_test dlls/mscms/tests mscms_test
16290 wine_fn_config_dll mscoree enable_mscoree
16291 wine_fn_config_test dlls/mscoree/tests mscoree_test
16292 wine_fn_config_dll msctf enable_msctf
16293 wine_fn_config_test dlls/msctf/tests msctf_test
16294 wine_fn_config_dll msdaps enable_msdaps
16295 wine_fn_config_dll msdmo enable_msdmo implib
16296 wine_fn_config_dll msftedit enable_msftedit
16297 wine_fn_config_dll msg711.acm enable_msg711_acm
16298 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
16299 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
16300 wine_fn_config_dll mshtml enable_mshtml implib,po
16301 wine_fn_config_test dlls/mshtml/tests mshtml_test
16302 wine_fn_config_dll msi enable_msi implib,po
16303 wine_fn_config_test dlls/msi/tests msi_test
16304 wine_fn_config_dll msident enable_msident
16305 wine_fn_config_dll msimg32 enable_msimg32 implib
16306 wine_fn_config_dll msimsg enable_msimsg
16307 wine_fn_config_dll msimtf enable_msimtf
16308 wine_fn_config_dll msisip enable_msisip
16309 wine_fn_config_dll msisys.ocx enable_msisys_ocx
16310 wine_fn_config_dll msls31 enable_msls31
16311 wine_fn_config_dll msnet32 enable_msnet32
16312 wine_fn_config_dll mspatcha enable_mspatcha
16313 wine_fn_config_dll msrle32 enable_msrle32 po
16314 wine_fn_config_dll mssign32 enable_mssign32
16315 wine_fn_config_dll mssip32 enable_mssip32
16316 wine_fn_config_dll mstask enable_mstask
16317 wine_fn_config_test dlls/mstask/tests mstask_test
16318 wine_fn_config_dll msvcirt enable_msvcirt
16319 wine_fn_config_dll msvcm80 enable_msvcm80
16320 wine_fn_config_dll msvcm90 enable_msvcm90
16321 wine_fn_config_dll msvcp100 enable_msvcp100
16322 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
16323 wine_fn_config_dll msvcp110 enable_msvcp110
16324 wine_fn_config_dll msvcp60 enable_msvcp60
16325 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
16326 wine_fn_config_dll msvcp70 enable_msvcp70
16327 wine_fn_config_dll msvcp71 enable_msvcp71
16328 wine_fn_config_dll msvcp80 enable_msvcp80
16329 wine_fn_config_dll msvcp90 enable_msvcp90
16330 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
16331 wine_fn_config_dll msvcr100 enable_msvcr100
16332 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
16333 wine_fn_config_dll msvcr110 enable_msvcr110
16334 wine_fn_config_dll msvcr70 enable_msvcr70 implib
16335 wine_fn_config_dll msvcr71 enable_msvcr71 implib
16336 wine_fn_config_dll msvcr80 enable_msvcr80
16337 wine_fn_config_dll msvcr90 enable_msvcr90
16338 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
16339 wine_fn_config_dll msvcrt enable_msvcrt implib
16340 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
16341 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
16342 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
16343 wine_fn_config_dll msvcrtd enable_msvcrtd implib
16344 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
16345 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
16346 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
16347 wine_fn_config_dll msvidc32 enable_msvidc32 po
16348 wine_fn_config_dll msvideo.dll16 enable_win16
16349 wine_fn_config_dll mswsock enable_mswsock implib
16350 wine_fn_config_dll msxml enable_msxml
16351 wine_fn_config_dll msxml2 enable_msxml2
16352 wine_fn_config_dll msxml3 enable_msxml3
16353 wine_fn_config_test dlls/msxml3/tests msxml3_test
16354 wine_fn_config_dll msxml4 enable_msxml4
16355 wine_fn_config_dll msxml6 enable_msxml6
16356 wine_fn_config_dll nddeapi enable_nddeapi implib
16357 wine_fn_config_dll netapi32 enable_netapi32 implib
16358 wine_fn_config_test dlls/netapi32/tests netapi32_test
16359 wine_fn_config_dll newdev enable_newdev implib
16360 wine_fn_config_dll normaliz enable_normaliz implib
16361 wine_fn_config_dll npmshtml enable_npmshtml
16362 wine_fn_config_dll ntdll enable_ntdll implib
16363 wine_fn_config_test dlls/ntdll/tests ntdll_test
16364 wine_fn_config_dll ntdsapi enable_ntdsapi implib
16365 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
16366 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
16367 wine_fn_config_dll ntprint enable_ntprint
16368 wine_fn_config_test dlls/ntprint/tests ntprint_test
16369 wine_fn_config_dll objsel enable_objsel
16370 wine_fn_config_dll odbc32 enable_odbc32 implib
16371 wine_fn_config_dll odbccp32 enable_odbccp32 implib
16372 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
16373 wine_fn_config_dll odbccu32 enable_odbccu32
16374 wine_fn_config_dll ole2.dll16 enable_win16
16375 wine_fn_config_dll ole2conv.dll16 enable_win16
16376 wine_fn_config_dll ole2disp.dll16 enable_win16
16377 wine_fn_config_dll ole2nls.dll16 enable_win16
16378 wine_fn_config_dll ole2prox.dll16 enable_win16
16379 wine_fn_config_dll ole2thk.dll16 enable_win16
16380 wine_fn_config_dll ole32 enable_ole32 implib
16381 wine_fn_config_test dlls/ole32/tests ole32_test
16382 wine_fn_config_dll oleacc enable_oleacc implib,po
16383 wine_fn_config_test dlls/oleacc/tests oleacc_test
16384 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
16385 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
16386 wine_fn_config_dll olecli.dll16 enable_win16
16387 wine_fn_config_dll olecli32 enable_olecli32 implib
16388 wine_fn_config_dll oledb32 enable_oledb32
16389 wine_fn_config_test dlls/oledb32/tests oledb32_test
16390 wine_fn_config_dll oledlg enable_oledlg implib,po
16391 wine_fn_config_dll olepro32 enable_olepro32 implib
16392 wine_fn_config_dll olesvr.dll16 enable_win16
16393 wine_fn_config_dll olesvr32 enable_olesvr32 implib
16394 wine_fn_config_dll olethk32 enable_olethk32
16395 wine_fn_config_dll openal32 enable_openal32
16396 wine_fn_config_dll opencl enable_opencl
16397 wine_fn_config_dll opengl32 enable_opengl32 implib
16398 wine_fn_config_test dlls/opengl32/tests opengl32_test
16399 wine_fn_config_dll pdh enable_pdh implib
16400 wine_fn_config_test dlls/pdh/tests pdh_test
16401 wine_fn_config_dll photometadatahandler enable_photometadatahandler
16402 wine_fn_config_dll pidgen enable_pidgen
16403 wine_fn_config_dll powrprof enable_powrprof implib
16404 wine_fn_config_dll printui enable_printui
16405 wine_fn_config_dll propsys enable_propsys implib
16406 wine_fn_config_test dlls/propsys/tests propsys_test
16407 wine_fn_config_dll psapi enable_psapi implib
16408 wine_fn_config_test dlls/psapi/tests psapi_test
16409 wine_fn_config_dll pstorec enable_pstorec
16410 wine_fn_config_dll qcap enable_qcap
16411 wine_fn_config_test dlls/qcap/tests qcap_test
16412 wine_fn_config_dll qedit enable_qedit
16413 wine_fn_config_test dlls/qedit/tests qedit_test
16414 wine_fn_config_dll qmgr enable_qmgr
16415 wine_fn_config_test dlls/qmgr/tests qmgr_test
16416 wine_fn_config_dll qmgrprxy enable_qmgrprxy
16417 wine_fn_config_dll quartz enable_quartz implib
16418 wine_fn_config_test dlls/quartz/tests quartz_test
16419 wine_fn_config_dll query enable_query
16420 wine_fn_config_dll rasapi16.dll16 enable_win16
16421 wine_fn_config_dll rasapi32 enable_rasapi32 implib
16422 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
16423 wine_fn_config_dll rasdlg enable_rasdlg implib
16424 wine_fn_config_dll regapi enable_regapi
16425 wine_fn_config_dll resutils enable_resutils implib
16426 wine_fn_config_dll riched20 enable_riched20 implib
16427 wine_fn_config_test dlls/riched20/tests riched20_test
16428 wine_fn_config_dll riched32 enable_riched32
16429 wine_fn_config_test dlls/riched32/tests riched32_test
16430 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
16431 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
16432 wine_fn_config_dll rsabase enable_rsabase
16433 wine_fn_config_dll rsaenh enable_rsaenh implib
16434 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
16435 wine_fn_config_dll rstrtmgr enable_rstrtmgr
16436 wine_fn_config_dll rtutils enable_rtutils implib
16437 wine_fn_config_dll samlib enable_samlib
16438 wine_fn_config_dll sane.ds enable_sane_ds po
16439 wine_fn_config_dll scarddlg enable_scarddlg
16440 wine_fn_config_dll sccbase enable_sccbase
16441 wine_fn_config_dll schannel enable_schannel
16442 wine_fn_config_test dlls/schannel/tests schannel_test
16443 wine_fn_config_dll scrrun enable_scrrun
16444 wine_fn_config_test dlls/scrrun/tests scrrun_test
16445 wine_fn_config_dll scsiport.sys enable_scsiport_sys
16446 wine_fn_config_dll secur32 enable_secur32 implib
16447 wine_fn_config_test dlls/secur32/tests secur32_test
16448 wine_fn_config_dll security enable_security
16449 wine_fn_config_dll sensapi enable_sensapi implib
16450 wine_fn_config_dll serialui enable_serialui implib,po
16451 wine_fn_config_test dlls/serialui/tests serialui_test
16452 wine_fn_config_dll setupapi enable_setupapi implib,po
16453 wine_fn_config_test dlls/setupapi/tests setupapi_test
16454 wine_fn_config_dll setupx.dll16 enable_win16
16455 wine_fn_config_dll sfc enable_sfc implib
16456 wine_fn_config_dll sfc_os enable_sfc_os implib
16457 wine_fn_config_dll shdoclc enable_shdoclc po
16458 wine_fn_config_dll shdocvw enable_shdocvw implib
16459 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
16460 wine_fn_config_dll shell.dll16 enable_win16
16461 wine_fn_config_dll shell32 enable_shell32 implib,po
16462 wine_fn_config_test dlls/shell32/tests shell32_test
16463 wine_fn_config_dll shfolder enable_shfolder implib
16464 wine_fn_config_dll shlwapi enable_shlwapi implib,po
16465 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
16466 wine_fn_config_dll slbcsp enable_slbcsp
16467 wine_fn_config_dll slc enable_slc implib
16468 wine_fn_config_dll snmpapi enable_snmpapi implib
16469 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
16470 wine_fn_config_dll softpub enable_softpub
16471 wine_fn_config_dll sound.drv16 enable_win16
16472 wine_fn_config_dll spoolss enable_spoolss implib
16473 wine_fn_config_test dlls/spoolss/tests spoolss_test
16474 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
16475 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
16476 wine_fn_config_dll sti enable_sti implib
16477 wine_fn_config_test dlls/sti/tests sti_test
16478 wine_fn_config_dll storage.dll16 enable_win16
16479 wine_fn_config_dll stress.dll16 enable_win16
16480 wine_fn_config_lib strmbase
16481 wine_fn_config_lib strmiids
16482 wine_fn_config_dll svrapi enable_svrapi
16483 wine_fn_config_dll sxs enable_sxs implib
16484 wine_fn_config_test dlls/sxs/tests sxs_test
16485 wine_fn_config_dll system.drv16 enable_win16
16486 wine_fn_config_dll t2embed enable_t2embed
16487 wine_fn_config_dll tapi32 enable_tapi32 implib
16488 wine_fn_config_dll toolhelp.dll16 enable_win16
16489 wine_fn_config_dll traffic enable_traffic
16490 wine_fn_config_dll twain.dll16 enable_win16
16491 wine_fn_config_dll twain_32 enable_twain_32
16492 wine_fn_config_test dlls/twain_32/tests twain_32_test
16493 wine_fn_config_dll typelib.dll16 enable_win16
16494 wine_fn_config_dll unicows enable_unicows implib
16495 wine_fn_config_dll updspapi enable_updspapi
16496 wine_fn_config_dll url enable_url implib
16497 wine_fn_config_dll urlmon enable_urlmon implib,po
16498 wine_fn_config_test dlls/urlmon/tests urlmon_test
16499 wine_fn_config_dll usbd.sys enable_usbd_sys implib
16500 wine_fn_config_dll user.exe16 enable_win16
16501 wine_fn_config_dll user32 enable_user32 implib,po
16502 wine_fn_config_test dlls/user32/tests user32_test
16503 wine_fn_config_dll userenv enable_userenv implib
16504 wine_fn_config_test dlls/userenv/tests userenv_test
16505 wine_fn_config_dll usp10 enable_usp10 implib
16506 wine_fn_config_test dlls/usp10/tests usp10_test
16507 wine_fn_config_lib uuid
16508 wine_fn_config_dll uxtheme enable_uxtheme implib
16509 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
16510 wine_fn_config_dll vbscript enable_vbscript
16511 wine_fn_config_test dlls/vbscript/tests vbscript_test
16512 wine_fn_config_dll vcomp enable_vcomp
16513 wine_fn_config_dll vcomp100 enable_vcomp100
16514 wine_fn_config_dll vcomp90 enable_vcomp90
16515 wine_fn_config_dll vdhcp.vxd enable_win16
16516 wine_fn_config_dll vdmdbg enable_vdmdbg implib
16517 wine_fn_config_dll ver.dll16 enable_win16
16518 wine_fn_config_dll version enable_version implib
16519 wine_fn_config_test dlls/version/tests version_test
16520 wine_fn_config_dll vmm.vxd enable_win16
16521 wine_fn_config_dll vnbt.vxd enable_win16
16522 wine_fn_config_dll vnetbios.vxd enable_win16
16523 wine_fn_config_dll vtdapi.vxd enable_win16
16524 wine_fn_config_dll vwin32.vxd enable_win16
16525 wine_fn_config_dll w32skrnl enable_win16
16526 wine_fn_config_dll w32sys.dll16 enable_win16
16527 wine_fn_config_dll wbemdisp enable_wbemdisp
16528 wine_fn_config_dll wbemprox enable_wbemprox
16529 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
16530 wine_fn_config_dll webservices enable_webservices implib
16531 wine_fn_config_dll wer enable_wer implib
16532 wine_fn_config_test dlls/wer/tests wer_test
16533 wine_fn_config_dll wevtapi enable_wevtapi
16534 wine_fn_config_dll wiaservc enable_wiaservc
16535 wine_fn_config_dll win32s16.dll16 enable_win16
16536 wine_fn_config_dll win87em.dll16 enable_win16
16537 wine_fn_config_dll winaspi.dll16 enable_win16
16538 wine_fn_config_dll windebug.dll16 enable_win16
16539 wine_fn_config_dll windowscodecs enable_windowscodecs implib
16540 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
16541 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
16542 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
16543 wine_fn_config_dll winealsa.drv enable_winealsa_drv
16544 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
16545 wine_fn_config_lib winecrt0
16546 wine_fn_config_dll wined3d enable_wined3d implib
16547 wine_fn_config_dll winegstreamer enable_winegstreamer
16548 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
16549 wine_fn_config_dll winemac.drv enable_winemac_drv
16550 wine_fn_config_dll winemapi enable_winemapi
16551 wine_fn_config_dll winemp3.acm enable_winemp3_acm
16552 wine_fn_config_dll wineoss.drv enable_wineoss_drv
16553 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
16554 wine_fn_config_dll wineps16.drv16 enable_win16
16555 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
16556 wine_fn_config_dll winex11.drv enable_winex11_drv
16557 wine_fn_config_dll wing.dll16 enable_win16
16558 wine_fn_config_dll wing32 enable_wing32
16559 wine_fn_config_dll winhttp enable_winhttp implib
16560 wine_fn_config_test dlls/winhttp/tests winhttp_test
16561 wine_fn_config_dll wininet enable_wininet implib,po
16562 wine_fn_config_test dlls/wininet/tests wininet_test
16563 wine_fn_config_dll winmm enable_winmm implib,po
16564 wine_fn_config_test dlls/winmm/tests winmm_test
16565 wine_fn_config_dll winnls.dll16 enable_win16
16566 wine_fn_config_dll winnls32 enable_winnls32 implib
16567 wine_fn_config_dll winscard enable_winscard implib
16568 wine_fn_config_dll winsock.dll16 enable_win16
16569 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
16570 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
16571 wine_fn_config_dll winsta enable_winsta
16572 wine_fn_config_dll wintab.dll16 enable_win16
16573 wine_fn_config_dll wintab32 enable_wintab32 implib
16574 wine_fn_config_test dlls/wintab32/tests wintab32_test
16575 wine_fn_config_dll wintrust enable_wintrust implib
16576 wine_fn_config_test dlls/wintrust/tests wintrust_test
16577 wine_fn_config_dll wlanapi enable_wlanapi
16578 wine_fn_config_dll wldap32 enable_wldap32 implib,po
16579 wine_fn_config_test dlls/wldap32/tests wldap32_test
16580 wine_fn_config_dll wmi enable_wmi
16581 wine_fn_config_dll wmiutils enable_wmiutils
16582 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
16583 wine_fn_config_dll wmvcore enable_wmvcore
16584 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
16585 wine_fn_config_dll wow32 enable_win16 implib
16586 wine_fn_config_dll ws2_32 enable_ws2_32 implib
16587 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
16588 wine_fn_config_dll wshom.ocx enable_wshom_ocx
16589 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
16590 wine_fn_config_dll wsnmp32 enable_wsnmp32
16591 wine_fn_config_dll wsock32 enable_wsock32 implib
16592 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
16593 wine_fn_config_dll wuapi enable_wuapi
16594 wine_fn_config_dll wuaueng enable_wuaueng
16595 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
16596 wine_fn_config_dll xinput1_1 enable_xinput1_1
16597 wine_fn_config_dll xinput1_2 enable_xinput1_2
16598 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
16599 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
16600 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
16601 wine_fn_config_dll xmllite enable_xmllite
16602 wine_fn_config_test dlls/xmllite/tests xmllite_test
16603 wine_fn_config_dll xolehlp enable_xolehlp
16604 wine_fn_config_dll xpsprint enable_xpsprint
16605 wine_fn_config_dll xpssvcs enable_xpssvcs
16606 wine_fn_config_makefile documentation enable_documentation
16607 wine_fn_config_makefile fonts enable_fonts install-lib
16608 wine_fn_config_makefile include enable_include install-dev
16609 wine_fn_config_makefile libs/port enable_libs_port
16610 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
16611 wine_fn_config_makefile libs/wpp enable_libs_wpp
16612 wine_fn_config_makefile loader enable_loader install-lib,manpage
16613 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
16614 wine_fn_config_program attrib enable_attrib install,po
16615 wine_fn_config_program cabarc enable_cabarc install
16616 wine_fn_config_program cacls enable_cacls install
16617 wine_fn_config_program clock enable_clock install,po
16618 wine_fn_config_program cmd enable_cmd install,po
16619 wine_fn_config_test programs/cmd/tests cmd.exe_test
16620 wine_fn_config_program conhost enable_conhost install
16621 wine_fn_config_program control enable_control install
16622 wine_fn_config_program cscript enable_cscript install
16623 wine_fn_config_program dxdiag enable_dxdiag install,po
16624 wine_fn_config_program eject enable_eject install
16625 wine_fn_config_program expand enable_expand install
16626 wine_fn_config_program explorer enable_explorer install,po
16627 wine_fn_config_program extrac32 enable_extrac32 install
16628 wine_fn_config_program findstr enable_findstr install
16629 wine_fn_config_program hh enable_hh install
16630 wine_fn_config_program hostname enable_hostname install,po
16631 wine_fn_config_program icinfo enable_icinfo install
16632 wine_fn_config_program iexplore enable_iexplore install
16633 wine_fn_config_program ipconfig enable_ipconfig install,po
16634 wine_fn_config_program lodctr enable_lodctr install
16635 wine_fn_config_program mofcomp enable_mofcomp install
16636 wine_fn_config_program mshta enable_mshta install
16637 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
16638 wine_fn_config_program net enable_net install,po
16639 wine_fn_config_program netsh enable_netsh install
16640 wine_fn_config_program netstat enable_netstat install,po
16641 wine_fn_config_program ngen enable_ngen install
16642 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
16643 wine_fn_config_program oleview enable_oleview install,po
16644 wine_fn_config_program ping enable_ping install
16645 wine_fn_config_program plugplay enable_plugplay install
16646 wine_fn_config_program presentationfontcache enable_presentationfontcache install
16647 wine_fn_config_program progman enable_progman install,po
16648 wine_fn_config_program reg enable_reg install,po
16649 wine_fn_config_program regasm enable_regasm install
16650 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
16651 wine_fn_config_test programs/regedit/tests regedit.exe_test
16652 wine_fn_config_program regsvcs enable_regsvcs install
16653 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
16654 wine_fn_config_program rpcss enable_rpcss install
16655 wine_fn_config_program rundll.exe16 enable_win16 install
16656 wine_fn_config_program rundll32 enable_rundll32 install
16657 wine_fn_config_program sc enable_sc install
16658 wine_fn_config_program schtasks enable_schtasks install
16659 wine_fn_config_program secedit enable_secedit install
16660 wine_fn_config_program servicemodelreg enable_servicemodelreg install
16661 wine_fn_config_program services enable_services install
16662 wine_fn_config_test programs/services/tests services.exe_test
16663 wine_fn_config_program spoolsv enable_spoolsv install
16664 wine_fn_config_program start enable_start install,po
16665 wine_fn_config_program svchost enable_svchost install
16666 wine_fn_config_program taskkill enable_taskkill install,po
16667 wine_fn_config_program tasklist enable_tasklist install
16668 wine_fn_config_program taskmgr enable_taskmgr install,po
16669 wine_fn_config_program termsv enable_termsv install
16670 wine_fn_config_program uninstaller enable_uninstaller install,po
16671 wine_fn_config_program unlodctr enable_unlodctr install
16672 wine_fn_config_program view enable_view install,po
16673 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
16674 wine_fn_config_program winebrowser enable_winebrowser install
16675 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
16676 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
16677 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
16678 wine_fn_config_program winedevice enable_winedevice install
16679 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
16680 wine_fn_config_program winemenubuilder enable_winemenubuilder install
16681 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
16682 wine_fn_config_program winemsibuilder enable_winemsibuilder install
16683 wine_fn_config_program winepath enable_winepath install,installbin,manpage
16684 wine_fn_config_program winetest enable_winetest
16685 wine_fn_config_program winevdm enable_win16 install
16686 wine_fn_config_program winhelp.exe16 enable_win16 install
16687 wine_fn_config_program winhlp32 enable_winhlp32 install,po
16688 wine_fn_config_program winoldap.mod16 enable_win16 install
16689 wine_fn_config_program winver enable_winver install
16690 wine_fn_config_program wmic enable_wmic install,po
16691 wine_fn_config_program wordpad enable_wordpad install,po
16692 wine_fn_config_program write enable_write install,po
16693 wine_fn_config_program wscript enable_wscript install
16694 wine_fn_config_test programs/wscript/tests wscript.exe_test
16695 wine_fn_config_program wusa enable_wusa install
16696 wine_fn_config_program xcopy enable_xcopy install,po
16697 wine_fn_config_makefile server enable_server install-lib,manpage
16698 wine_fn_config_tool tools install-dev,install-lib,manpage
16699 wine_fn_config_tool tools/widl install-dev,manpage
16700 wine_fn_config_tool tools/winebuild install-dev,manpage
16701 wine_fn_config_tool tools/winedump install-dev,manpage
16702 wine_fn_config_tool tools/winegcc install-dev,manpage
16703 wine_fn_config_tool tools/wmc install-dev,manpage
16704 wine_fn_config_tool tools/wrc install-dev,manpage
16706 LINGUAS="\
16707 ar \
16708 bg \
16709 ca \
16710 cs \
16711 da \
16712 de \
16713 el \
16714 en \
16715 en_US \
16716 eo \
16717 es \
16718 fa \
16719 fi \
16720 fr \
16721 he \
16722 hi \
16723 hr \
16724 hu \
16725 it \
16726 ja \
16727 ko \
16728 lt \
16729 ml \
16730 nb_NO \
16731 nl \
16732 or \
16733 pa \
16734 pl \
16735 pt_BR \
16736 pt_PT \
16737 rm \
16738 ro \
16739 ru \
16740 sk \
16741 sl \
16742 sr_RS@cyrillic \
16743 sr_RS@latin \
16744 sv \
16745 te \
16746 th \
16747 tr \
16748 uk \
16749 wa \
16750 zh_CN \
16751 zh_TW"
16755 ac_config_commands="$ac_config_commands Makefile"
16758 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
16762 if test "x$enable_maintainer_mode" = xyes
16763 then
16764 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
16765 cd \$(srcdir) && autoconf --warnings=all
16766 \$(srcdir)/include/config.h.in: include/stamp-h.in
16767 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
16768 cd \$(srcdir) && autoheader --warnings=all
16769 @echo timestamp > \$@"
16772 if test "x$with_gettextpo" = xyes
16773 then
16774 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
16775 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
16776 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
16777 msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
16778 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
16779 msgcat -o \$@ \$(ALL_POT_FILES)"
16782 if test "$MSGFMT" != false
16783 then
16784 PORCFLAGS="--po-dir=\$(top_builddir)/po"
16786 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
16787 else
16788 LINGUAS=
16791 if test "x$enable_tools" != xno
16792 then
16793 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
16794 clean:: __clean__
16795 \$(RM) tools/makedep\$(EXEEXT)"
16798 if test -n "$with_wine64"
16799 then
16800 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
16801 fonts server tools:
16802 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
16803 $with_wine64/loader/wine:
16804 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
16805 $with_wine64/loader/wine-preloader:
16806 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
16807 clean::
16808 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
16811 cat >confcache <<\_ACEOF
16812 # This file is a shell script that caches the results of configure
16813 # tests run on this system so they can be shared between configure
16814 # scripts and configure runs, see configure's option --config-cache.
16815 # It is not useful on other systems. If it contains results you don't
16816 # want to keep, you may remove or edit it.
16818 # config.status only pays attention to the cache file if you give it
16819 # the --recheck option to rerun configure.
16821 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16822 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16823 # following values.
16825 _ACEOF
16827 # The following way of writing the cache mishandles newlines in values,
16828 # but we know of no workaround that is simple, portable, and efficient.
16829 # So, we kill variables containing newlines.
16830 # Ultrix sh set writes to stderr and can't be redirected directly,
16831 # and sets the high bit in the cache file unless we assign to the vars.
16833 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16834 eval ac_val=\$$ac_var
16835 case $ac_val in #(
16836 *${as_nl}*)
16837 case $ac_var in #(
16838 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16839 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16840 esac
16841 case $ac_var in #(
16842 _ | IFS | as_nl) ;; #(
16843 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16844 *) { eval $ac_var=; unset $ac_var;} ;;
16845 esac ;;
16846 esac
16847 done
16849 (set) 2>&1 |
16850 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16851 *${as_nl}ac_space=\ *)
16852 # `set' does not quote correctly, so add quotes: double-quote
16853 # substitution turns \\\\ into \\, and sed turns \\ into \.
16854 sed -n \
16855 "s/'/'\\\\''/g;
16856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16857 ;; #(
16859 # `set' quotes correctly as required by POSIX, so do not add quotes.
16860 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16862 esac |
16863 sort
16865 sed '
16866 /^ac_cv_env_/b end
16867 t clear
16868 :clear
16869 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16870 t end
16871 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16872 :end' >>confcache
16873 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16874 if test -w "$cache_file"; then
16875 if test "x$cache_file" != "x/dev/null"; then
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16877 $as_echo "$as_me: updating cache $cache_file" >&6;}
16878 if test ! -f "$cache_file" || test -h "$cache_file"; then
16879 cat confcache >"$cache_file"
16880 else
16881 case $cache_file in #(
16882 */* | ?:*)
16883 mv -f confcache "$cache_file"$$ &&
16884 mv -f "$cache_file"$$ "$cache_file" ;; #(
16886 mv -f confcache "$cache_file" ;;
16887 esac
16890 else
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16892 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16895 rm -f confcache
16897 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16898 # Let make expand exec_prefix.
16899 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16901 DEFS=-DHAVE_CONFIG_H
16903 ac_libobjs=
16904 ac_ltlibobjs=
16906 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16907 # 1. Remove the extension, and $U if already installed.
16908 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16909 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16910 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16911 # will be set to the directory where LIBOBJS objects are built.
16912 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16913 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16914 done
16915 LIBOBJS=$ac_libobjs
16917 LTLIBOBJS=$ac_ltlibobjs
16921 : "${CONFIG_STATUS=./config.status}"
16922 ac_write_fail=0
16923 ac_clean_files_save=$ac_clean_files
16924 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16926 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16927 as_write_fail=0
16928 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16929 #! $SHELL
16930 # Generated by $as_me.
16931 # Run this file to recreate the current configuration.
16932 # Compiler output produced by configure, useful for debugging
16933 # configure, is in config.log if it exists.
16935 debug=false
16936 ac_cs_recheck=false
16937 ac_cs_silent=false
16939 SHELL=\${CONFIG_SHELL-$SHELL}
16940 export SHELL
16941 _ASEOF
16942 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16943 ## -------------------- ##
16944 ## M4sh Initialization. ##
16945 ## -------------------- ##
16947 # Be more Bourne compatible
16948 DUALCASE=1; export DUALCASE # for MKS sh
16949 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16950 emulate sh
16951 NULLCMD=:
16952 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16953 # is contrary to our usage. Disable this feature.
16954 alias -g '${1+"$@"}'='"$@"'
16955 setopt NO_GLOB_SUBST
16956 else
16957 case `(set -o) 2>/dev/null` in #(
16958 *posix*) :
16959 set -o posix ;; #(
16960 *) :
16962 esac
16966 as_nl='
16968 export as_nl
16969 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16970 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16971 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16972 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16973 # Prefer a ksh shell builtin over an external printf program on Solaris,
16974 # but without wasting forks for bash or zsh.
16975 if test -z "$BASH_VERSION$ZSH_VERSION" \
16976 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16977 as_echo='print -r --'
16978 as_echo_n='print -rn --'
16979 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16980 as_echo='printf %s\n'
16981 as_echo_n='printf %s'
16982 else
16983 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16984 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16985 as_echo_n='/usr/ucb/echo -n'
16986 else
16987 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16988 as_echo_n_body='eval
16989 arg=$1;
16990 case $arg in #(
16991 *"$as_nl"*)
16992 expr "X$arg" : "X\\(.*\\)$as_nl";
16993 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16994 esac;
16995 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16997 export as_echo_n_body
16998 as_echo_n='sh -c $as_echo_n_body as_echo'
17000 export as_echo_body
17001 as_echo='sh -c $as_echo_body as_echo'
17004 # The user is always right.
17005 if test "${PATH_SEPARATOR+set}" != set; then
17006 PATH_SEPARATOR=:
17007 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17008 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17009 PATH_SEPARATOR=';'
17014 # IFS
17015 # We need space, tab and new line, in precisely that order. Quoting is
17016 # there to prevent editors from complaining about space-tab.
17017 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17018 # splitting by setting IFS to empty value.)
17019 IFS=" "" $as_nl"
17021 # Find who we are. Look in the path if we contain no directory separator.
17022 as_myself=
17023 case $0 in #((
17024 *[\\/]* ) as_myself=$0 ;;
17025 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17026 for as_dir in $PATH
17028 IFS=$as_save_IFS
17029 test -z "$as_dir" && as_dir=.
17030 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17031 done
17032 IFS=$as_save_IFS
17035 esac
17036 # We did not find ourselves, most probably we were run as `sh COMMAND'
17037 # in which case we are not to be found in the path.
17038 if test "x$as_myself" = x; then
17039 as_myself=$0
17041 if test ! -f "$as_myself"; then
17042 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17043 exit 1
17046 # Unset variables that we do not need and which cause bugs (e.g. in
17047 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17048 # suppresses any "Segmentation fault" message there. '((' could
17049 # trigger a bug in pdksh 5.2.14.
17050 for as_var in BASH_ENV ENV MAIL MAILPATH
17051 do eval test x\${$as_var+set} = xset \
17052 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17053 done
17054 PS1='$ '
17055 PS2='> '
17056 PS4='+ '
17058 # NLS nuisances.
17059 LC_ALL=C
17060 export LC_ALL
17061 LANGUAGE=C
17062 export LANGUAGE
17064 # CDPATH.
17065 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17068 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17069 # ----------------------------------------
17070 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17071 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17072 # script with STATUS, using 1 if that was 0.
17073 as_fn_error ()
17075 as_status=$1; test $as_status -eq 0 && as_status=1
17076 if test "$4"; then
17077 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17078 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17080 $as_echo "$as_me: error: $2" >&2
17081 as_fn_exit $as_status
17082 } # as_fn_error
17085 # as_fn_set_status STATUS
17086 # -----------------------
17087 # Set $? to STATUS, without forking.
17088 as_fn_set_status ()
17090 return $1
17091 } # as_fn_set_status
17093 # as_fn_exit STATUS
17094 # -----------------
17095 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17096 as_fn_exit ()
17098 set +e
17099 as_fn_set_status $1
17100 exit $1
17101 } # as_fn_exit
17103 # as_fn_unset VAR
17104 # ---------------
17105 # Portably unset VAR.
17106 as_fn_unset ()
17108 { eval $1=; unset $1;}
17110 as_unset=as_fn_unset
17111 # as_fn_append VAR VALUE
17112 # ----------------------
17113 # Append the text in VALUE to the end of the definition contained in VAR. Take
17114 # advantage of any shell optimizations that allow amortized linear growth over
17115 # repeated appends, instead of the typical quadratic growth present in naive
17116 # implementations.
17117 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17118 eval 'as_fn_append ()
17120 eval $1+=\$2
17122 else
17123 as_fn_append ()
17125 eval $1=\$$1\$2
17127 fi # as_fn_append
17129 # as_fn_arith ARG...
17130 # ------------------
17131 # Perform arithmetic evaluation on the ARGs, and store the result in the
17132 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17133 # must be portable across $(()) and expr.
17134 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17135 eval 'as_fn_arith ()
17137 as_val=$(( $* ))
17139 else
17140 as_fn_arith ()
17142 as_val=`expr "$@" || test $? -eq 1`
17144 fi # as_fn_arith
17147 if expr a : '\(a\)' >/dev/null 2>&1 &&
17148 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17149 as_expr=expr
17150 else
17151 as_expr=false
17154 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17155 as_basename=basename
17156 else
17157 as_basename=false
17160 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17161 as_dirname=dirname
17162 else
17163 as_dirname=false
17166 as_me=`$as_basename -- "$0" ||
17167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17168 X"$0" : 'X\(//\)$' \| \
17169 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17170 $as_echo X/"$0" |
17171 sed '/^.*\/\([^/][^/]*\)\/*$/{
17172 s//\1/
17175 /^X\/\(\/\/\)$/{
17176 s//\1/
17179 /^X\/\(\/\).*/{
17180 s//\1/
17183 s/.*/./; q'`
17185 # Avoid depending upon Character Ranges.
17186 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17187 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17188 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17189 as_cr_digits='0123456789'
17190 as_cr_alnum=$as_cr_Letters$as_cr_digits
17192 ECHO_C= ECHO_N= ECHO_T=
17193 case `echo -n x` in #(((((
17194 -n*)
17195 case `echo 'xy\c'` in
17196 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17197 xy) ECHO_C='\c';;
17198 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17199 ECHO_T=' ';;
17200 esac;;
17202 ECHO_N='-n';;
17203 esac
17205 rm -f conf$$ conf$$.exe conf$$.file
17206 if test -d conf$$.dir; then
17207 rm -f conf$$.dir/conf$$.file
17208 else
17209 rm -f conf$$.dir
17210 mkdir conf$$.dir 2>/dev/null
17212 if (echo >conf$$.file) 2>/dev/null; then
17213 if ln -s conf$$.file conf$$ 2>/dev/null; then
17214 as_ln_s='ln -s'
17215 # ... but there are two gotchas:
17216 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17217 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17218 # In both cases, we have to default to `cp -pR'.
17219 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17220 as_ln_s='cp -pR'
17221 elif ln conf$$.file conf$$ 2>/dev/null; then
17222 as_ln_s=ln
17223 else
17224 as_ln_s='cp -pR'
17226 else
17227 as_ln_s='cp -pR'
17229 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17230 rmdir conf$$.dir 2>/dev/null
17233 # as_fn_mkdir_p
17234 # -------------
17235 # Create "$as_dir" as a directory, including parents if necessary.
17236 as_fn_mkdir_p ()
17239 case $as_dir in #(
17240 -*) as_dir=./$as_dir;;
17241 esac
17242 test -d "$as_dir" || eval $as_mkdir_p || {
17243 as_dirs=
17244 while :; do
17245 case $as_dir in #(
17246 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17247 *) as_qdir=$as_dir;;
17248 esac
17249 as_dirs="'$as_qdir' $as_dirs"
17250 as_dir=`$as_dirname -- "$as_dir" ||
17251 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17252 X"$as_dir" : 'X\(//\)[^/]' \| \
17253 X"$as_dir" : 'X\(//\)$' \| \
17254 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17255 $as_echo X"$as_dir" |
17256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17257 s//\1/
17260 /^X\(\/\/\)[^/].*/{
17261 s//\1/
17264 /^X\(\/\/\)$/{
17265 s//\1/
17268 /^X\(\/\).*/{
17269 s//\1/
17272 s/.*/./; q'`
17273 test -d "$as_dir" && break
17274 done
17275 test -z "$as_dirs" || eval "mkdir $as_dirs"
17276 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17279 } # as_fn_mkdir_p
17280 if mkdir -p . 2>/dev/null; then
17281 as_mkdir_p='mkdir -p "$as_dir"'
17282 else
17283 test -d ./-p && rmdir ./-p
17284 as_mkdir_p=false
17288 # as_fn_executable_p FILE
17289 # -----------------------
17290 # Test if FILE is an executable regular file.
17291 as_fn_executable_p ()
17293 test -f "$1" && test -x "$1"
17294 } # as_fn_executable_p
17295 as_test_x='test -x'
17296 as_executable_p=as_fn_executable_p
17298 # Sed expression to map a string onto a valid CPP name.
17299 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17301 # Sed expression to map a string onto a valid variable name.
17302 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17305 exec 6>&1
17306 ## ----------------------------------- ##
17307 ## Main body of $CONFIG_STATUS script. ##
17308 ## ----------------------------------- ##
17309 _ASEOF
17310 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17313 # Save the log message, to keep $0 and so on meaningful, and to
17314 # report actual input values of CONFIG_FILES etc. instead of their
17315 # values after options handling.
17316 ac_log="
17317 This file was extended by Wine $as_me 1.7.0, which was
17318 generated by GNU Autoconf 2.69. Invocation command line was
17320 CONFIG_FILES = $CONFIG_FILES
17321 CONFIG_HEADERS = $CONFIG_HEADERS
17322 CONFIG_LINKS = $CONFIG_LINKS
17323 CONFIG_COMMANDS = $CONFIG_COMMANDS
17324 $ $0 $@
17326 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17329 _ACEOF
17331 case $ac_config_files in *"
17332 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17333 esac
17335 case $ac_config_headers in *"
17336 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17337 esac
17340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17341 # Files that config.status was made for.
17342 config_files="$ac_config_files"
17343 config_headers="$ac_config_headers"
17344 config_links="$ac_config_links"
17345 config_commands="$ac_config_commands"
17347 _ACEOF
17349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17350 ac_cs_usage="\
17351 \`$as_me' instantiates files and other configuration actions
17352 from templates according to the current configuration. Unless the files
17353 and actions are specified as TAGs, all are instantiated by default.
17355 Usage: $0 [OPTION]... [TAG]...
17357 -h, --help print this help, then exit
17358 -V, --version print version number and configuration settings, then exit
17359 --config print configuration, then exit
17360 -q, --quiet, --silent
17361 do not print progress messages
17362 -d, --debug don't remove temporary files
17363 --recheck update $as_me by reconfiguring in the same conditions
17364 --file=FILE[:TEMPLATE]
17365 instantiate the configuration file FILE
17366 --header=FILE[:TEMPLATE]
17367 instantiate the configuration header FILE
17369 Configuration files:
17370 $config_files
17372 Configuration headers:
17373 $config_headers
17375 Configuration links:
17376 $config_links
17378 Configuration commands:
17379 $config_commands
17381 Report bugs to <wine-devel@winehq.org>.
17382 Wine home page: <http://www.winehq.org>."
17384 _ACEOF
17385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17386 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17387 ac_cs_version="\\
17388 Wine config.status 1.7.0
17389 configured by $0, generated by GNU Autoconf 2.69,
17390 with options \\"\$ac_cs_config\\"
17392 Copyright (C) 2012 Free Software Foundation, Inc.
17393 This config.status script is free software; the Free Software Foundation
17394 gives unlimited permission to copy, distribute and modify it."
17396 ac_pwd='$ac_pwd'
17397 srcdir='$srcdir'
17398 INSTALL='$INSTALL'
17399 test -n "\$AWK" || AWK=awk
17400 _ACEOF
17402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17403 # The default lists apply if the user does not specify any file.
17404 ac_need_defaults=:
17405 while test $# != 0
17407 case $1 in
17408 --*=?*)
17409 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17410 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17411 ac_shift=:
17413 --*=)
17414 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17415 ac_optarg=
17416 ac_shift=:
17419 ac_option=$1
17420 ac_optarg=$2
17421 ac_shift=shift
17423 esac
17425 case $ac_option in
17426 # Handling of the options.
17427 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17428 ac_cs_recheck=: ;;
17429 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17430 $as_echo "$ac_cs_version"; exit ;;
17431 --config | --confi | --conf | --con | --co | --c )
17432 $as_echo "$ac_cs_config"; exit ;;
17433 --debug | --debu | --deb | --de | --d | -d )
17434 debug=: ;;
17435 --file | --fil | --fi | --f )
17436 $ac_shift
17437 case $ac_optarg in
17438 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17439 '') as_fn_error $? "missing file argument" ;;
17440 esac
17441 as_fn_append CONFIG_FILES " '$ac_optarg'"
17442 ac_need_defaults=false;;
17443 --header | --heade | --head | --hea )
17444 $ac_shift
17445 case $ac_optarg in
17446 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17447 esac
17448 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17449 ac_need_defaults=false;;
17450 --he | --h)
17451 # Conflict between --help and --header
17452 as_fn_error $? "ambiguous option: \`$1'
17453 Try \`$0 --help' for more information.";;
17454 --help | --hel | -h )
17455 $as_echo "$ac_cs_usage"; exit ;;
17456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17457 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17458 ac_cs_silent=: ;;
17460 # This is an error.
17461 -*) as_fn_error $? "unrecognized option: \`$1'
17462 Try \`$0 --help' for more information." ;;
17464 *) as_fn_append ac_config_targets " $1"
17465 ac_need_defaults=false ;;
17467 esac
17468 shift
17469 done
17471 ac_configure_extra_args=
17473 if $ac_cs_silent; then
17474 exec 6>/dev/null
17475 ac_configure_extra_args="$ac_configure_extra_args --silent"
17478 _ACEOF
17479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17480 if \$ac_cs_recheck; then
17481 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17482 shift
17483 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17484 CONFIG_SHELL='$SHELL'
17485 export CONFIG_SHELL
17486 exec "\$@"
17489 _ACEOF
17490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17491 exec 5>>config.log
17493 echo
17494 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17495 ## Running $as_me. ##
17496 _ASBOX
17497 $as_echo "$ac_log"
17498 } >&5
17500 _ACEOF
17501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17503 # INIT-COMMANDS
17505 wine_fn_output_makefile ()
17507 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
17508 $ALL_MAKEFILE_DEPENDS
17509 _WINE_EOF
17510 as_fn_error $? "could not create Makefile" "$LINENO" 5
17513 _ACEOF
17515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17517 # Handling of arguments.
17518 for ac_config_target in $ac_config_targets
17520 case $ac_config_target in
17521 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17522 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
17523 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
17524 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
17525 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
17526 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
17527 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
17528 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
17529 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
17530 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
17531 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
17532 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
17533 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
17534 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
17535 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
17536 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
17537 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
17538 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
17539 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17540 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17541 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
17542 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17543 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
17544 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17545 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
17546 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
17548 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17549 esac
17550 done
17553 # If the user did not use the arguments to specify the items to instantiate,
17554 # then the envvar interface is used. Set only those that are not.
17555 # We use the long form for the default assignment because of an extremely
17556 # bizarre bug on SunOS 4.1.3.
17557 if $ac_need_defaults; then
17558 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17559 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17560 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17561 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17564 # Have a temporary directory for convenience. Make it in the build tree
17565 # simply because there is no reason against having it here, and in addition,
17566 # creating and moving files from /tmp can sometimes cause problems.
17567 # Hook for its removal unless debugging.
17568 # Note that there is a small window in which the directory will not be cleaned:
17569 # after its creation but before its name has been assigned to `$tmp'.
17570 $debug ||
17572 tmp= ac_tmp=
17573 trap 'exit_status=$?
17574 : "${ac_tmp:=$tmp}"
17575 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17577 trap 'as_fn_exit 1' 1 2 13 15
17579 # Create a (secure) tmp directory for tmp files.
17582 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17583 test -d "$tmp"
17584 } ||
17586 tmp=./conf$$-$RANDOM
17587 (umask 077 && mkdir "$tmp")
17588 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17589 ac_tmp=$tmp
17591 # Set up the scripts for CONFIG_FILES section.
17592 # No need to generate them if there are no CONFIG_FILES.
17593 # This happens for instance with `./config.status config.h'.
17594 if test -n "$CONFIG_FILES"; then
17596 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17597 ac_cs_awk_getline=:
17598 ac_cs_awk_pipe_init=
17599 ac_cs_awk_read_file='
17600 while ((getline aline < (F[key])) > 0)
17601 print(aline)
17602 close(F[key])'
17603 ac_cs_awk_pipe_fini=
17604 else
17605 ac_cs_awk_getline=false
17606 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17607 ac_cs_awk_read_file='
17608 print "|#_!!_#|"
17609 print "cat " F[key] " &&"
17610 '$ac_cs_awk_pipe_init
17611 # The final `:' finishes the AND list.
17612 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17614 ac_cr=`echo X | tr X '\015'`
17615 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17616 # But we know of no other shell where ac_cr would be empty at this
17617 # point, so we can use a bashism as a fallback.
17618 if test "x$ac_cr" = x; then
17619 eval ac_cr=\$\'\\r\'
17621 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17622 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17623 ac_cs_awk_cr='\\r'
17624 else
17625 ac_cs_awk_cr=$ac_cr
17628 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17629 _ACEOF
17631 # Create commands to substitute file output variables.
17633 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17634 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
17635 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17636 echo "_ACAWK" &&
17637 echo "_ACEOF"
17638 } >conf$$files.sh &&
17639 . ./conf$$files.sh ||
17640 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17641 rm -f conf$$files.sh
17644 echo "cat >conf$$subs.awk <<_ACEOF" &&
17645 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17646 echo "_ACEOF"
17647 } >conf$$subs.sh ||
17648 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17649 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17650 ac_delim='%!_!# '
17651 for ac_last_try in false false false false false :; do
17652 . ./conf$$subs.sh ||
17653 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17655 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17656 if test $ac_delim_n = $ac_delim_num; then
17657 break
17658 elif $ac_last_try; then
17659 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17660 else
17661 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17663 done
17664 rm -f conf$$subs.sh
17666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17667 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17668 _ACEOF
17669 sed -n '
17671 s/^/S["/; s/!.*/"]=/
17674 s/^[^!]*!//
17675 :repl
17676 t repl
17677 s/'"$ac_delim"'$//
17678 t delim
17681 s/\(.\{148\}\)..*/\1/
17682 t more1
17683 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17686 b repl
17687 :more1
17688 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17691 s/.\{148\}//
17692 t nl
17693 :delim
17695 s/\(.\{148\}\)..*/\1/
17696 t more2
17697 s/["\\]/\\&/g; s/^/"/; s/$/"/
17700 :more2
17701 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17704 s/.\{148\}//
17705 t delim
17706 ' <conf$$subs.awk | sed '
17707 /^[^""]/{
17709 s/\n//
17711 ' >>$CONFIG_STATUS || ac_write_fail=1
17712 rm -f conf$$subs.awk
17713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17714 _ACAWK
17715 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17716 for (key in S) S_is_set[key] = 1
17717 FS = "\a"
17718 \$ac_cs_awk_pipe_init
17721 line = $ 0
17722 nfields = split(line, field, "@")
17723 substed = 0
17724 len = length(field[1])
17725 for (i = 2; i < nfields; i++) {
17726 key = field[i]
17727 keylen = length(key)
17728 if (S_is_set[key]) {
17729 value = S[key]
17730 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17731 len += length(value) + length(field[++i])
17732 substed = 1
17733 } else
17734 len += 1 + keylen
17736 if (nfields == 3 && !substed) {
17737 key = field[2]
17738 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17739 \$ac_cs_awk_read_file
17740 next
17743 print line
17745 \$ac_cs_awk_pipe_fini
17746 _ACAWK
17747 _ACEOF
17748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17749 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17750 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17751 else
17753 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17754 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17755 _ACEOF
17757 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17758 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17759 # trailing colons and then remove the whole line if VPATH becomes empty
17760 # (actually we leave an empty line to preserve line numbers).
17761 if test "x$srcdir" = x.; then
17762 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17764 s///
17765 s/^/:/
17766 s/[ ]*$/:/
17767 s/:\$(srcdir):/:/g
17768 s/:\${srcdir}:/:/g
17769 s/:@srcdir@:/:/g
17770 s/^:*//
17771 s/:*$//
17773 s/\(=[ ]*\).*/\1/
17775 s/\n//
17776 s/^[^=]*=[ ]*$//
17780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17781 fi # test -n "$CONFIG_FILES"
17783 # Set up the scripts for CONFIG_HEADERS section.
17784 # No need to generate them if there are no CONFIG_HEADERS.
17785 # This happens for instance with `./config.status Makefile'.
17786 if test -n "$CONFIG_HEADERS"; then
17787 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17788 BEGIN {
17789 _ACEOF
17791 # Transform confdefs.h into an awk script `defines.awk', embedded as
17792 # here-document in config.status, that substitutes the proper values into
17793 # config.h.in to produce config.h.
17795 # Create a delimiter string that does not exist in confdefs.h, to ease
17796 # handling of long lines.
17797 ac_delim='%!_!# '
17798 for ac_last_try in false false :; do
17799 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17800 if test -z "$ac_tt"; then
17801 break
17802 elif $ac_last_try; then
17803 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17804 else
17805 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17807 done
17809 # For the awk script, D is an array of macro values keyed by name,
17810 # likewise P contains macro parameters if any. Preserve backslash
17811 # newline sequences.
17813 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17814 sed -n '
17815 s/.\{148\}/&'"$ac_delim"'/g
17816 t rset
17817 :rset
17818 s/^[ ]*#[ ]*define[ ][ ]*/ /
17819 t def
17821 :def
17822 s/\\$//
17823 t bsnl
17824 s/["\\]/\\&/g
17825 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17826 D["\1"]=" \3"/p
17827 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17829 :bsnl
17830 s/["\\]/\\&/g
17831 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17832 D["\1"]=" \3\\\\\\n"\\/p
17833 t cont
17834 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17835 t cont
17837 :cont
17839 s/.\{148\}/&'"$ac_delim"'/g
17840 t clear
17841 :clear
17842 s/\\$//
17843 t bsnlc
17844 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17846 :bsnlc
17847 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17848 b cont
17849 ' <confdefs.h | sed '
17850 s/'"$ac_delim"'/"\\\
17851 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17854 for (key in D) D_is_set[key] = 1
17855 FS = "\a"
17857 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17858 line = \$ 0
17859 split(line, arg, " ")
17860 if (arg[1] == "#") {
17861 defundef = arg[2]
17862 mac1 = arg[3]
17863 } else {
17864 defundef = substr(arg[1], 2)
17865 mac1 = arg[2]
17867 split(mac1, mac2, "(") #)
17868 macro = mac2[1]
17869 prefix = substr(line, 1, index(line, defundef) - 1)
17870 if (D_is_set[macro]) {
17871 # Preserve the white space surrounding the "#".
17872 print prefix "define", macro P[macro] D[macro]
17873 next
17874 } else {
17875 # Replace #undef with comments. This is necessary, for example,
17876 # in the case of _POSIX_SOURCE, which is predefined and required
17877 # on some systems where configure will not decide to define it.
17878 if (defundef == "undef") {
17879 print "/*", prefix defundef, macro, "*/"
17880 next
17884 { print }
17885 _ACAWK
17886 _ACEOF
17887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17888 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17889 fi # test -n "$CONFIG_HEADERS"
17892 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17893 shift
17894 for ac_tag
17896 case $ac_tag in
17897 :[FHLC]) ac_mode=$ac_tag; continue;;
17898 esac
17899 case $ac_mode$ac_tag in
17900 :[FHL]*:*);;
17901 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17902 :[FH]-) ac_tag=-:-;;
17903 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17904 esac
17905 ac_save_IFS=$IFS
17906 IFS=:
17907 set x $ac_tag
17908 IFS=$ac_save_IFS
17909 shift
17910 ac_file=$1
17911 shift
17913 case $ac_mode in
17914 :L) ac_source=$1;;
17915 :[FH])
17916 ac_file_inputs=
17917 for ac_f
17919 case $ac_f in
17920 -) ac_f="$ac_tmp/stdin";;
17921 *) # Look for the file first in the build tree, then in the source tree
17922 # (if the path is not absolute). The absolute path cannot be DOS-style,
17923 # because $ac_f cannot contain `:'.
17924 test -f "$ac_f" ||
17925 case $ac_f in
17926 [\\/$]*) false;;
17927 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17928 esac ||
17929 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17930 esac
17931 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17932 as_fn_append ac_file_inputs " '$ac_f'"
17933 done
17935 # Let's still pretend it is `configure' which instantiates (i.e., don't
17936 # use $as_me), people would be surprised to read:
17937 # /* config.h. Generated by config.status. */
17938 configure_input='Generated from '`
17939 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17940 `' by configure.'
17941 if test x"$ac_file" != x-; then
17942 configure_input="$ac_file. $configure_input"
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17944 $as_echo "$as_me: creating $ac_file" >&6;}
17946 # Neutralize special characters interpreted by sed in replacement strings.
17947 case $configure_input in #(
17948 *\&* | *\|* | *\\* )
17949 ac_sed_conf_input=`$as_echo "$configure_input" |
17950 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17951 *) ac_sed_conf_input=$configure_input;;
17952 esac
17954 case $ac_tag in
17955 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17956 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17957 esac
17959 esac
17961 ac_dir=`$as_dirname -- "$ac_file" ||
17962 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17963 X"$ac_file" : 'X\(//\)[^/]' \| \
17964 X"$ac_file" : 'X\(//\)$' \| \
17965 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17966 $as_echo X"$ac_file" |
17967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17968 s//\1/
17971 /^X\(\/\/\)[^/].*/{
17972 s//\1/
17975 /^X\(\/\/\)$/{
17976 s//\1/
17979 /^X\(\/\).*/{
17980 s//\1/
17983 s/.*/./; q'`
17984 as_dir="$ac_dir"; as_fn_mkdir_p
17985 ac_builddir=.
17987 case "$ac_dir" in
17988 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17990 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17991 # A ".." for each directory in $ac_dir_suffix.
17992 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17993 case $ac_top_builddir_sub in
17994 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17995 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17996 esac ;;
17997 esac
17998 ac_abs_top_builddir=$ac_pwd
17999 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18000 # for backward compatibility:
18001 ac_top_builddir=$ac_top_build_prefix
18003 case $srcdir in
18004 .) # We are building in place.
18005 ac_srcdir=.
18006 ac_top_srcdir=$ac_top_builddir_sub
18007 ac_abs_top_srcdir=$ac_pwd ;;
18008 [\\/]* | ?:[\\/]* ) # Absolute name.
18009 ac_srcdir=$srcdir$ac_dir_suffix;
18010 ac_top_srcdir=$srcdir
18011 ac_abs_top_srcdir=$srcdir ;;
18012 *) # Relative name.
18013 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18014 ac_top_srcdir=$ac_top_build_prefix$srcdir
18015 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18016 esac
18017 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18020 case $ac_mode in
18023 # CONFIG_FILE
18026 case $INSTALL in
18027 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18028 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18029 esac
18030 _ACEOF
18032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18033 # If the template does not know about datarootdir, expand it.
18034 # FIXME: This hack should be removed a few years after 2.60.
18035 ac_datarootdir_hack=; ac_datarootdir_seen=
18036 ac_sed_dataroot='
18037 /datarootdir/ {
18041 /@datadir@/p
18042 /@docdir@/p
18043 /@infodir@/p
18044 /@localedir@/p
18045 /@mandir@/p'
18046 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18047 *datarootdir*) ac_datarootdir_seen=yes;;
18048 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18050 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18051 _ACEOF
18052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18053 ac_datarootdir_hack='
18054 s&@datadir@&$datadir&g
18055 s&@docdir@&$docdir&g
18056 s&@infodir@&$infodir&g
18057 s&@localedir@&$localedir&g
18058 s&@mandir@&$mandir&g
18059 s&\\\${datarootdir}&$datarootdir&g' ;;
18060 esac
18061 _ACEOF
18063 # Neutralize VPATH when `$srcdir' = `.'.
18064 # Shell code in configure.ac might set extrasub.
18065 # FIXME: do we really want to maintain this feature?
18066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18067 ac_sed_extra="$ac_vpsub
18068 $extrasub
18069 _ACEOF
18070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18072 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18073 s|@configure_input@|$ac_sed_conf_input|;t t
18074 s&@top_builddir@&$ac_top_builddir_sub&;t t
18075 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18076 s&@srcdir@&$ac_srcdir&;t t
18077 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18078 s&@top_srcdir@&$ac_top_srcdir&;t t
18079 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18080 s&@builddir@&$ac_builddir&;t t
18081 s&@abs_builddir@&$ac_abs_builddir&;t t
18082 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18083 s&@INSTALL@&$ac_INSTALL&;t t
18084 $ac_datarootdir_hack
18086 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18087 if $ac_cs_awk_getline; then
18088 $AWK -f "$ac_tmp/subs.awk"
18089 else
18090 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18091 fi \
18092 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18094 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18095 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18096 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18097 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18099 which seems to be undefined. Please make sure it is defined" >&5
18100 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18101 which seems to be undefined. Please make sure it is defined" >&2;}
18103 rm -f "$ac_tmp/stdin"
18104 case $ac_file in
18105 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18106 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18107 esac \
18108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18112 # CONFIG_HEADER
18114 if test x"$ac_file" != x-; then
18116 $as_echo "/* $configure_input */" \
18117 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18118 } >"$ac_tmp/config.h" \
18119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18120 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18122 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18123 else
18124 rm -f "$ac_file"
18125 mv "$ac_tmp/config.h" "$ac_file" \
18126 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18128 else
18129 $as_echo "/* $configure_input */" \
18130 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18131 || as_fn_error $? "could not create -" "$LINENO" 5
18136 # CONFIG_LINK
18139 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18141 else
18142 # Prefer the file from the source tree if names are identical.
18143 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18144 ac_source=$srcdir/$ac_source
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18148 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18150 if test ! -r "$ac_source"; then
18151 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18153 rm -f "$ac_file"
18155 # Try a relative symlink, then a hard link, then a copy.
18156 case $ac_source in
18157 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18158 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18159 esac
18160 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18161 ln "$ac_source" "$ac_file" 2>/dev/null ||
18162 cp -p "$ac_source" "$ac_file" ||
18163 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18166 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18167 $as_echo "$as_me: executing $ac_file commands" >&6;}
18169 esac
18172 case $ac_file$ac_mode in
18173 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
18174 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
18175 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
18176 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
18177 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
18178 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
18179 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
18180 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
18181 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
18182 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
18183 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
18184 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
18185 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
18186 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
18187 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
18188 "Makefile":C) wine_fn_output_makefile Makefile ;;
18190 esac
18191 done # for ac_tag
18194 as_fn_exit 0
18195 _ACEOF
18196 ac_clean_files=$ac_clean_files_save
18198 test $ac_write_fail = 0 ||
18199 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18202 # configure is writing to config.log, and then calls config.status.
18203 # config.status does its own redirection, appending to config.log.
18204 # Unfortunately, on DOS this fails, as config.log is still kept open
18205 # by configure, so config.status won't be able to write to it; its
18206 # output is simply discarded. So we exec the FD to /dev/null,
18207 # effectively closing config.log, so it can be properly (re)opened and
18208 # appended to by config.status. When coming back to configure, we
18209 # need to make the FD available again.
18210 if test "$no_create" != yes; then
18211 ac_cs_success=:
18212 ac_config_status_args=
18213 test "$silent" = yes &&
18214 ac_config_status_args="$ac_config_status_args --quiet"
18215 exec 5>/dev/null
18216 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18217 exec 5>>config.log
18218 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18219 # would make configure fail if this is the last instruction.
18220 $ac_cs_success || as_fn_exit 1
18222 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18224 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18228 if test "$no_create" = "yes"
18229 then
18230 exit 0
18233 ac_save_IFS="$IFS"
18234 if test "x$wine_notices != "x; then
18235 echo >&6
18236 IFS="|"
18237 for msg in $wine_notices; do
18238 IFS="$ac_save_IFS"
18239 if test -n "$msg"; then
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
18241 $as_echo "$as_me: $msg" >&6;}
18243 done
18245 IFS="|"
18246 for msg in $wine_warnings; do
18247 IFS="$ac_save_IFS"
18248 if test -n "$msg"; then
18249 echo >&2
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
18251 $as_echo "$as_me: WARNING: $msg" >&2;}
18253 done
18254 IFS="$ac_save_IFS"
18256 echo "
18257 $as_me: Finished. Do '${ac_make}' to compile Wine.
18258 " >&6