winemac: In -setFrameIfOnScreen:, avoid some work if the frame didn't change.
[wine.git] / configure
blob911010521a7d3de6e99be4452438b1f2356b7955
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.5.30.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: wine-devel@winehq.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='Wine'
582 PACKAGE_TARNAME='wine'
583 PACKAGE_VERSION='1.5.30'
584 PACKAGE_STRING='Wine 1.5.30'
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 LIBKSTAT
642 LIBOPENAL
643 LIBMPG123
644 PNG_LIBS
645 PNG_CFLAGS
646 FONTCONFIGINCL
647 CUPSINCL
648 OSS4INCL
649 ALSALIBS
650 GSTREAMER_LIBS
651 GSTREAMER_CFLAGS
652 LIBGETTEXTPO
653 ZLIB
654 FREETYPE_LIBS
655 FREETYPE_CFLAGS
656 LCMS_LIBS
657 LCMS_CFLAGS
658 RESOLVLIBS
659 GPHOTO2_PORT_LIBS
660 GPHOTO2_PORT_CFLAGS
661 GPHOTO2_LIBS
662 GPHOTO2_CFLAGS
663 SANE_LIBS
664 SANE_CFLAGS
665 GNUTLS_LIBS
666 GNUTLS_CFLAGS
667 HAL_LIBS
668 HAL_CFLAGS
669 DBUS_LIBS
670 DBUS_CFLAGS
671 XSLT_LIBS
672 XSLT_CFLAGS
673 XML2_LIBS
674 XML2_CFLAGS
675 PKG_CONFIG
676 X_EXTRA_LIBS
677 X_LIBS
678 X_PRE_LIBS
679 X_CFLAGS
680 XMKMF
681 LIBPTHREAD
682 CROSSTARGET
683 CROSSCC
684 CROSSTEST_DISABLE
685 PRELINK
686 CARBONLIB
687 QUICKTIMELIB
688 LIBOPENCL
689 FRAMEWORK_OPENAL
690 COREAUDIO
691 SECURITYLIB
692 DISKARBITRATIONLIB
693 LDEXECFLAGS
694 CORESERVICESLIB
695 APPLICATIONSERVICESLIB
696 IOKITLIB
697 COREFOUNDATIONLIB
698 LIBWINE_RULES
699 SOCKETLIBS
700 DLLTOOL
701 READELF
703 LDRPATH_LOCAL
704 LDRPATH_INSTALL
705 IMPLIBEXT
706 LDDLLFLAGS
707 DLLFLAGS
708 DLLEXT
710 OPENGL_LIBS
711 XLIB
712 MAINTAINER_MODE
713 MSGFMT
714 ICOTOOL
715 CONVERT
716 RSVG
717 FONTFORGE
718 LINTFLAGS
719 LINT
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 LDCONFIG
724 EGREP
725 GREP
726 LN_S
727 RANLIB
728 ARFLAGS
729 ac_ct_AR
731 BISON
732 FLEX
733 TOOLSDIR
734 WOW64_DISABLE
735 TARGETFLAGS
736 CPPBIN
737 ac_ct_CXX
738 CXXFLAGS
740 OBJEXT
741 EXEEXT
742 ac_ct_CC
743 CPPFLAGS
744 LDFLAGS
745 CFLAGS
747 SET_MAKE
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files='MAKE_RULES
795 MAKE_TEST_RULES
796 MAKE_DLL_RULES
797 MAKE_IMPLIB_RULES
798 MAKE_PROG_RULES'
799 ac_user_opts='
800 enable_option_checking
801 enable_win16
802 enable_win64
803 enable_tests
804 enable_maintainer_mode
805 with_alsa
806 with_capi
807 with_cms
808 with_coreaudio
809 with_cups
810 with_curses
811 with_dbus
812 with_fontconfig
813 with_freetype
814 with_gettext
815 with_gettextpo
816 with_gphoto
817 with_glu
818 with_gnutls
819 with_gsm
820 with_gstreamer
821 with_hal
822 with_jpeg
823 with_ldap
824 with_mpg123
825 with_openal
826 with_opencl
827 with_opengl
828 with_osmesa
829 with_oss
830 with_png
831 with_pthread
832 with_sane
833 with_tiff
834 with_v4l
835 with_xcomposite
836 with_xcursor
837 with_xinerama
838 with_xinput
839 with_xinput2
840 with_xml
841 with_xrandr
842 with_xrender
843 with_xshape
844 with_xshm
845 with_xslt
846 with_xxf86vm
847 with_zlib
848 with_wine_tools
849 with_wine64
850 enable_largefile
851 with_x
853 ac_precious_vars='build_alias
854 host_alias
855 target_alias
857 CFLAGS
858 LDFLAGS
859 LIBS
860 CPPFLAGS
862 CXXFLAGS
865 XMKMF
866 XML2_CFLAGS
867 XML2_LIBS
868 XSLT_CFLAGS
869 XSLT_LIBS
870 DBUS_CFLAGS
871 DBUS_LIBS
872 HAL_CFLAGS
873 HAL_LIBS
874 GNUTLS_CFLAGS
875 GNUTLS_LIBS
876 SANE_CFLAGS
877 SANE_LIBS
878 GPHOTO2_CFLAGS
879 GPHOTO2_LIBS
880 GPHOTO2_PORT_CFLAGS
881 GPHOTO2_PORT_LIBS
882 LCMS_CFLAGS
883 LCMS_LIBS
884 FREETYPE_CFLAGS
885 FREETYPE_LIBS
886 GSTREAMER_CFLAGS
887 GSTREAMER_LIBS
888 PNG_CFLAGS
889 PNG_LIBS'
892 # Initialize some variables set by options.
893 ac_init_help=
894 ac_init_version=false
895 ac_unrecognized_opts=
896 ac_unrecognized_sep=
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
899 cache_file=/dev/null
900 exec_prefix=NONE
901 no_create=
902 no_recursion=
903 prefix=NONE
904 program_prefix=NONE
905 program_suffix=NONE
906 program_transform_name=s,x,x,
907 silent=
908 site=
909 srcdir=
910 verbose=
911 x_includes=NONE
912 x_libraries=NONE
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
931 infodir='${datarootdir}/info'
932 htmldir='${docdir}'
933 dvidir='${docdir}'
934 pdfdir='${docdir}'
935 psdir='${docdir}'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
940 ac_prev=
941 ac_dashdash=
942 for ac_option
944 # If the previous option needs an argument, assign it.
945 if test -n "$ac_prev"; then
946 eval $ac_prev=\$ac_option
947 ac_prev=
948 continue
951 case $ac_option in
952 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 *=) ac_optarg= ;;
954 *) ac_optarg=yes ;;
955 esac
957 # Accept the important Cygnus configure options, so we can diagnose typos.
959 case $ac_dashdash$ac_option in
961 ac_dashdash=yes ;;
963 -bindir | --bindir | --bindi | --bind | --bin | --bi)
964 ac_prev=bindir ;;
965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966 bindir=$ac_optarg ;;
968 -build | --build | --buil | --bui | --bu)
969 ac_prev=build_alias ;;
970 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971 build_alias=$ac_optarg ;;
973 -cache-file | --cache-file | --cache-fil | --cache-fi \
974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975 ac_prev=cache_file ;;
976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978 cache_file=$ac_optarg ;;
980 --config-cache | -C)
981 cache_file=config.cache ;;
983 -datadir | --datadir | --datadi | --datad)
984 ac_prev=datadir ;;
985 -datadir=* | --datadir=* | --datadi=* | --datad=*)
986 datadir=$ac_optarg ;;
988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989 | --dataroo | --dataro | --datar)
990 ac_prev=datarootdir ;;
991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993 datarootdir=$ac_optarg ;;
995 -disable-* | --disable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "enable_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=no ;;
1011 -docdir | --docdir | --docdi | --doc | --do)
1012 ac_prev=docdir ;;
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017 ac_prev=dvidir ;;
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1021 -enable-* | --enable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error $? "invalid feature name: $ac_useropt"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1030 "enable_$ac_useropt"
1031 "*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1034 esac
1035 eval enable_$ac_useropt=\$ac_optarg ;;
1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039 | --exec | --exe | --ex)
1040 ac_prev=exec_prefix ;;
1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043 | --exec=* | --exe=* | --ex=*)
1044 exec_prefix=$ac_optarg ;;
1046 -gas | --gas | --ga | --g)
1047 # Obsolete; use --with-gas.
1048 with_gas=yes ;;
1050 -help | --help | --hel | --he | -h)
1051 ac_init_help=long ;;
1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053 ac_init_help=recursive ;;
1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055 ac_init_help=short ;;
1057 -host | --host | --hos | --ho)
1058 ac_prev=host_alias ;;
1059 -host=* | --host=* | --hos=* | --ho=*)
1060 host_alias=$ac_optarg ;;
1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063 ac_prev=htmldir ;;
1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065 | --ht=*)
1066 htmldir=$ac_optarg ;;
1068 -includedir | --includedir | --includedi | --included | --include \
1069 | --includ | --inclu | --incl | --inc)
1070 ac_prev=includedir ;;
1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072 | --includ=* | --inclu=* | --incl=* | --inc=*)
1073 includedir=$ac_optarg ;;
1075 -infodir | --infodir | --infodi | --infod | --info | --inf)
1076 ac_prev=infodir ;;
1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078 infodir=$ac_optarg ;;
1080 -libdir | --libdir | --libdi | --libd)
1081 ac_prev=libdir ;;
1082 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083 libdir=$ac_optarg ;;
1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086 | --libexe | --libex | --libe)
1087 ac_prev=libexecdir ;;
1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089 | --libexe=* | --libex=* | --libe=*)
1090 libexecdir=$ac_optarg ;;
1092 -localedir | --localedir | --localedi | --localed | --locale)
1093 ac_prev=localedir ;;
1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095 localedir=$ac_optarg ;;
1097 -localstatedir | --localstatedir | --localstatedi | --localstated \
1098 | --localstate | --localstat | --localsta | --localst | --locals)
1099 ac_prev=localstatedir ;;
1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102 localstatedir=$ac_optarg ;;
1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105 ac_prev=mandir ;;
1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107 mandir=$ac_optarg ;;
1109 -nfp | --nfp | --nf)
1110 # Obsolete; use --without-fp.
1111 with_fp=no ;;
1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114 | --no-cr | --no-c | -n)
1115 no_create=yes ;;
1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 no_recursion=yes ;;
1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123 | --oldin | --oldi | --old | --ol | --o)
1124 ac_prev=oldincludedir ;;
1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128 oldincludedir=$ac_optarg ;;
1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131 ac_prev=prefix ;;
1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133 prefix=$ac_optarg ;;
1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136 | --program-pre | --program-pr | --program-p)
1137 ac_prev=program_prefix ;;
1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140 program_prefix=$ac_optarg ;;
1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143 | --program-suf | --program-su | --program-s)
1144 ac_prev=program_suffix ;;
1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147 program_suffix=$ac_optarg ;;
1149 -program-transform-name | --program-transform-name \
1150 | --program-transform-nam | --program-transform-na \
1151 | --program-transform-n | --program-transform- \
1152 | --program-transform | --program-transfor \
1153 | --program-transfo | --program-transf \
1154 | --program-trans | --program-tran \
1155 | --progr-tra | --program-tr | --program-t)
1156 ac_prev=program_transform_name ;;
1157 -program-transform-name=* | --program-transform-name=* \
1158 | --program-transform-nam=* | --program-transform-na=* \
1159 | --program-transform-n=* | --program-transform-=* \
1160 | --program-transform=* | --program-transfor=* \
1161 | --program-transfo=* | --program-transf=* \
1162 | --program-trans=* | --program-tran=* \
1163 | --progr-tra=* | --program-tr=* | --program-t=*)
1164 program_transform_name=$ac_optarg ;;
1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167 ac_prev=pdfdir ;;
1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169 pdfdir=$ac_optarg ;;
1171 -psdir | --psdir | --psdi | --psd | --ps)
1172 ac_prev=psdir ;;
1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 psdir=$ac_optarg ;;
1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 | -silent | --silent | --silen | --sile | --sil)
1178 silent=yes ;;
1180 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181 ac_prev=sbindir ;;
1182 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183 | --sbi=* | --sb=*)
1184 sbindir=$ac_optarg ;;
1186 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188 | --sharedst | --shareds | --shared | --share | --shar \
1189 | --sha | --sh)
1190 ac_prev=sharedstatedir ;;
1191 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194 | --sha=* | --sh=*)
1195 sharedstatedir=$ac_optarg ;;
1197 -site | --site | --sit)
1198 ac_prev=site ;;
1199 -site=* | --site=* | --sit=*)
1200 site=$ac_optarg ;;
1202 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203 ac_prev=srcdir ;;
1204 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205 srcdir=$ac_optarg ;;
1207 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208 | --syscon | --sysco | --sysc | --sys | --sy)
1209 ac_prev=sysconfdir ;;
1210 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212 sysconfdir=$ac_optarg ;;
1214 -target | --target | --targe | --targ | --tar | --ta | --t)
1215 ac_prev=target_alias ;;
1216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217 target_alias=$ac_optarg ;;
1219 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220 verbose=yes ;;
1222 -version | --version | --versio | --versi | --vers | -V)
1223 ac_init_version=: ;;
1225 -with-* | --with-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error $? "invalid package name: $ac_useropt"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1234 "with_$ac_useropt"
1235 "*) ;;
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1238 esac
1239 eval with_$ac_useropt=\$ac_optarg ;;
1241 -without-* | --without-*)
1242 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 as_fn_error $? "invalid package name: $ac_useropt"
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1250 "with_$ac_useropt"
1251 "*) ;;
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1254 esac
1255 eval with_$ac_useropt=no ;;
1257 --x)
1258 # Obsolete; use --with-x.
1259 with_x=yes ;;
1261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262 | --x-incl | --x-inc | --x-in | --x-i)
1263 ac_prev=x_includes ;;
1264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266 x_includes=$ac_optarg ;;
1268 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270 ac_prev=x_libraries ;;
1271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273 x_libraries=$ac_optarg ;;
1275 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1276 Try \`$0 --help' for more information"
1279 *=*)
1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 case $ac_envvar in #(
1283 '' | [0-9]* | *[!_$as_cr_alnum]* )
1284 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1285 esac
1286 eval $ac_envvar=\$ac_optarg
1287 export $ac_envvar ;;
1290 # FIXME: should be removed in autoconf 3.0.
1291 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1297 esac
1298 done
1300 if test -n "$ac_prev"; then
1301 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302 as_fn_error $? "missing argument to $ac_option"
1305 if test -n "$ac_unrecognized_opts"; then
1306 case $enable_option_checking in
1307 no) ;;
1308 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1309 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1310 esac
1313 # Check all directory arguments for consistency.
1314 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315 datadir sysconfdir sharedstatedir localstatedir includedir \
1316 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317 libdir localedir mandir
1319 eval ac_val=\$$ac_var
1320 # Remove trailing slashes.
1321 case $ac_val in
1322 */ )
1323 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324 eval $ac_var=\$ac_val;;
1325 esac
1326 # Be sure to have absolute directory names.
1327 case $ac_val in
1328 [\\/$]* | ?:[\\/]* ) continue;;
1329 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1330 esac
1331 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1332 done
1334 # There might be people who depend on the old broken behavior: `$host'
1335 # used to hold the argument of --host etc.
1336 # FIXME: To remove some day.
1337 build=$build_alias
1338 host=$host_alias
1339 target=$target_alias
1341 # FIXME: To remove some day.
1342 if test "x$host_alias" != x; then
1343 if test "x$build_alias" = x; then
1344 cross_compiling=maybe
1345 elif test "x$build_alias" != "x$host_alias"; then
1346 cross_compiling=yes
1350 ac_tool_prefix=
1351 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1353 test "$silent" = yes && exec 6>/dev/null
1356 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1357 ac_ls_di=`ls -di .` &&
1358 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1359 as_fn_error $? "working directory cannot be determined"
1360 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361 as_fn_error $? "pwd does not report name of working directory"
1364 # Find the source files, if location was not specified.
1365 if test -z "$srcdir"; then
1366 ac_srcdir_defaulted=yes
1367 # Try the directory containing this script, then the parent directory.
1368 ac_confdir=`$as_dirname -- "$as_myself" ||
1369 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1370 X"$as_myself" : 'X\(//\)[^/]' \| \
1371 X"$as_myself" : 'X\(//\)$' \| \
1372 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1373 $as_echo X"$as_myself" |
1374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 s//\1/
1378 /^X\(\/\/\)[^/].*/{
1379 s//\1/
1382 /^X\(\/\/\)$/{
1383 s//\1/
1386 /^X\(\/\).*/{
1387 s//\1/
1390 s/.*/./; q'`
1391 srcdir=$ac_confdir
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393 srcdir=..
1395 else
1396 ac_srcdir_defaulted=no
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1400 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1402 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1403 ac_abs_confdir=`(
1404 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1405 pwd)`
1406 # When building in place, set srcdir=.
1407 if test "$ac_abs_confdir" = "$ac_pwd"; then
1408 srcdir=.
1410 # Remove unnecessary trailing slashes from srcdir.
1411 # Double slashes in file names in object file debugging info
1412 # mess up M-x gdb in Emacs.
1413 case $srcdir in
1414 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415 esac
1416 for ac_var in $ac_precious_vars; do
1417 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_env_${ac_var}_value=\$${ac_var}
1419 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1421 done
1424 # Report the --help message.
1426 if test "$ac_init_help" = "long"; then
1427 # Omit some internal or obsolete options to make the list less imposing.
1428 # This message is too long to be a string in the A/UX 3.1 sh.
1429 cat <<_ACEOF
1430 \`configure' configures Wine 1.5.30 to adapt to many kinds of systems.
1432 Usage: $0 [OPTION]... [VAR=VALUE]...
1434 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435 VAR=VALUE. See below for descriptions of some of the useful variables.
1437 Defaults for the options are specified in brackets.
1439 Configuration:
1440 -h, --help display this help and exit
1441 --help=short display options specific to this package
1442 --help=recursive display the short help of all the included packages
1443 -V, --version display version information and exit
1444 -q, --quiet, --silent do not print \`checking ...' messages
1445 --cache-file=FILE cache test results in FILE [disabled]
1446 -C, --config-cache alias for \`--cache-file=config.cache'
1447 -n, --no-create do not create output files
1448 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450 Installation directories:
1451 --prefix=PREFIX install architecture-independent files in PREFIX
1452 [$ac_default_prefix]
1453 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1454 [PREFIX]
1456 By default, \`make install' will install all the files in
1457 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1458 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459 for instance \`--prefix=\$HOME'.
1461 For better control, use the options below.
1463 Fine tuning of the installation directories:
1464 --bindir=DIR user executables [EPREFIX/bin]
1465 --sbindir=DIR system admin executables [EPREFIX/sbin]
1466 --libexecdir=DIR program executables [EPREFIX/libexec]
1467 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1468 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1469 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1470 --libdir=DIR object code libraries [EPREFIX/lib]
1471 --includedir=DIR C header files [PREFIX/include]
1472 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1473 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1474 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1475 --infodir=DIR info documentation [DATAROOTDIR/info]
1476 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1477 --mandir=DIR man documentation [DATAROOTDIR/man]
1478 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1479 --htmldir=DIR html documentation [DOCDIR]
1480 --dvidir=DIR dvi documentation [DOCDIR]
1481 --pdfdir=DIR pdf documentation [DOCDIR]
1482 --psdir=DIR ps documentation [DOCDIR]
1483 _ACEOF
1485 cat <<\_ACEOF
1487 X features:
1488 --x-includes=DIR X include files are in DIR
1489 --x-libraries=DIR X library files are in DIR
1491 System types:
1492 --build=BUILD configure for building on BUILD [guessed]
1493 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1494 _ACEOF
1497 if test -n "$ac_init_help"; then
1498 case $ac_init_help in
1499 short | recursive ) echo "Configuration of Wine 1.5.30:";;
1500 esac
1501 cat <<\_ACEOF
1503 Optional Features:
1504 --disable-option-checking ignore unrecognized --enable/--with options
1505 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1506 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1507 --disable-win16 do not include Win16 support
1508 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1509 binaries)
1510 --disable-tests do not build the regression tests
1511 --enable-maintainer-mode
1512 enable maintainer-specific build rules
1513 --disable-largefile omit support for large files
1515 Optional Packages:
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --without-alsa do not use the Alsa sound support
1519 --without-capi do not use CAPI (ISDN support)
1520 --without-cms do not use CMS (color management support)
1521 --without-coreaudio do not use the CoreAudio sound support
1522 --without-cups do not use CUPS
1523 --without-curses do not use (n)curses
1524 --without-dbus do not use DBus (dynamic device support)
1525 --without-fontconfig do not use fontconfig
1526 --without-freetype do not use the FreeType library
1527 --without-gettext do not use gettext
1528 --with-gettextpo use the GetTextPO library to rebuild po files
1529 --without-gphoto do not use gphoto (Digital Camera support)
1530 --without-glu do not use the GLU library
1531 --without-gnutls do not use GnuTLS (schannel support)
1532 --without-gsm do not use libgsm (GSM 06.10 codec support)
1533 --without-gstreamer do not use GStreamer (codecs support)
1534 --without-hal do not use HAL (dynamic device support)
1535 --without-jpeg do not use JPEG
1536 --without-ldap do not use LDAP
1537 --without-mpg123 do not use the mpg123 library
1538 --without-openal do not use OpenAL
1539 --without-opencl do not use OpenCL
1540 --without-opengl do not use OpenGL
1541 --without-osmesa do not use the OSMesa library
1542 --without-oss do not use the OSS sound support
1543 --without-png do not use PNG
1544 --without-pthread do not use the pthread library
1545 --without-sane do not use SANE (scanner support)
1546 --without-tiff do not use TIFF
1547 --without-v4l do not use v4l1 (v4l support)
1548 --without-xcomposite do not use the Xcomposite extension
1549 --without-xcursor do not use the Xcursor extension
1550 --without-xinerama do not use Xinerama (multi-monitor support)
1551 --without-xinput do not use the Xinput extension
1552 --without-xinput2 do not use the Xinput 2 extension
1553 --without-xml do not use XML
1554 --without-xrandr do not use Xrandr (resolution changes)
1555 --without-xrender do not use the Xrender extension
1556 --without-xshape do not use the Xshape extension
1557 --without-xshm do not use XShm (shared memory extension)
1558 --without-xslt do not use XSLT
1559 --without-xxf86vm do not use XFree video mode extension
1560 --without-zlib do not use Zlib (data compression)
1561 --with-wine-tools=DIR use Wine tools from directory DIR
1562 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1563 --with-x use the X Window System
1565 Some influential environment variables:
1566 CC C compiler command
1567 CFLAGS C compiler flags
1568 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1569 nonstandard directory <lib dir>
1570 LIBS libraries to pass to the linker, e.g. -l<library>
1571 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1572 you have headers in a nonstandard directory <include dir>
1573 CXX C++ compiler command
1574 CXXFLAGS C++ compiler flags
1575 CPP C preprocessor
1576 XMKMF Path to xmkmf, Makefile generator for X Window System
1577 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
1578 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
1579 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
1580 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
1581 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
1582 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
1583 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
1584 HAL_LIBS Linker flags for hal, overriding pkg-config
1585 GNUTLS_CFLAGS
1586 C compiler flags for gnutls, overriding pkg-config
1587 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
1588 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
1589 SANE_LIBS Linker flags for libsane, overriding pkg-config
1590 GPHOTO2_CFLAGS
1591 C compiler flags for libgphoto2, overriding pkg-config
1592 GPHOTO2_LIBS
1593 Linker flags for libgphoto2, overriding pkg-config
1594 GPHOTO2_PORT_CFLAGS
1595 C compiler flags for libgphoto2_port, overriding pkg-config
1596 GPHOTO2_PORT_LIBS
1597 Linker flags for libgphoto2_port, overriding pkg-config
1598 LCMS_CFLAGS C compiler flags for lcms, overriding pkg-config
1599 LCMS_LIBS Linker flags for lcms, overriding pkg-config
1600 FREETYPE_CFLAGS
1601 C compiler flags for freetype2, overriding pkg-config
1602 FREETYPE_LIBS
1603 Linker flags for freetype2, overriding pkg-config
1604 GSTREAMER_CFLAGS
1605 C compiler flags for gstreamer-app-0.10, overriding pkg-config
1606 GSTREAMER_LIBS
1607 Linker flags for gstreamer-app-0.10, overriding pkg-config
1608 PNG_CFLAGS C compiler flags for libpng, overriding pkg-config
1609 PNG_LIBS Linker flags for libpng, overriding pkg-config
1611 Use these variables to override the choices made by `configure' or to help
1612 it to find libraries and programs with nonstandard names/locations.
1614 Report bugs to <wine-devel@winehq.org>.
1615 Wine home page: <http://www.winehq.org>.
1616 _ACEOF
1617 ac_status=$?
1620 if test "$ac_init_help" = "recursive"; then
1621 # If there are subdirs, report their specific --help.
1622 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1623 test -d "$ac_dir" ||
1624 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1625 continue
1626 ac_builddir=.
1628 case "$ac_dir" in
1629 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1632 # A ".." for each directory in $ac_dir_suffix.
1633 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1634 case $ac_top_builddir_sub in
1635 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1637 esac ;;
1638 esac
1639 ac_abs_top_builddir=$ac_pwd
1640 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1641 # for backward compatibility:
1642 ac_top_builddir=$ac_top_build_prefix
1644 case $srcdir in
1645 .) # We are building in place.
1646 ac_srcdir=.
1647 ac_top_srcdir=$ac_top_builddir_sub
1648 ac_abs_top_srcdir=$ac_pwd ;;
1649 [\\/]* | ?:[\\/]* ) # Absolute name.
1650 ac_srcdir=$srcdir$ac_dir_suffix;
1651 ac_top_srcdir=$srcdir
1652 ac_abs_top_srcdir=$srcdir ;;
1653 *) # Relative name.
1654 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1655 ac_top_srcdir=$ac_top_build_prefix$srcdir
1656 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1657 esac
1658 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660 cd "$ac_dir" || { ac_status=$?; continue; }
1661 # Check for guested configure.
1662 if test -f "$ac_srcdir/configure.gnu"; then
1663 echo &&
1664 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1665 elif test -f "$ac_srcdir/configure"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure" --help=recursive
1668 else
1669 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1670 fi || ac_status=$?
1671 cd "$ac_pwd" || { ac_status=$?; break; }
1672 done
1675 test -n "$ac_init_help" && exit $ac_status
1676 if $ac_init_version; then
1677 cat <<\_ACEOF
1678 Wine configure 1.5.30
1679 generated by GNU Autoconf 2.69
1681 Copyright (C) 2012 Free Software Foundation, Inc.
1682 This configure script is free software; the Free Software Foundation
1683 gives unlimited permission to copy, distribute and modify it.
1684 _ACEOF
1685 exit
1688 ## ------------------------ ##
1689 ## Autoconf initialization. ##
1690 ## ------------------------ ##
1692 # ac_fn_c_try_compile LINENO
1693 # --------------------------
1694 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_compile ()
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 rm -f conftest.$ac_objext
1699 if { { ac_try="$ac_compile"
1700 case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_compile") 2>conftest.err
1707 ac_status=$?
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && {
1715 test -z "$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1717 } && test -s conftest.$ac_objext; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1723 ac_retval=1
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1728 } # ac_fn_c_try_compile
1730 # ac_fn_cxx_try_compile LINENO
1731 # ----------------------------
1732 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_cxx_try_compile ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext
1737 if { { ac_try="$ac_compile"
1738 case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_compile") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_cxx_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest.$ac_objext; then :
1756 ac_retval=0
1757 else
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1761 ac_retval=1
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1766 } # ac_fn_cxx_try_compile
1768 # ac_fn_c_try_link LINENO
1769 # -----------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_link ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext conftest$ac_exeext
1775 if { { ac_try="$ac_link"
1776 case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>conftest.err
1783 ac_status=$?
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest$ac_exeext && {
1794 test "$cross_compiling" = yes ||
1795 test -x conftest$ac_exeext
1796 }; then :
1797 ac_retval=0
1798 else
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1802 ac_retval=1
1804 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1805 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1806 # interfere with the next link command; also delete a directory that is
1807 # left behind by Apple's compiler. We do this before executing the actions.
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 as_fn_set_status $ac_retval
1812 } # ac_fn_c_try_link
1814 # ac_fn_c_try_cpp LINENO
1815 # ----------------------
1816 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_c_try_cpp ()
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { { ac_try="$ac_cpp conftest.$ac_ext"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } > conftest.i && {
1836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1837 test ! -s conftest.err
1838 }; then :
1839 ac_retval=0
1840 else
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1844 ac_retval=1
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
1849 } # ac_fn_c_try_cpp
1851 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1852 # -------------------------------------------------------
1853 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1854 # the include files in INCLUDES and setting the cache variable VAR
1855 # accordingly.
1856 ac_fn_c_check_header_mongrel ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 if eval \${$3+:} false; then :
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1865 eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 else
1869 # Is the header compilable?
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1871 $as_echo_n "checking $2 usability... " >&6; }
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h. */
1875 #include <$2>
1876 _ACEOF
1877 if ac_fn_c_try_compile "$LINENO"; then :
1878 ac_header_compiler=yes
1879 else
1880 ac_header_compiler=no
1882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1884 $as_echo "$ac_header_compiler" >&6; }
1886 # Is the header present?
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1888 $as_echo_n "checking $2 presence... " >&6; }
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 #include <$2>
1892 _ACEOF
1893 if ac_fn_c_try_cpp "$LINENO"; then :
1894 ac_header_preproc=yes
1895 else
1896 ac_header_preproc=no
1898 rm -f conftest.err conftest.i conftest.$ac_ext
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1900 $as_echo "$ac_header_preproc" >&6; }
1902 # So? What about this header?
1903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1904 yes:no: )
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1906 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1908 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1910 no:yes:* )
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1912 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1914 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1916 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1918 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1920 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1921 ( $as_echo "## ------------------------------------ ##
1922 ## Report this to wine-devel@winehq.org ##
1923 ## ------------------------------------ ##"
1924 ) | sed "s/^/$as_me: WARNING: /" >&2
1926 esac
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if eval \${$3+:} false; then :
1930 $as_echo_n "(cached) " >&6
1931 else
1932 eval "$3=\$ac_header_compiler"
1934 eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 } # ac_fn_c_check_header_mongrel
1942 # ac_fn_c_try_run LINENO
1943 # ----------------------
1944 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1945 # that executables *can* be run.
1946 ac_fn_c_try_run ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if { { ac_try="$ac_link"
1950 case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_link") 2>&5
1957 ac_status=$?
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1960 { { case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963 esac
1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_try") 2>&5
1967 ac_status=$?
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; }; }; then :
1970 ac_retval=0
1971 else
1972 $as_echo "$as_me: program exited with status $ac_status" >&5
1973 $as_echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1976 ac_retval=$ac_status
1978 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980 as_fn_set_status $ac_retval
1982 } # ac_fn_c_try_run
1984 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1985 # -------------------------------------------------------
1986 # Tests whether HEADER exists and can be compiled using the include files in
1987 # INCLUDES, setting the cache variable VAR accordingly.
1988 ac_fn_c_check_header_compile ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if eval \${$3+:} false; then :
1994 $as_echo_n "(cached) " >&6
1995 else
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
1999 #include <$2>
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 eval "$3=yes"
2003 else
2004 eval "$3=no"
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 eval ac_res=\$$3
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 } # ac_fn_c_check_header_compile
2015 # ac_fn_c_check_func LINENO FUNC VAR
2016 # ----------------------------------
2017 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2018 ac_fn_c_check_func ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2028 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2030 #define $2 innocuous_$2
2032 /* System header to define __stub macros and hopefully few prototypes,
2033 which can conflict with char $2 (); below.
2034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2035 <limits.h> exists even on freestanding compilers. */
2037 #ifdef __STDC__
2038 # include <limits.h>
2039 #else
2040 # include <assert.h>
2041 #endif
2043 #undef $2
2045 /* Override any GCC internal prototype to avoid an error.
2046 Use char because int might match the return type of a GCC
2047 builtin and then its argument prototype would still apply. */
2048 #ifdef __cplusplus
2049 extern "C"
2050 #endif
2051 char $2 ();
2052 /* The GNU C library defines this for functions which it implements
2053 to always fail with ENOSYS. Some functions are actually named
2054 something starting with __ and the normal name is an alias. */
2055 #if defined __stub_$2 || defined __stub___$2
2056 choke me
2057 #endif
2060 main ()
2062 return $2 ();
2064 return 0;
2066 _ACEOF
2067 if ac_fn_c_try_link "$LINENO"; then :
2068 eval "$3=yes"
2069 else
2070 eval "$3=no"
2072 rm -f core conftest.err conftest.$ac_objext \
2073 conftest$ac_exeext conftest.$ac_ext
2075 eval ac_res=\$$3
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 $as_echo "$ac_res" >&6; }
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080 } # ac_fn_c_check_func
2082 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2083 # ----------------------------------------------------
2084 # Tries to find if the field MEMBER exists in type AGGR, after including
2085 # INCLUDES, setting cache variable VAR accordingly.
2086 ac_fn_c_check_member ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2090 $as_echo_n "checking for $2.$3... " >&6; }
2091 if eval \${$4+:} false; then :
2092 $as_echo_n "(cached) " >&6
2093 else
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2098 main ()
2100 static $2 ac_aggr;
2101 if (ac_aggr.$3)
2102 return 0;
2104 return 0;
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 eval "$4=yes"
2109 else
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2114 main ()
2116 static $2 ac_aggr;
2117 if (sizeof ac_aggr.$3)
2118 return 0;
2120 return 0;
2122 _ACEOF
2123 if ac_fn_c_try_compile "$LINENO"; then :
2124 eval "$4=yes"
2125 else
2126 eval "$4=no"
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 eval ac_res=\$$4
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 $as_echo "$ac_res" >&6; }
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137 } # ac_fn_c_check_member
2139 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2140 # -------------------------------------------
2141 # Tests whether TYPE exists after having included INCLUDES, setting cache
2142 # variable VAR accordingly.
2143 ac_fn_c_check_type ()
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147 $as_echo_n "checking for $2... " >&6; }
2148 if eval \${$3+:} false; then :
2149 $as_echo_n "(cached) " >&6
2150 else
2151 eval "$3=no"
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2156 main ()
2158 if (sizeof ($2))
2159 return 0;
2161 return 0;
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2169 main ()
2171 if (sizeof (($2)))
2172 return 0;
2174 return 0;
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2179 else
2180 eval "$3=yes"
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 eval ac_res=\$$3
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } # ac_fn_c_check_type
2192 cat >config.log <<_ACEOF
2193 This file contains any messages produced by compilers while
2194 running configure, to aid debugging if configure makes a mistake.
2196 It was created by Wine $as_me 1.5.30, which was
2197 generated by GNU Autoconf 2.69. Invocation command line was
2199 $ $0 $@
2201 _ACEOF
2202 exec 5>>config.log
2204 cat <<_ASUNAME
2205 ## --------- ##
2206 ## Platform. ##
2207 ## --------- ##
2209 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2210 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2211 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2212 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2213 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2215 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2216 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2218 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2219 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2220 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2221 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2222 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2223 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2224 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2226 _ASUNAME
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2231 IFS=$as_save_IFS
2232 test -z "$as_dir" && as_dir=.
2233 $as_echo "PATH: $as_dir"
2234 done
2235 IFS=$as_save_IFS
2237 } >&5
2239 cat >&5 <<_ACEOF
2242 ## ----------- ##
2243 ## Core tests. ##
2244 ## ----------- ##
2246 _ACEOF
2249 # Keep a trace of the command line.
2250 # Strip out --no-create and --no-recursion so they do not pile up.
2251 # Strip out --silent because we don't want to record it for future runs.
2252 # Also quote any args containing shell meta-characters.
2253 # Make two passes to allow for proper duplicate-argument suppression.
2254 ac_configure_args=
2255 ac_configure_args0=
2256 ac_configure_args1=
2257 ac_must_keep_next=false
2258 for ac_pass in 1 2
2260 for ac_arg
2262 case $ac_arg in
2263 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2265 | -silent | --silent | --silen | --sile | --sil)
2266 continue ;;
2267 *\'*)
2268 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2269 esac
2270 case $ac_pass in
2271 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2273 as_fn_append ac_configure_args1 " '$ac_arg'"
2274 if test $ac_must_keep_next = true; then
2275 ac_must_keep_next=false # Got value, back to normal.
2276 else
2277 case $ac_arg in
2278 *=* | --config-cache | -C | -disable-* | --disable-* \
2279 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2280 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2281 | -with-* | --with-* | -without-* | --without-* | --x)
2282 case "$ac_configure_args0 " in
2283 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2284 esac
2286 -* ) ac_must_keep_next=true ;;
2287 esac
2289 as_fn_append ac_configure_args " '$ac_arg'"
2291 esac
2292 done
2293 done
2294 { ac_configure_args0=; unset ac_configure_args0;}
2295 { ac_configure_args1=; unset ac_configure_args1;}
2297 # When interrupted or exit'd, cleanup temporary files, and complete
2298 # config.log. We remove comments because anyway the quotes in there
2299 # would cause problems or look ugly.
2300 # WARNING: Use '\'' to represent an apostrophe within the trap.
2301 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2302 trap 'exit_status=$?
2303 # Save into config.log some information that might help in debugging.
2305 echo
2307 $as_echo "## ---------------- ##
2308 ## Cache variables. ##
2309 ## ---------------- ##"
2310 echo
2311 # The following way of writing the cache mishandles newlines in values,
2313 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2314 eval ac_val=\$$ac_var
2315 case $ac_val in #(
2316 *${as_nl}*)
2317 case $ac_var in #(
2318 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2319 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2320 esac
2321 case $ac_var in #(
2322 _ | IFS | as_nl) ;; #(
2323 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2324 *) { eval $ac_var=; unset $ac_var;} ;;
2325 esac ;;
2326 esac
2327 done
2328 (set) 2>&1 |
2329 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2330 *${as_nl}ac_space=\ *)
2331 sed -n \
2332 "s/'\''/'\''\\\\'\'''\''/g;
2333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2334 ;; #(
2336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2338 esac |
2339 sort
2341 echo
2343 $as_echo "## ----------------- ##
2344 ## Output variables. ##
2345 ## ----------------- ##"
2346 echo
2347 for ac_var in $ac_subst_vars
2349 eval ac_val=\$$ac_var
2350 case $ac_val in
2351 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2352 esac
2353 $as_echo "$ac_var='\''$ac_val'\''"
2354 done | sort
2355 echo
2357 if test -n "$ac_subst_files"; then
2358 $as_echo "## ------------------- ##
2359 ## File substitutions. ##
2360 ## ------------------- ##"
2361 echo
2362 for ac_var in $ac_subst_files
2364 eval ac_val=\$$ac_var
2365 case $ac_val in
2366 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2367 esac
2368 $as_echo "$ac_var='\''$ac_val'\''"
2369 done | sort
2370 echo
2373 if test -s confdefs.h; then
2374 $as_echo "## ----------- ##
2375 ## confdefs.h. ##
2376 ## ----------- ##"
2377 echo
2378 cat confdefs.h
2379 echo
2381 test "$ac_signal" != 0 &&
2382 $as_echo "$as_me: caught signal $ac_signal"
2383 $as_echo "$as_me: exit $exit_status"
2384 } >&5
2385 rm -f core *.core core.conftest.* &&
2386 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2387 exit $exit_status
2389 for ac_signal in 1 2 13 15; do
2390 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2391 done
2392 ac_signal=0
2394 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2395 rm -f -r conftest* confdefs.h
2397 $as_echo "/* confdefs.h */" > confdefs.h
2399 # Predefined preprocessor variables.
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_NAME "$PACKAGE_NAME"
2403 _ACEOF
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2407 _ACEOF
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2411 _ACEOF
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_STRING "$PACKAGE_STRING"
2415 _ACEOF
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2419 _ACEOF
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_URL "$PACKAGE_URL"
2423 _ACEOF
2426 # Let the site file select an alternate cache file if it wants to.
2427 # Prefer an explicitly selected file to automatically selected ones.
2428 ac_site_file1=NONE
2429 ac_site_file2=NONE
2430 if test -n "$CONFIG_SITE"; then
2431 # We do not want a PATH search for config.site.
2432 case $CONFIG_SITE in #((
2433 -*) ac_site_file1=./$CONFIG_SITE;;
2434 */*) ac_site_file1=$CONFIG_SITE;;
2435 *) ac_site_file1=./$CONFIG_SITE;;
2436 esac
2437 elif test "x$prefix" != xNONE; then
2438 ac_site_file1=$prefix/share/config.site
2439 ac_site_file2=$prefix/etc/config.site
2440 else
2441 ac_site_file1=$ac_default_prefix/share/config.site
2442 ac_site_file2=$ac_default_prefix/etc/config.site
2444 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2446 test "x$ac_site_file" = xNONE && continue
2447 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2449 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2450 sed 's/^/| /' "$ac_site_file" >&5
2451 . "$ac_site_file" \
2452 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2454 as_fn_error $? "failed to load site script $ac_site_file
2455 See \`config.log' for more details" "$LINENO" 5; }
2457 done
2459 if test -r "$cache_file"; then
2460 # Some versions of bash will fail to source /dev/null (special files
2461 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2462 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2464 $as_echo "$as_me: loading cache $cache_file" >&6;}
2465 case $cache_file in
2466 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2467 *) . "./$cache_file";;
2468 esac
2470 else
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2472 $as_echo "$as_me: creating cache $cache_file" >&6;}
2473 >$cache_file
2476 # Check that the precious variables saved in the cache have kept the same
2477 # value.
2478 ac_cache_corrupted=false
2479 for ac_var in $ac_precious_vars; do
2480 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2481 eval ac_new_set=\$ac_env_${ac_var}_set
2482 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2483 eval ac_new_val=\$ac_env_${ac_var}_value
2484 case $ac_old_set,$ac_new_set in
2485 set,)
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2487 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2488 ac_cache_corrupted=: ;;
2489 ,set)
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2491 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2492 ac_cache_corrupted=: ;;
2493 ,);;
2495 if test "x$ac_old_val" != "x$ac_new_val"; then
2496 # differences in whitespace do not lead to failure.
2497 ac_old_val_w=`echo x $ac_old_val`
2498 ac_new_val_w=`echo x $ac_new_val`
2499 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2501 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2502 ac_cache_corrupted=:
2503 else
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2505 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2506 eval $ac_var=\$ac_old_val
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2509 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2511 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2512 fi;;
2513 esac
2514 # Pass precious variables to config.status.
2515 if test "$ac_new_set" = set; then
2516 case $ac_new_val in
2517 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2518 *) ac_arg=$ac_var=$ac_new_val ;;
2519 esac
2520 case " $ac_configure_args " in
2521 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2522 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2523 esac
2525 done
2526 if $ac_cache_corrupted; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2530 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2531 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2533 ## -------------------- ##
2534 ## Main body of script. ##
2535 ## -------------------- ##
2537 ac_ext=c
2538 ac_cpp='$CPP $CPPFLAGS'
2539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545 ac_config_headers="$ac_config_headers include/config.h"
2547 ac_aux_dir=
2548 for ac_dir in tools "$srcdir"/tools; do
2549 if test -f "$ac_dir/install-sh"; then
2550 ac_aux_dir=$ac_dir
2551 ac_install_sh="$ac_aux_dir/install-sh -c"
2552 break
2553 elif test -f "$ac_dir/install.sh"; then
2554 ac_aux_dir=$ac_dir
2555 ac_install_sh="$ac_aux_dir/install.sh -c"
2556 break
2557 elif test -f "$ac_dir/shtool"; then
2558 ac_aux_dir=$ac_dir
2559 ac_install_sh="$ac_aux_dir/shtool install -c"
2560 break
2562 done
2563 if test -z "$ac_aux_dir"; then
2564 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2567 # These three variables are undocumented and unsupported,
2568 # and are intended to be withdrawn in a future Autoconf release.
2569 # They can cause serious problems if a builder's source tree is in a directory
2570 # whose full name contains unusual characters.
2571 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2572 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2573 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2579 # Check whether --enable-win16 was given.
2580 if test "${enable_win16+set}" = set; then :
2581 enableval=$enable_win16;
2584 # Check whether --enable-win64 was given.
2585 if test "${enable_win64+set}" = set; then :
2586 enableval=$enable_win64;
2589 # Check whether --enable-tests was given.
2590 if test "${enable_tests+set}" = set; then :
2591 enableval=$enable_tests;
2594 # Check whether --enable-maintainer-mode was given.
2595 if test "${enable_maintainer_mode+set}" = set; then :
2596 enableval=$enable_maintainer_mode;
2601 # Check whether --with-alsa was given.
2602 if test "${with_alsa+set}" = set; then :
2603 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2607 # Check whether --with-capi was given.
2608 if test "${with_capi+set}" = set; then :
2609 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2613 # Check whether --with-cms was given.
2614 if test "${with_cms+set}" = set; then :
2615 withval=$with_cms;
2619 # Check whether --with-coreaudio was given.
2620 if test "${with_coreaudio+set}" = set; then :
2621 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2625 # Check whether --with-cups was given.
2626 if test "${with_cups+set}" = set; then :
2627 withval=$with_cups;
2631 # Check whether --with-curses was given.
2632 if test "${with_curses+set}" = set; then :
2633 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2637 # Check whether --with-dbus was given.
2638 if test "${with_dbus+set}" = set; then :
2639 withval=$with_dbus;
2643 # Check whether --with-fontconfig was given.
2644 if test "${with_fontconfig+set}" = set; then :
2645 withval=$with_fontconfig;
2649 # Check whether --with-freetype was given.
2650 if test "${with_freetype+set}" = set; then :
2651 withval=$with_freetype;
2655 # Check whether --with-gettext was given.
2656 if test "${with_gettext+set}" = set; then :
2657 withval=$with_gettext;
2661 # Check whether --with-gettextpo was given.
2662 if test "${with_gettextpo+set}" = set; then :
2663 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2667 # Check whether --with-gphoto was given.
2668 if test "${with_gphoto+set}" = set; then :
2669 withval=$with_gphoto;
2673 # Check whether --with-glu was given.
2674 if test "${with_glu+set}" = set; then :
2675 withval=$with_glu;
2679 # Check whether --with-gnutls was given.
2680 if test "${with_gnutls+set}" = set; then :
2681 withval=$with_gnutls;
2685 # Check whether --with-gsm was given.
2686 if test "${with_gsm+set}" = set; then :
2687 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2691 # Check whether --with-gstreamer was given.
2692 if test "${with_gstreamer+set}" = set; then :
2693 withval=$with_gstreamer;
2697 # Check whether --with-hal was given.
2698 if test "${with_hal+set}" = set; then :
2699 withval=$with_hal;
2703 # Check whether --with-jpeg was given.
2704 if test "${with_jpeg+set}" = set; then :
2705 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2709 # Check whether --with-ldap was given.
2710 if test "${with_ldap+set}" = set; then :
2711 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2715 # Check whether --with-mpg123 was given.
2716 if test "${with_mpg123+set}" = set; then :
2717 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2721 # Check whether --with-openal was given.
2722 if test "${with_openal+set}" = set; then :
2723 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2727 # Check whether --with-opencl was given.
2728 if test "${with_opencl+set}" = set; then :
2729 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2733 # Check whether --with-opengl was given.
2734 if test "${with_opengl+set}" = set; then :
2735 withval=$with_opengl;
2739 # Check whether --with-osmesa was given.
2740 if test "${with_osmesa+set}" = set; then :
2741 withval=$with_osmesa;
2745 # Check whether --with-oss was given.
2746 if test "${with_oss+set}" = set; then :
2747 withval=$with_oss;
2751 # Check whether --with-png was given.
2752 if test "${with_png+set}" = set; then :
2753 withval=$with_png;
2757 # Check whether --with-pthread was given.
2758 if test "${with_pthread+set}" = set; then :
2759 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2763 # Check whether --with-sane was given.
2764 if test "${with_sane+set}" = set; then :
2765 withval=$with_sane;
2769 # Check whether --with-tiff was given.
2770 if test "${with_tiff+set}" = set; then :
2771 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2775 # Check whether --with-v4l was given.
2776 if test "${with_v4l+set}" = set; then :
2777 withval=$with_v4l;
2781 # Check whether --with-xcomposite was given.
2782 if test "${with_xcomposite+set}" = set; then :
2783 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2787 # Check whether --with-xcursor was given.
2788 if test "${with_xcursor+set}" = set; then :
2789 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2793 # Check whether --with-xinerama was given.
2794 if test "${with_xinerama+set}" = set; then :
2795 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2799 # Check whether --with-xinput was given.
2800 if test "${with_xinput+set}" = set; then :
2801 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2805 # Check whether --with-xinput2 was given.
2806 if test "${with_xinput2+set}" = set; then :
2807 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2811 # Check whether --with-xml was given.
2812 if test "${with_xml+set}" = set; then :
2813 withval=$with_xml;
2817 # Check whether --with-xrandr was given.
2818 if test "${with_xrandr+set}" = set; then :
2819 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2823 # Check whether --with-xrender was given.
2824 if test "${with_xrender+set}" = set; then :
2825 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2829 # Check whether --with-xshape was given.
2830 if test "${with_xshape+set}" = set; then :
2831 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2835 # Check whether --with-xshm was given.
2836 if test "${with_xshm+set}" = set; then :
2837 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2841 # Check whether --with-xslt was given.
2842 if test "${with_xslt+set}" = set; then :
2843 withval=$with_xslt;
2847 # Check whether --with-xxf86vm was given.
2848 if test "${with_xxf86vm+set}" = set; then :
2849 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
2853 # Check whether --with-zlib was given.
2854 if test "${with_zlib+set}" = set; then :
2855 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2860 # Check whether --with-wine-tools was given.
2861 if test "${with_wine_tools+set}" = set; then :
2862 withval=$with_wine_tools;
2866 # Check whether --with-wine64 was given.
2867 if test "${with_wine64+set}" = set; then :
2868 withval=$with_wine64;
2872 # Make sure we can run config.sub.
2873 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2874 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2877 $as_echo_n "checking build system type... " >&6; }
2878 if ${ac_cv_build+:} false; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 ac_build_alias=$build_alias
2882 test "x$ac_build_alias" = x &&
2883 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2884 test "x$ac_build_alias" = x &&
2885 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2886 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2887 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2891 $as_echo "$ac_cv_build" >&6; }
2892 case $ac_cv_build in
2893 *-*-*) ;;
2894 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2895 esac
2896 build=$ac_cv_build
2897 ac_save_IFS=$IFS; IFS='-'
2898 set x $ac_cv_build
2899 shift
2900 build_cpu=$1
2901 build_vendor=$2
2902 shift; shift
2903 # Remember, the first character of IFS is used to create $*,
2904 # except with old shells:
2905 build_os=$*
2906 IFS=$ac_save_IFS
2907 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2911 $as_echo_n "checking host system type... " >&6; }
2912 if ${ac_cv_host+:} false; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test "x$host_alias" = x; then
2916 ac_cv_host=$ac_cv_build
2917 else
2918 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2919 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2924 $as_echo "$ac_cv_host" >&6; }
2925 case $ac_cv_host in
2926 *-*-*) ;;
2927 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2928 esac
2929 host=$ac_cv_host
2930 ac_save_IFS=$IFS; IFS='-'
2931 set x $ac_cv_host
2932 shift
2933 host_cpu=$1
2934 host_vendor=$2
2935 shift; shift
2936 # Remember, the first character of IFS is used to create $*,
2937 # except with old shells:
2938 host_os=$*
2939 IFS=$ac_save_IFS
2940 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2944 case "$srcdir" in
2945 .) ;;
2946 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2947 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2948 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2949 fi ;;
2950 esac
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2954 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2955 set x ${MAKE-make}
2956 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2957 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2958 $as_echo_n "(cached) " >&6
2959 else
2960 cat >conftest.make <<\_ACEOF
2961 SHELL = /bin/sh
2962 all:
2963 @echo '@@@%%%=$(MAKE)=@@@%%%'
2964 _ACEOF
2965 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2966 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2967 *@@@%%%=?*=@@@%%%*)
2968 eval ac_cv_prog_make_${ac_make}_set=yes;;
2970 eval ac_cv_prog_make_${ac_make}_set=no;;
2971 esac
2972 rm -f conftest.make
2974 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2976 $as_echo "yes" >&6; }
2977 SET_MAKE=
2978 else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2981 SET_MAKE="MAKE=${MAKE-make}"
2984 ac_ext=c
2985 ac_cpp='$CPP $CPPFLAGS'
2986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989 if test -n "$ac_tool_prefix"; then
2990 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2991 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if ${ac_cv_prog_CC+:} false; then :
2995 $as_echo_n "(cached) " >&6
2996 else
2997 if test -n "$CC"; then
2998 ac_cv_prog_CC="$CC" # Let the user override the test.
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 break 2
3011 done
3012 done
3013 IFS=$as_save_IFS
3017 CC=$ac_cv_prog_CC
3018 if test -n "$CC"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020 $as_echo "$CC" >&6; }
3021 else
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3028 if test -z "$ac_cv_prog_CC"; then
3029 ac_ct_CC=$CC
3030 # Extract the first word of "gcc", so it can be a program name with args.
3031 set dummy gcc; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 if test -n "$ac_ct_CC"; then
3038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_ac_ct_CC="gcc"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3051 done
3052 done
3053 IFS=$as_save_IFS
3057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3058 if test -n "$ac_ct_CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3060 $as_echo "$ac_ct_CC" >&6; }
3061 else
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3066 if test "x$ac_ct_CC" = x; then
3067 CC=""
3068 else
3069 case $cross_compiling:$ac_tool_warned in
3070 yes:)
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3073 ac_tool_warned=yes ;;
3074 esac
3075 CC=$ac_ct_CC
3077 else
3078 CC="$ac_cv_prog_CC"
3081 if test -z "$CC"; then
3082 if test -n "$ac_tool_prefix"; then
3083 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3084 set dummy ${ac_tool_prefix}cc; ac_word=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if ${ac_cv_prog_CC+:} false; then :
3088 $as_echo_n "(cached) " >&6
3089 else
3090 if test -n "$CC"; then
3091 ac_cv_prog_CC="$CC" # Let the user override the test.
3092 else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100 ac_cv_prog_CC="${ac_tool_prefix}cc"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 break 2
3104 done
3105 done
3106 IFS=$as_save_IFS
3110 CC=$ac_cv_prog_CC
3111 if test -n "$CC"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113 $as_echo "$CC" >&6; }
3114 else
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3122 if test -z "$CC"; then
3123 # Extract the first word of "cc", so it can be a program name with args.
3124 set dummy cc; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if ${ac_cv_prog_CC+:} false; then :
3128 $as_echo_n "(cached) " >&6
3129 else
3130 if test -n "$CC"; then
3131 ac_cv_prog_CC="$CC" # Let the user override the test.
3132 else
3133 ac_prog_rejected=no
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3137 IFS=$as_save_IFS
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3142 ac_prog_rejected=yes
3143 continue
3145 ac_cv_prog_CC="cc"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3149 done
3150 done
3151 IFS=$as_save_IFS
3153 if test $ac_prog_rejected = yes; then
3154 # We found a bogon in the path, so make sure we never use it.
3155 set dummy $ac_cv_prog_CC
3156 shift
3157 if test $# != 0; then
3158 # We chose a different compiler from the bogus one.
3159 # However, it has the same basename, so the bogon will be chosen
3160 # first if we set CC to just the basename; use the full file name.
3161 shift
3162 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3167 CC=$ac_cv_prog_CC
3168 if test -n "$CC"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170 $as_echo "$CC" >&6; }
3171 else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3178 if test -z "$CC"; then
3179 if test -n "$ac_tool_prefix"; then
3180 for ac_prog in cl.exe
3182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if ${ac_cv_prog_CC+:} false; then :
3187 $as_echo_n "(cached) " >&6
3188 else
3189 if test -n "$CC"; then
3190 ac_cv_prog_CC="$CC" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 break 2
3203 done
3204 done
3205 IFS=$as_save_IFS
3209 CC=$ac_cv_prog_CC
3210 if test -n "$CC"; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3212 $as_echo "$CC" >&6; }
3213 else
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3219 test -n "$CC" && break
3220 done
3222 if test -z "$CC"; then
3223 ac_ct_CC=$CC
3224 for ac_prog in cl.exe
3226 # Extract the first word of "$ac_prog", so it can be a program name with args.
3227 set dummy $ac_prog; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 if test -n "$ac_ct_CC"; then
3234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_ac_ct_CC="$ac_prog"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 break 2
3247 done
3248 done
3249 IFS=$as_save_IFS
3253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3254 if test -n "$ac_ct_CC"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3256 $as_echo "$ac_ct_CC" >&6; }
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3263 test -n "$ac_ct_CC" && break
3264 done
3266 if test "x$ac_ct_CC" = x; then
3267 CC=""
3268 else
3269 case $cross_compiling:$ac_tool_warned in
3270 yes:)
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3273 ac_tool_warned=yes ;;
3274 esac
3275 CC=$ac_ct_CC
3282 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284 as_fn_error $? "no acceptable C compiler found in \$PATH
3285 See \`config.log' for more details" "$LINENO" 5; }
3287 # Provide some information about the compiler.
3288 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3289 set X $ac_compile
3290 ac_compiler=$2
3291 for ac_option in --version -v -V -qversion; do
3292 { { ac_try="$ac_compiler $ac_option >&5"
3293 case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296 esac
3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298 $as_echo "$ac_try_echo"; } >&5
3299 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3300 ac_status=$?
3301 if test -s conftest.err; then
3302 sed '10a\
3303 ... rest of stderr output deleted ...
3304 10q' conftest.err >conftest.er1
3305 cat conftest.er1 >&5
3307 rm -f conftest.er1 conftest.err
3308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309 test $ac_status = 0; }
3310 done
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3316 main ()
3320 return 0;
3322 _ACEOF
3323 ac_clean_files_save=$ac_clean_files
3324 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3325 # Try to create an executable without -o first, disregard a.out.
3326 # It will help us diagnose broken compilers, and finding out an intuition
3327 # of exeext.
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3329 $as_echo_n "checking whether the C compiler works... " >&6; }
3330 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3332 # The possible output files:
3333 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3335 ac_rmfiles=
3336 for ac_file in $ac_files
3338 case $ac_file in
3339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3340 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3341 esac
3342 done
3343 rm -f $ac_rmfiles
3345 if { { ac_try="$ac_link_default"
3346 case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349 esac
3350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351 $as_echo "$ac_try_echo"; } >&5
3352 (eval "$ac_link_default") 2>&5
3353 ac_status=$?
3354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355 test $ac_status = 0; }; then :
3356 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3357 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3358 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3359 # so that the user can short-circuit this test for compilers unknown to
3360 # Autoconf.
3361 for ac_file in $ac_files ''
3363 test -f "$ac_file" || continue
3364 case $ac_file in
3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3367 [ab].out )
3368 # We found the default executable, but exeext='' is most
3369 # certainly right.
3370 break;;
3371 *.* )
3372 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3373 then :; else
3374 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3376 # We set ac_cv_exeext here because the later test for it is not
3377 # safe: cross compilers may not add the suffix if given an `-o'
3378 # argument, so we may need to know it at that point already.
3379 # Even if this section looks crufty: it has the advantage of
3380 # actually working.
3381 break;;
3383 break;;
3384 esac
3385 done
3386 test "$ac_cv_exeext" = no && ac_cv_exeext=
3388 else
3389 ac_file=''
3391 if test -z "$ac_file"; then :
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3394 $as_echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399 as_fn_error 77 "C compiler cannot create executables
3400 See \`config.log' for more details" "$LINENO" 5; }
3401 else
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3403 $as_echo "yes" >&6; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3406 $as_echo_n "checking for C compiler default output file name... " >&6; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3408 $as_echo "$ac_file" >&6; }
3409 ac_exeext=$ac_cv_exeext
3411 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3412 ac_clean_files=$ac_clean_files_save
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3414 $as_echo_n "checking for suffix of executables... " >&6; }
3415 if { { ac_try="$ac_link"
3416 case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419 esac
3420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421 $as_echo "$ac_try_echo"; } >&5
3422 (eval "$ac_link") 2>&5
3423 ac_status=$?
3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425 test $ac_status = 0; }; then :
3426 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3427 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3428 # work properly (i.e., refer to `conftest.exe'), while it won't with
3429 # `rm'.
3430 for ac_file in conftest.exe conftest conftest.*; do
3431 test -f "$ac_file" || continue
3432 case $ac_file in
3433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3434 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3435 break;;
3436 * ) break;;
3437 esac
3438 done
3439 else
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3443 See \`config.log' for more details" "$LINENO" 5; }
3445 rm -f conftest conftest$ac_cv_exeext
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3447 $as_echo "$ac_cv_exeext" >&6; }
3449 rm -f conftest.$ac_ext
3450 EXEEXT=$ac_cv_exeext
3451 ac_exeext=$EXEEXT
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3454 #include <stdio.h>
3456 main ()
3458 FILE *f = fopen ("conftest.out", "w");
3459 return ferror (f) || fclose (f) != 0;
3462 return 0;
3464 _ACEOF
3465 ac_clean_files="$ac_clean_files conftest.out"
3466 # Check that the compiler produces executables we can run. If not, either
3467 # the compiler is broken, or we cross compile.
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3469 $as_echo_n "checking whether we are cross compiling... " >&6; }
3470 if test "$cross_compiling" != yes; then
3471 { { ac_try="$ac_link"
3472 case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 $as_echo "$ac_try_echo"; } >&5
3478 (eval "$ac_link") 2>&5
3479 ac_status=$?
3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481 test $ac_status = 0; }
3482 if { ac_try='./conftest$ac_cv_exeext'
3483 { { case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489 (eval "$ac_try") 2>&5
3490 ac_status=$?
3491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492 test $ac_status = 0; }; }; then
3493 cross_compiling=no
3494 else
3495 if test "$cross_compiling" = maybe; then
3496 cross_compiling=yes
3497 else
3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error $? "cannot run C compiled programs.
3501 If you meant to cross compile, use \`--host'.
3502 See \`config.log' for more details" "$LINENO" 5; }
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3507 $as_echo "$cross_compiling" >&6; }
3509 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3510 ac_clean_files=$ac_clean_files_save
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3512 $as_echo_n "checking for suffix of object files... " >&6; }
3513 if ${ac_cv_objext+:} false; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3520 main ()
3524 return 0;
3526 _ACEOF
3527 rm -f conftest.o conftest.obj
3528 if { { ac_try="$ac_compile"
3529 case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532 esac
3533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534 $as_echo "$ac_try_echo"; } >&5
3535 (eval "$ac_compile") 2>&5
3536 ac_status=$?
3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 test $ac_status = 0; }; then :
3539 for ac_file in conftest.o conftest.obj conftest.*; do
3540 test -f "$ac_file" || continue;
3541 case $ac_file in
3542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3543 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3544 break;;
3545 esac
3546 done
3547 else
3548 $as_echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 as_fn_error $? "cannot compute suffix of object files: cannot compile
3554 See \`config.log' for more details" "$LINENO" 5; }
3556 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3559 $as_echo "$ac_cv_objext" >&6; }
3560 OBJEXT=$ac_cv_objext
3561 ac_objext=$OBJEXT
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3563 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3564 if ${ac_cv_c_compiler_gnu+:} false; then :
3565 $as_echo_n "(cached) " >&6
3566 else
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3571 main ()
3573 #ifndef __GNUC__
3574 choke me
3575 #endif
3578 return 0;
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582 ac_compiler_gnu=yes
3583 else
3584 ac_compiler_gnu=no
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3591 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3592 if test $ac_compiler_gnu = yes; then
3593 GCC=yes
3594 else
3595 GCC=
3597 ac_test_CFLAGS=${CFLAGS+set}
3598 ac_save_CFLAGS=$CFLAGS
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3600 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3601 if ${ac_cv_prog_cc_g+:} false; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 ac_save_c_werror_flag=$ac_c_werror_flag
3605 ac_c_werror_flag=yes
3606 ac_cv_prog_cc_g=no
3607 CFLAGS="-g"
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3612 main ()
3616 return 0;
3618 _ACEOF
3619 if ac_fn_c_try_compile "$LINENO"; then :
3620 ac_cv_prog_cc_g=yes
3621 else
3622 CFLAGS=""
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3627 main ()
3631 return 0;
3633 _ACEOF
3634 if ac_fn_c_try_compile "$LINENO"; then :
3636 else
3637 ac_c_werror_flag=$ac_save_c_werror_flag
3638 CFLAGS="-g"
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3643 main ()
3647 return 0;
3649 _ACEOF
3650 if ac_fn_c_try_compile "$LINENO"; then :
3651 ac_cv_prog_cc_g=yes
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658 ac_c_werror_flag=$ac_save_c_werror_flag
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3661 $as_echo "$ac_cv_prog_cc_g" >&6; }
3662 if test "$ac_test_CFLAGS" = set; then
3663 CFLAGS=$ac_save_CFLAGS
3664 elif test $ac_cv_prog_cc_g = yes; then
3665 if test "$GCC" = yes; then
3666 CFLAGS="-g -O2"
3667 else
3668 CFLAGS="-g"
3670 else
3671 if test "$GCC" = yes; then
3672 CFLAGS="-O2"
3673 else
3674 CFLAGS=
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3678 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3679 if ${ac_cv_prog_cc_c89+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 ac_cv_prog_cc_c89=no
3683 ac_save_CC=$CC
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3686 #include <stdarg.h>
3687 #include <stdio.h>
3688 struct stat;
3689 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3690 struct buf { int x; };
3691 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3692 static char *e (p, i)
3693 char **p;
3694 int i;
3696 return p[i];
3698 static char *f (char * (*g) (char **, int), char **p, ...)
3700 char *s;
3701 va_list v;
3702 va_start (v,p);
3703 s = g (p, va_arg (v,int));
3704 va_end (v);
3705 return s;
3708 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3709 function prototypes and stuff, but not '\xHH' hex character constants.
3710 These don't provoke an error unfortunately, instead are silently treated
3711 as 'x'. The following induces an error, until -std is added to get
3712 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3713 array size at least. It's necessary to write '\x00'==0 to get something
3714 that's true only with -std. */
3715 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3717 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3718 inside strings and character constants. */
3719 #define FOO(x) 'x'
3720 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3722 int test (int i, double x);
3723 struct s1 {int (*f) (int a);};
3724 struct s2 {int (*f) (double a);};
3725 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3726 int argc;
3727 char **argv;
3729 main ()
3731 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3733 return 0;
3735 _ACEOF
3736 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3737 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3739 CC="$ac_save_CC $ac_arg"
3740 if ac_fn_c_try_compile "$LINENO"; then :
3741 ac_cv_prog_cc_c89=$ac_arg
3743 rm -f core conftest.err conftest.$ac_objext
3744 test "x$ac_cv_prog_cc_c89" != "xno" && break
3745 done
3746 rm -f conftest.$ac_ext
3747 CC=$ac_save_CC
3750 # AC_CACHE_VAL
3751 case "x$ac_cv_prog_cc_c89" in
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3754 $as_echo "none needed" >&6; } ;;
3755 xno)
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3757 $as_echo "unsupported" >&6; } ;;
3759 CC="$CC $ac_cv_prog_cc_c89"
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3761 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3762 esac
3763 if test "x$ac_cv_prog_cc_c89" != xno; then :
3767 ac_ext=c
3768 ac_cpp='$CPP $CPPFLAGS'
3769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773 ac_ext=cpp
3774 ac_cpp='$CXXCPP $CPPFLAGS'
3775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3778 if test -z "$CXX"; then
3779 if test -n "$CCC"; then
3780 CXX=$CCC
3781 else
3782 if test -n "$ac_tool_prefix"; then
3783 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788 $as_echo_n "checking for $ac_word... " >&6; }
3789 if ${ac_cv_prog_CXX+:} false; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 if test -n "$CXX"; then
3793 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3806 done
3807 done
3808 IFS=$as_save_IFS
3812 CXX=$ac_cv_prog_CXX
3813 if test -n "$CXX"; then
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3815 $as_echo "$CXX" >&6; }
3816 else
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 $as_echo "no" >&6; }
3822 test -n "$CXX" && break
3823 done
3825 if test -z "$CXX"; then
3826 ac_ct_CXX=$CXX
3827 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3829 # Extract the first word of "$ac_prog", so it can be a program name with args.
3830 set dummy $ac_prog; ac_word=$2
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 $as_echo_n "checking for $ac_word... " >&6; }
3833 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3834 $as_echo_n "(cached) " >&6
3835 else
3836 if test -n "$ac_ct_CXX"; then
3837 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846 ac_cv_prog_ac_ct_CXX="$ac_prog"
3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 break 2
3850 done
3851 done
3852 IFS=$as_save_IFS
3856 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3857 if test -n "$ac_ct_CXX"; then
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3859 $as_echo "$ac_ct_CXX" >&6; }
3860 else
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3866 test -n "$ac_ct_CXX" && break
3867 done
3869 if test "x$ac_ct_CXX" = x; then
3870 CXX="g++"
3871 else
3872 case $cross_compiling:$ac_tool_warned in
3873 yes:)
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3876 ac_tool_warned=yes ;;
3877 esac
3878 CXX=$ac_ct_CXX
3884 # Provide some information about the compiler.
3885 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3886 set X $ac_compile
3887 ac_compiler=$2
3888 for ac_option in --version -v -V -qversion; do
3889 { { ac_try="$ac_compiler $ac_option >&5"
3890 case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3893 esac
3894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3895 $as_echo "$ac_try_echo"; } >&5
3896 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3897 ac_status=$?
3898 if test -s conftest.err; then
3899 sed '10a\
3900 ... rest of stderr output deleted ...
3901 10q' conftest.err >conftest.er1
3902 cat conftest.er1 >&5
3904 rm -f conftest.er1 conftest.err
3905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3906 test $ac_status = 0; }
3907 done
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3910 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3911 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3912 $as_echo_n "(cached) " >&6
3913 else
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3918 main ()
3920 #ifndef __GNUC__
3921 choke me
3922 #endif
3925 return 0;
3927 _ACEOF
3928 if ac_fn_cxx_try_compile "$LINENO"; then :
3929 ac_compiler_gnu=yes
3930 else
3931 ac_compiler_gnu=no
3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3938 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3939 if test $ac_compiler_gnu = yes; then
3940 GXX=yes
3941 else
3942 GXX=
3944 ac_test_CXXFLAGS=${CXXFLAGS+set}
3945 ac_save_CXXFLAGS=$CXXFLAGS
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3947 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3948 if ${ac_cv_prog_cxx_g+:} false; then :
3949 $as_echo_n "(cached) " >&6
3950 else
3951 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3952 ac_cxx_werror_flag=yes
3953 ac_cv_prog_cxx_g=no
3954 CXXFLAGS="-g"
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3959 main ()
3963 return 0;
3965 _ACEOF
3966 if ac_fn_cxx_try_compile "$LINENO"; then :
3967 ac_cv_prog_cxx_g=yes
3968 else
3969 CXXFLAGS=""
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3974 main ()
3978 return 0;
3980 _ACEOF
3981 if ac_fn_cxx_try_compile "$LINENO"; then :
3983 else
3984 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3985 CXXFLAGS="-g"
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3990 main ()
3994 return 0;
3996 _ACEOF
3997 if ac_fn_cxx_try_compile "$LINENO"; then :
3998 ac_cv_prog_cxx_g=yes
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4008 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4009 if test "$ac_test_CXXFLAGS" = set; then
4010 CXXFLAGS=$ac_save_CXXFLAGS
4011 elif test $ac_cv_prog_cxx_g = yes; then
4012 if test "$GXX" = yes; then
4013 CXXFLAGS="-g -O2"
4014 else
4015 CXXFLAGS="-g"
4017 else
4018 if test "$GXX" = yes; then
4019 CXXFLAGS="-O2"
4020 else
4021 CXXFLAGS=
4024 ac_ext=c
4025 ac_cpp='$CPP $CPPFLAGS'
4026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4030 if test -n "$ac_tool_prefix"; then
4031 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4032 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034 $as_echo_n "checking for $ac_word... " >&6; }
4035 if ${ac_cv_prog_CPPBIN+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 if test -n "$CPPBIN"; then
4039 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4040 else
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4048 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 break 2
4052 done
4053 done
4054 IFS=$as_save_IFS
4058 CPPBIN=$ac_cv_prog_CPPBIN
4059 if test -n "$CPPBIN"; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4061 $as_echo "$CPPBIN" >&6; }
4062 else
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064 $as_echo "no" >&6; }
4069 if test -z "$ac_cv_prog_CPPBIN"; then
4070 ac_ct_CPPBIN=$CPPBIN
4071 # Extract the first word of "cpp", so it can be a program name with args.
4072 set dummy cpp; ac_word=$2
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 if test -n "$ac_ct_CPPBIN"; then
4079 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088 ac_cv_prog_ac_ct_CPPBIN="cpp"
4089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4090 break 2
4092 done
4093 done
4094 IFS=$as_save_IFS
4098 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4099 if test -n "$ac_ct_CPPBIN"; then
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4101 $as_echo "$ac_ct_CPPBIN" >&6; }
4102 else
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 $as_echo "no" >&6; }
4107 if test "x$ac_ct_CPPBIN" = x; then
4108 CPPBIN="cpp"
4109 else
4110 case $cross_compiling:$ac_tool_warned in
4111 yes:)
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4114 ac_tool_warned=yes ;;
4115 esac
4116 CPPBIN=$ac_ct_CPPBIN
4118 else
4119 CPPBIN="$ac_cv_prog_CPPBIN"
4123 cat >>confdefs.h <<_ACEOF
4124 #define EXEEXT "$ac_exeext"
4125 _ACEOF
4128 case $host in
4129 *-darwin*)
4130 if test "x$enable_win64" = "xyes"
4131 then
4132 CC="$CC -m64"
4133 CXX="$CXX -m64"
4134 host_cpu="x86_64"
4135 notice_platform="64-bit "
4136 TARGETFLAGS="-m64"
4138 else
4139 CC="$CC -m32"
4140 CXX="$CXX -m32"
4141 host_cpu="i386"
4142 notice_platform="32-bit "
4143 TARGETFLAGS="-m32"
4145 enable_win16=${enable_win16:-yes}
4147 with_fontconfig=${with_fontconfig:-no}
4149 x86_64*)
4150 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4151 then
4152 CC="$CC -m32"
4153 CXX="$CXX -m32"
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4155 $as_echo_n "checking whether $CC works... " >&6; }
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4161 main ()
4165 return 0;
4167 _ACEOF
4168 if ac_fn_c_try_link "$LINENO"; then :
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4170 $as_echo "yes" >&6; }
4171 else
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4174 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4176 rm -f core conftest.err conftest.$ac_objext \
4177 conftest$ac_exeext conftest.$ac_ext
4178 host_cpu="i386"
4179 notice_platform="32-bit "
4180 TARGETFLAGS="-m32"
4182 enable_win16=${enable_win16:-yes}
4183 else
4184 if test "x${GCC}" = "xyes"
4185 then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4187 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4190 #include <stdarg.h>
4192 main ()
4194 void func(__builtin_ms_va_list *args);
4196 return 0;
4198 _ACEOF
4199 if ac_fn_c_try_compile "$LINENO"; then :
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4201 $as_echo "yes" >&6; }
4202 else
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4205 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 TARGETFLAGS="-m64"
4213 arm*)
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4215 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4218 int ac_test(int i) { return i; }
4220 main ()
4222 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4224 return 0;
4226 _ACEOF
4227 if ac_fn_c_try_link "$LINENO"; then :
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4229 $as_echo "yes" >&6; }
4230 else
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4233 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4235 rm -f core conftest.err conftest.$ac_objext \
4236 conftest$ac_exeext conftest.$ac_ext
4237 CFLAGS="$CFLAGS -marm"
4239 *-mingw32*|*-cygwin*)
4240 enable_win16=${enable_win16:-no}
4241 CFLAGS="$CFLAGS -D_WIN32"
4243 i[3456789]86*)
4244 enable_win16=${enable_win16:-yes}
4246 esac
4248 enable_win16=${enable_win16:-no}
4249 enable_win64=${enable_win64:-no}
4251 enable_winetest=${enable_winetest:-$enable_tests}
4253 if test -n "$with_wine64"
4254 then
4255 if test "x$enable_win64" = "xyes"
4256 then
4257 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4258 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4260 WOW64_DISABLE=\#
4262 enable_fonts=${enable_fonts:-no}
4263 enable_server=${enable_server:-no}
4264 enable_tools=${enable_tools:-no}
4265 elif test "x$enable_win64" = "xyes"
4266 then
4267 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4271 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4272 if ${wine_cv_toolsdir+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 wine_cv_toolsdir="$with_wine_tools"
4276 if test -z "$with_wine_tools"; then
4277 if test "$cross_compiling" = "yes"; then
4278 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4279 elif test -n "$with_wine64"; then
4280 wine_cv_toolsdir="$with_wine64"
4283 if test -z "$wine_cv_toolsdir"; then
4284 wine_cv_toolsdir="\$(top_builddir)"
4285 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4286 case "$wine_cv_toolsdir" in
4287 /*) ;;
4288 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4289 esac
4290 else
4291 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4295 $as_echo "$wine_cv_toolsdir" >&6; }
4296 TOOLSDIR=$wine_cv_toolsdir
4298 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4299 then
4300 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4304 for ac_prog in flex
4306 # Extract the first word of "$ac_prog", so it can be a program name with args.
4307 set dummy $ac_prog; ac_word=$2
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 $as_echo_n "checking for $ac_word... " >&6; }
4310 if ${ac_cv_prog_FLEX+:} false; then :
4311 $as_echo_n "(cached) " >&6
4312 else
4313 if test -n "$FLEX"; then
4314 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4323 ac_cv_prog_FLEX="$ac_prog"
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4327 done
4328 done
4329 IFS=$as_save_IFS
4333 FLEX=$ac_cv_prog_FLEX
4334 if test -n "$FLEX"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4336 $as_echo "$FLEX" >&6; }
4337 else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4343 test -n "$FLEX" && break
4344 done
4345 test -n "$FLEX" || FLEX="none"
4347 if test "$FLEX" = "none"
4348 then
4349 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4352 $as_echo_n "checking whether flex is recent enough... " >&6; }
4353 cat >conftest.l <<EOF
4354 %top{
4355 #include "prediluvian.h"
4359 if $FLEX -t conftest.l >/dev/null 2>&5
4360 then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4362 $as_echo "yes" >&6; }
4363 else
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4366 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4369 for ac_prog in bison
4371 # Extract the first word of "$ac_prog", so it can be a program name with args.
4372 set dummy $ac_prog; ac_word=$2
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4374 $as_echo_n "checking for $ac_word... " >&6; }
4375 if ${ac_cv_prog_BISON+:} false; then :
4376 $as_echo_n "(cached) " >&6
4377 else
4378 if test -n "$BISON"; then
4379 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4380 else
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4388 ac_cv_prog_BISON="$ac_prog"
4389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 break 2
4392 done
4393 done
4394 IFS=$as_save_IFS
4398 BISON=$ac_cv_prog_BISON
4399 if test -n "$BISON"; then
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4401 $as_echo "$BISON" >&6; }
4402 else
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4404 $as_echo "no" >&6; }
4408 test -n "$BISON" && break
4409 done
4410 test -n "$BISON" || BISON="none"
4412 if test "$BISON" = "none"
4413 then
4414 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4417 if test -n "$ac_tool_prefix"; then
4418 for ac_prog in ar gar
4420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4423 $as_echo_n "checking for $ac_word... " >&6; }
4424 if ${ac_cv_prog_AR+:} false; then :
4425 $as_echo_n "(cached) " >&6
4426 else
4427 if test -n "$AR"; then
4428 ac_cv_prog_AR="$AR" # Let the user override the test.
4429 else
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4441 done
4442 done
4443 IFS=$as_save_IFS
4447 AR=$ac_cv_prog_AR
4448 if test -n "$AR"; then
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4450 $as_echo "$AR" >&6; }
4451 else
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 $as_echo "no" >&6; }
4457 test -n "$AR" && break
4458 done
4460 if test -z "$AR"; then
4461 ac_ct_AR=$AR
4462 for ac_prog in ar gar
4464 # Extract the first word of "$ac_prog", so it can be a program name with args.
4465 set dummy $ac_prog; ac_word=$2
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467 $as_echo_n "checking for $ac_word... " >&6; }
4468 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4469 $as_echo_n "(cached) " >&6
4470 else
4471 if test -n "$ac_ct_AR"; then
4472 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4473 else
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH
4477 IFS=$as_save_IFS
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4481 ac_cv_prog_ac_ct_AR="$ac_prog"
4482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 break 2
4485 done
4486 done
4487 IFS=$as_save_IFS
4491 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4492 if test -n "$ac_ct_AR"; then
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4494 $as_echo "$ac_ct_AR" >&6; }
4495 else
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 $as_echo "no" >&6; }
4501 test -n "$ac_ct_AR" && break
4502 done
4504 if test "x$ac_ct_AR" = x; then
4505 AR="ar"
4506 else
4507 case $cross_compiling:$ac_tool_warned in
4508 yes:)
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4511 ac_tool_warned=yes ;;
4512 esac
4513 AR=$ac_ct_AR
4517 ARFLAGS=rc
4519 if test -n "$ac_tool_prefix"; then
4520 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4521 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if ${ac_cv_prog_RANLIB+:} false; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 if test -n "$RANLIB"; then
4528 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4529 else
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4537 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 break 2
4541 done
4542 done
4543 IFS=$as_save_IFS
4547 RANLIB=$ac_cv_prog_RANLIB
4548 if test -n "$RANLIB"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4550 $as_echo "$RANLIB" >&6; }
4551 else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4558 if test -z "$ac_cv_prog_RANLIB"; then
4559 ac_ct_RANLIB=$RANLIB
4560 # Extract the first word of "ranlib", so it can be a program name with args.
4561 set dummy ranlib; ac_word=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if test -n "$ac_ct_RANLIB"; then
4568 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4577 ac_cv_prog_ac_ct_RANLIB="ranlib"
4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4581 done
4582 done
4583 IFS=$as_save_IFS
4587 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4588 if test -n "$ac_ct_RANLIB"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4590 $as_echo "$ac_ct_RANLIB" >&6; }
4591 else
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4596 if test "x$ac_ct_RANLIB" = x; then
4597 RANLIB=":"
4598 else
4599 case $cross_compiling:$ac_tool_warned in
4600 yes:)
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4603 ac_tool_warned=yes ;;
4604 esac
4605 RANLIB=$ac_ct_RANLIB
4607 else
4608 RANLIB="$ac_cv_prog_RANLIB"
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4612 $as_echo_n "checking whether ln -s works... " >&6; }
4613 LN_S=$as_ln_s
4614 if test "$LN_S" = "ln -s"; then
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4616 $as_echo "yes" >&6; }
4617 else
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4619 $as_echo "no, using $LN_S" >&6; }
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4623 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4624 if ${ac_cv_path_GREP+:} false; then :
4625 $as_echo_n "(cached) " >&6
4626 else
4627 if test -z "$GREP"; then
4628 ac_path_GREP_found=false
4629 # Loop through the user's path and test for each of PROGNAME-LIST
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_prog in grep ggrep; do
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4638 as_fn_executable_p "$ac_path_GREP" || continue
4639 # Check for GNU ac_path_GREP and select it if it is found.
4640 # Check for GNU $ac_path_GREP
4641 case `"$ac_path_GREP" --version 2>&1` in
4642 *GNU*)
4643 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4645 ac_count=0
4646 $as_echo_n 0123456789 >"conftest.in"
4647 while :
4649 cat "conftest.in" "conftest.in" >"conftest.tmp"
4650 mv "conftest.tmp" "conftest.in"
4651 cp "conftest.in" "conftest.nl"
4652 $as_echo 'GREP' >> "conftest.nl"
4653 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4655 as_fn_arith $ac_count + 1 && ac_count=$as_val
4656 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4657 # Best one so far, save it but keep looking for a better one
4658 ac_cv_path_GREP="$ac_path_GREP"
4659 ac_path_GREP_max=$ac_count
4661 # 10*(2^10) chars as input seems more than enough
4662 test $ac_count -gt 10 && break
4663 done
4664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4665 esac
4667 $ac_path_GREP_found && break 3
4668 done
4669 done
4670 done
4671 IFS=$as_save_IFS
4672 if test -z "$ac_cv_path_GREP"; then
4673 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4675 else
4676 ac_cv_path_GREP=$GREP
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4681 $as_echo "$ac_cv_path_GREP" >&6; }
4682 GREP="$ac_cv_path_GREP"
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4686 $as_echo_n "checking for egrep... " >&6; }
4687 if ${ac_cv_path_EGREP+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4691 then ac_cv_path_EGREP="$GREP -E"
4692 else
4693 if test -z "$EGREP"; then
4694 ac_path_EGREP_found=false
4695 # Loop through the user's path and test for each of PROGNAME-LIST
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_prog in egrep; do
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4704 as_fn_executable_p "$ac_path_EGREP" || continue
4705 # Check for GNU ac_path_EGREP and select it if it is found.
4706 # Check for GNU $ac_path_EGREP
4707 case `"$ac_path_EGREP" --version 2>&1` in
4708 *GNU*)
4709 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4711 ac_count=0
4712 $as_echo_n 0123456789 >"conftest.in"
4713 while :
4715 cat "conftest.in" "conftest.in" >"conftest.tmp"
4716 mv "conftest.tmp" "conftest.in"
4717 cp "conftest.in" "conftest.nl"
4718 $as_echo 'EGREP' >> "conftest.nl"
4719 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4721 as_fn_arith $ac_count + 1 && ac_count=$as_val
4722 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4723 # Best one so far, save it but keep looking for a better one
4724 ac_cv_path_EGREP="$ac_path_EGREP"
4725 ac_path_EGREP_max=$ac_count
4727 # 10*(2^10) chars as input seems more than enough
4728 test $ac_count -gt 10 && break
4729 done
4730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4731 esac
4733 $ac_path_EGREP_found && break 3
4734 done
4735 done
4736 done
4737 IFS=$as_save_IFS
4738 if test -z "$ac_cv_path_EGREP"; then
4739 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4741 else
4742 ac_cv_path_EGREP=$EGREP
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4748 $as_echo "$ac_cv_path_EGREP" >&6; }
4749 EGREP="$ac_cv_path_EGREP"
4752 # Extract the first word of "ldconfig", so it can be a program name with args.
4753 set dummy ldconfig; ac_word=$2
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if ${ac_cv_path_LDCONFIG+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 case $LDCONFIG in
4760 [\\/]* | ?:[\\/]*)
4761 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in /sbin /usr/sbin $PATH
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4775 done
4776 done
4777 IFS=$as_save_IFS
4779 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4781 esac
4783 LDCONFIG=$ac_cv_path_LDCONFIG
4784 if test -n "$LDCONFIG"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4786 $as_echo "$LDCONFIG" >&6; }
4787 else
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 $as_echo "no" >&6; }
4793 # Find a good install program. We prefer a C program (faster),
4794 # so one script is as good as another. But avoid the broken or
4795 # incompatible versions:
4796 # SysV /etc/install, /usr/sbin/install
4797 # SunOS /usr/etc/install
4798 # IRIX /sbin/install
4799 # AIX /bin/install
4800 # AmigaOS /C/install, which installs bootblocks on floppy discs
4801 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4802 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4803 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4804 # OS/2's system install, which has a completely different semantic
4805 # ./install, which can be erroneously created by make from ./install.sh.
4806 # Reject install programs that cannot install multiple files.
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4808 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4809 if test -z "$INSTALL"; then
4810 if ${ac_cv_path_install+:} false; then :
4811 $as_echo_n "(cached) " >&6
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 # Account for people who put trailing slashes in PATH elements.
4819 case $as_dir/ in #((
4820 ./ | .// | /[cC]/* | \
4821 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4822 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4823 /usr/ucb/* ) ;;
4825 # OSF1 and SCO ODT 3.0 have their own names for install.
4826 # Don't use installbsd from OSF since it installs stuff as root
4827 # by default.
4828 for ac_prog in ginstall scoinst install; do
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4831 if test $ac_prog = install &&
4832 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4833 # AIX install. It has an incompatible calling convention.
4835 elif test $ac_prog = install &&
4836 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4837 # program-specific install script used by HP pwplus--don't use.
4839 else
4840 rm -rf conftest.one conftest.two conftest.dir
4841 echo one > conftest.one
4842 echo two > conftest.two
4843 mkdir conftest.dir
4844 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4845 test -s conftest.one && test -s conftest.two &&
4846 test -s conftest.dir/conftest.one &&
4847 test -s conftest.dir/conftest.two
4848 then
4849 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4850 break 3
4854 done
4855 done
4857 esac
4859 done
4860 IFS=$as_save_IFS
4862 rm -rf conftest.one conftest.two conftest.dir
4865 if test "${ac_cv_path_install+set}" = set; then
4866 INSTALL=$ac_cv_path_install
4867 else
4868 # As a last resort, use the slow shell script. Don't cache a
4869 # value for INSTALL within a source directory, because that will
4870 # break other packages using the cache if that directory is
4871 # removed, or if the value is a relative name.
4872 INSTALL=$ac_install_sh
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4876 $as_echo "$INSTALL" >&6; }
4878 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4879 # It thinks the first close brace ends the variable substitution.
4880 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4882 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4884 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4886 case "$INSTALL" in
4887 [\\/$]* | ?:[\\/]* ) ;;
4888 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4889 esac
4891 for ac_prog in lclint lint
4893 # Extract the first word of "$ac_prog", so it can be a program name with args.
4894 set dummy $ac_prog; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if ${ac_cv_prog_LINT+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if test -n "$LINT"; then
4901 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4910 ac_cv_prog_LINT="$ac_prog"
4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4914 done
4915 done
4916 IFS=$as_save_IFS
4920 LINT=$ac_cv_prog_LINT
4921 if test -n "$LINT"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4923 $as_echo "$LINT" >&6; }
4924 else
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4930 test -n "$LINT" && break
4931 done
4933 if test "$LINT" = "lint"
4934 then
4935 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4939 for ac_prog in fontforge
4941 # Extract the first word of "$ac_prog", so it can be a program name with args.
4942 set dummy $ac_prog; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if ${ac_cv_prog_FONTFORGE+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 if test -n "$FONTFORGE"; then
4949 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958 ac_cv_prog_FONTFORGE="$ac_prog"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4962 done
4963 done
4964 IFS=$as_save_IFS
4968 FONTFORGE=$ac_cv_prog_FONTFORGE
4969 if test -n "$FONTFORGE"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4971 $as_echo "$FONTFORGE" >&6; }
4972 else
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4978 test -n "$FONTFORGE" && break
4979 done
4980 test -n "$FONTFORGE" || FONTFORGE="false"
4982 for ac_prog in rsvg
4984 # Extract the first word of "$ac_prog", so it can be a program name with args.
4985 set dummy $ac_prog; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if ${ac_cv_prog_RSVG+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 if test -n "$RSVG"; then
4992 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4993 else
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5001 ac_cv_prog_RSVG="$ac_prog"
5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 break 2
5005 done
5006 done
5007 IFS=$as_save_IFS
5011 RSVG=$ac_cv_prog_RSVG
5012 if test -n "$RSVG"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5014 $as_echo "$RSVG" >&6; }
5015 else
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5021 test -n "$RSVG" && break
5022 done
5023 test -n "$RSVG" || RSVG="false"
5025 for ac_prog in convert
5027 # Extract the first word of "$ac_prog", so it can be a program name with args.
5028 set dummy $ac_prog; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_prog_CONVERT+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 if test -n "$CONVERT"; then
5035 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5036 else
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5044 ac_cv_prog_CONVERT="$ac_prog"
5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 break 2
5048 done
5049 done
5050 IFS=$as_save_IFS
5054 CONVERT=$ac_cv_prog_CONVERT
5055 if test -n "$CONVERT"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5057 $as_echo "$CONVERT" >&6; }
5058 else
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5064 test -n "$CONVERT" && break
5065 done
5066 test -n "$CONVERT" || CONVERT="false"
5068 for ac_prog in icotool
5070 # Extract the first word of "$ac_prog", so it can be a program name with args.
5071 set dummy $ac_prog; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if ${ac_cv_prog_ICOTOOL+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 if test -n "$ICOTOOL"; then
5078 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5079 else
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5083 IFS=$as_save_IFS
5084 test -z "$as_dir" && as_dir=.
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5087 ac_cv_prog_ICOTOOL="$ac_prog"
5088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 break 2
5091 done
5092 done
5093 IFS=$as_save_IFS
5097 ICOTOOL=$ac_cv_prog_ICOTOOL
5098 if test -n "$ICOTOOL"; then
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5100 $as_echo "$ICOTOOL" >&6; }
5101 else
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5107 test -n "$ICOTOOL" && break
5108 done
5109 test -n "$ICOTOOL" || ICOTOOL="false"
5111 for ac_prog in msgfmt
5113 # Extract the first word of "$ac_prog", so it can be a program name with args.
5114 set dummy $ac_prog; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if ${ac_cv_prog_MSGFMT+:} false; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 if test -n "$MSGFMT"; then
5121 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5122 else
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5130 ac_cv_prog_MSGFMT="$ac_prog"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 break 2
5134 done
5135 done
5136 IFS=$as_save_IFS
5140 MSGFMT=$ac_cv_prog_MSGFMT
5141 if test -n "$MSGFMT"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5143 $as_echo "$MSGFMT" >&6; }
5144 else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5150 test -n "$MSGFMT" && break
5151 done
5152 test -n "$MSGFMT" || MSGFMT="false"
5155 if test "x$enable_maintainer_mode" != "xyes"
5156 then
5157 MAINTAINER_MODE=\#
5159 else
5160 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5161 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5163 if test "$CONVERT" = false
5164 then
5165 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5166 else
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5168 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5169 convert_version=`convert --version | head -n1`
5170 if test "x$convert_version" != "x"
5171 then
5172 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5173 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5174 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5175 then
5176 CONVERT=false
5179 if test "$CONVERT" = false
5180 then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5182 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5183 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5184 else
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5186 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5190 if test "$ICOTOOL" = false
5191 then
5192 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5193 else
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5195 $as_echo_n "checking for recent enough icotool... " >&6; }
5196 icotool_version=`icotool --version | head -n1`
5197 if test "x$icotool_version" != "x"
5198 then
5199 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5200 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5201 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5202 then
5203 ICOTOOL=false
5204 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5207 if test "$ICOTOOL" = false
5208 then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5210 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5211 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5212 else
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5214 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5218 with_gettext=yes
5219 with_gettextpo=yes
5220 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5223 test "x$with_gettext" != xno || MSGFMT=false
5224 if test "$MSGFMT" != "false"
5225 then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5227 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5228 cat >conftest.po <<EOF
5229 # comment
5230 msgctxt "ctxt"
5231 msgid "id"
5232 msgstr "str"
5234 if $MSGFMT -o /dev/null conftest.po 2>&5
5235 then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5237 $as_echo "yes" >&6; }
5238 else
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5241 MSGFMT=false
5244 if test "$MSGFMT" = false; then :
5245 case "x$with_gettext" in
5246 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5247 xno) ;;
5248 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5249 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5250 esac
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5255 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5256 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 ac_check_lib_save_LIBS=$LIBS
5260 LIBS="-li386 $LIBS"
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5264 /* Override any GCC internal prototype to avoid an error.
5265 Use char because int might match the return type of a GCC
5266 builtin and then its argument prototype would still apply. */
5267 #ifdef __cplusplus
5268 extern "C"
5269 #endif
5270 char i386_set_ldt ();
5272 main ()
5274 return i386_set_ldt ();
5276 return 0;
5278 _ACEOF
5279 if ac_fn_c_try_link "$LINENO"; then :
5280 ac_cv_lib_i386_i386_set_ldt=yes
5281 else
5282 ac_cv_lib_i386_i386_set_ldt=no
5284 rm -f core conftest.err conftest.$ac_objext \
5285 conftest$ac_exeext conftest.$ac_ext
5286 LIBS=$ac_check_lib_save_LIBS
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5289 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5290 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5291 cat >>confdefs.h <<_ACEOF
5292 #define HAVE_LIBI386 1
5293 _ACEOF
5295 LIBS="-li386 $LIBS"
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5300 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5301 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 ac_check_lib_save_LIBS=$LIBS
5305 LIBS="-lossaudio $LIBS"
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5309 /* Override any GCC internal prototype to avoid an error.
5310 Use char because int might match the return type of a GCC
5311 builtin and then its argument prototype would still apply. */
5312 #ifdef __cplusplus
5313 extern "C"
5314 #endif
5315 char _oss_ioctl ();
5317 main ()
5319 return _oss_ioctl ();
5321 return 0;
5323 _ACEOF
5324 if ac_fn_c_try_link "$LINENO"; then :
5325 ac_cv_lib_ossaudio__oss_ioctl=yes
5326 else
5327 ac_cv_lib_ossaudio__oss_ioctl=no
5329 rm -f core conftest.err conftest.$ac_objext \
5330 conftest$ac_exeext conftest.$ac_ext
5331 LIBS=$ac_check_lib_save_LIBS
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5334 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5335 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5336 cat >>confdefs.h <<_ACEOF
5337 #define HAVE_LIBOSSAUDIO 1
5338 _ACEOF
5340 LIBS="-lossaudio $LIBS"
5345 XLIB=""
5347 OPENGL_LIBS=""
5351 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5353 # Check whether --enable-largefile was given.
5354 if test "${enable_largefile+set}" = set; then :
5355 enableval=$enable_largefile;
5358 if test "$enable_largefile" != no; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5361 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5362 if ${ac_cv_sys_largefile_CC+:} false; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 ac_cv_sys_largefile_CC=no
5366 if test "$GCC" != yes; then
5367 ac_save_CC=$CC
5368 while :; do
5369 # IRIX 6.2 and later do not support large files by default,
5370 # so use the C compiler's -n32 option if that helps.
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5373 #include <sys/types.h>
5374 /* Check that off_t can represent 2**63 - 1 correctly.
5375 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5376 since some C++ compilers masquerading as C compilers
5377 incorrectly reject 9223372036854775807. */
5378 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5379 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5380 && LARGE_OFF_T % 2147483647 == 1)
5381 ? 1 : -1];
5383 main ()
5387 return 0;
5389 _ACEOF
5390 if ac_fn_c_try_compile "$LINENO"; then :
5391 break
5393 rm -f core conftest.err conftest.$ac_objext
5394 CC="$CC -n32"
5395 if ac_fn_c_try_compile "$LINENO"; then :
5396 ac_cv_sys_largefile_CC=' -n32'; break
5398 rm -f core conftest.err conftest.$ac_objext
5399 break
5400 done
5401 CC=$ac_save_CC
5402 rm -f conftest.$ac_ext
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5406 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5407 if test "$ac_cv_sys_largefile_CC" != no; then
5408 CC=$CC$ac_cv_sys_largefile_CC
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5412 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5413 if ${ac_cv_sys_file_offset_bits+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 while :; do
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h. */
5419 #include <sys/types.h>
5420 /* Check that off_t can represent 2**63 - 1 correctly.
5421 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5422 since some C++ compilers masquerading as C compilers
5423 incorrectly reject 9223372036854775807. */
5424 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5425 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5426 && LARGE_OFF_T % 2147483647 == 1)
5427 ? 1 : -1];
5429 main ()
5433 return 0;
5435 _ACEOF
5436 if ac_fn_c_try_compile "$LINENO"; then :
5437 ac_cv_sys_file_offset_bits=no; break
5439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442 #define _FILE_OFFSET_BITS 64
5443 #include <sys/types.h>
5444 /* Check that off_t can represent 2**63 - 1 correctly.
5445 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5446 since some C++ compilers masquerading as C compilers
5447 incorrectly reject 9223372036854775807. */
5448 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5449 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5450 && LARGE_OFF_T % 2147483647 == 1)
5451 ? 1 : -1];
5453 main ()
5457 return 0;
5459 _ACEOF
5460 if ac_fn_c_try_compile "$LINENO"; then :
5461 ac_cv_sys_file_offset_bits=64; break
5463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464 ac_cv_sys_file_offset_bits=unknown
5465 break
5466 done
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5469 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5470 case $ac_cv_sys_file_offset_bits in #(
5471 no | unknown) ;;
5473 cat >>confdefs.h <<_ACEOF
5474 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5475 _ACEOF
5477 esac
5478 rm -rf conftest*
5479 if test $ac_cv_sys_file_offset_bits = unknown; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5481 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5482 if ${ac_cv_sys_large_files+:} false; then :
5483 $as_echo_n "(cached) " >&6
5484 else
5485 while :; do
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5488 #include <sys/types.h>
5489 /* Check that off_t can represent 2**63 - 1 correctly.
5490 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5491 since some C++ compilers masquerading as C compilers
5492 incorrectly reject 9223372036854775807. */
5493 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5494 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5495 && LARGE_OFF_T % 2147483647 == 1)
5496 ? 1 : -1];
5498 main ()
5502 return 0;
5504 _ACEOF
5505 if ac_fn_c_try_compile "$LINENO"; then :
5506 ac_cv_sys_large_files=no; break
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5511 #define _LARGE_FILES 1
5512 #include <sys/types.h>
5513 /* Check that off_t can represent 2**63 - 1 correctly.
5514 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5515 since some C++ compilers masquerading as C compilers
5516 incorrectly reject 9223372036854775807. */
5517 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5519 && LARGE_OFF_T % 2147483647 == 1)
5520 ? 1 : -1];
5522 main ()
5526 return 0;
5528 _ACEOF
5529 if ac_fn_c_try_compile "$LINENO"; then :
5530 ac_cv_sys_large_files=1; break
5532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533 ac_cv_sys_large_files=unknown
5534 break
5535 done
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5538 $as_echo "$ac_cv_sys_large_files" >&6; }
5539 case $ac_cv_sys_large_files in #(
5540 no | unknown) ;;
5542 cat >>confdefs.h <<_ACEOF
5543 #define _LARGE_FILES $ac_cv_sys_large_files
5544 _ACEOF
5546 esac
5547 rm -rf conftest*
5554 ac_ext=c
5555 ac_cpp='$CPP $CPPFLAGS'
5556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5560 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5561 # On Suns, sometimes $CPP names a directory.
5562 if test -n "$CPP" && test -d "$CPP"; then
5563 CPP=
5565 if test -z "$CPP"; then
5566 if ${ac_cv_prog_CPP+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 # Double quotes because CPP needs to be expanded
5570 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5572 ac_preproc_ok=false
5573 for ac_c_preproc_warn_flag in '' yes
5575 # Use a header file that comes with gcc, so configuring glibc
5576 # with a fresh cross-compiler works.
5577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5578 # <limits.h> exists even on freestanding compilers.
5579 # On the NeXT, cc -E runs the code through the compiler's parser,
5580 # not just through cpp. "Syntax error" is here to catch this case.
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5583 #ifdef __STDC__
5584 # include <limits.h>
5585 #else
5586 # include <assert.h>
5587 #endif
5588 Syntax error
5589 _ACEOF
5590 if ac_fn_c_try_cpp "$LINENO"; then :
5592 else
5593 # Broken: fails on valid input.
5594 continue
5596 rm -f conftest.err conftest.i conftest.$ac_ext
5598 # OK, works on sane cases. Now check whether nonexistent headers
5599 # can be detected and how.
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5602 #include <ac_nonexistent.h>
5603 _ACEOF
5604 if ac_fn_c_try_cpp "$LINENO"; then :
5605 # Broken: success on invalid input.
5606 continue
5607 else
5608 # Passes both tests.
5609 ac_preproc_ok=:
5610 break
5612 rm -f conftest.err conftest.i conftest.$ac_ext
5614 done
5615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5616 rm -f conftest.i conftest.err conftest.$ac_ext
5617 if $ac_preproc_ok; then :
5618 break
5621 done
5622 ac_cv_prog_CPP=$CPP
5625 CPP=$ac_cv_prog_CPP
5626 else
5627 ac_cv_prog_CPP=$CPP
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5630 $as_echo "$CPP" >&6; }
5631 ac_preproc_ok=false
5632 for ac_c_preproc_warn_flag in '' yes
5634 # Use a header file that comes with gcc, so configuring glibc
5635 # with a fresh cross-compiler works.
5636 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5637 # <limits.h> exists even on freestanding compilers.
5638 # On the NeXT, cc -E runs the code through the compiler's parser,
5639 # not just through cpp. "Syntax error" is here to catch this case.
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642 #ifdef __STDC__
5643 # include <limits.h>
5644 #else
5645 # include <assert.h>
5646 #endif
5647 Syntax error
5648 _ACEOF
5649 if ac_fn_c_try_cpp "$LINENO"; then :
5651 else
5652 # Broken: fails on valid input.
5653 continue
5655 rm -f conftest.err conftest.i conftest.$ac_ext
5657 # OK, works on sane cases. Now check whether nonexistent headers
5658 # can be detected and how.
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 #include <ac_nonexistent.h>
5662 _ACEOF
5663 if ac_fn_c_try_cpp "$LINENO"; then :
5664 # Broken: success on invalid input.
5665 continue
5666 else
5667 # Passes both tests.
5668 ac_preproc_ok=:
5669 break
5671 rm -f conftest.err conftest.i conftest.$ac_ext
5673 done
5674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5675 rm -f conftest.i conftest.err conftest.$ac_ext
5676 if $ac_preproc_ok; then :
5678 else
5679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5681 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5682 See \`config.log' for more details" "$LINENO" 5; }
5685 ac_ext=c
5686 ac_cpp='$CPP $CPPFLAGS'
5687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5693 $as_echo_n "checking for ANSI C header files... " >&6; }
5694 if ${ac_cv_header_stdc+:} false; then :
5695 $as_echo_n "(cached) " >&6
5696 else
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5699 #include <stdlib.h>
5700 #include <stdarg.h>
5701 #include <string.h>
5702 #include <float.h>
5705 main ()
5709 return 0;
5711 _ACEOF
5712 if ac_fn_c_try_compile "$LINENO"; then :
5713 ac_cv_header_stdc=yes
5714 else
5715 ac_cv_header_stdc=no
5717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719 if test $ac_cv_header_stdc = yes; then
5720 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5723 #include <string.h>
5725 _ACEOF
5726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5727 $EGREP "memchr" >/dev/null 2>&1; then :
5729 else
5730 ac_cv_header_stdc=no
5732 rm -f conftest*
5736 if test $ac_cv_header_stdc = yes; then
5737 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h. */
5740 #include <stdlib.h>
5742 _ACEOF
5743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5744 $EGREP "free" >/dev/null 2>&1; then :
5746 else
5747 ac_cv_header_stdc=no
5749 rm -f conftest*
5753 if test $ac_cv_header_stdc = yes; then
5754 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5755 if test "$cross_compiling" = yes; then :
5757 else
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 #include <ctype.h>
5761 #include <stdlib.h>
5762 #if ((' ' & 0x0FF) == 0x020)
5763 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5764 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5765 #else
5766 # define ISLOWER(c) \
5767 (('a' <= (c) && (c) <= 'i') \
5768 || ('j' <= (c) && (c) <= 'r') \
5769 || ('s' <= (c) && (c) <= 'z'))
5770 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5771 #endif
5773 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5775 main ()
5777 int i;
5778 for (i = 0; i < 256; i++)
5779 if (XOR (islower (i), ISLOWER (i))
5780 || toupper (i) != TOUPPER (i))
5781 return 2;
5782 return 0;
5784 _ACEOF
5785 if ac_fn_c_try_run "$LINENO"; then :
5787 else
5788 ac_cv_header_stdc=no
5790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5791 conftest.$ac_objext conftest.beam conftest.$ac_ext
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5797 $as_echo "$ac_cv_header_stdc" >&6; }
5798 if test $ac_cv_header_stdc = yes; then
5800 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5804 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5805 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5806 inttypes.h stdint.h unistd.h
5807 do :
5808 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5809 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5811 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5812 cat >>confdefs.h <<_ACEOF
5813 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5814 _ACEOF
5818 done
5821 for ac_header in \
5822 AL/al.h \
5823 ApplicationServices/ApplicationServices.h \
5824 AudioToolbox/AudioConverter.h \
5825 AudioUnit/AudioUnit.h \
5826 AudioUnit/AudioComponent.h \
5827 CL/cl.h \
5828 Carbon/Carbon.h \
5829 CoreAudio/CoreAudio.h \
5830 CoreServices/CoreServices.h \
5831 DiskArbitration/DiskArbitration.h \
5832 IOKit/IOKitLib.h \
5833 IOKit/hid/IOHIDLib.h \
5834 OpenAL/al.h \
5835 OpenCL/opencl.h \
5836 QuickTime/ImageCompression.h \
5837 Security/Security.h \
5838 alias.h \
5839 alsa/asoundlib.h \
5840 arpa/inet.h \
5841 arpa/nameser.h \
5842 asm/types.h \
5843 capi20.h \
5844 curses.h \
5845 direct.h \
5846 dirent.h \
5847 dlfcn.h \
5848 elf.h \
5849 float.h \
5850 fnmatch.h \
5851 fontconfig/fontconfig.h \
5852 getopt.h \
5853 gettext-po.h \
5854 grp.h \
5855 gsm.h \
5856 gsm/gsm.h \
5857 ieeefp.h \
5858 inet/mib2.h \
5859 io.h \
5860 jpeglib.h \
5861 kstat.h \
5862 lber.h \
5863 ldap.h \
5864 link.h \
5865 linux/cdrom.h \
5866 linux/compiler.h \
5867 linux/filter.h \
5868 linux/hdreg.h \
5869 linux/input.h \
5870 linux/ioctl.h \
5871 linux/joystick.h \
5872 linux/major.h \
5873 linux/param.h \
5874 linux/serial.h \
5875 linux/types.h \
5876 linux/ucdrom.h \
5877 lwp.h \
5878 mach-o/nlist.h \
5879 mach-o/loader.h \
5880 mach/mach.h \
5881 mach/machine.h \
5882 machine/cpu.h \
5883 machine/limits.h \
5884 machine/sysarch.h \
5885 mntent.h \
5886 mpg123.h \
5887 ncurses.h \
5888 netdb.h \
5889 netinet/in.h \
5890 netinet/in_systm.h \
5891 netinet/tcp.h \
5892 netinet/tcp_fsm.h \
5893 poll.h \
5894 port.h \
5895 process.h \
5896 pthread.h \
5897 pwd.h \
5898 sched.h \
5899 scsi/scsi.h \
5900 scsi/scsi_ioctl.h \
5901 scsi/sg.h \
5902 stdbool.h \
5903 stdint.h \
5904 stropts.h \
5905 sys/asoundlib.h \
5906 sys/attr.h \
5907 sys/cdio.h \
5908 sys/elf32.h \
5909 sys/epoll.h \
5910 sys/event.h \
5911 sys/exec_elf.h \
5912 sys/filio.h \
5913 sys/inotify.h \
5914 sys/ioctl.h \
5915 sys/ipc.h \
5916 sys/limits.h \
5917 sys/link.h \
5918 sys/mman.h \
5919 sys/modem.h \
5920 sys/msg.h \
5921 sys/mtio.h \
5922 sys/param.h \
5923 sys/poll.h \
5924 sys/prctl.h \
5925 sys/protosw.h \
5926 sys/ptrace.h \
5927 sys/resource.h \
5928 sys/scsiio.h \
5929 sys/shm.h \
5930 sys/signal.h \
5931 sys/socket.h \
5932 sys/socketvar.h \
5933 sys/sockio.h \
5934 sys/statvfs.h \
5935 sys/strtio.h \
5936 sys/syscall.h \
5937 sys/tihdr.h \
5938 sys/time.h \
5939 sys/timeout.h \
5940 sys/times.h \
5941 sys/uio.h \
5942 sys/utsname.h \
5943 sys/vm86.h \
5944 sys/wait.h \
5945 syscall.h \
5946 termios.h \
5947 tiffio.h \
5948 unistd.h \
5949 utime.h \
5950 valgrind/memcheck.h \
5951 valgrind/valgrind.h \
5952 zlib.h
5954 do :
5955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5956 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5957 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5958 cat >>confdefs.h <<_ACEOF
5959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5960 _ACEOF
5964 done
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5967 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5968 if ${ac_cv_header_stat_broken+:} false; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5973 #include <sys/types.h>
5974 #include <sys/stat.h>
5976 #if defined S_ISBLK && defined S_IFDIR
5977 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5978 #endif
5980 #if defined S_ISBLK && defined S_IFCHR
5981 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5982 #endif
5984 #if defined S_ISLNK && defined S_IFREG
5985 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5986 #endif
5988 #if defined S_ISSOCK && defined S_IFREG
5989 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5990 #endif
5992 _ACEOF
5993 if ac_fn_c_try_compile "$LINENO"; then :
5994 ac_cv_header_stat_broken=no
5995 else
5996 ac_cv_header_stat_broken=yes
5998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6001 $as_echo "$ac_cv_header_stat_broken" >&6; }
6002 if test $ac_cv_header_stat_broken = yes; then
6004 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6010 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6011 do :
6012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6013 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6014 #ifdef HAVE_SYS_PARAM_H
6015 # include <sys/param.h>
6016 #endif
6018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6019 cat >>confdefs.h <<_ACEOF
6020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6021 _ACEOF
6025 done
6028 for ac_header in \
6029 netinet/ip.h \
6030 net/if.h \
6031 net/if_arp.h \
6032 net/if_dl.h \
6033 net/if_types.h \
6034 net/route.h \
6035 netinet/if_ether.h \
6036 netinet/if_inarp.h \
6037 netinet/in_pcb.h \
6038 netinet/ip_icmp.h \
6039 netinet/ip_var.h \
6040 netinet/udp.h \
6041 netipx/ipx.h \
6042 sys/un.h \
6044 do :
6045 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6046 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6047 #ifdef HAVE_SYS_SOCKET_H
6048 # include <sys/socket.h>
6049 #endif
6050 #ifdef HAVE_SYS_SOCKETVAR_H
6051 # include <sys/socketvar.h>
6052 #endif
6053 #ifdef HAVE_NET_ROUTE_H
6054 # include <net/route.h>
6055 #endif
6056 #ifdef HAVE_NETINET_IN_H
6057 # include <netinet/in.h>
6058 #endif
6059 #ifdef HAVE_NETINET_IN_SYSTM_H
6060 # include <netinet/in_systm.h>
6061 #endif
6062 #ifdef HAVE_NET_IF_H
6063 # include <net/if.h>
6064 #endif
6065 #ifdef HAVE_NETINET_IP_H
6066 # include <netinet/ip.h>
6067 #endif
6069 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6070 cat >>confdefs.h <<_ACEOF
6071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6072 _ACEOF
6076 done
6079 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6080 do :
6081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6082 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6083 #ifdef HAVE_ALIAS_H
6084 # include <alias.h>
6085 #endif
6086 #ifdef HAVE_SYS_SOCKET_H
6087 # include <sys/socket.h>
6088 #endif
6089 #ifdef HAVE_SYS_SOCKETVAR_H
6090 # include <sys/socketvar.h>
6091 #endif
6092 #ifdef HAVE_SYS_TIMEOUT_H
6093 # include <sys/timeout.h>
6094 #endif
6095 #ifdef HAVE_NETINET_IN_H
6096 # include <netinet/in.h>
6097 #endif
6098 #ifdef HAVE_NETINET_IN_SYSTM_H
6099 # include <netinet/in_systm.h>
6100 #endif
6101 #ifdef HAVE_NETINET_IP_H
6102 # include <netinet/ip.h>
6103 #endif
6104 #ifdef HAVE_NETINET_IP_VAR_H
6105 # include <netinet/ip_var.h>
6106 #endif
6107 #ifdef HAVE_NETINET_IP_ICMP_H
6108 # include <netinet/ip_icmp.h>
6109 #endif
6110 #ifdef HAVE_NETINET_UDP_H
6111 # include <netinet/udp.h>
6112 #endif
6113 #ifdef HAVE_NETINET_TCP_H
6114 # include <netinet/tcp.h>
6115 #endif
6116 #ifdef HAVE_NETINET_TCP_TIMER_H
6117 #include <netinet/tcp_timer.h>
6118 #endif
6120 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6121 cat >>confdefs.h <<_ACEOF
6122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6123 _ACEOF
6127 done
6130 for ac_header in linux/ipx.h linux/irda.h
6131 do :
6132 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6133 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6134 #ifdef HAVE_ASM_TYPES_H
6135 # include <asm/types.h>
6136 #endif
6137 #ifdef HAVE_SYS_SOCKET_H
6138 # include <sys/socket.h>
6139 #endif
6140 #ifdef HAVE_LINUX_TYPES_H
6141 # include <linux/types.h>
6142 #endif
6144 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6145 cat >>confdefs.h <<_ACEOF
6146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6147 _ACEOF
6151 done
6154 for ac_header in mach-o/dyld_images.h
6155 do :
6156 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6157 # include <stdbool.h>
6158 #endif
6159 #ifdef HAVE_STDINT_H
6160 # include <stdint.h>
6161 #endif
6163 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6164 cat >>confdefs.h <<_ACEOF
6165 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6166 _ACEOF
6170 done
6173 for ac_header in resolv.h
6174 do :
6175 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6176 #ifdef HAVE_SYS_SOCKET_H
6177 # include <sys/socket.h>
6178 #endif
6179 #ifdef HAVE_NETINET_IN_H
6180 # include <netinet/in.h>
6181 #endif
6182 #ifdef HAVE_ARPA_NAMESER_H
6183 # include <arpa/nameser.h>
6184 #endif
6186 if test "x$ac_cv_header_resolv_h" = xyes; then :
6187 cat >>confdefs.h <<_ACEOF
6188 #define HAVE_RESOLV_H 1
6189 _ACEOF
6193 done
6196 for ac_header in ifaddrs.h
6197 do :
6198 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6200 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6201 cat >>confdefs.h <<_ACEOF
6202 #define HAVE_IFADDRS_H 1
6203 _ACEOF
6207 done
6210 for ac_header in ucontext.h
6211 do :
6212 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6214 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6215 cat >>confdefs.h <<_ACEOF
6216 #define HAVE_UCONTEXT_H 1
6217 _ACEOF
6221 done
6224 for ac_header in sys/thr.h
6225 do :
6226 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6227 #ifdef HAVE_UCONTEXT_H
6228 #include <ucontext.h>
6229 #endif
6231 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6232 cat >>confdefs.h <<_ACEOF
6233 #define HAVE_SYS_THR_H 1
6234 _ACEOF
6238 done
6241 for ac_header in pthread_np.h
6242 do :
6243 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6244 #include <pthread.h>
6245 #endif
6247 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6248 cat >>confdefs.h <<_ACEOF
6249 #define HAVE_PTHREAD_NP_H 1
6250 _ACEOF
6254 done
6257 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6258 do :
6259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6260 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6261 #include <sys/time.h>
6262 #endif
6263 #include <sys/types.h>
6264 #ifdef HAVE_ASM_TYPES_H
6265 #include <asm/types.h>
6266 #endif
6268 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6269 cat >>confdefs.h <<_ACEOF
6270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6271 _ACEOF
6275 done
6278 for ac_header in linux/capi.h
6279 do :
6280 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6282 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6283 cat >>confdefs.h <<_ACEOF
6284 #define HAVE_LINUX_CAPI_H 1
6285 _ACEOF
6289 done
6293 DLLEXT=""
6295 DLLFLAGS="-D_REENTRANT"
6297 LDDLLFLAGS=""
6299 IMPLIBEXT="def"
6301 LDRPATH_INSTALL=""
6303 LDRPATH_LOCAL=""
6305 LIBEXT="so"
6306 STATIC_IMPLIBEXT="def.a"
6307 # Extract the first word of "ldd", so it can be a program name with args.
6308 set dummy ldd; ac_word=$2
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310 $as_echo_n "checking for $ac_word... " >&6; }
6311 if ${ac_cv_path_LDD+:} false; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 case $LDD in
6315 [\\/]* | ?:[\\/]*)
6316 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 as_dummy="/sbin:/usr/sbin:$PATH"
6321 for as_dir in $as_dummy
6323 IFS=$as_save_IFS
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6327 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 break 2
6331 done
6332 done
6333 IFS=$as_save_IFS
6335 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6337 esac
6339 LDD=$ac_cv_path_LDD
6340 if test -n "$LDD"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6342 $as_echo "$LDD" >&6; }
6343 else
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6349 if test -n "$ac_tool_prefix"; then
6350 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}readelf; ac_word=$2
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if ${ac_cv_prog_READELF+:} false; then :
6355 $as_echo_n "(cached) " >&6
6356 else
6357 if test -n "$READELF"; then
6358 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6363 IFS=$as_save_IFS
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6367 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
6368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 break 2
6371 done
6372 done
6373 IFS=$as_save_IFS
6377 READELF=$ac_cv_prog_READELF
6378 if test -n "$READELF"; then
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6380 $as_echo "$READELF" >&6; }
6381 else
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6388 if test -z "$ac_cv_prog_READELF"; then
6389 ac_ct_READELF=$READELF
6390 # Extract the first word of "readelf", so it can be a program name with args.
6391 set dummy readelf; ac_word=$2
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6395 $as_echo_n "(cached) " >&6
6396 else
6397 if test -n "$ac_ct_READELF"; then
6398 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6399 else
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6403 IFS=$as_save_IFS
6404 test -z "$as_dir" && as_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6407 ac_cv_prog_ac_ct_READELF="readelf"
6408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 break 2
6411 done
6412 done
6413 IFS=$as_save_IFS
6417 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6418 if test -n "$ac_ct_READELF"; then
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6420 $as_echo "$ac_ct_READELF" >&6; }
6421 else
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }
6426 if test "x$ac_ct_READELF" = x; then
6427 READELF="true"
6428 else
6429 case $cross_compiling:$ac_tool_warned in
6430 yes:)
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433 ac_tool_warned=yes ;;
6434 esac
6435 READELF=$ac_ct_READELF
6437 else
6438 READELF="$ac_cv_prog_READELF"
6442 case $host_os in
6443 cygwin*|mingw32*)
6444 if test -n "$ac_tool_prefix"; then
6445 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6446 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if ${ac_cv_prog_DLLTOOL+:} false; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 if test -n "$DLLTOOL"; then
6453 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6466 done
6467 done
6468 IFS=$as_save_IFS
6472 DLLTOOL=$ac_cv_prog_DLLTOOL
6473 if test -n "$DLLTOOL"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6475 $as_echo "$DLLTOOL" >&6; }
6476 else
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6483 if test -z "$ac_cv_prog_DLLTOOL"; then
6484 ac_ct_DLLTOOL=$DLLTOOL
6485 # Extract the first word of "dlltool", so it can be a program name with args.
6486 set dummy dlltool; ac_word=$2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 if test -n "$ac_ct_DLLTOOL"; then
6493 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6494 else
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6502 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 break 2
6506 done
6507 done
6508 IFS=$as_save_IFS
6512 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6513 if test -n "$ac_ct_DLLTOOL"; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6515 $as_echo "$ac_ct_DLLTOOL" >&6; }
6516 else
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 $as_echo "no" >&6; }
6521 if test "x$ac_ct_DLLTOOL" = x; then
6522 DLLTOOL="false"
6523 else
6524 case $cross_compiling:$ac_tool_warned in
6525 yes:)
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528 ac_tool_warned=yes ;;
6529 esac
6530 DLLTOOL=$ac_ct_DLLTOOL
6532 else
6533 DLLTOOL="$ac_cv_prog_DLLTOOL"
6536 LIBEXT="dll"
6537 IMPLIBEXT="a"
6538 STATIC_IMPLIBEXT="a"
6539 enable_iphlpapi=${enable_iphlpapi:-no}
6540 enable_kernel32=${enable_kernel32:-no}
6541 enable_msvcrt=${enable_msvcrt:-no}
6542 enable_ntdll=${enable_ntdll:-no}
6543 enable_ws2_32=${enable_ws2_32:-no}
6544 enable_loader=${enable_loader:-no}
6545 enable_server=${enable_server:-no}
6546 with_x=${with_x:-no}
6547 with_pthread=${with_pthread:-no}
6549 crtlibs=""
6550 case $host_os in
6551 mingw32*)
6552 crtlibs="-lmsvcrt"
6553 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
6555 esac
6557 LIBWINE_RULES="
6558 all: libwine.dll libwine.a
6560 libwine.a: wine.def
6561 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
6563 libwine.dll: \$(OBJS) wine.def Makefile.in
6564 \$(CC) -shared \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
6566 install install-lib:: libwine.dll \$(DESTDIR)\$(libdir) dummy
6567 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
6569 install install-dev:: libwine.a \$(DESTDIR)\$(libdir) dummy
6570 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
6572 uninstall::
6573 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
6575 clean::
6576 \$(RM) libwine.dll version.c
6581 darwin*|macosx*)
6582 DLLEXT=".so"
6583 LIBEXT="dylib"
6584 DLLFLAGS="$DLLFLAGS -fPIC"
6585 LDDLLFLAGS="-bundle -multiply_defined suppress"
6586 LIBWINE_LDFLAGS="-multiply_defined suppress"
6587 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6588 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
6589 COREFOUNDATIONLIB="-framework CoreFoundation"
6591 IOKITLIB="-framework IOKit -framework CoreFoundation"
6593 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6595 CORESERVICESLIB="-framework CoreServices"
6597 case $host_os in
6598 darwin11*)
6599 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"
6602 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6604 esac
6605 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6606 then
6607 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6610 if test "$ac_cv_header_Security_Security_h" = "yes"
6611 then
6612 SECURITYLIB="-framework Security -framework CoreFoundation"
6614 ac_save_LIBS="$LIBS"
6615 LIBS="$LIBS $SECURITYLIB"
6616 for ac_func in SSLCopyPeerCertificates
6617 do :
6618 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6619 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6620 cat >>confdefs.h <<_ACEOF
6621 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6622 _ACEOF
6625 done
6627 LIBS="$ac_save_LIBS"
6628 with_gnutls=${with_gnutls:-no}
6630 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6631 then
6632 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6633 then
6634 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6636 else
6637 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6640 ac_save_LIBS="$LIBS"
6641 LIBS="$LIBS $COREAUDIO"
6642 for ac_func in AUGraphAddNode
6643 do :
6644 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6645 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6646 cat >>confdefs.h <<_ACEOF
6647 #define HAVE_AUGRAPHADDNODE 1
6648 _ACEOF
6651 done
6653 LIBS="$ac_save_LIBS"
6655 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6656 then
6657 FRAMEWORK_OPENAL="-framework OpenAL"
6660 cat >>confdefs.h <<_ACEOF
6661 #define HAVE_OPENAL 1
6662 _ACEOF
6664 ac_cv_lib_openal=yes
6666 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6667 then
6668 LIBOPENCL="-framework OpenCL"
6670 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6672 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6673 then
6674 ac_save_LIBS="$LIBS"
6675 LIBS="$LIBS $IOKITLIB"
6676 for ac_func in IOHIDManagerCreate
6677 do :
6678 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6679 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6680 cat >>confdefs.h <<_ACEOF
6681 #define HAVE_IOHIDMANAGERCREATE 1
6682 _ACEOF
6685 done
6687 LIBS="$ac_save_LIBS"
6689 case $host_cpu in
6690 *powerpc*)
6691 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6692 esac
6693 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6694 then
6695 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6697 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6698 else
6699 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6701 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6702 then
6703 CARBONLIB="-framework Carbon"
6707 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
6708 then
6709 ac_save_LIBS="$LIBS"
6710 LIBS="$LIBS $APPLICATIONSERVICESLIB"
6711 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
6712 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
6713 enable_winemac_drv=${enable_winemac_drv:-yes}
6716 LIBS="$ac_save_LIBS"
6719 if test "x$enable_win16" = "xyes"
6720 then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6722 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6723 if test "$cross_compiling" = yes; then :
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6725 $as_echo "cross-compiling, assuming yes" >&6; }
6726 else
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6729 asm(".text\n"
6730 "bad:\tnop;nop\n"
6731 "good:\tnop;nop\n\t"
6732 ".globl _testfunc\n"
6733 "_testfunc:\tcallw good");
6734 extern void testfunc();
6736 main ()
6738 unsigned short *p = (unsigned short *)testfunc;
6739 return p[0] != 0xe866 || p[1] != 0xfffa
6741 return 0;
6743 _ACEOF
6744 if ac_fn_c_try_run "$LINENO"; then :
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6746 $as_echo "yes" >&6; }
6747 else
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750 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
6752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6753 conftest.$ac_objext conftest.beam conftest.$ac_ext
6758 LIBWINE_RULES="
6759 all: libwine.dylib
6761 libwine.\$(VERSION).dylib: \$(OBJS) \$(RELPATH) Makefile.in
6762 \$(CC) -dynamiclib -install_name @rpath/libwine.\$(SOVERSION).dylib -Wl,-rpath,@loader_path/ -compatibility_version \$(SOVERSION) -current_version \$(VERSION) \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
6764 libwine.\$(SOVERSION).dylib: libwine.\$(VERSION).dylib
6765 \$(RM) \$@ && \$(LN_S) libwine.\$(VERSION).dylib \$@
6767 libwine.dylib: libwine.\$(SOVERSION).dylib
6768 \$(RM) \$@ && \$(LN_S) libwine.\$(SOVERSION).dylib \$@
6770 install install-lib:: libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir) dummy
6771 \$(INSTALL_PROGRAM) libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir)/libwine.\$(VERSION).dylib
6772 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.\$(SOVERSION).dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
6774 install install-dev:: \$(DESTDIR)\$(libdir) dummy
6775 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.dylib
6777 uninstall::
6778 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
6780 clean::
6781 \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib version.c
6786 linux-android*)
6787 DLLFLAGS="$DLLFLAGS -fPIC"
6788 DLLEXT=".so"
6789 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6791 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6792 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 ac_wine_try_cflags_saved=$CFLAGS
6796 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6799 int main(int argc, char **argv) { return 0; }
6800 _ACEOF
6801 if ac_fn_c_try_link "$LINENO"; then :
6802 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6803 else
6804 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6806 rm -f core conftest.err conftest.$ac_objext \
6807 conftest$ac_exeext conftest.$ac_ext
6808 CFLAGS=$ac_wine_try_cflags_saved
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6811 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6812 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6813 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6815 { $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
6816 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6817 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 ac_wine_try_cflags_saved=$CFLAGS
6821 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6824 int main(int argc, char **argv) { return 0; }
6825 _ACEOF
6826 if ac_fn_c_try_link "$LINENO"; then :
6827 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6828 else
6829 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6831 rm -f core conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext conftest.$ac_ext
6833 CFLAGS=$ac_wine_try_cflags_saved
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6836 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6837 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6838 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6841 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6842 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6843 $as_echo_n "(cached) " >&6
6844 else
6845 ac_wine_try_cflags_saved=$CFLAGS
6846 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6849 int main(int argc, char **argv) { return 0; }
6850 _ACEOF
6851 if ac_fn_c_try_link "$LINENO"; then :
6852 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6853 else
6854 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6856 rm -f core conftest.err conftest.$ac_objext \
6857 conftest$ac_exeext conftest.$ac_ext
6858 CFLAGS=$ac_wine_try_cflags_saved
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6861 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6862 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6863 LDEXECFLAGS="-Wl,--export-dynamic"
6866 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6868 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6869 if eval \${$as_ac_var+:} false; then :
6870 $as_echo_n "(cached) " >&6
6871 else
6872 ac_wine_try_cflags_saved=$CFLAGS
6873 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876 int main(int argc, char **argv) { return 0; }
6877 _ACEOF
6878 if ac_fn_c_try_link "$LINENO"; then :
6879 eval "$as_ac_var=yes"
6880 else
6881 eval "$as_ac_var=no"
6883 rm -f core conftest.err conftest.$ac_objext \
6884 conftest$ac_exeext conftest.$ac_ext
6885 CFLAGS=$ac_wine_try_cflags_saved
6887 eval ac_res=\$$as_ac_var
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6889 $as_echo "$ac_res" >&6; }
6890 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6891 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6892 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6893 else
6894 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6896 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6897 if eval \${$as_ac_var+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 ac_wine_try_cflags_saved=$CFLAGS
6901 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904 int main(int argc, char **argv) { return 0; }
6905 _ACEOF
6906 if ac_fn_c_try_link "$LINENO"; then :
6907 eval "$as_ac_var=yes"
6908 else
6909 eval "$as_ac_var=no"
6911 rm -f core conftest.err conftest.$ac_objext \
6912 conftest$ac_exeext conftest.$ac_ext
6913 CFLAGS=$ac_wine_try_cflags_saved
6915 eval ac_res=\$$as_ac_var
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6917 $as_echo "$ac_res" >&6; }
6918 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6919 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6920 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6925 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6926 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 ac_wine_try_cflags_saved=$CFLAGS
6930 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6933 int main(int argc, char **argv) { return 0; }
6934 _ACEOF
6935 if ac_fn_c_try_link "$LINENO"; then :
6936 ac_cv_cflags__Wl___enable_new_dtags=yes
6937 else
6938 ac_cv_cflags__Wl___enable_new_dtags=no
6940 rm -f core conftest.err conftest.$ac_objext \
6941 conftest$ac_exeext conftest.$ac_ext
6942 CFLAGS=$ac_wine_try_cflags_saved
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6945 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6946 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6947 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6950 case $host_cpu in
6951 *i[3456789]86* | x86_64)
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6953 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6954 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
6955 $as_echo_n "(cached) " >&6
6956 else
6957 ac_wine_try_cflags_saved=$CFLAGS
6958 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6961 int main(int argc, char **argv) { return 0; }
6962 _ACEOF
6963 if ac_fn_c_try_link "$LINENO"; then :
6964 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
6965 else
6966 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
6968 rm -f core conftest.err conftest.$ac_objext \
6969 conftest$ac_exeext conftest.$ac_ext
6970 CFLAGS=$ac_wine_try_cflags_saved
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
6973 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
6974 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
6975 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
6978 esac
6980 LIBWINE_RULES="
6981 all: libwine.so
6983 libwine.so: \$(OBJS) Makefile.in
6984 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
6986 install install-lib:: libwine.so \$(DESTDIR)\$(libdir) dummy
6987 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
6989 uninstall::
6990 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
6992 clean::
6993 \$(RM) libwine.so version.c
6999 DLLFLAGS="$DLLFLAGS -fPIC"
7000 DLLEXT=".so"
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
7002 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
7003 if ${ac_cv_c_dll_gnuelf+:} false; then :
7004 $as_echo_n "(cached) " >&6
7005 else
7006 ac_wine_try_cflags_saved=$CFLAGS
7007 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7010 void myfunc() {}
7011 _ACEOF
7012 if ac_fn_c_try_link "$LINENO"; then :
7013 ac_cv_c_dll_gnuelf="yes"
7014 else
7015 ac_cv_c_dll_gnuelf="no"
7017 rm -f core conftest.err conftest.$ac_objext \
7018 conftest$ac_exeext conftest.$ac_ext
7019 CFLAGS=$ac_wine_try_cflags_saved
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
7022 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
7023 if test "$ac_cv_c_dll_gnuelf" = "yes"
7024 then
7025 LDSHARED="\$(CC) -shared"
7026 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
7028 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
7029 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
7030 $as_echo_n "(cached) " >&6
7031 else
7032 ac_wine_try_cflags_saved=$CFLAGS
7033 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7036 int main(int argc, char **argv) { return 0; }
7037 _ACEOF
7038 if ac_fn_c_try_link "$LINENO"; then :
7039 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
7040 else
7041 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
7043 rm -f core conftest.err conftest.$ac_objext \
7044 conftest$ac_exeext conftest.$ac_ext
7045 CFLAGS=$ac_wine_try_cflags_saved
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
7048 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
7049 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
7050 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.\$(SOVERSION)"
7051 else
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
7053 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
7054 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 ac_wine_try_cflags_saved=$CFLAGS
7058 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h. */
7061 int main(int argc, char **argv) { return 0; }
7062 _ACEOF
7063 if ac_fn_c_try_link "$LINENO"; then :
7064 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
7065 else
7066 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
7068 rm -f core conftest.err conftest.$ac_objext \
7069 conftest$ac_exeext conftest.$ac_ext
7070 CFLAGS=$ac_wine_try_cflags_saved
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
7073 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
7074 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
7075 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.\$(SOVERSION)"
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
7080 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
7081 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 ac_wine_try_cflags_saved=$CFLAGS
7085 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7088 int main(int argc, char **argv) { return 0; }
7089 _ACEOF
7090 if ac_fn_c_try_link "$LINENO"; then :
7091 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
7092 else
7093 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
7095 rm -f core conftest.err conftest.$ac_objext \
7096 conftest$ac_exeext conftest.$ac_ext
7097 CFLAGS=$ac_wine_try_cflags_saved
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
7100 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
7101 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
7102 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
7105 { $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
7106 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
7107 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 ac_wine_try_cflags_saved=$CFLAGS
7111 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7114 int main(int argc, char **argv) { return 0; }
7115 _ACEOF
7116 if ac_fn_c_try_link "$LINENO"; then :
7117 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
7118 else
7119 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
7121 rm -f core conftest.err conftest.$ac_objext \
7122 conftest$ac_exeext conftest.$ac_ext
7123 CFLAGS=$ac_wine_try_cflags_saved
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
7126 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
7127 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
7128 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
7131 echo '{ global: *; };' >conftest.map
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
7133 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
7134 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
7135 $as_echo_n "(cached) " >&6
7136 else
7137 ac_wine_try_cflags_saved=$CFLAGS
7138 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h. */
7141 int main(int argc, char **argv) { return 0; }
7142 _ACEOF
7143 if ac_fn_c_try_link "$LINENO"; then :
7144 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
7145 else
7146 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
7148 rm -f core conftest.err conftest.$ac_objext \
7149 conftest$ac_exeext conftest.$ac_ext
7150 CFLAGS=$ac_wine_try_cflags_saved
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
7153 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
7154 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
7155 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
7157 rm -f conftest.map
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7160 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7161 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 ac_wine_try_cflags_saved=$CFLAGS
7165 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7168 int main(int argc, char **argv) { return 0; }
7169 _ACEOF
7170 if ac_fn_c_try_link "$LINENO"; then :
7171 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7172 else
7173 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7175 rm -f core conftest.err conftest.$ac_objext \
7176 conftest$ac_exeext conftest.$ac_ext
7177 CFLAGS=$ac_wine_try_cflags_saved
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7180 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7181 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7182 LDEXECFLAGS="-Wl,--export-dynamic"
7186 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7188 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7189 if eval \${$as_ac_var+:} false; then :
7190 $as_echo_n "(cached) " >&6
7191 else
7192 ac_wine_try_cflags_saved=$CFLAGS
7193 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7196 int main(int argc, char **argv) { return 0; }
7197 _ACEOF
7198 if ac_fn_c_try_link "$LINENO"; then :
7199 eval "$as_ac_var=yes"
7200 else
7201 eval "$as_ac_var=no"
7203 rm -f core conftest.err conftest.$ac_objext \
7204 conftest$ac_exeext conftest.$ac_ext
7205 CFLAGS=$ac_wine_try_cflags_saved
7207 eval ac_res=\$$as_ac_var
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7209 $as_echo "$ac_res" >&6; }
7210 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7211 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7212 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7213 else
7214 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7216 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7217 if eval \${$as_ac_var+:} false; then :
7218 $as_echo_n "(cached) " >&6
7219 else
7220 ac_wine_try_cflags_saved=$CFLAGS
7221 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7224 int main(int argc, char **argv) { return 0; }
7225 _ACEOF
7226 if ac_fn_c_try_link "$LINENO"; then :
7227 eval "$as_ac_var=yes"
7228 else
7229 eval "$as_ac_var=no"
7231 rm -f core conftest.err conftest.$ac_objext \
7232 conftest$ac_exeext conftest.$ac_ext
7233 CFLAGS=$ac_wine_try_cflags_saved
7235 eval ac_res=\$$as_ac_var
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7237 $as_echo "$ac_res" >&6; }
7238 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7239 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7240 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7245 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7246 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 ac_wine_try_cflags_saved=$CFLAGS
7250 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7253 int main(int argc, char **argv) { return 0; }
7254 _ACEOF
7255 if ac_fn_c_try_link "$LINENO"; then :
7256 ac_cv_cflags__Wl___enable_new_dtags=yes
7257 else
7258 ac_cv_cflags__Wl___enable_new_dtags=no
7260 rm -f core conftest.err conftest.$ac_objext \
7261 conftest$ac_exeext conftest.$ac_ext
7262 CFLAGS=$ac_wine_try_cflags_saved
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7265 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7266 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7267 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7270 case $host_cpu in
7271 *i[3456789]86* | x86_64)
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7273 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7274 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 ac_wine_try_cflags_saved=$CFLAGS
7278 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7281 int main(int argc, char **argv) { return 0; }
7282 _ACEOF
7283 if ac_fn_c_try_link "$LINENO"; then :
7284 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7285 else
7286 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7288 rm -f core conftest.err conftest.$ac_objext \
7289 conftest$ac_exeext conftest.$ac_ext
7290 CFLAGS=$ac_wine_try_cflags_saved
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7293 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7294 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7295 case $host_os in
7296 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
7297 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
7298 esac
7301 # Extract the first word of "prelink", so it can be a program name with args.
7302 set dummy prelink; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if ${ac_cv_path_PRELINK+:} false; then :
7306 $as_echo_n "(cached) " >&6
7307 else
7308 case $PRELINK in
7309 [\\/]* | ?:[\\/]*)
7310 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in /sbin /usr/sbin $PATH
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 break 2
7324 done
7325 done
7326 IFS=$as_save_IFS
7328 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7330 esac
7332 PRELINK=$ac_cv_path_PRELINK
7333 if test -n "$PRELINK"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7335 $as_echo "$PRELINK" >&6; }
7336 else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7342 if test "x$PRELINK" = xfalse
7343 then
7344 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7347 esac
7349 else
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7351 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7352 if ${ac_cv_c_dll_unixware+:} false; then :
7353 $as_echo_n "(cached) " >&6
7354 else
7355 ac_wine_try_cflags_saved=$CFLAGS
7356 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7359 void myfunc() {}
7360 _ACEOF
7361 if ac_fn_c_try_link "$LINENO"; then :
7362 ac_cv_c_dll_unixware="yes"
7363 else
7364 ac_cv_c_dll_unixware="no"
7366 rm -f core conftest.err conftest.$ac_objext \
7367 conftest$ac_exeext conftest.$ac_ext
7368 CFLAGS=$ac_wine_try_cflags_saved
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7371 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7372 if test "$ac_cv_c_dll_unixware" = "yes"
7373 then
7374 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.\$(SOVERSION)"
7375 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7378 LIBWINE_RULES="
7379 all: libwine.so
7381 libwine.so.\$(VERSION): \$(OBJS) wine.map Makefile.in
7382 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7384 libwine.so.\$(SOVERSION): libwine.so.\$(VERSION)
7385 \$(RM) \$@ && \$(LN_S) libwine.so.\$(VERSION) \$@
7387 libwine.so: libwine.so.\$(SOVERSION)
7388 \$(RM) \$@ && \$(LN_S) libwine.so.\$(SOVERSION) \$@
7390 install install-lib:: libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir) dummy
7391 \$(INSTALL_PROGRAM) libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir)/libwine.so.\$(VERSION)
7392 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.\$(SOVERSION) && \$(LN_S) libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
7394 install install-dev:: \$(DESTDIR)\$(libdir) dummy
7395 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.\$(VERSION) libwine.so
7397 uninstall::
7398 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
7400 clean::
7401 \$(RM) libwine.so.\$(SOVERSION) libwine.so.\$(VERSION) version.c
7405 esac
7407 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7408 enable_winemac_drv=${enable_winemac_drv:-no}
7410 CROSSTEST_DISABLE=\#
7412 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7413 then
7414 case "$host_cpu" in
7415 i[3456789]86*)
7416 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
7417 mingw32-gcc" ;;
7418 x86_64)
7419 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 " ;;
7421 ac_prefix_list="" ;;
7422 esac
7423 for ac_prog in $ac_prefix_list
7425 # Extract the first word of "$ac_prog", so it can be a program name with args.
7426 set dummy $ac_prog; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if ${ac_cv_prog_CROSSCC+:} false; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 if test -n "$CROSSCC"; then
7433 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7434 else
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442 ac_cv_prog_CROSSCC="$ac_prog"
7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7446 done
7447 done
7448 IFS=$as_save_IFS
7452 CROSSCC=$ac_cv_prog_CROSSCC
7453 if test -n "$CROSSCC"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7455 $as_echo "$CROSSCC" >&6; }
7456 else
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7462 test -n "$CROSSCC" && break
7463 done
7464 test -n "$CROSSCC" || CROSSCC="false"
7466 if test "$CROSSCC" != "false"
7467 then
7468 ac_save_CC="$CC"
7469 CC="$CROSSCC"
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7471 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7476 main ()
7480 return 0;
7482 _ACEOF
7483 if ac_fn_c_try_compile "$LINENO"; then :
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7485 $as_echo "yes" >&6; }
7486 set x $CROSSCC
7487 shift
7488 target=""
7489 while test $# -ge 1
7491 case "$1" in
7492 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7493 esac
7494 shift
7495 done
7496 if test -n "$target"
7497 then
7498 CROSSTEST_DISABLE=""
7499 CROSSTARGET="$target"
7502 else
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }
7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7507 CC="$ac_save_CC"
7512 if test "$ac_cv_header_pthread_h" = "yes"
7513 then
7514 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
7515 if test "x$ac_cv_func_pthread_create" = xyes; then :
7517 else
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7519 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7520 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7521 $as_echo_n "(cached) " >&6
7522 else
7523 ac_check_lib_save_LIBS=$LIBS
7524 LIBS="-lpthread $LIBS"
7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h. */
7528 /* Override any GCC internal prototype to avoid an error.
7529 Use char because int might match the return type of a GCC
7530 builtin and then its argument prototype would still apply. */
7531 #ifdef __cplusplus
7532 extern "C"
7533 #endif
7534 char pthread_create ();
7536 main ()
7538 return pthread_create ();
7540 return 0;
7542 _ACEOF
7543 if ac_fn_c_try_link "$LINENO"; then :
7544 ac_cv_lib_pthread_pthread_create=yes
7545 else
7546 ac_cv_lib_pthread_pthread_create=no
7548 rm -f core conftest.err conftest.$ac_objext \
7549 conftest$ac_exeext conftest.$ac_ext
7550 LIBS=$ac_check_lib_save_LIBS
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7553 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7554 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7555 LIBPTHREAD="-lpthread"
7562 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
7563 case "x$with_pthread" in
7564 xno) ;;
7565 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7566 Wine cannot support threads without libpthread.
7567 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7568 esac
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7573 $as_echo_n "checking for X... " >&6; }
7576 # Check whether --with-x was given.
7577 if test "${with_x+set}" = set; then :
7578 withval=$with_x;
7581 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7582 if test "x$with_x" = xno; then
7583 # The user explicitly disabled X.
7584 have_x=disabled
7585 else
7586 case $x_includes,$x_libraries in #(
7587 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7588 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 # One or both of the vars are not set, and there is no cached value.
7592 ac_x_includes=no ac_x_libraries=no
7593 rm -f -r conftest.dir
7594 if mkdir conftest.dir; then
7595 cd conftest.dir
7596 cat >Imakefile <<'_ACEOF'
7597 incroot:
7598 @echo incroot='${INCROOT}'
7599 usrlibdir:
7600 @echo usrlibdir='${USRLIBDIR}'
7601 libdir:
7602 @echo libdir='${LIBDIR}'
7603 _ACEOF
7604 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7605 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7606 for ac_var in incroot usrlibdir libdir; do
7607 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7608 done
7609 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7610 for ac_extension in a so sl dylib la dll; do
7611 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7612 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7613 ac_im_usrlibdir=$ac_im_libdir; break
7615 done
7616 # Screen out bogus values from the imake configuration. They are
7617 # bogus both because they are the default anyway, and because
7618 # using them would break gcc on systems where it needs fixed includes.
7619 case $ac_im_incroot in
7620 /usr/include) ac_x_includes= ;;
7621 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7622 esac
7623 case $ac_im_usrlibdir in
7624 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7625 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7626 esac
7628 cd ..
7629 rm -f -r conftest.dir
7632 # Standard set of common directories for X headers.
7633 # Check X11 before X11Rn because it is often a symlink to the current release.
7634 ac_x_header_dirs='
7635 /usr/X11/include
7636 /usr/X11R7/include
7637 /usr/X11R6/include
7638 /usr/X11R5/include
7639 /usr/X11R4/include
7641 /usr/include/X11
7642 /usr/include/X11R7
7643 /usr/include/X11R6
7644 /usr/include/X11R5
7645 /usr/include/X11R4
7647 /usr/local/X11/include
7648 /usr/local/X11R7/include
7649 /usr/local/X11R6/include
7650 /usr/local/X11R5/include
7651 /usr/local/X11R4/include
7653 /usr/local/include/X11
7654 /usr/local/include/X11R7
7655 /usr/local/include/X11R6
7656 /usr/local/include/X11R5
7657 /usr/local/include/X11R4
7659 /usr/X386/include
7660 /usr/x386/include
7661 /usr/XFree86/include/X11
7663 /usr/include
7664 /usr/local/include
7665 /usr/unsupported/include
7666 /usr/athena/include
7667 /usr/local/x11r5/include
7668 /usr/lpp/Xamples/include
7670 /usr/openwin/include
7671 /usr/openwin/share/include'
7673 if test "$ac_x_includes" = no; then
7674 # Guess where to find include files, by looking for Xlib.h.
7675 # First, try using that file with no special directory specified.
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7678 #include <X11/Xlib.h>
7679 _ACEOF
7680 if ac_fn_c_try_cpp "$LINENO"; then :
7681 # We can compile using X headers with no special include directory.
7682 ac_x_includes=
7683 else
7684 for ac_dir in $ac_x_header_dirs; do
7685 if test -r "$ac_dir/X11/Xlib.h"; then
7686 ac_x_includes=$ac_dir
7687 break
7689 done
7691 rm -f conftest.err conftest.i conftest.$ac_ext
7692 fi # $ac_x_includes = no
7694 if test "$ac_x_libraries" = no; then
7695 # Check for the libraries.
7696 # See if we find them without any special options.
7697 # Don't add to $LIBS permanently.
7698 ac_save_LIBS=$LIBS
7699 LIBS="-lX11 $LIBS"
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7702 #include <X11/Xlib.h>
7704 main ()
7706 XrmInitialize ()
7708 return 0;
7710 _ACEOF
7711 if ac_fn_c_try_link "$LINENO"; then :
7712 LIBS=$ac_save_LIBS
7713 # We can link X programs with no special library path.
7714 ac_x_libraries=
7715 else
7716 LIBS=$ac_save_LIBS
7717 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7719 # Don't even attempt the hair of trying to link an X program!
7720 for ac_extension in a so sl dylib la dll; do
7721 if test -r "$ac_dir/libX11.$ac_extension"; then
7722 ac_x_libraries=$ac_dir
7723 break 2
7725 done
7726 done
7728 rm -f core conftest.err conftest.$ac_objext \
7729 conftest$ac_exeext conftest.$ac_ext
7730 fi # $ac_x_libraries = no
7732 case $ac_x_includes,$ac_x_libraries in #(
7733 no,* | *,no | *\'*)
7734 # Didn't find X, or a directory has "'" in its name.
7735 ac_cv_have_x="have_x=no";; #(
7737 # Record where we found X for the cache.
7738 ac_cv_have_x="have_x=yes\
7739 ac_x_includes='$ac_x_includes'\
7740 ac_x_libraries='$ac_x_libraries'"
7741 esac
7743 ;; #(
7744 *) have_x=yes;;
7745 esac
7746 eval "$ac_cv_have_x"
7747 fi # $with_x != no
7749 if test "$have_x" != yes; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7751 $as_echo "$have_x" >&6; }
7752 no_x=yes
7753 else
7754 # If each of the values was on the command line, it overrides each guess.
7755 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7756 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7757 # Update the cache value to reflect the command line values.
7758 ac_cv_have_x="have_x=yes\
7759 ac_x_includes='$x_includes'\
7760 ac_x_libraries='$x_libraries'"
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7762 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7765 if test "$no_x" = yes; then
7766 # Not all programs may use this symbol, but it does not hurt to define it.
7768 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7770 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7771 else
7772 if test -n "$x_includes"; then
7773 X_CFLAGS="$X_CFLAGS -I$x_includes"
7776 # It would also be nice to do this for all -L options, not just this one.
7777 if test -n "$x_libraries"; then
7778 X_LIBS="$X_LIBS -L$x_libraries"
7779 # For Solaris; some versions of Sun CC require a space after -R and
7780 # others require no space. Words are not sufficient . . . .
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7782 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7783 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7784 ac_xsave_c_werror_flag=$ac_c_werror_flag
7785 ac_c_werror_flag=yes
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7790 main ()
7794 return 0;
7796 _ACEOF
7797 if ac_fn_c_try_link "$LINENO"; then :
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7800 X_LIBS="$X_LIBS -R$x_libraries"
7801 else
7802 LIBS="$ac_xsave_LIBS -R $x_libraries"
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7807 main ()
7811 return 0;
7813 _ACEOF
7814 if ac_fn_c_try_link "$LINENO"; then :
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7816 $as_echo "yes" >&6; }
7817 X_LIBS="$X_LIBS -R $x_libraries"
7818 else
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7820 $as_echo "neither works" >&6; }
7822 rm -f core conftest.err conftest.$ac_objext \
7823 conftest$ac_exeext conftest.$ac_ext
7825 rm -f core conftest.err conftest.$ac_objext \
7826 conftest$ac_exeext conftest.$ac_ext
7827 ac_c_werror_flag=$ac_xsave_c_werror_flag
7828 LIBS=$ac_xsave_LIBS
7831 # Check for system-dependent libraries X programs must link with.
7832 # Do this before checking for the system-independent R6 libraries
7833 # (-lICE), since we may need -lsocket or whatever for X linking.
7835 if test "$ISC" = yes; then
7836 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7837 else
7838 # Martyn Johnson says this is needed for Ultrix, if the X
7839 # libraries were built with DECnet support. And Karl Berry says
7840 # the Alpha needs dnet_stub (dnet does not exist).
7841 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7845 /* Override any GCC internal prototype to avoid an error.
7846 Use char because int might match the return type of a GCC
7847 builtin and then its argument prototype would still apply. */
7848 #ifdef __cplusplus
7849 extern "C"
7850 #endif
7851 char XOpenDisplay ();
7853 main ()
7855 return XOpenDisplay ();
7857 return 0;
7859 _ACEOF
7860 if ac_fn_c_try_link "$LINENO"; then :
7862 else
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7864 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7865 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7866 $as_echo_n "(cached) " >&6
7867 else
7868 ac_check_lib_save_LIBS=$LIBS
7869 LIBS="-ldnet $LIBS"
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7873 /* Override any GCC internal prototype to avoid an error.
7874 Use char because int might match the return type of a GCC
7875 builtin and then its argument prototype would still apply. */
7876 #ifdef __cplusplus
7877 extern "C"
7878 #endif
7879 char dnet_ntoa ();
7881 main ()
7883 return dnet_ntoa ();
7885 return 0;
7887 _ACEOF
7888 if ac_fn_c_try_link "$LINENO"; then :
7889 ac_cv_lib_dnet_dnet_ntoa=yes
7890 else
7891 ac_cv_lib_dnet_dnet_ntoa=no
7893 rm -f core conftest.err conftest.$ac_objext \
7894 conftest$ac_exeext conftest.$ac_ext
7895 LIBS=$ac_check_lib_save_LIBS
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7898 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7899 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7900 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7903 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7905 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7906 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7907 $as_echo_n "(cached) " >&6
7908 else
7909 ac_check_lib_save_LIBS=$LIBS
7910 LIBS="-ldnet_stub $LIBS"
7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h. */
7914 /* Override any GCC internal prototype to avoid an error.
7915 Use char because int might match the return type of a GCC
7916 builtin and then its argument prototype would still apply. */
7917 #ifdef __cplusplus
7918 extern "C"
7919 #endif
7920 char dnet_ntoa ();
7922 main ()
7924 return dnet_ntoa ();
7926 return 0;
7928 _ACEOF
7929 if ac_fn_c_try_link "$LINENO"; then :
7930 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7931 else
7932 ac_cv_lib_dnet_stub_dnet_ntoa=no
7934 rm -f core conftest.err conftest.$ac_objext \
7935 conftest$ac_exeext conftest.$ac_ext
7936 LIBS=$ac_check_lib_save_LIBS
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7939 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7940 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7941 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7946 rm -f core conftest.err conftest.$ac_objext \
7947 conftest$ac_exeext conftest.$ac_ext
7948 LIBS="$ac_xsave_LIBS"
7950 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7951 # to get the SysV transport functions.
7952 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7953 # needs -lnsl.
7954 # The nsl library prevents programs from opening the X display
7955 # on Irix 5.2, according to T.E. Dickey.
7956 # The functions gethostbyname, getservbyname, and inet_addr are
7957 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7958 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7959 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7963 if test $ac_cv_func_gethostbyname = no; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7965 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7966 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 ac_check_lib_save_LIBS=$LIBS
7970 LIBS="-lnsl $LIBS"
7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h. */
7974 /* Override any GCC internal prototype to avoid an error.
7975 Use char because int might match the return type of a GCC
7976 builtin and then its argument prototype would still apply. */
7977 #ifdef __cplusplus
7978 extern "C"
7979 #endif
7980 char gethostbyname ();
7982 main ()
7984 return gethostbyname ();
7986 return 0;
7988 _ACEOF
7989 if ac_fn_c_try_link "$LINENO"; then :
7990 ac_cv_lib_nsl_gethostbyname=yes
7991 else
7992 ac_cv_lib_nsl_gethostbyname=no
7994 rm -f core conftest.err conftest.$ac_objext \
7995 conftest$ac_exeext conftest.$ac_ext
7996 LIBS=$ac_check_lib_save_LIBS
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7999 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8000 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8001 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8004 if test $ac_cv_lib_nsl_gethostbyname = no; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8006 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8007 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8008 $as_echo_n "(cached) " >&6
8009 else
8010 ac_check_lib_save_LIBS=$LIBS
8011 LIBS="-lbsd $LIBS"
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h. */
8015 /* Override any GCC internal prototype to avoid an error.
8016 Use char because int might match the return type of a GCC
8017 builtin and then its argument prototype would still apply. */
8018 #ifdef __cplusplus
8019 extern "C"
8020 #endif
8021 char gethostbyname ();
8023 main ()
8025 return gethostbyname ();
8027 return 0;
8029 _ACEOF
8030 if ac_fn_c_try_link "$LINENO"; then :
8031 ac_cv_lib_bsd_gethostbyname=yes
8032 else
8033 ac_cv_lib_bsd_gethostbyname=no
8035 rm -f core conftest.err conftest.$ac_objext \
8036 conftest$ac_exeext conftest.$ac_ext
8037 LIBS=$ac_check_lib_save_LIBS
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8040 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8041 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8042 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8048 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8049 # socket/setsockopt and other routines are undefined under SCO ODT
8050 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8051 # on later versions), says Simon Leinen: it contains gethostby*
8052 # variants that don't use the name server (or something). -lsocket
8053 # must be given before -lnsl if both are needed. We assume that
8054 # if connect needs -lnsl, so does gethostbyname.
8055 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8056 if test "x$ac_cv_func_connect" = xyes; then :
8060 if test $ac_cv_func_connect = no; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8062 $as_echo_n "checking for connect in -lsocket... " >&6; }
8063 if ${ac_cv_lib_socket_connect+:} false; then :
8064 $as_echo_n "(cached) " >&6
8065 else
8066 ac_check_lib_save_LIBS=$LIBS
8067 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8071 /* Override any GCC internal prototype to avoid an error.
8072 Use char because int might match the return type of a GCC
8073 builtin and then its argument prototype would still apply. */
8074 #ifdef __cplusplus
8075 extern "C"
8076 #endif
8077 char connect ();
8079 main ()
8081 return connect ();
8083 return 0;
8085 _ACEOF
8086 if ac_fn_c_try_link "$LINENO"; then :
8087 ac_cv_lib_socket_connect=yes
8088 else
8089 ac_cv_lib_socket_connect=no
8091 rm -f core conftest.err conftest.$ac_objext \
8092 conftest$ac_exeext conftest.$ac_ext
8093 LIBS=$ac_check_lib_save_LIBS
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8096 $as_echo "$ac_cv_lib_socket_connect" >&6; }
8097 if test "x$ac_cv_lib_socket_connect" = xyes; then :
8098 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8103 # Guillermo Gomez says -lposix is necessary on A/UX.
8104 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8105 if test "x$ac_cv_func_remove" = xyes; then :
8109 if test $ac_cv_func_remove = no; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8111 $as_echo_n "checking for remove in -lposix... " >&6; }
8112 if ${ac_cv_lib_posix_remove+:} false; then :
8113 $as_echo_n "(cached) " >&6
8114 else
8115 ac_check_lib_save_LIBS=$LIBS
8116 LIBS="-lposix $LIBS"
8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8120 /* Override any GCC internal prototype to avoid an error.
8121 Use char because int might match the return type of a GCC
8122 builtin and then its argument prototype would still apply. */
8123 #ifdef __cplusplus
8124 extern "C"
8125 #endif
8126 char remove ();
8128 main ()
8130 return remove ();
8132 return 0;
8134 _ACEOF
8135 if ac_fn_c_try_link "$LINENO"; then :
8136 ac_cv_lib_posix_remove=yes
8137 else
8138 ac_cv_lib_posix_remove=no
8140 rm -f core conftest.err conftest.$ac_objext \
8141 conftest$ac_exeext conftest.$ac_ext
8142 LIBS=$ac_check_lib_save_LIBS
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8145 $as_echo "$ac_cv_lib_posix_remove" >&6; }
8146 if test "x$ac_cv_lib_posix_remove" = xyes; then :
8147 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8152 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8153 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8154 if test "x$ac_cv_func_shmat" = xyes; then :
8158 if test $ac_cv_func_shmat = no; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8160 $as_echo_n "checking for shmat in -lipc... " >&6; }
8161 if ${ac_cv_lib_ipc_shmat+:} false; then :
8162 $as_echo_n "(cached) " >&6
8163 else
8164 ac_check_lib_save_LIBS=$LIBS
8165 LIBS="-lipc $LIBS"
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8169 /* Override any GCC internal prototype to avoid an error.
8170 Use char because int might match the return type of a GCC
8171 builtin and then its argument prototype would still apply. */
8172 #ifdef __cplusplus
8173 extern "C"
8174 #endif
8175 char shmat ();
8177 main ()
8179 return shmat ();
8181 return 0;
8183 _ACEOF
8184 if ac_fn_c_try_link "$LINENO"; then :
8185 ac_cv_lib_ipc_shmat=yes
8186 else
8187 ac_cv_lib_ipc_shmat=no
8189 rm -f core conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
8191 LIBS=$ac_check_lib_save_LIBS
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8194 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8195 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8196 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8202 # Check for libraries that X11R6 Xt/Xaw programs need.
8203 ac_save_LDFLAGS=$LDFLAGS
8204 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8205 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8206 # check for ICE first), but we must link in the order -lSM -lICE or
8207 # we get undefined symbols. So assume we have SM if we have ICE.
8208 # These have to be linked with before -lX11, unlike the other
8209 # libraries we check for below, so use a different variable.
8210 # John Interrante, Karl Berry
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8212 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8213 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 ac_check_lib_save_LIBS=$LIBS
8217 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8221 /* Override any GCC internal prototype to avoid an error.
8222 Use char because int might match the return type of a GCC
8223 builtin and then its argument prototype would still apply. */
8224 #ifdef __cplusplus
8225 extern "C"
8226 #endif
8227 char IceConnectionNumber ();
8229 main ()
8231 return IceConnectionNumber ();
8233 return 0;
8235 _ACEOF
8236 if ac_fn_c_try_link "$LINENO"; then :
8237 ac_cv_lib_ICE_IceConnectionNumber=yes
8238 else
8239 ac_cv_lib_ICE_IceConnectionNumber=no
8241 rm -f core conftest.err conftest.$ac_objext \
8242 conftest$ac_exeext conftest.$ac_ext
8243 LIBS=$ac_check_lib_save_LIBS
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8246 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8247 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8248 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8251 LDFLAGS=$ac_save_LDFLAGS
8256 if test "$have_x" = "yes"
8257 then
8258 XLIB="-lX11"
8259 ac_save_CPPFLAGS="$CPPFLAGS"
8260 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
8263 $as_echo_n "checking for -lX11... " >&6; }
8264 if ${ac_cv_lib_soname_X11+:} false; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 ac_check_soname_save_LIBS=$LIBS
8268 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8272 /* Override any GCC internal prototype to avoid an error.
8273 Use char because int might match the return type of a GCC
8274 builtin and then its argument prototype would still apply. */
8275 #ifdef __cplusplus
8276 extern "C"
8277 #endif
8278 char XCreateWindow ();
8280 main ()
8282 return XCreateWindow ();
8284 return 0;
8286 _ACEOF
8287 if ac_fn_c_try_link "$LINENO"; then :
8288 case "$LIBEXT" in
8289 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8290 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'` ;;
8291 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8292 if test "x$ac_cv_lib_soname_X11" = x; then :
8293 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8294 fi ;;
8295 esac
8297 rm -f core conftest.err conftest.$ac_objext \
8298 conftest$ac_exeext conftest.$ac_ext
8299 LIBS=$ac_check_soname_save_LIBS
8301 if test "x$ac_cv_lib_soname_X11" = "x"; then :
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8303 $as_echo "not found" >&6; }
8305 else
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
8307 $as_echo "$ac_cv_lib_soname_X11" >&6; }
8309 cat >>confdefs.h <<_ACEOF
8310 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
8311 _ACEOF
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
8316 $as_echo_n "checking for -lXext... " >&6; }
8317 if ${ac_cv_lib_soname_Xext+:} false; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 ac_check_soname_save_LIBS=$LIBS
8321 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8325 /* Override any GCC internal prototype to avoid an error.
8326 Use char because int might match the return type of a GCC
8327 builtin and then its argument prototype would still apply. */
8328 #ifdef __cplusplus
8329 extern "C"
8330 #endif
8331 char XextCreateExtension ();
8333 main ()
8335 return XextCreateExtension ();
8337 return 0;
8339 _ACEOF
8340 if ac_fn_c_try_link "$LINENO"; then :
8341 case "$LIBEXT" in
8342 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8343 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'` ;;
8344 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8345 if test "x$ac_cv_lib_soname_Xext" = x; then :
8346 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8347 fi ;;
8348 esac
8350 rm -f core conftest.err conftest.$ac_objext \
8351 conftest$ac_exeext conftest.$ac_ext
8352 LIBS=$ac_check_soname_save_LIBS
8354 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8356 $as_echo "not found" >&6; }
8358 else
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8360 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8362 cat >>confdefs.h <<_ACEOF
8363 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8364 _ACEOF
8366 XLIB="-lXext $XLIB"
8369 for ac_header in X11/Xlib.h \
8370 X11/XKBlib.h \
8371 X11/Xutil.h \
8372 X11/Xcursor/Xcursor.h \
8373 X11/extensions/shape.h \
8374 X11/extensions/XInput.h \
8375 X11/extensions/XInput2.h \
8376 X11/extensions/XShm.h \
8377 X11/extensions/Xcomposite.h \
8378 X11/extensions/Xinerama.h \
8379 X11/extensions/Xrandr.h \
8380 X11/extensions/Xrender.h \
8381 X11/extensions/xf86vmode.h \
8382 X11/extensions/xf86vmproto.h
8383 do :
8384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8385 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8386 # include <X11/Xlib.h>
8387 #endif
8388 #ifdef HAVE_X11_XUTIL_H
8389 # include <X11/Xutil.h>
8390 #endif
8392 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8393 cat >>confdefs.h <<_ACEOF
8394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8395 _ACEOF
8399 done
8402 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8403 then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8405 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8406 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8407 $as_echo_n "(cached) " >&6
8408 else
8409 ac_check_lib_save_LIBS=$LIBS
8410 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8414 /* Override any GCC internal prototype to avoid an error.
8415 Use char because int might match the return type of a GCC
8416 builtin and then its argument prototype would still apply. */
8417 #ifdef __cplusplus
8418 extern "C"
8419 #endif
8420 char XkbQueryExtension ();
8422 main ()
8424 return XkbQueryExtension ();
8426 return 0;
8428 _ACEOF
8429 if ac_fn_c_try_link "$LINENO"; then :
8430 ac_cv_lib_X11_XkbQueryExtension=yes
8431 else
8432 ac_cv_lib_X11_XkbQueryExtension=no
8434 rm -f core conftest.err conftest.$ac_objext \
8435 conftest$ac_exeext conftest.$ac_ext
8436 LIBS=$ac_check_lib_save_LIBS
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8439 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8440 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8442 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8448 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8449 then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8451 $as_echo_n "checking for -lXcursor... " >&6; }
8452 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8453 $as_echo_n "(cached) " >&6
8454 else
8455 ac_check_soname_save_LIBS=$LIBS
8456 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8460 /* Override any GCC internal prototype to avoid an error.
8461 Use char because int might match the return type of a GCC
8462 builtin and then its argument prototype would still apply. */
8463 #ifdef __cplusplus
8464 extern "C"
8465 #endif
8466 char XcursorImageLoadCursor ();
8468 main ()
8470 return XcursorImageLoadCursor ();
8472 return 0;
8474 _ACEOF
8475 if ac_fn_c_try_link "$LINENO"; then :
8476 case "$LIBEXT" in
8477 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8478 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'` ;;
8479 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8480 if test "x$ac_cv_lib_soname_Xcursor" = x; then :
8481 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8482 fi ;;
8483 esac
8485 rm -f core conftest.err conftest.$ac_objext \
8486 conftest$ac_exeext conftest.$ac_ext
8487 LIBS=$ac_check_soname_save_LIBS
8489 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8491 $as_echo "not found" >&6; }
8493 else
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8495 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8497 cat >>confdefs.h <<_ACEOF
8498 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8499 _ACEOF
8504 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8505 case "x$with_xcursor" in
8506 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8507 xno) ;;
8508 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8509 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8510 esac
8513 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8514 then
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8516 $as_echo_n "checking for -lXi... " >&6; }
8517 if ${ac_cv_lib_soname_Xi+:} false; then :
8518 $as_echo_n "(cached) " >&6
8519 else
8520 ac_check_soname_save_LIBS=$LIBS
8521 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8525 /* Override any GCC internal prototype to avoid an error.
8526 Use char because int might match the return type of a GCC
8527 builtin and then its argument prototype would still apply. */
8528 #ifdef __cplusplus
8529 extern "C"
8530 #endif
8531 char XOpenDevice ();
8533 main ()
8535 return XOpenDevice ();
8537 return 0;
8539 _ACEOF
8540 if ac_fn_c_try_link "$LINENO"; then :
8541 case "$LIBEXT" in
8542 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8543 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'` ;;
8544 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8545 if test "x$ac_cv_lib_soname_Xi" = x; then :
8546 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8547 fi ;;
8548 esac
8550 rm -f core conftest.err conftest.$ac_objext \
8551 conftest$ac_exeext conftest.$ac_ext
8552 LIBS=$ac_check_soname_save_LIBS
8554 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8556 $as_echo "not found" >&6; }
8558 else
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8560 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8562 cat >>confdefs.h <<_ACEOF
8563 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8564 _ACEOF
8569 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8570 case "x$with_xinput" in
8571 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8572 xno) ;;
8573 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8574 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8575 esac
8578 if test "x$ac_cv_lib_soname_Xi" != x
8579 then
8580 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8581 case "x$with_xinput2" in
8582 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8583 xno) ;;
8584 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8585 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8586 esac
8590 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8591 then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8593 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8594 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8595 $as_echo_n "(cached) " >&6
8596 else
8597 ac_check_lib_save_LIBS=$LIBS
8598 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8602 /* Override any GCC internal prototype to avoid an error.
8603 Use char because int might match the return type of a GCC
8604 builtin and then its argument prototype would still apply. */
8605 #ifdef __cplusplus
8606 extern "C"
8607 #endif
8608 char XShmQueryExtension ();
8610 main ()
8612 return XShmQueryExtension ();
8614 return 0;
8616 _ACEOF
8617 if ac_fn_c_try_link "$LINENO"; then :
8618 ac_cv_lib_Xext_XShmQueryExtension=yes
8619 else
8620 ac_cv_lib_Xext_XShmQueryExtension=no
8622 rm -f core conftest.err conftest.$ac_objext \
8623 conftest$ac_exeext conftest.$ac_ext
8624 LIBS=$ac_check_lib_save_LIBS
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8627 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8628 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8630 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8635 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8636 case "x$with_xshm" in
8637 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8638 xno) ;;
8639 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8640 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8641 esac
8644 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8645 then
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8647 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8648 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 ac_check_lib_save_LIBS=$LIBS
8652 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8654 /* end confdefs.h. */
8656 /* Override any GCC internal prototype to avoid an error.
8657 Use char because int might match the return type of a GCC
8658 builtin and then its argument prototype would still apply. */
8659 #ifdef __cplusplus
8660 extern "C"
8661 #endif
8662 char XShapeQueryExtension ();
8664 main ()
8666 return XShapeQueryExtension ();
8668 return 0;
8670 _ACEOF
8671 if ac_fn_c_try_link "$LINENO"; then :
8672 ac_cv_lib_Xext_XShapeQueryExtension=yes
8673 else
8674 ac_cv_lib_Xext_XShapeQueryExtension=no
8676 rm -f core conftest.err conftest.$ac_objext \
8677 conftest$ac_exeext conftest.$ac_ext
8678 LIBS=$ac_check_lib_save_LIBS
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8681 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8682 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8684 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8689 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8690 case "x$with_xshape" in
8691 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8692 xno) ;;
8693 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8694 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8695 esac
8698 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8699 then
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8701 $as_echo_n "checking for -lXxf86vm... " >&6; }
8702 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8703 $as_echo_n "(cached) " >&6
8704 else
8705 ac_check_soname_save_LIBS=$LIBS
8706 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h. */
8710 /* Override any GCC internal prototype to avoid an error.
8711 Use char because int might match the return type of a GCC
8712 builtin and then its argument prototype would still apply. */
8713 #ifdef __cplusplus
8714 extern "C"
8715 #endif
8716 char XF86VidModeQueryExtension ();
8718 main ()
8720 return XF86VidModeQueryExtension ();
8722 return 0;
8724 _ACEOF
8725 if ac_fn_c_try_link "$LINENO"; then :
8726 case "$LIBEXT" in
8727 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8728 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'` ;;
8729 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8730 if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
8731 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8732 fi ;;
8733 esac
8735 rm -f core conftest.err conftest.$ac_objext \
8736 conftest$ac_exeext conftest.$ac_ext
8737 LIBS=$ac_check_soname_save_LIBS
8739 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8741 $as_echo "not found" >&6; }
8743 else
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8745 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8747 cat >>confdefs.h <<_ACEOF
8748 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8749 _ACEOF
8754 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8755 case "x$with_xxf86vm" in
8756 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8757 xno) ;;
8758 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8759 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8760 esac
8763 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"
8764 then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8766 $as_echo_n "checking for -lXrender... " >&6; }
8767 if ${ac_cv_lib_soname_Xrender+:} false; then :
8768 $as_echo_n "(cached) " >&6
8769 else
8770 ac_check_soname_save_LIBS=$LIBS
8771 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773 /* end confdefs.h. */
8775 /* Override any GCC internal prototype to avoid an error.
8776 Use char because int might match the return type of a GCC
8777 builtin and then its argument prototype would still apply. */
8778 #ifdef __cplusplus
8779 extern "C"
8780 #endif
8781 char XRenderQueryExtension ();
8783 main ()
8785 return XRenderQueryExtension ();
8787 return 0;
8789 _ACEOF
8790 if ac_fn_c_try_link "$LINENO"; then :
8791 case "$LIBEXT" in
8792 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8793 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'` ;;
8794 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8795 if test "x$ac_cv_lib_soname_Xrender" = x; then :
8796 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8797 fi ;;
8798 esac
8800 rm -f core conftest.err conftest.$ac_objext \
8801 conftest$ac_exeext conftest.$ac_ext
8802 LIBS=$ac_check_soname_save_LIBS
8804 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8806 $as_echo "not found" >&6; }
8808 else
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8810 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8812 cat >>confdefs.h <<_ACEOF
8813 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8814 _ACEOF
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8817 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8818 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8819 $as_echo_n "(cached) " >&6
8820 else
8821 ac_check_lib_save_LIBS=$LIBS
8822 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8826 /* Override any GCC internal prototype to avoid an error.
8827 Use char because int might match the return type of a GCC
8828 builtin and then its argument prototype would still apply. */
8829 #ifdef __cplusplus
8830 extern "C"
8831 #endif
8832 char XRenderSetPictureTransform ();
8834 main ()
8836 return XRenderSetPictureTransform ();
8838 return 0;
8840 _ACEOF
8841 if ac_fn_c_try_link "$LINENO"; then :
8842 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8843 else
8844 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8846 rm -f core conftest.err conftest.$ac_objext \
8847 conftest$ac_exeext conftest.$ac_ext
8848 LIBS=$ac_check_lib_save_LIBS
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8851 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8852 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8854 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8859 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8860 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8861 $as_echo_n "(cached) " >&6
8862 else
8863 ac_check_lib_save_LIBS=$LIBS
8864 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h. */
8868 /* Override any GCC internal prototype to avoid an error.
8869 Use char because int might match the return type of a GCC
8870 builtin and then its argument prototype would still apply. */
8871 #ifdef __cplusplus
8872 extern "C"
8873 #endif
8874 char XRenderCreateLinearGradient ();
8876 main ()
8878 return XRenderCreateLinearGradient ();
8880 return 0;
8882 _ACEOF
8883 if ac_fn_c_try_link "$LINENO"; then :
8884 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8885 else
8886 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8888 rm -f core conftest.err conftest.$ac_objext \
8889 conftest$ac_exeext conftest.$ac_ext
8890 LIBS=$ac_check_lib_save_LIBS
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8893 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8894 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8896 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8903 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8904 case "x$with_xrender" in
8905 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8906 xno) ;;
8907 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8908 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8909 esac
8912 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8913 then
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8916 #include <X11/Xlib.h>
8917 #include <X11/extensions/Xrandr.h>
8919 main ()
8921 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8923 return 0;
8925 _ACEOF
8926 if ac_fn_c_try_compile "$LINENO"; then :
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8928 $as_echo_n "checking for -lXrandr... " >&6; }
8929 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8930 $as_echo_n "(cached) " >&6
8931 else
8932 ac_check_soname_save_LIBS=$LIBS
8933 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h. */
8937 /* Override any GCC internal prototype to avoid an error.
8938 Use char because int might match the return type of a GCC
8939 builtin and then its argument prototype would still apply. */
8940 #ifdef __cplusplus
8941 extern "C"
8942 #endif
8943 char XRRQueryExtension ();
8945 main ()
8947 return XRRQueryExtension ();
8949 return 0;
8951 _ACEOF
8952 if ac_fn_c_try_link "$LINENO"; then :
8953 case "$LIBEXT" in
8954 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8955 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'` ;;
8956 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8957 if test "x$ac_cv_lib_soname_Xrandr" = x; then :
8958 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8959 fi ;;
8960 esac
8962 rm -f core conftest.err conftest.$ac_objext \
8963 conftest$ac_exeext conftest.$ac_ext
8964 LIBS=$ac_check_soname_save_LIBS
8966 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8968 $as_echo "not found" >&6; }
8970 else
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8972 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8974 cat >>confdefs.h <<_ACEOF
8975 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8976 _ACEOF
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8980 #include <X11/Xlib.h>
8981 #include <X11/extensions/Xrandr.h>
8983 main ()
8985 static typeof(XRRGetScreenResources) *f; if (f) return 0;
8987 return 0;
8989 _ACEOF
8990 if ac_fn_c_try_compile "$LINENO"; then :
8992 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9000 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9001 case "x$with_xrandr" in
9002 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
9003 xno) ;;
9004 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
9005 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
9006 esac
9009 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
9010 then
9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012 /* end confdefs.h. */
9013 #include <X11/Xlib.h>
9014 #include <X11/extensions/Xinerama.h>
9016 main ()
9018 static typeof(XineramaQueryScreens) * func; if (func) return 0;
9020 return 0;
9022 _ACEOF
9023 if ac_fn_c_try_compile "$LINENO"; then :
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
9025 $as_echo_n "checking for -lXinerama... " >&6; }
9026 if ${ac_cv_lib_soname_Xinerama+:} false; then :
9027 $as_echo_n "(cached) " >&6
9028 else
9029 ac_check_soname_save_LIBS=$LIBS
9030 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9034 /* Override any GCC internal prototype to avoid an error.
9035 Use char because int might match the return type of a GCC
9036 builtin and then its argument prototype would still apply. */
9037 #ifdef __cplusplus
9038 extern "C"
9039 #endif
9040 char XineramaQueryScreens ();
9042 main ()
9044 return XineramaQueryScreens ();
9046 return 0;
9048 _ACEOF
9049 if ac_fn_c_try_link "$LINENO"; then :
9050 case "$LIBEXT" in
9051 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9052 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'` ;;
9053 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9054 if test "x$ac_cv_lib_soname_Xinerama" = x; then :
9055 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9056 fi ;;
9057 esac
9059 rm -f core conftest.err conftest.$ac_objext \
9060 conftest$ac_exeext conftest.$ac_ext
9061 LIBS=$ac_check_soname_save_LIBS
9063 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9065 $as_echo "not found" >&6; }
9067 else
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
9069 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
9071 cat >>confdefs.h <<_ACEOF
9072 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
9073 _ACEOF
9078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9081 case "x$with_xinerama" in
9082 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
9083 xno) ;;
9084 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
9085 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
9086 esac
9089 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
9090 then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
9092 $as_echo_n "checking for -lXcomposite... " >&6; }
9093 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 ac_check_soname_save_LIBS=$LIBS
9097 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h. */
9101 /* Override any GCC internal prototype to avoid an error.
9102 Use char because int might match the return type of a GCC
9103 builtin and then its argument prototype would still apply. */
9104 #ifdef __cplusplus
9105 extern "C"
9106 #endif
9107 char XCompositeRedirectWindow ();
9109 main ()
9111 return XCompositeRedirectWindow ();
9113 return 0;
9115 _ACEOF
9116 if ac_fn_c_try_link "$LINENO"; then :
9117 case "$LIBEXT" in
9118 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9119 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'` ;;
9120 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9121 if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
9122 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9123 fi ;;
9124 esac
9126 rm -f core conftest.err conftest.$ac_objext \
9127 conftest$ac_exeext conftest.$ac_ext
9128 LIBS=$ac_check_soname_save_LIBS
9130 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9132 $as_echo "not found" >&6; }
9134 else
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
9136 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
9138 cat >>confdefs.h <<_ACEOF
9139 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
9140 _ACEOF
9145 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9146 case "x$with_xcomposite" in
9147 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
9148 xno) ;;
9149 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
9150 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
9151 esac
9154 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
9155 #include <X11/Xlib.h>
9156 #endif
9158 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
9160 cat >>confdefs.h <<_ACEOF
9161 #define HAVE_XICCALLBACK_CALLBACK 1
9162 _ACEOF
9166 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
9167 #include <X11/Xlib.h>
9168 #endif
9170 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
9172 cat >>confdefs.h <<_ACEOF
9173 #define HAVE_XEVENT_XCOOKIE 1
9174 _ACEOF
9181 opengl_msg=""
9182 if test "x$with_opengl" != "xno"
9183 then
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9185 $as_echo_n "checking for -lGL... " >&6; }
9186 if ${ac_cv_lib_soname_GL+:} false; then :
9187 $as_echo_n "(cached) " >&6
9188 else
9189 ac_check_soname_save_LIBS=$LIBS
9190 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9194 /* Override any GCC internal prototype to avoid an error.
9195 Use char because int might match the return type of a GCC
9196 builtin and then its argument prototype would still apply. */
9197 #ifdef __cplusplus
9198 extern "C"
9199 #endif
9200 char glXCreateContext ();
9202 main ()
9204 return glXCreateContext ();
9206 return 0;
9208 _ACEOF
9209 if ac_fn_c_try_link "$LINENO"; then :
9210 case "$LIBEXT" in
9211 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9212 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'` ;;
9213 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9214 if test "x$ac_cv_lib_soname_GL" = x; then :
9215 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9216 fi ;;
9217 esac
9219 rm -f core conftest.err conftest.$ac_objext \
9220 conftest$ac_exeext conftest.$ac_ext
9221 LIBS=$ac_check_soname_save_LIBS
9223 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9225 $as_echo "not found" >&6; }
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9227 $as_echo_n "checking for -lGL... " >&6; }
9228 if ${ac_cv_lib_soname_GL+:} false; then :
9229 $as_echo_n "(cached) " >&6
9230 else
9231 ac_check_soname_save_LIBS=$LIBS
9232 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"
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9236 /* Override any GCC internal prototype to avoid an error.
9237 Use char because int might match the return type of a GCC
9238 builtin and then its argument prototype would still apply. */
9239 #ifdef __cplusplus
9240 extern "C"
9241 #endif
9242 char glXCreateContext ();
9244 main ()
9246 return glXCreateContext ();
9248 return 0;
9250 _ACEOF
9251 if ac_fn_c_try_link "$LINENO"; then :
9252 case "$LIBEXT" in
9253 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9254 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'` ;;
9255 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9256 if test "x$ac_cv_lib_soname_GL" = x; then :
9257 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9258 fi ;;
9259 esac
9261 rm -f core conftest.err conftest.$ac_objext \
9262 conftest$ac_exeext conftest.$ac_ext
9263 LIBS=$ac_check_soname_save_LIBS
9265 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9267 $as_echo "not found" >&6; }
9268 if test -f /usr/X11R6/lib/libGL.a
9269 then
9270 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
9271 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
9272 else
9273 opengl_msg="No OpenGL library found on this system."
9275 else
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9277 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9279 cat >>confdefs.h <<_ACEOF
9280 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9281 _ACEOF
9283 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"
9285 else
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9287 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9289 cat >>confdefs.h <<_ACEOF
9290 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9291 _ACEOF
9293 OPENGL_LIBS="-lGL"
9295 if test "x$with_glu" != "xno"
9296 then
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
9298 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
9299 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
9300 $as_echo_n "(cached) " >&6
9301 else
9302 ac_check_lib_save_LIBS=$LIBS
9303 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9307 /* Override any GCC internal prototype to avoid an error.
9308 Use char because int might match the return type of a GCC
9309 builtin and then its argument prototype would still apply. */
9310 #ifdef __cplusplus
9311 extern "C"
9312 #endif
9313 char gluLookAt ();
9315 main ()
9317 return gluLookAt ();
9319 return 0;
9321 _ACEOF
9322 if ac_fn_c_try_link "$LINENO"; then :
9323 ac_cv_lib_GLU_gluLookAt=yes
9324 else
9325 ac_cv_lib_GLU_gluLookAt=no
9327 rm -f core conftest.err conftest.$ac_objext \
9328 conftest$ac_exeext conftest.$ac_ext
9329 LIBS=$ac_check_lib_save_LIBS
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
9332 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
9333 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
9337 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
9338 case "x$with_glu" in
9339 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
9340 xno) ;;
9341 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9342 This is an error since --with-glu was requested." "$LINENO" 5 ;;
9343 esac
9347 if test "x$with_osmesa" != "xno"
9348 then
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
9350 $as_echo_n "checking for -lOSMesa... " >&6; }
9351 if ${ac_cv_lib_soname_OSMesa+:} false; then :
9352 $as_echo_n "(cached) " >&6
9353 else
9354 ac_check_soname_save_LIBS=$LIBS
9355 LIBS="-lOSMesa $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9359 /* Override any GCC internal prototype to avoid an error.
9360 Use char because int might match the return type of a GCC
9361 builtin and then its argument prototype would still apply. */
9362 #ifdef __cplusplus
9363 extern "C"
9364 #endif
9365 char glAccum ();
9367 main ()
9369 return glAccum ();
9371 return 0;
9373 _ACEOF
9374 if ac_fn_c_try_link "$LINENO"; then :
9375 case "$LIBEXT" in
9376 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9377 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'` ;;
9378 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9379 if test "x$ac_cv_lib_soname_OSMesa" = x; then :
9380 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9381 fi ;;
9382 esac
9384 rm -f core conftest.err conftest.$ac_objext \
9385 conftest$ac_exeext conftest.$ac_ext
9386 LIBS=$ac_check_soname_save_LIBS
9388 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9390 $as_echo "not found" >&6; }
9392 else
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
9394 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
9396 cat >>confdefs.h <<_ACEOF
9397 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
9398 _ACEOF
9402 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9403 case "x$with_osmesa" in
9404 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
9405 xno) ;;
9406 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
9407 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
9408 esac
9412 if test -n "$opengl_msg"; then :
9413 case "x$with_opengl" in
9414 x) as_fn_append wine_warnings "|$opengl_msg
9415 OpenGL and Direct3D won't be supported." ;;
9416 xno) ;;
9417 *) as_fn_error $? "$opengl_msg
9418 OpenGL and Direct3D won't be supported.
9419 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9420 esac
9423 CPPFLAGS="$ac_save_CPPFLAGS"
9424 else
9425 XLIB=""
9426 X_CFLAGS=""
9427 X_LIBS=""
9428 enable_winex11_drv=${enable_winex11_drv:-no}
9430 if test "x$XLIB" = "x"; then :
9431 case "x$with_x" in
9432 xno) ;;
9433 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9434 without X support, which probably isn't what you want. You will need
9435 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9436 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9437 esac
9440 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
9442 if test "$ac_cv_header_CL_cl_h" = "yes"
9443 then
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9445 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9446 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9447 $as_echo_n "(cached) " >&6
9448 else
9449 ac_check_lib_save_LIBS=$LIBS
9450 LIBS="-lOpenCL $LIBS"
9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452 /* end confdefs.h. */
9454 /* Override any GCC internal prototype to avoid an error.
9455 Use char because int might match the return type of a GCC
9456 builtin and then its argument prototype would still apply. */
9457 #ifdef __cplusplus
9458 extern "C"
9459 #endif
9460 char clGetPlatformInfo ();
9462 main ()
9464 return clGetPlatformInfo ();
9466 return 0;
9468 _ACEOF
9469 if ac_fn_c_try_link "$LINENO"; then :
9470 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9471 else
9472 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9474 rm -f core conftest.err conftest.$ac_objext \
9475 conftest$ac_exeext conftest.$ac_ext
9476 LIBS=$ac_check_lib_save_LIBS
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9479 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9480 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9481 LIBOPENCL="-lOpenCL"
9486 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9487 case "x$with_opencl" in
9488 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9489 xno) ;;
9490 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9491 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9492 esac
9494 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9497 if test "x$with_xml" != "xno"
9498 then
9499 ac_save_CPPFLAGS="$CPPFLAGS"
9500 if test -n "$ac_tool_prefix"; then
9501 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9502 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9504 $as_echo_n "checking for $ac_word... " >&6; }
9505 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
9506 $as_echo_n "(cached) " >&6
9507 else
9508 if test -n "$PKG_CONFIG"; then
9509 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
9510 else
9511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9512 for as_dir in $PATH
9514 IFS=$as_save_IFS
9515 test -z "$as_dir" && as_dir=.
9516 for ac_exec_ext in '' $ac_executable_extensions; do
9517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9518 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
9519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9520 break 2
9522 done
9523 done
9524 IFS=$as_save_IFS
9528 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
9529 if test -n "$PKG_CONFIG"; then
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9531 $as_echo "$PKG_CONFIG" >&6; }
9532 else
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534 $as_echo "no" >&6; }
9539 if test -z "$ac_cv_prog_PKG_CONFIG"; then
9540 ac_ct_PKG_CONFIG=$PKG_CONFIG
9541 # Extract the first word of "pkg-config", so it can be a program name with args.
9542 set dummy pkg-config; ac_word=$2
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9544 $as_echo_n "checking for $ac_word... " >&6; }
9545 if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
9546 $as_echo_n "(cached) " >&6
9547 else
9548 if test -n "$ac_ct_PKG_CONFIG"; then
9549 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
9550 else
9551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9552 for as_dir in $PATH
9554 IFS=$as_save_IFS
9555 test -z "$as_dir" && as_dir=.
9556 for ac_exec_ext in '' $ac_executable_extensions; do
9557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9558 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
9559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9560 break 2
9562 done
9563 done
9564 IFS=$as_save_IFS
9568 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
9569 if test -n "$ac_ct_PKG_CONFIG"; then
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
9571 $as_echo "$ac_ct_PKG_CONFIG" >&6; }
9572 else
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9574 $as_echo "no" >&6; }
9577 if test "x$ac_ct_PKG_CONFIG" = x; then
9578 PKG_CONFIG=""
9579 else
9580 case $cross_compiling:$ac_tool_warned in
9581 yes:)
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9584 ac_tool_warned=yes ;;
9585 esac
9586 PKG_CONFIG=$ac_ct_PKG_CONFIG
9588 else
9589 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
9592 if test -n "$XML2_CFLAGS"; then :
9594 elif test -n "$PKG_CONFIG"; then :
9595 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
9597 XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
9598 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
9599 if test -n "$XML2_LIBS"; then :
9601 elif test -n "$PKG_CONFIG"; then :
9602 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
9604 XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
9605 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
9606 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9607 do :
9608 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9609 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9610 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9611 cat >>confdefs.h <<_ACEOF
9612 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9613 _ACEOF
9617 done
9619 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"
9620 then
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9622 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9623 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9624 $as_echo_n "(cached) " >&6
9625 else
9626 ac_check_lib_save_LIBS=$LIBS
9627 LIBS="-lxml2 $XML2_LIBS $LIBS"
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9631 /* Override any GCC internal prototype to avoid an error.
9632 Use char because int might match the return type of a GCC
9633 builtin and then its argument prototype would still apply. */
9634 #ifdef __cplusplus
9635 extern "C"
9636 #endif
9637 char xmlParseMemory ();
9639 main ()
9641 return xmlParseMemory ();
9643 return 0;
9645 _ACEOF
9646 if ac_fn_c_try_link "$LINENO"; then :
9647 ac_cv_lib_xml2_xmlParseMemory=yes
9648 else
9649 ac_cv_lib_xml2_xmlParseMemory=no
9651 rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9653 LIBS=$ac_check_lib_save_LIBS
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9656 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9657 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9659 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9661 else
9662 XML2_LIBS=""
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9666 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9667 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9668 $as_echo_n "(cached) " >&6
9669 else
9670 ac_check_lib_save_LIBS=$LIBS
9671 LIBS="-lxml2 $XML2_LIBS $LIBS"
9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673 /* end confdefs.h. */
9675 /* Override any GCC internal prototype to avoid an error.
9676 Use char because int might match the return type of a GCC
9677 builtin and then its argument prototype would still apply. */
9678 #ifdef __cplusplus
9679 extern "C"
9680 #endif
9681 char xmlReadMemory ();
9683 main ()
9685 return xmlReadMemory ();
9687 return 0;
9689 _ACEOF
9690 if ac_fn_c_try_link "$LINENO"; then :
9691 ac_cv_lib_xml2_xmlReadMemory=yes
9692 else
9693 ac_cv_lib_xml2_xmlReadMemory=no
9695 rm -f core conftest.err conftest.$ac_objext \
9696 conftest$ac_exeext conftest.$ac_ext
9697 LIBS=$ac_check_lib_save_LIBS
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9700 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9701 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9703 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9708 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9709 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9710 $as_echo_n "(cached) " >&6
9711 else
9712 ac_check_lib_save_LIBS=$LIBS
9713 LIBS="-lxml2 $XML2_LIBS $LIBS"
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9717 /* Override any GCC internal prototype to avoid an error.
9718 Use char because int might match the return type of a GCC
9719 builtin and then its argument prototype would still apply. */
9720 #ifdef __cplusplus
9721 extern "C"
9722 #endif
9723 char xmlNewDocPI ();
9725 main ()
9727 return xmlNewDocPI ();
9729 return 0;
9731 _ACEOF
9732 if ac_fn_c_try_link "$LINENO"; then :
9733 ac_cv_lib_xml2_xmlNewDocPI=yes
9734 else
9735 ac_cv_lib_xml2_xmlNewDocPI=no
9737 rm -f core conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
9739 LIBS=$ac_check_lib_save_LIBS
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9742 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9743 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9745 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9750 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9751 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9752 $as_echo_n "(cached) " >&6
9753 else
9754 ac_check_lib_save_LIBS=$LIBS
9755 LIBS="-lxml2 $XML2_LIBS $LIBS"
9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h. */
9759 /* Override any GCC internal prototype to avoid an error.
9760 Use char because int might match the return type of a GCC
9761 builtin and then its argument prototype would still apply. */
9762 #ifdef __cplusplus
9763 extern "C"
9764 #endif
9765 char xmlSchemaSetParserStructuredErrors ();
9767 main ()
9769 return xmlSchemaSetParserStructuredErrors ();
9771 return 0;
9773 _ACEOF
9774 if ac_fn_c_try_link "$LINENO"; then :
9775 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9776 else
9777 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9779 rm -f core conftest.err conftest.$ac_objext \
9780 conftest$ac_exeext conftest.$ac_ext
9781 LIBS=$ac_check_lib_save_LIBS
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9784 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9785 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9787 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9792 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9793 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9794 $as_echo_n "(cached) " >&6
9795 else
9796 ac_check_lib_save_LIBS=$LIBS
9797 LIBS="-lxml2 $XML2_LIBS $LIBS"
9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9801 /* Override any GCC internal prototype to avoid an error.
9802 Use char because int might match the return type of a GCC
9803 builtin and then its argument prototype would still apply. */
9804 #ifdef __cplusplus
9805 extern "C"
9806 #endif
9807 char xmlSchemaSetValidStructuredErrors ();
9809 main ()
9811 return xmlSchemaSetValidStructuredErrors ();
9813 return 0;
9815 _ACEOF
9816 if ac_fn_c_try_link "$LINENO"; then :
9817 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9818 else
9819 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9821 rm -f core conftest.err conftest.$ac_objext \
9822 conftest$ac_exeext conftest.$ac_ext
9823 LIBS=$ac_check_lib_save_LIBS
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9826 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9827 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9829 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9834 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9835 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9836 $as_echo_n "(cached) " >&6
9837 else
9838 ac_check_lib_save_LIBS=$LIBS
9839 LIBS="-lxml2 $XML2_LIBS $LIBS"
9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9843 /* Override any GCC internal prototype to avoid an error.
9844 Use char because int might match the return type of a GCC
9845 builtin and then its argument prototype would still apply. */
9846 #ifdef __cplusplus
9847 extern "C"
9848 #endif
9849 char xmlFirstElementChild ();
9851 main ()
9853 return xmlFirstElementChild ();
9855 return 0;
9857 _ACEOF
9858 if ac_fn_c_try_link "$LINENO"; then :
9859 ac_cv_lib_xml2_xmlFirstElementChild=yes
9860 else
9861 ac_cv_lib_xml2_xmlFirstElementChild=no
9863 rm -f core conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9865 LIBS=$ac_check_lib_save_LIBS
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9868 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9869 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9871 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9875 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9877 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9879 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9883 else
9884 XML2_CFLAGS=""
9885 XML2_LIBS=""
9887 CPPFLAGS="$ac_save_CPPFLAGS"
9889 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9890 case "x$with_xml" in
9891 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9892 xno) ;;
9893 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9894 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9895 esac
9898 if test "x$with_xslt" != "xno"
9899 then
9900 ac_save_CPPFLAGS="$CPPFLAGS"
9901 if test -n "$XSLT_CFLAGS"; then :
9903 elif test -n "$PKG_CONFIG"; then :
9904 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
9906 XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
9907 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
9908 if test -n "$XSLT_LIBS"; then :
9910 elif test -n "$PKG_CONFIG"; then :
9911 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
9913 XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
9914 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
9915 for ac_header in libxslt/pattern.h libxslt/transform.h
9916 do :
9917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9918 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9919 # include <libxslt/pattern.h>
9920 #endif
9922 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9923 cat >>confdefs.h <<_ACEOF
9924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9925 _ACEOF
9929 done
9931 CPPFLAGS="$ac_save_CPPFLAGS"
9932 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9933 then
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9935 $as_echo_n "checking for -lxslt... " >&6; }
9936 if ${ac_cv_lib_soname_xslt+:} false; then :
9937 $as_echo_n "(cached) " >&6
9938 else
9939 ac_check_soname_save_LIBS=$LIBS
9940 LIBS="-lxslt $XSLT_LIBS $LIBS"
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9944 /* Override any GCC internal prototype to avoid an error.
9945 Use char because int might match the return type of a GCC
9946 builtin and then its argument prototype would still apply. */
9947 #ifdef __cplusplus
9948 extern "C"
9949 #endif
9950 char xsltCompilePattern ();
9952 main ()
9954 return xsltCompilePattern ();
9956 return 0;
9958 _ACEOF
9959 if ac_fn_c_try_link "$LINENO"; then :
9960 case "$LIBEXT" in
9961 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9962 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'` ;;
9963 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9964 if test "x$ac_cv_lib_soname_xslt" = x; then :
9965 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9966 fi ;;
9967 esac
9969 rm -f core conftest.err conftest.$ac_objext \
9970 conftest$ac_exeext conftest.$ac_ext
9971 LIBS=$ac_check_soname_save_LIBS
9973 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9975 $as_echo "not found" >&6; }
9977 else
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9979 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9981 cat >>confdefs.h <<_ACEOF
9982 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9983 _ACEOF
9987 else
9988 XSLT_CFLAGS=""
9991 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9992 case "x$with_xslt" in
9993 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9994 xno) ;;
9995 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9996 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9997 esac
10000 if test "x$with_dbus" != "xno"
10001 then
10002 ac_save_CPPFLAGS="$CPPFLAGS"
10003 if test -n "$DBUS_CFLAGS"; then :
10005 elif test -n "$PKG_CONFIG"; then :
10006 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
10009 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
10010 if test -n "$DBUS_LIBS"; then :
10012 elif test -n "$PKG_CONFIG"; then :
10013 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
10017 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
10018 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
10020 $as_echo_n "checking for -ldbus-1... " >&6; }
10021 if ${ac_cv_lib_soname_dbus_1+:} false; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 ac_check_soname_save_LIBS=$LIBS
10025 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027 /* end confdefs.h. */
10029 /* Override any GCC internal prototype to avoid an error.
10030 Use char because int might match the return type of a GCC
10031 builtin and then its argument prototype would still apply. */
10032 #ifdef __cplusplus
10033 extern "C"
10034 #endif
10035 char dbus_connection_close ();
10037 main ()
10039 return dbus_connection_close ();
10041 return 0;
10043 _ACEOF
10044 if ac_fn_c_try_link "$LINENO"; then :
10045 case "$LIBEXT" in
10046 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10047 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'` ;;
10048 *) 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'`
10049 if test "x$ac_cv_lib_soname_dbus_1" = x; then :
10050 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10051 fi ;;
10052 esac
10054 rm -f core conftest.err conftest.$ac_objext \
10055 conftest$ac_exeext conftest.$ac_ext
10056 LIBS=$ac_check_soname_save_LIBS
10058 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10060 $as_echo "not found" >&6; }
10061 DBUS_CFLAGS=""
10062 else
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
10064 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
10066 cat >>confdefs.h <<_ACEOF
10067 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
10068 _ACEOF
10072 else
10073 DBUS_CFLAGS=""
10077 CPPFLAGS="$ac_save_CPPFLAGS"
10079 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
10080 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10081 case "x$with_dbus" in
10082 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
10083 xno) ;;
10084 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
10085 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
10086 esac
10089 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
10090 then
10091 ac_save_CPPFLAGS="$CPPFLAGS"
10092 if test -n "$HAL_CFLAGS"; then :
10094 elif test -n "$PKG_CONFIG"; then :
10095 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
10098 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
10099 if test -n "$HAL_LIBS"; then :
10101 elif test -n "$PKG_CONFIG"; then :
10102 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
10105 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
10106 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
10107 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
10109 $as_echo_n "checking for -lhal... " >&6; }
10110 if ${ac_cv_lib_soname_hal+:} false; then :
10111 $as_echo_n "(cached) " >&6
10112 else
10113 ac_check_soname_save_LIBS=$LIBS
10114 LIBS="-lhal $HAL_LIBS $LIBS"
10115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116 /* end confdefs.h. */
10118 /* Override any GCC internal prototype to avoid an error.
10119 Use char because int might match the return type of a GCC
10120 builtin and then its argument prototype would still apply. */
10121 #ifdef __cplusplus
10122 extern "C"
10123 #endif
10124 char libhal_ctx_new ();
10126 main ()
10128 return libhal_ctx_new ();
10130 return 0;
10132 _ACEOF
10133 if ac_fn_c_try_link "$LINENO"; then :
10134 case "$LIBEXT" in
10135 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10136 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'` ;;
10137 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10138 if test "x$ac_cv_lib_soname_hal" = x; then :
10139 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10140 fi ;;
10141 esac
10143 rm -f core conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10145 LIBS=$ac_check_soname_save_LIBS
10147 if test "x$ac_cv_lib_soname_hal" = "x"; then :
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10149 $as_echo "not found" >&6; }
10150 HAL_CFLAGS=""
10151 else
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
10153 $as_echo "$ac_cv_lib_soname_hal" >&6; }
10155 cat >>confdefs.h <<_ACEOF
10156 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
10157 _ACEOF
10161 else
10162 HAL_CFLAGS=""
10166 CPPFLAGS="$ac_save_CPPFLAGS"
10167 if test "x$ac_cv_lib_soname_hal" = "x" -a \
10168 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10169 case "x$with_hal" in
10170 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
10171 xno) ;;
10172 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
10173 This is an error since --with-hal was requested." "$LINENO" 5 ;;
10174 esac
10178 if test "x$with_gnutls" != "xno"
10179 then
10180 ac_save_CPPFLAGS="$CPPFLAGS"
10181 if test -n "$GNUTLS_CFLAGS"; then :
10183 elif test -n "$PKG_CONFIG"; then :
10184 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
10187 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
10188 if test -n "$GNUTLS_LIBS"; then :
10190 elif test -n "$PKG_CONFIG"; then :
10191 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
10195 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
10196 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h. */
10199 #include <gnutls/gnutls.h>
10201 main ()
10203 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
10205 return 0;
10207 _ACEOF
10208 if ac_fn_c_try_compile "$LINENO"; then :
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
10210 $as_echo_n "checking for -lgnutls... " >&6; }
10211 if ${ac_cv_lib_soname_gnutls+:} false; then :
10212 $as_echo_n "(cached) " >&6
10213 else
10214 ac_check_soname_save_LIBS=$LIBS
10215 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10219 /* Override any GCC internal prototype to avoid an error.
10220 Use char because int might match the return type of a GCC
10221 builtin and then its argument prototype would still apply. */
10222 #ifdef __cplusplus
10223 extern "C"
10224 #endif
10225 char gnutls_global_init ();
10227 main ()
10229 return gnutls_global_init ();
10231 return 0;
10233 _ACEOF
10234 if ac_fn_c_try_link "$LINENO"; then :
10235 case "$LIBEXT" in
10236 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10237 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'` ;;
10238 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10239 if test "x$ac_cv_lib_soname_gnutls" = x; then :
10240 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10241 fi ;;
10242 esac
10244 rm -f core conftest.err conftest.$ac_objext \
10245 conftest$ac_exeext conftest.$ac_ext
10246 LIBS=$ac_check_soname_save_LIBS
10248 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10250 $as_echo "not found" >&6; }
10251 GNUTLS_CFLAGS=""
10252 else
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
10254 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
10256 cat >>confdefs.h <<_ACEOF
10257 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
10258 _ACEOF
10263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10264 else
10265 GNUTLS_CFLAGS=""
10269 CPPFLAGS="$ac_save_CPPFLAGS"
10271 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10272 case "x$with_gnutls" in
10273 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
10274 xno) ;;
10275 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
10276 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
10277 esac
10280 CURSESLIBS=""
10281 if test "$ac_cv_header_ncurses_h" = "yes"
10282 then
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
10284 $as_echo_n "checking for -lncurses... " >&6; }
10285 if ${ac_cv_lib_soname_ncurses+:} false; then :
10286 $as_echo_n "(cached) " >&6
10287 else
10288 ac_check_soname_save_LIBS=$LIBS
10289 LIBS="-lncurses $LIBS"
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10293 /* Override any GCC internal prototype to avoid an error.
10294 Use char because int might match the return type of a GCC
10295 builtin and then its argument prototype would still apply. */
10296 #ifdef __cplusplus
10297 extern "C"
10298 #endif
10299 char waddch ();
10301 main ()
10303 return waddch ();
10305 return 0;
10307 _ACEOF
10308 if ac_fn_c_try_link "$LINENO"; then :
10309 case "$LIBEXT" in
10310 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10311 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'` ;;
10312 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10313 if test "x$ac_cv_lib_soname_ncurses" = x; then :
10314 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10315 fi ;;
10316 esac
10318 rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
10320 LIBS=$ac_check_soname_save_LIBS
10322 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10324 $as_echo "not found" >&6; }
10326 else
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
10328 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
10330 cat >>confdefs.h <<_ACEOF
10331 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
10332 _ACEOF
10334 CURSESLIBS="-lncurses"
10336 elif test "$ac_cv_header_curses_h" = "yes"
10337 then
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
10339 $as_echo_n "checking for -lcurses... " >&6; }
10340 if ${ac_cv_lib_soname_curses+:} false; then :
10341 $as_echo_n "(cached) " >&6
10342 else
10343 ac_check_soname_save_LIBS=$LIBS
10344 LIBS="-lcurses $LIBS"
10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346 /* end confdefs.h. */
10348 /* Override any GCC internal prototype to avoid an error.
10349 Use char because int might match the return type of a GCC
10350 builtin and then its argument prototype would still apply. */
10351 #ifdef __cplusplus
10352 extern "C"
10353 #endif
10354 char waddch ();
10356 main ()
10358 return waddch ();
10360 return 0;
10362 _ACEOF
10363 if ac_fn_c_try_link "$LINENO"; then :
10364 case "$LIBEXT" in
10365 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10366 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'` ;;
10367 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10368 if test "x$ac_cv_lib_soname_curses" = x; then :
10369 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10370 fi ;;
10371 esac
10373 rm -f core conftest.err conftest.$ac_objext \
10374 conftest$ac_exeext conftest.$ac_ext
10375 LIBS=$ac_check_soname_save_LIBS
10377 if test "x$ac_cv_lib_soname_curses" = "x"; then :
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10379 $as_echo "not found" >&6; }
10381 else
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
10383 $as_echo "$ac_cv_lib_soname_curses" >&6; }
10385 cat >>confdefs.h <<_ACEOF
10386 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
10387 _ACEOF
10389 CURSESLIBS="-lcurses"
10392 ac_save_LIBS="$LIBS"
10393 LIBS="$LIBS $CURSESLIBS"
10394 for ac_func in mousemask
10395 do :
10396 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
10397 if test "x$ac_cv_func_mousemask" = xyes; then :
10398 cat >>confdefs.h <<_ACEOF
10399 #define HAVE_MOUSEMASK 1
10400 _ACEOF
10403 done
10405 LIBS="$ac_save_LIBS"
10406 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
10407 case "x$with_curses" in
10408 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
10409 xno) ;;
10410 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
10411 This is an error since --with-curses was requested." "$LINENO" 5 ;;
10412 esac
10415 if test "x$with_sane" != "xno"
10416 then
10417 ac_save_CPPFLAGS="$CPPFLAGS"
10418 if test -n "$SANE_CFLAGS"; then :
10420 elif test -n "$PKG_CONFIG"; then :
10421 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
10423 SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
10424 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
10425 if test -n "$SANE_LIBS"; then :
10427 elif test -n "$PKG_CONFIG"; then :
10428 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
10430 SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
10432 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
10433 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
10435 $as_echo_n "checking for -lsane... " >&6; }
10436 if ${ac_cv_lib_soname_sane+:} false; then :
10437 $as_echo_n "(cached) " >&6
10438 else
10439 ac_check_soname_save_LIBS=$LIBS
10440 LIBS="-lsane $SANE_LIBS $LIBS"
10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h. */
10444 /* Override any GCC internal prototype to avoid an error.
10445 Use char because int might match the return type of a GCC
10446 builtin and then its argument prototype would still apply. */
10447 #ifdef __cplusplus
10448 extern "C"
10449 #endif
10450 char sane_init ();
10452 main ()
10454 return sane_init ();
10456 return 0;
10458 _ACEOF
10459 if ac_fn_c_try_link "$LINENO"; then :
10460 case "$LIBEXT" in
10461 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10462 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'` ;;
10463 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10464 if test "x$ac_cv_lib_soname_sane" = x; then :
10465 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10466 fi ;;
10467 esac
10469 rm -f core conftest.err conftest.$ac_objext \
10470 conftest$ac_exeext conftest.$ac_ext
10471 LIBS=$ac_check_soname_save_LIBS
10473 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10475 $as_echo "not found" >&6; }
10476 SANE_CFLAGS=""
10477 else
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
10479 $as_echo "$ac_cv_lib_soname_sane" >&6; }
10481 cat >>confdefs.h <<_ACEOF
10482 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10483 _ACEOF
10487 else
10488 SANE_CFLAGS=""
10492 CPPFLAGS="$ac_save_CPPFLAGS"
10494 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10495 case "x$with_sane" in
10496 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10497 xno) ;;
10498 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10499 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10500 esac
10503 if test "x$with_v4l" != "xno"
10504 then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10506 $as_echo_n "checking for -lv4l1... " >&6; }
10507 if ${ac_cv_lib_soname_v4l1+:} false; then :
10508 $as_echo_n "(cached) " >&6
10509 else
10510 ac_check_soname_save_LIBS=$LIBS
10511 LIBS="-lv4l1 $LIBS"
10512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513 /* end confdefs.h. */
10515 /* Override any GCC internal prototype to avoid an error.
10516 Use char because int might match the return type of a GCC
10517 builtin and then its argument prototype would still apply. */
10518 #ifdef __cplusplus
10519 extern "C"
10520 #endif
10521 char v4l1_open ();
10523 main ()
10525 return v4l1_open ();
10527 return 0;
10529 _ACEOF
10530 if ac_fn_c_try_link "$LINENO"; then :
10531 case "$LIBEXT" in
10532 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10533 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'` ;;
10534 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10535 if test "x$ac_cv_lib_soname_v4l1" = x; then :
10536 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10537 fi ;;
10538 esac
10540 rm -f core conftest.err conftest.$ac_objext \
10541 conftest$ac_exeext conftest.$ac_ext
10542 LIBS=$ac_check_soname_save_LIBS
10544 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10546 $as_echo "not found" >&6; }
10548 else
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10550 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10552 cat >>confdefs.h <<_ACEOF
10553 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10554 _ACEOF
10559 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10560 case "x$with_v4l" in
10561 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10562 xno) ;;
10563 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10564 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10565 esac
10568 if test "x$with_gphoto" != "xno"
10569 then
10570 ac_save_CPPFLAGS="$CPPFLAGS"
10571 if test -n "$GPHOTO2_CFLAGS"; then :
10573 elif test -n "$PKG_CONFIG"; then :
10574 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
10576 GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
10577 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
10578 if test -n "$GPHOTO2_LIBS"; then :
10580 elif test -n "$PKG_CONFIG"; then :
10581 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
10583 GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
10584 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
10585 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10586 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10588 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10589 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10590 $as_echo_n "(cached) " >&6
10591 else
10592 ac_check_lib_save_LIBS=$LIBS
10593 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
10594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595 /* end confdefs.h. */
10597 /* Override any GCC internal prototype to avoid an error.
10598 Use char because int might match the return type of a GCC
10599 builtin and then its argument prototype would still apply. */
10600 #ifdef __cplusplus
10601 extern "C"
10602 #endif
10603 char gp_camera_new ();
10605 main ()
10607 return gp_camera_new ();
10609 return 0;
10611 _ACEOF
10612 if ac_fn_c_try_link "$LINENO"; then :
10613 ac_cv_lib_gphoto2_gp_camera_new=yes
10614 else
10615 ac_cv_lib_gphoto2_gp_camera_new=no
10617 rm -f core conftest.err conftest.$ac_objext \
10618 conftest$ac_exeext conftest.$ac_ext
10619 LIBS=$ac_check_lib_save_LIBS
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10622 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10623 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10625 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10627 else
10628 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
10631 else
10632 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
10636 if test -n "$GPHOTO2_PORT_CFLAGS"; then :
10638 elif test -n "$PKG_CONFIG"; then :
10639 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
10641 GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
10642 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
10643 if test -n "$GPHOTO2_PORT_LIBS"; then :
10645 elif test -n "$PKG_CONFIG"; then :
10646 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
10648 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
10649 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
10650 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
10651 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
10653 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
10654 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
10655 $as_echo_n "(cached) " >&6
10656 else
10657 ac_check_lib_save_LIBS=$LIBS
10658 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10662 /* Override any GCC internal prototype to avoid an error.
10663 Use char because int might match the return type of a GCC
10664 builtin and then its argument prototype would still apply. */
10665 #ifdef __cplusplus
10666 extern "C"
10667 #endif
10668 char gp_port_info_list_new ();
10670 main ()
10672 return gp_port_info_list_new ();
10674 return 0;
10676 _ACEOF
10677 if ac_fn_c_try_link "$LINENO"; then :
10678 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
10679 else
10680 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
10682 rm -f core conftest.err conftest.$ac_objext \
10683 conftest$ac_exeext conftest.$ac_ext
10684 LIBS=$ac_check_lib_save_LIBS
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
10687 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
10688 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
10690 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
10692 else
10693 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
10696 else
10697 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
10701 CPPFLAGS="$ac_save_CPPFLAGS"
10703 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10704 case "x$with_gphoto" in
10705 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10706 xno) ;;
10707 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10708 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10709 esac
10711 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
10712 case "x$with_gphoto" in
10713 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
10714 xno) ;;
10715 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
10716 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10717 esac
10721 if test "$ac_cv_header_resolv_h" = "yes"
10722 then
10723 ac_save_LIBS="$LIBS"
10724 for lib in '' -lresolv
10726 LIBS="$lib $ac_save_LIBS"
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10729 #ifdef HAVE_NETINET_IN_H
10730 #include <netinet/in.h>
10731 #endif
10732 #include <resolv.h>
10734 main ()
10736 res_query("foo",ns_c_in,0,0,0);
10738 return 0;
10740 _ACEOF
10741 if ac_fn_c_try_link "$LINENO"; then :
10743 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10745 RESOLVLIBS="$lib"
10748 rm -f core conftest.err conftest.$ac_objext \
10749 conftest$ac_exeext conftest.$ac_ext
10750 if test "${RESOLVLIBS+set}" = set; then
10751 break
10753 done
10754 LIBS="$ac_save_LIBS"
10757 if test "x$with_lcms" != "xno"
10758 then
10759 ac_save_CPPFLAGS="$CPPFLAGS"
10760 if test -n "$LCMS_CFLAGS"; then :
10762 elif test -n "$PKG_CONFIG"; then :
10763 LCMS_CFLAGS=`$PKG_CONFIG --cflags lcms 2>/dev/null`
10766 CPPFLAGS="$CPPFLAGS $LCMS_CFLAGS"
10767 if test -n "$LCMS_LIBS"; then :
10769 elif test -n "$PKG_CONFIG"; then :
10770 LCMS_LIBS=`$PKG_CONFIG --libs lcms 2>/dev/null`
10773 LCMS_LIBS=${LCMS_LIBS:-"-llcms"}
10774 for ac_header in lcms.h lcms/lcms.h
10775 do :
10776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10777 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10778 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10779 cat >>confdefs.h <<_ACEOF
10780 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10781 _ACEOF
10785 done
10787 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10788 then
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10790 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10791 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10792 $as_echo_n "(cached) " >&6
10793 else
10794 ac_check_lib_save_LIBS=$LIBS
10795 LIBS="-llcms $LIBS"
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10799 /* Override any GCC internal prototype to avoid an error.
10800 Use char because int might match the return type of a GCC
10801 builtin and then its argument prototype would still apply. */
10802 #ifdef __cplusplus
10803 extern "C"
10804 #endif
10805 char cmsOpenProfileFromFile ();
10807 main ()
10809 return cmsOpenProfileFromFile ();
10811 return 0;
10813 _ACEOF
10814 if ac_fn_c_try_link "$LINENO"; then :
10815 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10816 else
10817 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10819 rm -f core conftest.err conftest.$ac_objext \
10820 conftest$ac_exeext conftest.$ac_ext
10821 LIBS=$ac_check_lib_save_LIBS
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10824 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10825 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10827 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10829 else
10830 LCMS_LIBS=""
10833 else
10834 LCMS_CFLAGS=""
10835 LCMS_LIBS=""
10837 CPPFLAGS="$ac_save_CPPFLAGS"
10839 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10840 case "x$with_cms" in
10841 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10842 xno) ;;
10843 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10844 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10845 esac
10848 if test "x$with_freetype" != "xno"
10849 then
10850 ac_save_CPPFLAGS="$CPPFLAGS"
10851 if test -n "$FREETYPE_CFLAGS"; then :
10853 elif test -n "$PKG_CONFIG"; then :
10854 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
10856 FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
10857 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
10858 if test -n "$FREETYPE_LIBS"; then :
10860 elif test -n "$PKG_CONFIG"; then :
10861 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
10863 FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
10864 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10866 $as_echo_n "checking for -lfreetype... " >&6; }
10867 if ${ac_cv_lib_soname_freetype+:} false; then :
10868 $as_echo_n "(cached) " >&6
10869 else
10870 ac_check_soname_save_LIBS=$LIBS
10871 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h. */
10875 /* Override any GCC internal prototype to avoid an error.
10876 Use char because int might match the return type of a GCC
10877 builtin and then its argument prototype would still apply. */
10878 #ifdef __cplusplus
10879 extern "C"
10880 #endif
10881 char FT_Init_FreeType ();
10883 main ()
10885 return FT_Init_FreeType ();
10887 return 0;
10889 _ACEOF
10890 if ac_fn_c_try_link "$LINENO"; then :
10891 case "$LIBEXT" in
10892 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10893 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'` ;;
10894 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10895 if test "x$ac_cv_lib_soname_freetype" = x; then :
10896 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10897 fi ;;
10898 esac
10900 rm -f core conftest.err conftest.$ac_objext \
10901 conftest$ac_exeext conftest.$ac_ext
10902 LIBS=$ac_check_soname_save_LIBS
10904 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10906 $as_echo "not found" >&6; }
10907 ft_lib=no
10908 else
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10910 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10912 cat >>confdefs.h <<_ACEOF
10913 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10914 _ACEOF
10916 ft_lib=yes
10918 if test "$ft_lib" = "yes"
10919 then
10920 for ac_header in ft2build.h \
10921 freetype/freetype.h \
10922 freetype/ftglyph.h \
10923 freetype/fttypes.h \
10924 freetype/tttables.h \
10925 freetype/ftsnames.h \
10926 freetype/ttnameid.h \
10927 freetype/ftoutln.h \
10928 freetype/ftwinfnt.h \
10929 freetype/ftmodapi.h \
10930 freetype/ftlcdfil.h
10931 do :
10932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10933 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10934 # include <ft2build.h>
10935 #endif
10937 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10938 cat >>confdefs.h <<_ACEOF
10939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10940 _ACEOF
10944 done
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948 #include <ft2build.h>
10949 #include <freetype/fttrigon.h>
10950 _ACEOF
10951 if ac_fn_c_try_cpp "$LINENO"; then :
10953 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10955 wine_cv_fttrigon=yes
10956 else
10957 wine_cv_fttrigon=no
10959 rm -f conftest.err conftest.i conftest.$ac_ext
10960 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10962 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10964 cat >>confdefs.h <<_ACEOF
10965 #define HAVE_FT_TRUETYPEENGINETYPE 1
10966 _ACEOF
10971 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10972 then
10974 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10976 else
10977 FREETYPE_LIBS=""
10979 else
10980 FREETYPE_LIBS=""
10982 CPPFLAGS="$ac_save_CPPFLAGS"
10984 if test "x$ac_cv_header_freetype_freetype_h" != xyes -o "x$wine_cv_fttrigon" != xyes; then :
10985 case "x$with_freetype" in
10986 xno) ;;
10987 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10988 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10989 esac
10991 test "x$ac_cv_header_freetype_freetype_h" = xyes -a "x$wine_cv_fttrigon" = xyes || enable_fonts=${enable_fonts:-no}
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10994 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10995 if ${ac_cv_c_ppdev+:} false; then :
10996 $as_echo_n "(cached) " >&6
10997 else
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11000 #ifdef HAVE_SYS_IOCTL_H
11001 # include <sys/ioctl.h>
11002 #endif
11003 #include <linux/ppdev.h>
11005 main ()
11007 ioctl (1,PPCLAIM,0)
11009 return 0;
11011 _ACEOF
11012 if ac_fn_c_try_compile "$LINENO"; then :
11013 ac_cv_c_ppdev="yes"
11014 else
11015 ac_cv_c_ppdev="no"
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
11020 $as_echo "$ac_cv_c_ppdev" >&6; }
11021 if test "$ac_cv_c_ppdev" = "yes"
11022 then
11024 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
11028 ac_wine_check_funcs_save_LIBS="$LIBS"
11029 LIBS="$LIBS $LIBPTHREAD"
11030 for ac_func in \
11031 pthread_attr_get_np \
11032 pthread_getattr_np \
11033 pthread_getthreadid_np \
11034 pthread_get_stackaddr_np \
11035 pthread_get_stacksize_np
11036 do :
11037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11038 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11039 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11040 cat >>confdefs.h <<_ACEOF
11041 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11042 _ACEOF
11045 done
11047 LIBS="$ac_wine_check_funcs_save_LIBS"
11049 if test "$ac_cv_header_zlib_h" = "yes"
11050 then
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11052 $as_echo_n "checking for inflate in -lz... " >&6; }
11053 if ${ac_cv_lib_z_inflate+:} false; then :
11054 $as_echo_n "(cached) " >&6
11055 else
11056 ac_check_lib_save_LIBS=$LIBS
11057 LIBS="-lz $LIBS"
11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11061 /* Override any GCC internal prototype to avoid an error.
11062 Use char because int might match the return type of a GCC
11063 builtin and then its argument prototype would still apply. */
11064 #ifdef __cplusplus
11065 extern "C"
11066 #endif
11067 char inflate ();
11069 main ()
11071 return inflate ();
11073 return 0;
11075 _ACEOF
11076 if ac_fn_c_try_link "$LINENO"; then :
11077 ac_cv_lib_z_inflate=yes
11078 else
11079 ac_cv_lib_z_inflate=no
11081 rm -f core conftest.err conftest.$ac_objext \
11082 conftest$ac_exeext conftest.$ac_ext
11083 LIBS=$ac_check_lib_save_LIBS
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
11086 $as_echo "$ac_cv_lib_z_inflate" >&6; }
11087 if test "x$ac_cv_lib_z_inflate" = xyes; then :
11089 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
11091 ZLIB="-lz"
11096 if test "x$ZLIB" = "x"; then :
11097 case "x$with_zlib" in
11098 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
11099 xno) ;;
11100 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
11101 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
11102 esac
11105 if test "x$enable_tools" != xno
11106 then
11107 if test "$ac_cv_header_gettext_po_h" = "yes"
11108 then
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
11110 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
11111 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
11112 $as_echo_n "(cached) " >&6
11113 else
11114 ac_check_lib_save_LIBS=$LIBS
11115 LIBS="-lgettextpo $LIBS"
11116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h. */
11119 /* Override any GCC internal prototype to avoid an error.
11120 Use char because int might match the return type of a GCC
11121 builtin and then its argument prototype would still apply. */
11122 #ifdef __cplusplus
11123 extern "C"
11124 #endif
11125 char po_message_msgctxt ();
11127 main ()
11129 return po_message_msgctxt ();
11131 return 0;
11133 _ACEOF
11134 if ac_fn_c_try_link "$LINENO"; then :
11135 ac_cv_lib_gettextpo_po_message_msgctxt=yes
11136 else
11137 ac_cv_lib_gettextpo_po_message_msgctxt=no
11139 rm -f core conftest.err conftest.$ac_objext \
11140 conftest$ac_exeext conftest.$ac_ext
11141 LIBS=$ac_check_lib_save_LIBS
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
11144 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
11145 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
11147 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
11149 LIBGETTEXTPO="-lgettextpo"
11154 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
11155 case "x$with_gettextpo" in
11156 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
11157 xno) ;;
11158 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
11159 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
11160 esac
11164 if test "x$with_gstreamer" != "xno"
11165 then
11166 ac_save_CPPFLAGS="$CPPFLAGS"
11167 if test -n "$GSTREAMER_CFLAGS"; then :
11169 elif test -n "$PKG_CONFIG"; then :
11170 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
11173 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
11174 if test -n "$GSTREAMER_LIBS"; then :
11176 elif test -n "$PKG_CONFIG"; then :
11177 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
11181 ac_gst_incl=""
11182 for i in $GSTREAMER_CFLAGS
11184 case "$i" in
11185 -I*) ac_gst_incl="$ac_gst_incl $i";;
11186 esac
11187 done
11188 GSTREAMER_CFLAGS=$ac_gst_incl
11189 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
11190 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
11191 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
11192 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
11193 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
11195 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
11196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11197 /* end confdefs.h. */
11198 #include <gst/app/gstappsink.h>
11200 main ()
11202 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
11204 return 0;
11206 _ACEOF
11207 if ac_fn_c_try_compile "$LINENO"; then :
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11209 $as_echo "yes" >&6; }
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
11211 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
11212 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
11213 $as_echo_n "(cached) " >&6
11214 else
11215 ac_check_lib_save_LIBS=$LIBS
11216 LIBS="-lgstreamer-0.10 $LIBS"
11217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11220 /* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11223 #ifdef __cplusplus
11224 extern "C"
11225 #endif
11226 char gst_pad_get_caps_reffed ();
11228 main ()
11230 return gst_pad_get_caps_reffed ();
11232 return 0;
11234 _ACEOF
11235 if ac_fn_c_try_link "$LINENO"; then :
11236 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
11237 else
11238 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
11240 rm -f core conftest.err conftest.$ac_objext \
11241 conftest$ac_exeext conftest.$ac_ext
11242 LIBS=$ac_check_lib_save_LIBS
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
11245 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
11246 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
11248 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
11249 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
11250 $as_echo_n "(cached) " >&6
11251 else
11252 ac_check_lib_save_LIBS=$LIBS
11253 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11257 /* Override any GCC internal prototype to avoid an error.
11258 Use char because int might match the return type of a GCC
11259 builtin and then its argument prototype would still apply. */
11260 #ifdef __cplusplus
11261 extern "C"
11262 #endif
11263 char gst_app_buffer_new ();
11265 main ()
11267 return gst_app_buffer_new ();
11269 return 0;
11271 _ACEOF
11272 if ac_fn_c_try_link "$LINENO"; then :
11273 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
11274 else
11275 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
11277 rm -f core conftest.err conftest.$ac_objext \
11278 conftest$ac_exeext conftest.$ac_ext
11279 LIBS=$ac_check_lib_save_LIBS
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
11282 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
11283 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
11289 else
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291 $as_echo "no" >&6; }
11293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11297 else
11298 GSTREAMER_CFLAGS=""
11302 CPPFLAGS="$ac_save_CPPFLAGS"
11304 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
11305 case "x$with_gstreamer" in
11306 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
11307 xno) ;;
11308 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
11309 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
11310 esac
11312 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
11314 ALSALIBS=""
11316 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11317 then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
11319 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
11320 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
11321 $as_echo_n "(cached) " >&6
11322 else
11323 ac_check_lib_save_LIBS=$LIBS
11324 LIBS="-lasound $LIBS"
11325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11326 /* end confdefs.h. */
11328 /* Override any GCC internal prototype to avoid an error.
11329 Use char because int might match the return type of a GCC
11330 builtin and then its argument prototype would still apply. */
11331 #ifdef __cplusplus
11332 extern "C"
11333 #endif
11334 char snd_pcm_hw_params_get_access_mask ();
11336 main ()
11338 return snd_pcm_hw_params_get_access_mask ();
11340 return 0;
11342 _ACEOF
11343 if ac_fn_c_try_link "$LINENO"; then :
11344 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
11345 else
11346 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
11348 rm -f core conftest.err conftest.$ac_objext \
11349 conftest$ac_exeext conftest.$ac_ext
11350 LIBS=$ac_check_lib_save_LIBS
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
11353 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
11354 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11357 #ifdef HAVE_ALSA_ASOUNDLIB_H
11358 #include <alsa/asoundlib.h>
11359 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11360 #include <sys/asoundlib.h>
11361 #endif
11363 main ()
11365 snd_pcm_hw_params_get_access_mask(NULL, NULL)
11367 return 0;
11369 _ACEOF
11370 if ac_fn_c_try_compile "$LINENO"; then :
11371 ALSALIBS="-lasound"
11373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 if test "x$with_oss" != xno
11379 then
11380 ac_save_CPPFLAGS="$CPPFLAGS"
11381 if test -f /etc/oss.conf
11382 then
11383 . /etc/oss.conf
11385 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
11386 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
11387 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11388 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
11389 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
11391 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
11393 cat >>confdefs.h <<_ACEOF
11394 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
11395 _ACEOF
11397 OSS4INCL="$ac_oss_incl"
11404 CPPFLAGS="$ac_save_CPPFLAGS"
11405 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
11406 then
11407 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
11412 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
11413 then
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
11415 $as_echo_n "checking for -lcapi20... " >&6; }
11416 if ${ac_cv_lib_soname_capi20+:} false; then :
11417 $as_echo_n "(cached) " >&6
11418 else
11419 ac_check_soname_save_LIBS=$LIBS
11420 LIBS="-lcapi20 $LIBS"
11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11424 /* Override any GCC internal prototype to avoid an error.
11425 Use char because int might match the return type of a GCC
11426 builtin and then its argument prototype would still apply. */
11427 #ifdef __cplusplus
11428 extern "C"
11429 #endif
11430 char capi20_register ();
11432 main ()
11434 return capi20_register ();
11436 return 0;
11438 _ACEOF
11439 if ac_fn_c_try_link "$LINENO"; then :
11440 case "$LIBEXT" in
11441 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11442 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'` ;;
11443 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11444 if test "x$ac_cv_lib_soname_capi20" = x; then :
11445 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11446 fi ;;
11447 esac
11449 rm -f core conftest.err conftest.$ac_objext \
11450 conftest$ac_exeext conftest.$ac_ext
11451 LIBS=$ac_check_soname_save_LIBS
11453 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11455 $as_echo "not found" >&6; }
11457 else
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11459 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11461 cat >>confdefs.h <<_ACEOF
11462 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11463 _ACEOF
11468 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11469 case "x$with_capi" in
11470 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11471 xno) ;;
11472 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11473 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11474 esac
11477 CUPSINCL=""
11479 if test "x$with_cups" != "xno"
11480 then
11481 ac_save_CPPFLAGS="$CPPFLAGS"
11482 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11483 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11484 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11485 for ac_header in cups/cups.h
11486 do :
11487 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11488 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11489 cat >>confdefs.h <<_ACEOF
11490 #define HAVE_CUPS_CUPS_H 1
11491 _ACEOF
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11493 $as_echo_n "checking for -lcups... " >&6; }
11494 if ${ac_cv_lib_soname_cups+:} false; then :
11495 $as_echo_n "(cached) " >&6
11496 else
11497 ac_check_soname_save_LIBS=$LIBS
11498 LIBS="-lcups $ac_cups_libs $LIBS"
11499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11500 /* end confdefs.h. */
11502 /* Override any GCC internal prototype to avoid an error.
11503 Use char because int might match the return type of a GCC
11504 builtin and then its argument prototype would still apply. */
11505 #ifdef __cplusplus
11506 extern "C"
11507 #endif
11508 char cupsGetDefault ();
11510 main ()
11512 return cupsGetDefault ();
11514 return 0;
11516 _ACEOF
11517 if ac_fn_c_try_link "$LINENO"; then :
11518 case "$LIBEXT" in
11519 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11520 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'` ;;
11521 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11522 if test "x$ac_cv_lib_soname_cups" = x; then :
11523 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11524 fi ;;
11525 esac
11527 rm -f core conftest.err conftest.$ac_objext \
11528 conftest$ac_exeext conftest.$ac_ext
11529 LIBS=$ac_check_soname_save_LIBS
11531 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11533 $as_echo "not found" >&6; }
11535 else
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11537 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11539 cat >>confdefs.h <<_ACEOF
11540 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11541 _ACEOF
11543 CUPSINCL="$ac_cups_cflags"
11547 done
11549 CPPFLAGS="$ac_save_CPPFLAGS"
11551 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11552 case "x$with_cups" in
11553 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11554 xno) ;;
11555 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11556 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11557 esac
11560 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11561 then
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11563 $as_echo_n "checking for -lfontconfig... " >&6; }
11564 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11565 $as_echo_n "(cached) " >&6
11566 else
11567 ac_check_soname_save_LIBS=$LIBS
11568 LIBS="-lfontconfig $LIBS"
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h. */
11572 /* Override any GCC internal prototype to avoid an error.
11573 Use char because int might match the return type of a GCC
11574 builtin and then its argument prototype would still apply. */
11575 #ifdef __cplusplus
11576 extern "C"
11577 #endif
11578 char FcInit ();
11580 main ()
11582 return FcInit ();
11584 return 0;
11586 _ACEOF
11587 if ac_fn_c_try_link "$LINENO"; then :
11588 case "$LIBEXT" in
11589 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11590 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'` ;;
11591 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11592 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11593 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11594 fi ;;
11595 esac
11597 rm -f core conftest.err conftest.$ac_objext \
11598 conftest$ac_exeext conftest.$ac_ext
11599 LIBS=$ac_check_soname_save_LIBS
11601 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11603 $as_echo "not found" >&6; }
11605 else
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11607 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11609 cat >>confdefs.h <<_ACEOF
11610 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11611 _ACEOF
11615 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11616 then
11617 ac_save_CPPFLAGS="$CPPFLAGS"
11618 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11619 $as_unset ac_cv_header_fontconfig_fontconfig_h
11620 for ac_header in fontconfig/fontconfig.h
11621 do :
11622 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11623 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11624 cat >>confdefs.h <<_ACEOF
11625 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11626 _ACEOF
11630 done
11632 CPPFLAGS="$ac_save_CPPFLAGS"
11633 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11634 then
11635 FONTCONFIGINCL="$X_CFLAGS"
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11638 $as_echo_n "checking for -lfontconfig... " >&6; }
11639 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 ac_check_soname_save_LIBS=$LIBS
11643 LIBS="-lfontconfig $X_LIBS $LIBS"
11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11647 /* Override any GCC internal prototype to avoid an error.
11648 Use char because int might match the return type of a GCC
11649 builtin and then its argument prototype would still apply. */
11650 #ifdef __cplusplus
11651 extern "C"
11652 #endif
11653 char FcInit ();
11655 main ()
11657 return FcInit ();
11659 return 0;
11661 _ACEOF
11662 if ac_fn_c_try_link "$LINENO"; then :
11663 case "$LIBEXT" in
11664 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11665 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'` ;;
11666 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11667 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11668 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11669 fi ;;
11670 esac
11672 rm -f core conftest.err conftest.$ac_objext \
11673 conftest$ac_exeext conftest.$ac_ext
11674 LIBS=$ac_check_soname_save_LIBS
11676 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11678 $as_echo "not found" >&6; }
11680 else
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11682 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11684 cat >>confdefs.h <<_ACEOF
11685 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11686 _ACEOF
11692 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11693 case "x$with_fontconfig" in
11694 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11695 xno) ;;
11696 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11697 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11698 esac
11701 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11702 then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11704 $as_echo_n "checking for -lgsm... " >&6; }
11705 if ${ac_cv_lib_soname_gsm+:} false; then :
11706 $as_echo_n "(cached) " >&6
11707 else
11708 ac_check_soname_save_LIBS=$LIBS
11709 LIBS="-lgsm $LIBS"
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11713 /* Override any GCC internal prototype to avoid an error.
11714 Use char because int might match the return type of a GCC
11715 builtin and then its argument prototype would still apply. */
11716 #ifdef __cplusplus
11717 extern "C"
11718 #endif
11719 char gsm_create ();
11721 main ()
11723 return gsm_create ();
11725 return 0;
11727 _ACEOF
11728 if ac_fn_c_try_link "$LINENO"; then :
11729 case "$LIBEXT" in
11730 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11731 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'` ;;
11732 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11733 if test "x$ac_cv_lib_soname_gsm" = x; then :
11734 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11735 fi ;;
11736 esac
11738 rm -f core conftest.err conftest.$ac_objext \
11739 conftest$ac_exeext conftest.$ac_ext
11740 LIBS=$ac_check_soname_save_LIBS
11742 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11744 $as_echo "not found" >&6; }
11746 else
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11748 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11750 cat >>confdefs.h <<_ACEOF
11751 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11752 _ACEOF
11757 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11758 case "x$with_gsm" in
11759 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11760 xno) ;;
11761 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11762 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11763 esac
11766 if test "$ac_cv_header_jpeglib_h" = "yes"
11767 then
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11769 $as_echo_n "checking for -ljpeg... " >&6; }
11770 if ${ac_cv_lib_soname_jpeg+:} false; then :
11771 $as_echo_n "(cached) " >&6
11772 else
11773 ac_check_soname_save_LIBS=$LIBS
11774 LIBS="-ljpeg $LIBS"
11775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776 /* end confdefs.h. */
11778 /* Override any GCC internal prototype to avoid an error.
11779 Use char because int might match the return type of a GCC
11780 builtin and then its argument prototype would still apply. */
11781 #ifdef __cplusplus
11782 extern "C"
11783 #endif
11784 char jpeg_start_decompress ();
11786 main ()
11788 return jpeg_start_decompress ();
11790 return 0;
11792 _ACEOF
11793 if ac_fn_c_try_link "$LINENO"; then :
11794 case "$LIBEXT" in
11795 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11796 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'` ;;
11797 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11798 if test "x$ac_cv_lib_soname_jpeg" = x; then :
11799 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11800 fi ;;
11801 esac
11803 rm -f core conftest.err conftest.$ac_objext \
11804 conftest$ac_exeext conftest.$ac_ext
11805 LIBS=$ac_check_soname_save_LIBS
11807 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11809 $as_echo "not found" >&6; }
11811 else
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11813 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11815 cat >>confdefs.h <<_ACEOF
11816 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11817 _ACEOF
11822 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11823 case "x$with_jpeg" in
11824 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11825 xno) ;;
11826 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11827 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11828 esac
11831 if test "x$with_png" != "xno"
11832 then
11833 ac_save_CPPFLAGS="$CPPFLAGS"
11834 if test -n "$PNG_CFLAGS"; then :
11836 elif test -n "$PKG_CONFIG"; then :
11837 PNG_CFLAGS=`$PKG_CONFIG --cflags libpng 2>/dev/null`
11839 PNG_CFLAGS=${PNG_CFLAGS:-$X_CFLAGS}
11840 CPPFLAGS="$CPPFLAGS $PNG_CFLAGS"
11841 if test -n "$PNG_LIBS"; then :
11843 elif test -n "$PKG_CONFIG"; then :
11844 PNG_LIBS=`$PKG_CONFIG --libs libpng 2>/dev/null`
11846 PNG_LIBS=${PNG_LIBS:-$X_LIBS}
11848 for ac_header in png.h
11849 do :
11850 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11851 if test "x$ac_cv_header_png_h" = xyes; then :
11852 cat >>confdefs.h <<_ACEOF
11853 #define HAVE_PNG_H 1
11854 _ACEOF
11858 done
11860 if test "$ac_cv_header_png_h" = "yes"
11861 then
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11863 $as_echo_n "checking for -lpng... " >&6; }
11864 if ${ac_cv_lib_soname_png+:} false; then :
11865 $as_echo_n "(cached) " >&6
11866 else
11867 ac_check_soname_save_LIBS=$LIBS
11868 LIBS="-lpng $PNG_LIBS -lm -lz $LIBS"
11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h. */
11872 /* Override any GCC internal prototype to avoid an error.
11873 Use char because int might match the return type of a GCC
11874 builtin and then its argument prototype would still apply. */
11875 #ifdef __cplusplus
11876 extern "C"
11877 #endif
11878 char png_create_read_struct ();
11880 main ()
11882 return png_create_read_struct ();
11884 return 0;
11886 _ACEOF
11887 if ac_fn_c_try_link "$LINENO"; then :
11888 case "$LIBEXT" in
11889 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11890 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'` ;;
11891 *) 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'`
11892 if test "x$ac_cv_lib_soname_png" = x; then :
11893 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11894 fi ;;
11895 esac
11897 rm -f core conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
11899 LIBS=$ac_check_soname_save_LIBS
11901 if test "x$ac_cv_lib_soname_png" = "x"; then :
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11903 $as_echo "not found" >&6; }
11904 PNG_CFLAGS=""
11905 else
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11907 $as_echo "$ac_cv_lib_soname_png" >&6; }
11909 cat >>confdefs.h <<_ACEOF
11910 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11911 _ACEOF
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11915 #include <png.h>
11917 main ()
11919 typeof(png_set_expand_gray_1_2_4_to_8) *p
11921 return 0;
11923 _ACEOF
11924 if ac_fn_c_try_compile "$LINENO"; then :
11926 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11931 else
11932 PNG_CFLAGS=""
11934 CPPFLAGS="$ac_save_CPPFLAGS"
11936 if test "x$ac_cv_lib_soname_png" = "x"; then :
11937 case "x$with_png" in
11938 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11939 xno) ;;
11940 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11941 This is an error since --with-png was requested." "$LINENO" 5 ;;
11942 esac
11945 if test "$ac_cv_header_tiffio_h" = "yes"
11946 then
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11948 $as_echo_n "checking for -ltiff... " >&6; }
11949 if ${ac_cv_lib_soname_tiff+:} false; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 ac_check_soname_save_LIBS=$LIBS
11953 LIBS="-ltiff $LIBS"
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11957 /* Override any GCC internal prototype to avoid an error.
11958 Use char because int might match the return type of a GCC
11959 builtin and then its argument prototype would still apply. */
11960 #ifdef __cplusplus
11961 extern "C"
11962 #endif
11963 char TIFFClientOpen ();
11965 main ()
11967 return TIFFClientOpen ();
11969 return 0;
11971 _ACEOF
11972 if ac_fn_c_try_link "$LINENO"; then :
11973 case "$LIBEXT" in
11974 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11975 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'` ;;
11976 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11977 if test "x$ac_cv_lib_soname_tiff" = x; then :
11978 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11979 fi ;;
11980 esac
11982 rm -f core conftest.err conftest.$ac_objext \
11983 conftest$ac_exeext conftest.$ac_ext
11984 LIBS=$ac_check_soname_save_LIBS
11986 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11988 $as_echo "not found" >&6; }
11990 else
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11992 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11994 cat >>confdefs.h <<_ACEOF
11995 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11996 _ACEOF
12001 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12002 case "x$with_tiff" in
12003 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
12004 xno) ;;
12005 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
12006 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
12007 esac
12010 if test "$ac_cv_header_mpg123_h" = "yes"
12011 then
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
12013 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
12014 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 ac_check_lib_save_LIBS=$LIBS
12018 LIBS="-lmpg123 $LIBS"
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12022 /* Override any GCC internal prototype to avoid an error.
12023 Use char because int might match the return type of a GCC
12024 builtin and then its argument prototype would still apply. */
12025 #ifdef __cplusplus
12026 extern "C"
12027 #endif
12028 char mpg123_feed ();
12030 main ()
12032 return mpg123_feed ();
12034 return 0;
12036 _ACEOF
12037 if ac_fn_c_try_link "$LINENO"; then :
12038 ac_cv_lib_mpg123_mpg123_feed=yes
12039 else
12040 ac_cv_lib_mpg123_mpg123_feed=no
12042 rm -f core conftest.err conftest.$ac_objext \
12043 conftest$ac_exeext conftest.$ac_ext
12044 LIBS=$ac_check_lib_save_LIBS
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
12047 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
12048 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
12049 LIBMPG123="-lmpg123"
12054 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
12055 case "x$with_mpg123" in
12056 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
12057 xno) ;;
12058 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
12059 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
12060 esac
12062 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}
12064 if test "$ac_cv_header_AL_al_h" = "yes"
12065 then
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
12067 $as_echo_n "checking for -lopenal... " >&6; }
12068 if ${ac_cv_lib_soname_openal+:} false; then :
12069 $as_echo_n "(cached) " >&6
12070 else
12071 ac_check_soname_save_LIBS=$LIBS
12072 LIBS="-lopenal $LIBS"
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12076 /* Override any GCC internal prototype to avoid an error.
12077 Use char because int might match the return type of a GCC
12078 builtin and then its argument prototype would still apply. */
12079 #ifdef __cplusplus
12080 extern "C"
12081 #endif
12082 char alGetSource3i ();
12084 main ()
12086 return alGetSource3i ();
12088 return 0;
12090 _ACEOF
12091 if ac_fn_c_try_link "$LINENO"; then :
12092 case "$LIBEXT" in
12093 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12094 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'` ;;
12095 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12096 if test "x$ac_cv_lib_soname_openal" = x; then :
12097 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12098 fi ;;
12099 esac
12101 rm -f core conftest.err conftest.$ac_objext \
12102 conftest$ac_exeext conftest.$ac_ext
12103 LIBS=$ac_check_soname_save_LIBS
12105 if test "x$ac_cv_lib_soname_openal" = "x"; then :
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12107 $as_echo "not found" >&6; }
12109 else
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
12111 $as_echo "$ac_cv_lib_soname_openal" >&6; }
12113 cat >>confdefs.h <<_ACEOF
12114 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
12115 _ACEOF
12117 LIBOPENAL="-lopenal"
12119 ac_cv_lib_openal=yes
12121 cat >>confdefs.h <<_ACEOF
12122 #define HAVE_OPENAL 1
12123 _ACEOF
12127 if test "x$ac_cv_lib_openal" != xyes; then :
12128 case "x$with_openal" in
12129 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
12130 xno) ;;
12131 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
12132 This is an error since --with-openal was requested." "$LINENO" 5 ;;
12133 esac
12135 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
12137 if test "$ac_cv_header_kstat_h" = "yes"
12138 then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12140 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12141 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12142 $as_echo_n "(cached) " >&6
12143 else
12144 ac_check_lib_save_LIBS=$LIBS
12145 LIBS="-lkstat $LIBS"
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h. */
12149 /* Override any GCC internal prototype to avoid an error.
12150 Use char because int might match the return type of a GCC
12151 builtin and then its argument prototype would still apply. */
12152 #ifdef __cplusplus
12153 extern "C"
12154 #endif
12155 char kstat_open ();
12157 main ()
12159 return kstat_open ();
12161 return 0;
12163 _ACEOF
12164 if ac_fn_c_try_link "$LINENO"; then :
12165 ac_cv_lib_kstat_kstat_open=yes
12166 else
12167 ac_cv_lib_kstat_kstat_open=no
12169 rm -f core conftest.err conftest.$ac_objext \
12170 conftest$ac_exeext conftest.$ac_ext
12171 LIBS=$ac_check_lib_save_LIBS
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12174 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12175 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12177 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12179 LIBKSTAT="-lkstat"
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12186 $as_echo_n "checking for -lodbc... " >&6; }
12187 if ${ac_cv_lib_soname_odbc+:} false; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 ac_check_soname_save_LIBS=$LIBS
12191 LIBS="-lodbc $LIBS"
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12195 /* Override any GCC internal prototype to avoid an error.
12196 Use char because int might match the return type of a GCC
12197 builtin and then its argument prototype would still apply. */
12198 #ifdef __cplusplus
12199 extern "C"
12200 #endif
12201 char SQLConnect ();
12203 main ()
12205 return SQLConnect ();
12207 return 0;
12209 _ACEOF
12210 if ac_fn_c_try_link "$LINENO"; then :
12211 case "$LIBEXT" in
12212 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12213 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'` ;;
12214 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12215 if test "x$ac_cv_lib_soname_odbc" = x; then :
12216 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12217 fi ;;
12218 esac
12220 rm -f core conftest.err conftest.$ac_objext \
12221 conftest$ac_exeext conftest.$ac_ext
12222 LIBS=$ac_check_soname_save_LIBS
12224 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12226 $as_echo "not found" >&6; }
12227 cat >>confdefs.h <<_ACEOF
12228 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12229 _ACEOF
12231 else
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12233 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12235 cat >>confdefs.h <<_ACEOF
12236 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12237 _ACEOF
12242 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12243 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12244 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
12245 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12247 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
12248 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
12249 "x$with_alsa$with_coreaudio$with_oss" != xnonono
12250 then
12251 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12255 EXTRACFLAGS=""
12257 if test "x${GCC}" = "xyes"
12258 then
12259 EXTRACFLAGS="-Wall -pipe"
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12262 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12263 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12264 $as_echo_n "(cached) " >&6
12265 else
12266 if test "$cross_compiling" = yes; then :
12267 ac_cv_c_gcc_strength_bug="yes"
12268 else
12269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270 /* end confdefs.h. */
12271 int L[4] = {0,1,2,3};
12273 main ()
12275 static int Array[3];
12276 unsigned int B = 3;
12277 int i;
12278 for(i=0; i<B; i++) Array[i] = i - 3;
12279 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12280 L[i] = 4;
12281 return (Array[1] != -2 || L[2] != 3)
12283 return 0;
12285 _ACEOF
12286 if ac_fn_c_try_run "$LINENO"; then :
12287 ac_cv_c_gcc_strength_bug="no"
12288 else
12289 ac_cv_c_gcc_strength_bug="yes"
12291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12292 conftest.$ac_objext conftest.beam conftest.$ac_ext
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12297 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12298 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12299 then
12300 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12304 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12305 if ${ac_cv_cflags__fno_builtin+:} false; then :
12306 $as_echo_n "(cached) " >&6
12307 else
12308 ac_wine_try_cflags_saved=$CFLAGS
12309 CFLAGS="$CFLAGS -fno-builtin"
12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12312 int main(int argc, char **argv) { return 0; }
12313 _ACEOF
12314 if ac_fn_c_try_link "$LINENO"; then :
12315 ac_cv_cflags__fno_builtin=yes
12316 else
12317 ac_cv_cflags__fno_builtin=no
12319 rm -f core conftest.err conftest.$ac_objext \
12320 conftest$ac_exeext conftest.$ac_ext
12321 CFLAGS=$ac_wine_try_cflags_saved
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12324 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12325 if test $ac_cv_cflags__fno_builtin = yes; then :
12326 BUILTINFLAG="-fno-builtin"
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12330 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12331 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12332 $as_echo_n "(cached) " >&6
12333 else
12334 ac_wine_try_cflags_saved=$CFLAGS
12335 CFLAGS="$CFLAGS -fno-strict-aliasing"
12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h. */
12338 int main(int argc, char **argv) { return 0; }
12339 _ACEOF
12340 if ac_fn_c_try_link "$LINENO"; then :
12341 ac_cv_cflags__fno_strict_aliasing=yes
12342 else
12343 ac_cv_cflags__fno_strict_aliasing=no
12345 rm -f core conftest.err conftest.$ac_objext \
12346 conftest$ac_exeext conftest.$ac_ext
12347 CFLAGS=$ac_wine_try_cflags_saved
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12350 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12351 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12352 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12355 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12356 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359 ac_wine_try_cflags_saved=$CFLAGS
12360 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12363 int main(int argc, char **argv) { return 0; }
12364 _ACEOF
12365 if ac_fn_c_try_link "$LINENO"; then :
12366 ac_cv_cflags__Wdeclaration_after_statement=yes
12367 else
12368 ac_cv_cflags__Wdeclaration_after_statement=no
12370 rm -f core conftest.err conftest.$ac_objext \
12371 conftest$ac_exeext conftest.$ac_ext
12372 CFLAGS=$ac_wine_try_cflags_saved
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12375 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12376 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12377 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12380 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12381 if ${ac_cv_cflags__Wempty_body+:} false; then :
12382 $as_echo_n "(cached) " >&6
12383 else
12384 ac_wine_try_cflags_saved=$CFLAGS
12385 CFLAGS="$CFLAGS -Wempty-body"
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12388 int main(int argc, char **argv) { return 0; }
12389 _ACEOF
12390 if ac_fn_c_try_link "$LINENO"; then :
12391 ac_cv_cflags__Wempty_body=yes
12392 else
12393 ac_cv_cflags__Wempty_body=no
12395 rm -f core conftest.err conftest.$ac_objext \
12396 conftest$ac_exeext conftest.$ac_ext
12397 CFLAGS=$ac_wine_try_cflags_saved
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12400 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12401 if test $ac_cv_cflags__Wempty_body = yes; then :
12402 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12405 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12406 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12407 $as_echo_n "(cached) " >&6
12408 else
12409 ac_wine_try_cflags_saved=$CFLAGS
12410 CFLAGS="$CFLAGS -Wignored-qualifiers"
12411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12412 /* end confdefs.h. */
12413 int main(int argc, char **argv) { return 0; }
12414 _ACEOF
12415 if ac_fn_c_try_link "$LINENO"; then :
12416 ac_cv_cflags__Wignored_qualifiers=yes
12417 else
12418 ac_cv_cflags__Wignored_qualifiers=no
12420 rm -f core conftest.err conftest.$ac_objext \
12421 conftest$ac_exeext conftest.$ac_ext
12422 CFLAGS=$ac_wine_try_cflags_saved
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12425 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12426 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12427 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12430 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12431 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 ac_wine_try_cflags_saved=$CFLAGS
12435 CFLAGS="$CFLAGS -Wstrict-prototypes"
12436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12438 int main(int argc, char **argv) { return 0; }
12439 _ACEOF
12440 if ac_fn_c_try_link "$LINENO"; then :
12441 ac_cv_cflags__Wstrict_prototypes=yes
12442 else
12443 ac_cv_cflags__Wstrict_prototypes=no
12445 rm -f core conftest.err conftest.$ac_objext \
12446 conftest$ac_exeext conftest.$ac_ext
12447 CFLAGS=$ac_wine_try_cflags_saved
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12450 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12451 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12452 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12455 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12456 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12459 ac_wine_try_cflags_saved=$CFLAGS
12460 CFLAGS="$CFLAGS -Wtype-limits"
12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h. */
12463 int main(int argc, char **argv) { return 0; }
12464 _ACEOF
12465 if ac_fn_c_try_link "$LINENO"; then :
12466 ac_cv_cflags__Wtype_limits=yes
12467 else
12468 ac_cv_cflags__Wtype_limits=no
12470 rm -f core conftest.err conftest.$ac_objext \
12471 conftest$ac_exeext conftest.$ac_ext
12472 CFLAGS=$ac_wine_try_cflags_saved
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12475 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12476 if test $ac_cv_cflags__Wtype_limits = yes; then :
12477 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12480 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12481 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12482 $as_echo_n "(cached) " >&6
12483 else
12484 ac_wine_try_cflags_saved=$CFLAGS
12485 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487 /* end confdefs.h. */
12488 int main(int argc, char **argv) { return 0; }
12489 _ACEOF
12490 if ac_fn_c_try_link "$LINENO"; then :
12491 ac_cv_cflags__Wunused_but_set_parameter=yes
12492 else
12493 ac_cv_cflags__Wunused_but_set_parameter=no
12495 rm -f core conftest.err conftest.$ac_objext \
12496 conftest$ac_exeext conftest.$ac_ext
12497 CFLAGS=$ac_wine_try_cflags_saved
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12500 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12501 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12502 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12505 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12506 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12507 $as_echo_n "(cached) " >&6
12508 else
12509 ac_wine_try_cflags_saved=$CFLAGS
12510 CFLAGS="$CFLAGS -Wwrite-strings"
12511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512 /* end confdefs.h. */
12513 int main(int argc, char **argv) { return 0; }
12514 _ACEOF
12515 if ac_fn_c_try_link "$LINENO"; then :
12516 ac_cv_cflags__Wwrite_strings=yes
12517 else
12518 ac_cv_cflags__Wwrite_strings=no
12520 rm -f core conftest.err conftest.$ac_objext \
12521 conftest$ac_exeext conftest.$ac_ext
12522 CFLAGS=$ac_wine_try_cflags_saved
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12525 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12526 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12527 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12530 for ac_flag in $CFLAGS; do
12531 case $ac_flag in
12532 -g) case $host_os in
12533 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
12534 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
12535 if ${ac_cv_cflags__gstabsp+:} false; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538 ac_wine_try_cflags_saved=$CFLAGS
12539 CFLAGS="$CFLAGS -gstabs+"
12540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12541 /* end confdefs.h. */
12542 int main(int argc, char **argv) { return 0; }
12543 _ACEOF
12544 if ac_fn_c_try_link "$LINENO"; then :
12545 ac_cv_cflags__gstabsp=yes
12546 else
12547 ac_cv_cflags__gstabsp=no
12549 rm -f core conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
12551 CFLAGS=$ac_wine_try_cflags_saved
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
12554 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
12555 if test $ac_cv_cflags__gstabsp = yes; then :
12556 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12557 fi ;;
12558 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
12559 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
12560 if ${ac_cv_cflags__gdwarf_2+:} false; then :
12561 $as_echo_n "(cached) " >&6
12562 else
12563 ac_wine_try_cflags_saved=$CFLAGS
12564 CFLAGS="$CFLAGS -gdwarf-2"
12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566 /* end confdefs.h. */
12567 int main(int argc, char **argv) { return 0; }
12568 _ACEOF
12569 if ac_fn_c_try_link "$LINENO"; then :
12570 ac_cv_cflags__gdwarf_2=yes
12571 else
12572 ac_cv_cflags__gdwarf_2=no
12574 rm -f core conftest.err conftest.$ac_objext \
12575 conftest$ac_exeext conftest.$ac_ext
12576 CFLAGS=$ac_wine_try_cflags_saved
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
12579 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
12580 if test $ac_cv_cflags__gdwarf_2 = yes; then :
12581 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
12584 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
12585 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
12586 $as_echo_n "(cached) " >&6
12587 else
12588 ac_wine_try_cflags_saved=$CFLAGS
12589 CFLAGS="$CFLAGS -gstrict-dwarf"
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h. */
12592 int main(int argc, char **argv) { return 0; }
12593 _ACEOF
12594 if ac_fn_c_try_link "$LINENO"; then :
12595 ac_cv_cflags__gstrict_dwarf=yes
12596 else
12597 ac_cv_cflags__gstrict_dwarf=no
12599 rm -f core conftest.err conftest.$ac_objext \
12600 conftest$ac_exeext conftest.$ac_ext
12601 CFLAGS=$ac_wine_try_cflags_saved
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
12604 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
12605 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
12606 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
12607 fi ;;
12608 esac ;;
12609 esac
12610 done
12612 case $host_cpu in
12613 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12614 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12615 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12616 $as_echo_n "(cached) " >&6
12617 else
12618 ac_wine_try_cflags_saved=$CFLAGS
12619 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
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__fno_omit_frame_pointer=yes
12626 else
12627 ac_cv_cflags__fno_omit_frame_pointer=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__fno_omit_frame_pointer" >&5
12634 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12635 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12636 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12637 fi ;;
12638 esac
12640 case $host in
12641 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12642 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12643 if ${ac_cv_cflags__Wno_format+:} false; then :
12644 $as_echo_n "(cached) " >&6
12645 else
12646 ac_wine_try_cflags_saved=$CFLAGS
12647 CFLAGS="$CFLAGS -Wno-format"
12648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h. */
12650 int main(int argc, char **argv) { return 0; }
12651 _ACEOF
12652 if ac_fn_c_try_link "$LINENO"; then :
12653 ac_cv_cflags__Wno_format=yes
12654 else
12655 ac_cv_cflags__Wno_format=no
12657 rm -f core conftest.err conftest.$ac_objext \
12658 conftest$ac_exeext conftest.$ac_ext
12659 CFLAGS=$ac_wine_try_cflags_saved
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12662 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12663 if test $ac_cv_cflags__Wno_format = yes; then :
12664 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12665 fi ;;
12666 esac
12668 saved_CFLAGS="$CFLAGS"
12669 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12671 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12672 if ${ac_cv_c_string_h_warnings+:} false; then :
12673 $as_echo_n "(cached) " >&6
12674 else
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12677 #include <string.h>
12679 main ()
12683 return 0;
12685 _ACEOF
12686 if ac_fn_c_try_compile "$LINENO"; then :
12687 ac_cv_c_string_h_warnings=no
12688 else
12689 ac_cv_c_string_h_warnings=yes
12691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12694 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12695 CFLAGS="$saved_CFLAGS"
12696 if test "$ac_cv_c_string_h_warnings" = "no"
12697 then
12698 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12701 saved_CFLAGS="$CFLAGS"
12702 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12704 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12705 if ${ac_cv_c_logicalop_noisy+:} false; then :
12706 $as_echo_n "(cached) " >&6
12707 else
12708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12709 /* end confdefs.h. */
12710 #include <string.h>
12712 main ()
12714 char*f(const char *h,char n) {return strchr(h,n);}
12716 return 0;
12718 _ACEOF
12719 if ac_fn_c_try_compile "$LINENO"; then :
12720 ac_cv_c_logicalop_noisy=no
12721 else
12722 ac_cv_c_logicalop_noisy=yes
12724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12727 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12728 CFLAGS="$saved_CFLAGS"
12729 if test "$ac_cv_c_logicalop_noisy" = "no"
12730 then
12731 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12734 if test "x$enable_maintainer_mode" = "xyes"
12735 then
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12737 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12738 if ${ac_cv_cflags__Werror+:} false; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 ac_wine_try_cflags_saved=$CFLAGS
12742 CFLAGS="$CFLAGS -Werror"
12743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12745 int main(int argc, char **argv) { return 0; }
12746 _ACEOF
12747 if ac_fn_c_try_link "$LINENO"; then :
12748 ac_cv_cflags__Werror=yes
12749 else
12750 ac_cv_cflags__Werror=no
12752 rm -f core conftest.err conftest.$ac_objext \
12753 conftest$ac_exeext conftest.$ac_ext
12754 CFLAGS=$ac_wine_try_cflags_saved
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12757 $as_echo "$ac_cv_cflags__Werror" >&6; }
12758 if test $ac_cv_cflags__Werror = yes; then :
12759 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12763 saved_CFLAGS="$CFLAGS"
12764 CFLAGS="$CFLAGS -Werror"
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12766 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12767 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12768 $as_echo_n "(cached) " >&6
12769 else
12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h. */
12772 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12774 main ()
12778 return 0;
12780 _ACEOF
12781 if ac_fn_c_try_compile "$LINENO"; then :
12782 ac_cv_have_ms_hook_prologue="yes"
12783 else
12784 ac_cv_have_ms_hook_prologue="no"
12786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12789 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12790 CFLAGS="$saved_CFLAGS"
12791 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12792 then
12794 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12796 else
12797 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12804 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12805 if ${ac_cv_c_fortify_enabled+:} false; then :
12806 $as_echo_n "(cached) " >&6
12807 else
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12810 #include <string.h>
12812 main ()
12814 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12815 #error Fortify enabled
12816 #endif
12818 return 0;
12820 _ACEOF
12821 if ac_fn_c_try_compile "$LINENO"; then :
12822 ac_cv_c_fortify_enabled=no
12823 else
12824 ac_cv_c_fortify_enabled=yes
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12829 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12830 if test "$ac_cv_c_fortify_enabled" = yes
12831 then
12832 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12837 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12838 if ${ac_cv_c_extern_prefix+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842 /* end confdefs.h. */
12843 extern int ac_test;
12845 main ()
12847 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12849 return 0;
12851 _ACEOF
12852 if ac_fn_c_try_link "$LINENO"; then :
12853 ac_cv_c_extern_prefix="yes"
12854 else
12855 ac_cv_c_extern_prefix="no"
12857 rm -f core conftest.err conftest.$ac_objext \
12858 conftest$ac_exeext conftest.$ac_ext
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12861 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12863 case $host_cpu in
12864 *i[3456789]86*)
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12866 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12867 if ${ac_cv_c_stdcall_suffix+:} false; then :
12868 $as_echo_n "(cached) " >&6
12869 else
12870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12871 /* end confdefs.h. */
12872 #ifndef _MSC_VER
12873 #define __stdcall __attribute__((__stdcall__))
12874 #endif
12875 int __stdcall ac_test(int i) { return i; }
12877 main ()
12879 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12881 return 0;
12883 _ACEOF
12884 if ac_fn_c_try_link "$LINENO"; then :
12885 ac_cv_c_stdcall_suffix="yes"
12886 else
12887 ac_cv_c_stdcall_suffix="no"
12889 rm -f core conftest.err conftest.$ac_objext \
12890 conftest$ac_exeext conftest.$ac_ext
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12893 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12894 *) ac_cv_c_stdcall_suffix="no" ;;
12895 esac
12898 if test "$ac_cv_c_extern_prefix" = "yes"
12899 then
12900 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12902 asm_name_prefix="_"
12903 else
12904 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12906 asm_name_prefix=""
12910 if test "$ac_cv_c_stdcall_suffix" = "yes"
12911 then
12912 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12914 else
12915 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12921 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12922 if ${ac_cv_asm_func_def+:} false; then :
12923 $as_echo_n "(cached) " >&6
12924 else
12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h. */
12929 main ()
12931 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12933 return 0;
12935 _ACEOF
12936 if ac_fn_c_try_link "$LINENO"; then :
12937 ac_cv_asm_func_def=".def"
12938 else
12939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12943 main ()
12945 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12947 return 0;
12949 _ACEOF
12950 if ac_fn_c_try_link "$LINENO"; then :
12951 ac_cv_asm_func_def=".type @function"
12952 else
12953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12954 /* end confdefs.h. */
12957 main ()
12959 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12961 return 0;
12963 _ACEOF
12964 if ac_fn_c_try_link "$LINENO"; then :
12965 ac_cv_asm_func_def=".type 2"
12966 else
12967 ac_cv_asm_func_def="unknown"
12969 rm -f core conftest.err conftest.$ac_objext \
12970 conftest$ac_exeext conftest.$ac_ext
12972 rm -f core conftest.err conftest.$ac_objext \
12973 conftest$ac_exeext conftest.$ac_ext
12975 rm -f core conftest.err conftest.$ac_objext \
12976 conftest$ac_exeext conftest.$ac_ext
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12979 $as_echo "$ac_cv_asm_func_def" >&6; }
12982 case "$ac_cv_asm_func_def" in
12983 ".def")
12984 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12986 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12987 ".type @function")
12988 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12990 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12991 ".type 2")
12992 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12994 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12996 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12998 asm_func_header="" ;;
12999 esac
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
13002 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
13003 if ${ac_cv_c_asm_outside_funcs+:} false; then :
13004 $as_echo_n "(cached) " >&6
13005 else
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008 asm(".text\n\t.long 0");
13010 main ()
13014 return 0;
13016 _ACEOF
13017 if ac_fn_c_try_compile "$LINENO"; then :
13018 ac_cv_c_asm_outside_funcs="yes"
13019 else
13020 ac_cv_c_asm_outside_funcs="no"
13022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
13025 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
13028 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
13029 if ${ac_cv_c_dot_previous+:} false; then :
13030 $as_echo_n "(cached) " >&6
13031 else
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13036 main ()
13038 asm(".text\nac_test:\t.long 0\n\t.previous");
13040 return 0;
13042 _ACEOF
13043 if ac_fn_c_try_link "$LINENO"; then :
13044 ac_cv_c_dot_previous="yes"
13045 else
13046 ac_cv_c_dot_previous="no"
13048 rm -f core conftest.err conftest.$ac_objext \
13049 conftest$ac_exeext conftest.$ac_ext
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
13052 $as_echo "$ac_cv_c_dot_previous" >&6; }
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
13055 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
13056 if ${ac_cv_c_cfi_support+:} false; then :
13057 $as_echo_n "(cached) " >&6
13058 else
13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060 /* end confdefs.h. */
13061 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
13063 main ()
13067 return 0;
13069 _ACEOF
13070 if ac_fn_c_try_compile "$LINENO"; then :
13071 ac_cv_c_cfi_support="yes"
13072 else
13073 ac_cv_c_cfi_support="no"
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
13078 $as_echo "$ac_cv_c_cfi_support" >&6; }
13080 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
13081 asm_func_trailer=""
13082 if test "$ac_cv_c_dot_previous" = "yes"
13083 then
13084 asm_func_trailer="\\n\\t.previous"
13086 if test "$ac_cv_c_cfi_support" = "yes"
13087 then
13088 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
13089 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
13091 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
13093 UNWINDFLAGS=-fasynchronous-unwind-tables
13095 else
13096 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
13100 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
13103 if test "$ac_cv_c_asm_outside_funcs" = "yes"
13104 then
13105 cat >>confdefs.h <<_ACEOF
13106 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
13107 _ACEOF
13109 else
13110 cat >>confdefs.h <<_ACEOF
13111 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
13112 _ACEOF
13116 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
13119 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
13123 LDPATH=""
13125 case $build_os in
13126 cygwin*|mingw32*)
13127 TOOLSEXT=".exe"
13129 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
13131 darwin*|macosx*)
13134 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
13136 esac
13138 MAIN_BINARY="wine"
13140 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
13142 case $host_os in
13143 linux*)
13144 case $host_cpu in
13145 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
13147 x86_64*) EXTRA_BINARIES="wine64-preloader"
13149 esac
13151 esac
13154 ac_save_CFLAGS="$CFLAGS"
13155 CFLAGS="$CFLAGS $BUILTINFLAG"
13156 for ac_func in \
13157 _finite \
13158 _isnan \
13159 _pclose \
13160 _popen \
13161 _snprintf \
13162 _spawnvp \
13163 _strdup \
13164 _stricmp \
13165 _strnicmp \
13166 _strtoi64 \
13167 _strtoui64 \
13168 _vsnprintf \
13169 asctime_r \
13170 chsize \
13171 dlopen \
13172 epoll_create \
13173 ffs \
13174 finite \
13175 fnmatch \
13176 fork \
13177 fpclass \
13178 fstatfs \
13179 fstatvfs \
13180 ftruncate \
13181 futimens \
13182 futimes \
13183 futimesat \
13184 getattrlist \
13185 getdirentries \
13186 getopt_long_only \
13187 getpwuid \
13188 gettimeofday \
13189 getuid \
13190 kqueue \
13191 lstat \
13192 memmove \
13193 mmap \
13194 pclose \
13195 pipe2 \
13196 poll \
13197 popen \
13198 port_create \
13199 prctl \
13200 pread \
13201 pwrite \
13202 readdir \
13203 readlink \
13204 sched_yield \
13205 select \
13206 setproctitle \
13207 setrlimit \
13208 settimeofday \
13209 sigaltstack \
13210 sigprocmask \
13211 snprintf \
13212 statfs \
13213 statvfs \
13214 strcasecmp \
13215 strdup \
13216 strerror \
13217 strncasecmp \
13218 strtold \
13219 strtoll \
13220 strtoull \
13221 symlink \
13222 tcgetattr \
13223 thr_kill2 \
13224 timegm \
13225 usleep \
13226 vsnprintf
13228 do :
13229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13230 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13231 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13232 cat >>confdefs.h <<_ACEOF
13233 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13234 _ACEOF
13237 done
13239 CFLAGS="$ac_save_CFLAGS"
13241 if test "$ac_cv_func_dlopen" = no
13242 then
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13244 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13245 if ${ac_cv_lib_dl_dlopen+:} false; then :
13246 $as_echo_n "(cached) " >&6
13247 else
13248 ac_check_lib_save_LIBS=$LIBS
13249 LIBS="-ldl $LIBS"
13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13253 /* Override any GCC internal prototype to avoid an error.
13254 Use char because int might match the return type of a GCC
13255 builtin and then its argument prototype would still apply. */
13256 #ifdef __cplusplus
13257 extern "C"
13258 #endif
13259 char dlopen ();
13261 main ()
13263 return dlopen ();
13265 return 0;
13267 _ACEOF
13268 if ac_fn_c_try_link "$LINENO"; then :
13269 ac_cv_lib_dl_dlopen=yes
13270 else
13271 ac_cv_lib_dl_dlopen=no
13273 rm -f core conftest.err conftest.$ac_objext \
13274 conftest$ac_exeext conftest.$ac_ext
13275 LIBS=$ac_check_lib_save_LIBS
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13278 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13279 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13280 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13281 LIBDL="-ldl"
13286 ac_wine_check_funcs_save_LIBS="$LIBS"
13287 LIBS="$LIBS $LIBDL"
13288 for ac_func in dladdr
13289 do :
13290 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
13291 if test "x$ac_cv_func_dladdr" = xyes; then :
13292 cat >>confdefs.h <<_ACEOF
13293 #define HAVE_DLADDR 1
13294 _ACEOF
13297 done
13299 LIBS="$ac_wine_check_funcs_save_LIBS"
13301 if test "$ac_cv_func_poll" = no
13302 then
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
13304 $as_echo_n "checking for poll in -lpoll... " >&6; }
13305 if ${ac_cv_lib_poll_poll+:} false; then :
13306 $as_echo_n "(cached) " >&6
13307 else
13308 ac_check_lib_save_LIBS=$LIBS
13309 LIBS="-lpoll $LIBS"
13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13311 /* end confdefs.h. */
13313 /* Override any GCC internal prototype to avoid an error.
13314 Use char because int might match the return type of a GCC
13315 builtin and then its argument prototype would still apply. */
13316 #ifdef __cplusplus
13317 extern "C"
13318 #endif
13319 char poll ();
13321 main ()
13323 return poll ();
13325 return 0;
13327 _ACEOF
13328 if ac_fn_c_try_link "$LINENO"; then :
13329 ac_cv_lib_poll_poll=yes
13330 else
13331 ac_cv_lib_poll_poll=no
13333 rm -f core conftest.err conftest.$ac_objext \
13334 conftest$ac_exeext conftest.$ac_ext
13335 LIBS=$ac_check_lib_save_LIBS
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
13338 $as_echo "$ac_cv_lib_poll_poll" >&6; }
13339 if test "x$ac_cv_lib_poll_poll" = xyes; then :
13340 $as_echo "#define HAVE_POLL 1" >>confdefs.h
13341 LIBPOLL="-lpoll"
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13348 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13349 if ${ac_cv_search_gethostbyname+:} false; then :
13350 $as_echo_n "(cached) " >&6
13351 else
13352 ac_func_search_save_LIBS=$LIBS
13353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354 /* end confdefs.h. */
13356 /* Override any GCC internal prototype to avoid an error.
13357 Use char because int might match the return type of a GCC
13358 builtin and then its argument prototype would still apply. */
13359 #ifdef __cplusplus
13360 extern "C"
13361 #endif
13362 char gethostbyname ();
13364 main ()
13366 return gethostbyname ();
13368 return 0;
13370 _ACEOF
13371 for ac_lib in '' nsl; do
13372 if test -z "$ac_lib"; then
13373 ac_res="none required"
13374 else
13375 ac_res=-l$ac_lib
13376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13378 if ac_fn_c_try_link "$LINENO"; then :
13379 ac_cv_search_gethostbyname=$ac_res
13381 rm -f core conftest.err conftest.$ac_objext \
13382 conftest$ac_exeext
13383 if ${ac_cv_search_gethostbyname+:} false; then :
13384 break
13386 done
13387 if ${ac_cv_search_gethostbyname+:} false; then :
13389 else
13390 ac_cv_search_gethostbyname=no
13392 rm conftest.$ac_ext
13393 LIBS=$ac_func_search_save_LIBS
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13396 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13397 ac_res=$ac_cv_search_gethostbyname
13398 if test "$ac_res" != no; then :
13399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13405 $as_echo_n "checking for library containing connect... " >&6; }
13406 if ${ac_cv_search_connect+:} false; then :
13407 $as_echo_n "(cached) " >&6
13408 else
13409 ac_func_search_save_LIBS=$LIBS
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13413 /* Override any GCC internal prototype to avoid an error.
13414 Use char because int might match the return type of a GCC
13415 builtin and then its argument prototype would still apply. */
13416 #ifdef __cplusplus
13417 extern "C"
13418 #endif
13419 char connect ();
13421 main ()
13423 return connect ();
13425 return 0;
13427 _ACEOF
13428 for ac_lib in '' socket; do
13429 if test -z "$ac_lib"; then
13430 ac_res="none required"
13431 else
13432 ac_res=-l$ac_lib
13433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13435 if ac_fn_c_try_link "$LINENO"; then :
13436 ac_cv_search_connect=$ac_res
13438 rm -f core conftest.err conftest.$ac_objext \
13439 conftest$ac_exeext
13440 if ${ac_cv_search_connect+:} false; then :
13441 break
13443 done
13444 if ${ac_cv_search_connect+:} false; then :
13446 else
13447 ac_cv_search_connect=no
13449 rm conftest.$ac_ext
13450 LIBS=$ac_func_search_save_LIBS
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13453 $as_echo "$ac_cv_search_connect" >&6; }
13454 ac_res=$ac_cv_search_connect
13455 if test "$ac_res" != no; then :
13456 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13462 $as_echo_n "checking for library containing inet_aton... " >&6; }
13463 if ${ac_cv_search_inet_aton+:} false; then :
13464 $as_echo_n "(cached) " >&6
13465 else
13466 ac_func_search_save_LIBS=$LIBS
13467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13468 /* end confdefs.h. */
13470 /* Override any GCC internal prototype to avoid an error.
13471 Use char because int might match the return type of a GCC
13472 builtin and then its argument prototype would still apply. */
13473 #ifdef __cplusplus
13474 extern "C"
13475 #endif
13476 char inet_aton ();
13478 main ()
13480 return inet_aton ();
13482 return 0;
13484 _ACEOF
13485 for ac_lib in '' resolv; do
13486 if test -z "$ac_lib"; then
13487 ac_res="none required"
13488 else
13489 ac_res=-l$ac_lib
13490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13492 if ac_fn_c_try_link "$LINENO"; then :
13493 ac_cv_search_inet_aton=$ac_res
13495 rm -f core conftest.err conftest.$ac_objext \
13496 conftest$ac_exeext
13497 if ${ac_cv_search_inet_aton+:} false; then :
13498 break
13500 done
13501 if ${ac_cv_search_inet_aton+:} false; then :
13503 else
13504 ac_cv_search_inet_aton=no
13506 rm conftest.$ac_ext
13507 LIBS=$ac_func_search_save_LIBS
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13510 $as_echo "$ac_cv_search_inet_aton" >&6; }
13511 ac_res=$ac_cv_search_inet_aton
13512 if test "$ac_res" != no; then :
13513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13518 for ac_func in \
13519 getaddrinfo \
13520 getnameinfo \
13521 getnetbyname \
13522 getprotobyname \
13523 getprotobynumber \
13524 getservbyport \
13525 inet_network \
13526 inet_ntop \
13527 inet_pton \
13528 sendmsg \
13529 socketpair \
13531 do :
13532 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13533 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13534 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13535 cat >>confdefs.h <<_ACEOF
13536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13537 _ACEOF
13540 done
13543 ac_save_LIBS=$LIBS
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13545 $as_echo_n "checking for library containing clock_gettime... " >&6; }
13546 if ${ac_cv_search_clock_gettime+:} false; then :
13547 $as_echo_n "(cached) " >&6
13548 else
13549 ac_func_search_save_LIBS=$LIBS
13550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13551 /* end confdefs.h. */
13553 /* Override any GCC internal prototype to avoid an error.
13554 Use char because int might match the return type of a GCC
13555 builtin and then its argument prototype would still apply. */
13556 #ifdef __cplusplus
13557 extern "C"
13558 #endif
13559 char clock_gettime ();
13561 main ()
13563 return clock_gettime ();
13565 return 0;
13567 _ACEOF
13568 for ac_lib in '' rt; do
13569 if test -z "$ac_lib"; then
13570 ac_res="none required"
13571 else
13572 ac_res=-l$ac_lib
13573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13575 if ac_fn_c_try_link "$LINENO"; then :
13576 ac_cv_search_clock_gettime=$ac_res
13578 rm -f core conftest.err conftest.$ac_objext \
13579 conftest$ac_exeext
13580 if ${ac_cv_search_clock_gettime+:} false; then :
13581 break
13583 done
13584 if ${ac_cv_search_clock_gettime+:} false; then :
13586 else
13587 ac_cv_search_clock_gettime=no
13589 rm conftest.$ac_ext
13590 LIBS=$ac_func_search_save_LIBS
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13593 $as_echo "$ac_cv_search_clock_gettime" >&6; }
13594 ac_res=$ac_cv_search_clock_gettime
13595 if test "$ac_res" != no; then :
13596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13598 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13600 test "$ac_res" = "none required" || LIBRT="$ac_res"
13604 LIBS=$ac_save_LIBS
13606 LDAPLIBS=""
13608 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13609 then
13610 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13612 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13614 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13615 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13616 $as_echo_n "(cached) " >&6
13617 else
13618 ac_check_lib_save_LIBS=$LIBS
13619 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13623 /* Override any GCC internal prototype to avoid an error.
13624 Use char because int might match the return type of a GCC
13625 builtin and then its argument prototype would still apply. */
13626 #ifdef __cplusplus
13627 extern "C"
13628 #endif
13629 char ldap_initialize ();
13631 main ()
13633 return ldap_initialize ();
13635 return 0;
13637 _ACEOF
13638 if ac_fn_c_try_link "$LINENO"; then :
13639 ac_cv_lib_ldap_r_ldap_initialize=yes
13640 else
13641 ac_cv_lib_ldap_r_ldap_initialize=no
13643 rm -f core conftest.err conftest.$ac_objext \
13644 conftest$ac_exeext conftest.$ac_ext
13645 LIBS=$ac_check_lib_save_LIBS
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13648 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13649 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13651 $as_echo_n "checking for ber_init in -llber... " >&6; }
13652 if ${ac_cv_lib_lber_ber_init+:} false; then :
13653 $as_echo_n "(cached) " >&6
13654 else
13655 ac_check_lib_save_LIBS=$LIBS
13656 LIBS="-llber $LIBPTHREAD $LIBS"
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13660 /* Override any GCC internal prototype to avoid an error.
13661 Use char because int might match the return type of a GCC
13662 builtin and then its argument prototype would still apply. */
13663 #ifdef __cplusplus
13664 extern "C"
13665 #endif
13666 char ber_init ();
13668 main ()
13670 return ber_init ();
13672 return 0;
13674 _ACEOF
13675 if ac_fn_c_try_link "$LINENO"; then :
13676 ac_cv_lib_lber_ber_init=yes
13677 else
13678 ac_cv_lib_lber_ber_init=no
13680 rm -f core conftest.err conftest.$ac_objext \
13681 conftest$ac_exeext conftest.$ac_ext
13682 LIBS=$ac_check_lib_save_LIBS
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13685 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13686 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13688 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13690 LDAPLIBS="-lldap_r -llber"
13697 ac_wine_check_funcs_save_LIBS="$LIBS"
13698 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13699 for ac_func in \
13700 ldap_count_references \
13701 ldap_first_reference \
13702 ldap_next_reference \
13703 ldap_parse_reference \
13704 ldap_parse_sort_control \
13705 ldap_parse_sortresponse_control \
13706 ldap_parse_vlv_control \
13707 ldap_parse_vlvresponse_control
13708 do :
13709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13710 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13711 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13712 cat >>confdefs.h <<_ACEOF
13713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13714 _ACEOF
13717 done
13719 LIBS="$ac_wine_check_funcs_save_LIBS"
13721 if test "x$LDAPLIBS" = "x"; then :
13722 case "x$with_ldap" in
13723 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13724 xno) ;;
13725 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13726 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13727 esac
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13731 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13732 if ${wine_cv_one_arg_mkdir+:} false; then :
13733 $as_echo_n "(cached) " >&6
13734 else
13735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736 /* end confdefs.h. */
13737 #include <sys/stat.h>
13739 main ()
13741 mkdir("foo");
13743 return 0;
13745 _ACEOF
13746 if ac_fn_c_try_compile "$LINENO"; then :
13747 wine_cv_one_arg_mkdir=yes
13748 else
13749 wine_cv_one_arg_mkdir=no
13751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13754 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13755 if test "$wine_cv_one_arg_mkdir" = "yes"
13756 then
13758 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13763 $as_echo_n "checking for sched_setaffinity... " >&6; }
13764 if ${wine_cv_have_sched_setaffinity+:} false; then :
13765 $as_echo_n "(cached) " >&6
13766 else
13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h. */
13769 #define _GNU_SOURCE
13770 #include <sched.h>
13772 main ()
13774 sched_setaffinity(0, 0, 0);
13776 return 0;
13778 _ACEOF
13779 if ac_fn_c_try_link "$LINENO"; then :
13780 wine_cv_have_sched_setaffinity=yes
13781 else
13782 wine_cv_have_sched_setaffinity=no
13784 rm -f core conftest.err conftest.$ac_objext \
13785 conftest$ac_exeext conftest.$ac_ext
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13788 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13789 if test "$wine_cv_have_sched_setaffinity" = "yes"
13790 then
13792 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
13797 $as_echo_n "checking for fallocate... " >&6; }
13798 if ${wine_cv_have_fallocate+:} false; then :
13799 $as_echo_n "(cached) " >&6
13800 else
13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802 /* end confdefs.h. */
13803 #define _GNU_SOURCE
13804 #include <fcntl.h>
13806 main ()
13808 fallocate(-1, 0, 0, 0);
13810 return 0;
13812 _ACEOF
13813 if ac_fn_c_try_link "$LINENO"; then :
13814 wine_cv_have_fallocate=yes
13815 else
13816 wine_cv_have_fallocate=no
13818 rm -f core conftest.err conftest.$ac_objext \
13819 conftest$ac_exeext conftest.$ac_ext
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
13822 $as_echo "$wine_cv_have_fallocate" >&6; }
13823 if test "$wine_cv_have_fallocate" = "yes"
13824 then
13826 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13832 $as_echo_n "checking for inline... " >&6; }
13833 if ${ac_cv_c_inline+:} false; then :
13834 $as_echo_n "(cached) " >&6
13835 else
13836 ac_cv_c_inline=no
13837 for ac_kw in inline __inline__ __inline; do
13838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13839 /* end confdefs.h. */
13840 #ifndef __cplusplus
13841 typedef int foo_t;
13842 static $ac_kw foo_t static_foo () {return 0; }
13843 $ac_kw foo_t foo () {return 0; }
13844 #endif
13846 _ACEOF
13847 if ac_fn_c_try_compile "$LINENO"; then :
13848 ac_cv_c_inline=$ac_kw
13850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13851 test "$ac_cv_c_inline" != no && break
13852 done
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13856 $as_echo "$ac_cv_c_inline" >&6; }
13858 case $ac_cv_c_inline in
13859 inline | yes) ;;
13861 case $ac_cv_c_inline in
13862 no) ac_val=;;
13863 *) ac_val=$ac_cv_c_inline;;
13864 esac
13865 cat >>confdefs.h <<_ACEOF
13866 #ifndef __cplusplus
13867 #define inline $ac_val
13868 #endif
13869 _ACEOF
13871 esac
13873 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13874 if test "x$ac_cv_type_mode_t" = xyes; then :
13876 cat >>confdefs.h <<_ACEOF
13877 #define HAVE_MODE_T 1
13878 _ACEOF
13882 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13883 if test "x$ac_cv_type_off_t" = xyes; then :
13885 cat >>confdefs.h <<_ACEOF
13886 #define HAVE_OFF_T 1
13887 _ACEOF
13891 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13892 if test "x$ac_cv_type_pid_t" = xyes; then :
13894 cat >>confdefs.h <<_ACEOF
13895 #define HAVE_PID_T 1
13896 _ACEOF
13900 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13901 if test "x$ac_cv_type_size_t" = xyes; then :
13903 cat >>confdefs.h <<_ACEOF
13904 #define HAVE_SIZE_T 1
13905 _ACEOF
13909 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13910 if test "x$ac_cv_type_ssize_t" = xyes; then :
13912 cat >>confdefs.h <<_ACEOF
13913 #define HAVE_SSIZE_T 1
13914 _ACEOF
13918 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13919 if test "x$ac_cv_type_long_long" = xyes; then :
13921 cat >>confdefs.h <<_ACEOF
13922 #define HAVE_LONG_LONG 1
13923 _ACEOF
13927 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13928 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13930 cat >>confdefs.h <<_ACEOF
13931 #define HAVE_FSBLKCNT_T 1
13932 _ACEOF
13936 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13937 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13939 cat >>confdefs.h <<_ACEOF
13940 #define HAVE_FSFILCNT_T 1
13941 _ACEOF
13946 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13947 #include <signal.h>
13949 if test "x$ac_cv_type_sigset_t" = xyes; then :
13951 cat >>confdefs.h <<_ACEOF
13952 #define HAVE_SIGSET_T 1
13953 _ACEOF
13958 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13960 if test "x$ac_cv_type_request_sense" = xyes; then :
13962 cat >>confdefs.h <<_ACEOF
13963 #define HAVE_REQUEST_SENSE 1
13964 _ACEOF
13970 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13971 #ifdef HAVE_SYS_SOCKET_H
13972 #include <sys/socket.h>
13973 #endif
13974 #ifdef HAVE_SYS_SOCKETVAR_H
13975 #include <sys/socketvar.h>
13976 #endif
13977 #ifdef HAVE_NET_ROUTE_H
13978 #include <net/route.h>
13979 #endif
13980 #ifdef HAVE_NETINET_IN_H
13981 #include <netinet/in.h>
13982 #endif
13983 #ifdef HAVE_NETINET_IN_SYSTM_H
13984 #include <netinet/in_systm.h>
13985 #endif
13986 #ifdef HAVE_NETINET_IP_H
13987 #include <netinet/ip.h>
13988 #endif
13989 #ifdef HAVE_NETINET_IN_PCB_H
13990 #include <netinet/in_pcb.h>
13991 #endif
13993 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13995 cat >>confdefs.h <<_ACEOF
13996 #define HAVE_STRUCT_XINPGEN 1
13997 _ACEOF
14003 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
14004 #include <linux/input.h>
14005 #endif
14007 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
14009 cat >>confdefs.h <<_ACEOF
14010 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
14011 _ACEOF
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
14018 $as_echo_n "checking for sigaddset... " >&6; }
14019 if ${wine_cv_have_sigaddset+:} false; then :
14020 $as_echo_n "(cached) " >&6
14021 else
14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14023 /* end confdefs.h. */
14024 #include <signal.h>
14026 main ()
14028 sigset_t set; sigaddset(&set,SIGTERM);
14030 return 0;
14032 _ACEOF
14033 if ac_fn_c_try_link "$LINENO"; then :
14034 wine_cv_have_sigaddset=yes
14035 else
14036 wine_cv_have_sigaddset=no
14038 rm -f core conftest.err conftest.$ac_objext \
14039 conftest$ac_exeext conftest.$ac_ext
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
14042 $as_echo "$wine_cv_have_sigaddset" >&6; }
14043 if test "$wine_cv_have_sigaddset" = "yes"
14044 then
14046 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
14052 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
14053 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
14054 $as_echo_n "(cached) " >&6
14055 else
14056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14057 /* end confdefs.h. */
14058 #include <netdb.h>
14060 main ()
14063 char *name=0;
14064 struct hostent he;
14065 struct hostent *result;
14066 char *buf=0;
14067 int bufsize=0;
14068 int errnr;
14069 char *addr=0;
14070 int addrlen=0;
14071 int addrtype=0;
14072 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14073 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
14076 return 0;
14078 _ACEOF
14079 if ac_fn_c_try_link "$LINENO"; then :
14080 wine_cv_linux_gethostbyname_r_6=yes
14081 else
14082 wine_cv_linux_gethostbyname_r_6=no
14085 rm -f core conftest.err conftest.$ac_objext \
14086 conftest$ac_exeext conftest.$ac_ext
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
14090 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
14091 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14092 then
14094 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
14098 if test "$ac_cv_header_linux_joystick_h" = "yes"
14099 then
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
14101 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
14102 if ${wine_cv_linux_joystick_22_api+:} false; then :
14103 $as_echo_n "(cached) " >&6
14104 else
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14108 #include <sys/ioctl.h>
14109 #include <sys/types.h>
14110 #include <linux/joystick.h>
14112 struct js_event blub;
14113 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14114 #error "no 2.2 header"
14115 #endif
14118 main ()
14120 /*empty*/
14122 return 0;
14124 _ACEOF
14125 if ac_fn_c_try_compile "$LINENO"; then :
14126 wine_cv_linux_joystick_22_api=yes
14127 else
14128 wine_cv_linux_joystick_22_api=no
14130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
14134 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
14135 if test "$wine_cv_linux_joystick_22_api" = "yes"
14136 then
14138 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
14144 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
14145 #ifdef HAVE_SYS_PARAM_H
14146 # include <sys/param.h>
14147 #endif
14148 #ifdef HAVE_SYS_MOUNT_H
14149 # include <sys/mount.h>
14150 #endif
14151 #ifdef HAVE_SYS_VFS_H
14152 # include <sys/vfs.h>
14153 #endif
14154 #ifdef HAVE_SYS_STATFS_H
14155 # include <sys/statfs.h>
14156 #endif
14158 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
14160 cat >>confdefs.h <<_ACEOF
14161 #define HAVE_STRUCT_STATFS_F_BFREE 1
14162 _ACEOF
14166 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
14167 #ifdef HAVE_SYS_PARAM_H
14168 # include <sys/param.h>
14169 #endif
14170 #ifdef HAVE_SYS_MOUNT_H
14171 # include <sys/mount.h>
14172 #endif
14173 #ifdef HAVE_SYS_VFS_H
14174 # include <sys/vfs.h>
14175 #endif
14176 #ifdef HAVE_SYS_STATFS_H
14177 # include <sys/statfs.h>
14178 #endif
14180 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
14182 cat >>confdefs.h <<_ACEOF
14183 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
14184 _ACEOF
14188 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
14189 #ifdef HAVE_SYS_PARAM_H
14190 # include <sys/param.h>
14191 #endif
14192 #ifdef HAVE_SYS_MOUNT_H
14193 # include <sys/mount.h>
14194 #endif
14195 #ifdef HAVE_SYS_VFS_H
14196 # include <sys/vfs.h>
14197 #endif
14198 #ifdef HAVE_SYS_STATFS_H
14199 # include <sys/statfs.h>
14200 #endif
14202 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
14204 cat >>confdefs.h <<_ACEOF
14205 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
14206 _ACEOF
14210 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
14211 #ifdef HAVE_SYS_PARAM_H
14212 # include <sys/param.h>
14213 #endif
14214 #ifdef HAVE_SYS_MOUNT_H
14215 # include <sys/mount.h>
14216 #endif
14217 #ifdef HAVE_SYS_VFS_H
14218 # include <sys/vfs.h>
14219 #endif
14220 #ifdef HAVE_SYS_STATFS_H
14221 # include <sys/statfs.h>
14222 #endif
14224 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
14226 cat >>confdefs.h <<_ACEOF
14227 #define HAVE_STRUCT_STATFS_F_FFREE 1
14228 _ACEOF
14232 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
14233 #ifdef HAVE_SYS_PARAM_H
14234 # include <sys/param.h>
14235 #endif
14236 #ifdef HAVE_SYS_MOUNT_H
14237 # include <sys/mount.h>
14238 #endif
14239 #ifdef HAVE_SYS_VFS_H
14240 # include <sys/vfs.h>
14241 #endif
14242 #ifdef HAVE_SYS_STATFS_H
14243 # include <sys/statfs.h>
14244 #endif
14246 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
14248 cat >>confdefs.h <<_ACEOF
14249 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
14250 _ACEOF
14254 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
14255 #ifdef HAVE_SYS_PARAM_H
14256 # include <sys/param.h>
14257 #endif
14258 #ifdef HAVE_SYS_MOUNT_H
14259 # include <sys/mount.h>
14260 #endif
14261 #ifdef HAVE_SYS_VFS_H
14262 # include <sys/vfs.h>
14263 #endif
14264 #ifdef HAVE_SYS_STATFS_H
14265 # include <sys/statfs.h>
14266 #endif
14268 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
14270 cat >>confdefs.h <<_ACEOF
14271 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
14272 _ACEOF
14278 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
14279 #include <sys/statvfs.h>
14280 #endif
14282 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
14284 cat >>confdefs.h <<_ACEOF
14285 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
14286 _ACEOF
14292 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
14293 #include <dirent.h>
14294 #endif
14296 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
14298 cat >>confdefs.h <<_ACEOF
14299 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
14300 _ACEOF
14306 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
14307 #ifdef HAVE_SYS_SOCKET_H
14308 # include <sys/socket.h>
14309 #endif
14310 #ifdef HAVE_SYS_UN_H
14311 # include <sys/un.h>
14312 #endif
14314 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
14316 cat >>confdefs.h <<_ACEOF
14317 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
14318 _ACEOF
14322 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14323 #ifdef HAVE_SYS_SOCKET_H
14324 # include <sys/socket.h>
14325 #endif
14326 #ifdef HAVE_SYS_UN_H
14327 # include <sys/un.h>
14328 #endif
14330 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14332 cat >>confdefs.h <<_ACEOF
14333 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14334 _ACEOF
14338 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
14339 #ifdef HAVE_SYS_SOCKET_H
14340 # include <sys/socket.h>
14341 #endif
14342 #ifdef HAVE_SYS_UN_H
14343 # include <sys/un.h>
14344 #endif
14346 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
14348 cat >>confdefs.h <<_ACEOF
14349 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
14350 _ACEOF
14356 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
14357 #ifdef HAVE_SCSI_SG_H
14358 #include <scsi/sg.h>
14359 #endif
14361 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
14363 cat >>confdefs.h <<_ACEOF
14364 #define HAVE_SCSIREQ_T_CMD 1
14365 _ACEOF
14369 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>
14370 #ifdef HAVE_SCSI_SG_H
14371 #include <scsi/sg.h>
14372 #endif
14374 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
14376 cat >>confdefs.h <<_ACEOF
14377 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
14378 _ACEOF
14384 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14386 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
14388 cat >>confdefs.h <<_ACEOF
14389 #define HAVE_SIGINFO_T_SI_FD 1
14390 _ACEOF
14396 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14397 #ifdef HAVE_SYS_MTIO_H
14398 #include <sys/mtio.h>
14399 #endif
14401 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14403 cat >>confdefs.h <<_ACEOF
14404 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14405 _ACEOF
14409 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14410 #ifdef HAVE_SYS_MTIO_H
14411 #include <sys/mtio.h>
14412 #endif
14414 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14416 cat >>confdefs.h <<_ACEOF
14417 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14418 _ACEOF
14422 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14423 #ifdef HAVE_SYS_MTIO_H
14424 #include <sys/mtio.h>
14425 #endif
14427 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14429 cat >>confdefs.h <<_ACEOF
14430 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14431 _ACEOF
14437 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14438 #include <getopt.h>
14439 #endif
14441 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14443 cat >>confdefs.h <<_ACEOF
14444 #define HAVE_STRUCT_OPTION_NAME 1
14445 _ACEOF
14451 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14452 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14454 cat >>confdefs.h <<_ACEOF
14455 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14456 _ACEOF
14460 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14461 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14463 cat >>confdefs.h <<_ACEOF
14464 #define HAVE_STRUCT_STAT_ST_MTIM 1
14465 _ACEOF
14469 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
14470 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
14472 cat >>confdefs.h <<_ACEOF
14473 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
14474 _ACEOF
14478 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14479 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14481 cat >>confdefs.h <<_ACEOF
14482 #define HAVE_STRUCT_STAT_ST_CTIM 1
14483 _ACEOF
14487 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
14488 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
14490 cat >>confdefs.h <<_ACEOF
14491 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
14492 _ACEOF
14496 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14497 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14499 cat >>confdefs.h <<_ACEOF
14500 #define HAVE_STRUCT_STAT_ST_ATIM 1
14501 _ACEOF
14505 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
14506 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
14508 cat >>confdefs.h <<_ACEOF
14509 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
14510 _ACEOF
14514 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
14515 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
14517 cat >>confdefs.h <<_ACEOF
14518 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
14519 _ACEOF
14523 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
14524 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
14526 cat >>confdefs.h <<_ACEOF
14527 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
14528 _ACEOF
14532 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
14533 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
14535 cat >>confdefs.h <<_ACEOF
14536 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
14537 _ACEOF
14541 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
14542 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
14544 cat >>confdefs.h <<_ACEOF
14545 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
14546 _ACEOF
14550 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
14551 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
14553 cat >>confdefs.h <<_ACEOF
14554 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
14555 _ACEOF
14561 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
14562 #include <sys/types.h>
14563 #endif
14564 #ifdef HAVE_NETINET_IN_H
14565 #include <netinet/in.h>
14566 #endif
14568 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14570 cat >>confdefs.h <<_ACEOF
14571 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14572 _ACEOF
14578 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14579 #include <sys/types.h>
14580 #endif
14581 #ifdef HAVE_NETINET_IN_H
14582 # include <netinet/in.h>
14583 #endif
14584 #ifdef HAVE_ARPA_NAMESER_H
14585 # include <arpa/nameser.h>
14586 #endif
14588 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14590 cat >>confdefs.h <<_ACEOF
14591 #define HAVE_NS_MSG__MSG_PTR 1
14592 _ACEOF
14598 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
14599 #include <sys/types.h>
14600 #endif
14601 #ifdef HAVE_NETINET_IP_H
14602 #include <netinet/ip.h>
14603 #endif
14604 #ifdef HAVE_NETINET_IP_ICMP_H
14605 #include <netinet/ip_icmp.h>
14606 #endif
14607 #ifdef HAVE_NETINET_ICMP_VAR_H
14608 #include <netinet/icmp_var.h>
14609 #endif
14611 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
14613 cat >>confdefs.h <<_ACEOF
14614 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
14615 _ACEOF
14621 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14622 #include <sys/types.h>
14623 #endif
14624 #ifdef HAVE_ALIAS_H
14625 #include <alias.h>
14626 #endif
14627 #ifdef HAVE_SYS_SOCKET_H
14628 #include <sys/socket.h>
14629 #endif
14630 #ifdef HAVE_SYS_SOCKETVAR_H
14631 #include <sys/socketvar.h>
14632 #endif
14633 #ifdef HAVE_SYS_TIMEOUT_H
14634 #include <sys/timeout.h>
14635 #endif
14636 #ifdef HAVE_NETINET_IN_H
14637 #include <netinet/in.h>
14638 #endif
14639 #ifdef HAVE_NETINET_IN_SYSTM_H
14640 #include <netinet/in_systm.h>
14641 #endif
14642 #ifdef HAVE_NETINET_IP_H
14643 #include <netinet/ip.h>
14644 #endif
14645 #ifdef HAVE_NETINET_IP_VAR_H
14646 #include <netinet/ip_var.h>
14647 #endif
14648 #ifdef HAVE_NETINET_IP_ICMP_H
14649 #include <netinet/ip_icmp.h>
14650 #endif
14651 #ifdef HAVE_NETINET_ICMP_VAR_H
14652 #include <netinet/icmp_var.h>
14653 #endif
14655 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14657 cat >>confdefs.h <<_ACEOF
14658 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14659 _ACEOF
14665 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
14666 #include <sys/types.h>
14667 #endif
14668 #ifdef HAVE_SYS_SOCKETVAR_H
14669 #include <sys/socketvar.h>
14670 #endif
14671 #ifdef HAVE_NETINET_IN_H
14672 #include <netinet/in.h>
14673 #endif
14674 #ifdef HAVE_NETINET_IP_VAR_H
14675 #include <netinet/ip_var.h>
14676 #endif
14678 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
14680 cat >>confdefs.h <<_ACEOF
14681 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
14682 _ACEOF
14688 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
14689 #include <netinet/ip_var.h>
14690 #endif
14692 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
14694 cat >>confdefs.h <<_ACEOF
14695 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
14696 _ACEOF
14702 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
14703 #include <sys/types.h>
14704 #endif
14705 #ifdef HAVE_SYS_SOCKETVAR_H
14706 #include <sys/socketvar.h>
14707 #endif
14708 #ifdef HAVE_NETINET_IN_H
14709 #include <netinet/in.h>
14710 #endif
14711 #ifdef HAVE_NETINET_TCP_H
14712 #include <netinet/tcp.h>
14713 #endif
14714 #ifdef HAVE_NETINET_TCP_VAR_H
14715 #include <netinet/tcp_var.h>
14716 #endif
14718 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
14720 cat >>confdefs.h <<_ACEOF
14721 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
14722 _ACEOF
14728 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
14729 #include <netinet/tcp_var.h>
14730 #endif
14732 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
14734 cat >>confdefs.h <<_ACEOF
14735 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
14736 _ACEOF
14742 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
14743 #include <sys/types.h>
14744 #endif
14745 #ifdef HAVE_NETINET_IN_H
14746 #include <netinet/in.h>
14747 #endif
14748 #ifdef HAVE_NETINET_IP_VAR_H
14749 #include <netinet/ip_var.h>
14750 #endif
14751 #ifdef HAVE_NETINET_UDP_H
14752 #include <netinet/udp.h>
14753 #endif
14754 #ifdef HAVE_NETINET_UDP_VAR_H
14755 #include <netinet/udp_var.h>
14756 #endif
14758 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
14760 cat >>confdefs.h <<_ACEOF
14761 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
14762 _ACEOF
14768 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14769 #include <sys/types.h>
14770 #endif
14771 #ifdef HAVE_NET_IF_H
14772 # include <net/if.h>
14773 #endif
14775 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14777 cat >>confdefs.h <<_ACEOF
14778 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14779 _ACEOF
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14786 $as_echo_n "checking for timezone variable... " >&6; }
14787 if ${ac_cv_have_timezone+:} false; then :
14788 $as_echo_n "(cached) " >&6
14789 else
14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h. */
14792 #include <time.h>
14794 main ()
14796 timezone = 1
14798 return 0;
14800 _ACEOF
14801 if ac_fn_c_try_link "$LINENO"; then :
14802 ac_cv_have_timezone="yes"
14803 else
14804 ac_cv_have_timezone="no"
14806 rm -f core conftest.err conftest.$ac_objext \
14807 conftest$ac_exeext conftest.$ac_ext
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14810 $as_echo "$ac_cv_have_timezone" >&6; }
14811 if test "$ac_cv_have_timezone" = "yes"
14812 then
14814 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14818 $as_echo_n "checking for daylight variable... " >&6; }
14819 if ${ac_cv_have_daylight+:} false; then :
14820 $as_echo_n "(cached) " >&6
14821 else
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14824 #include <time.h>
14826 main ()
14828 daylight = 1
14830 return 0;
14832 _ACEOF
14833 if ac_fn_c_try_link "$LINENO"; then :
14834 ac_cv_have_daylight="yes"
14835 else
14836 ac_cv_have_daylight="no"
14838 rm -f core conftest.err conftest.$ac_objext \
14839 conftest$ac_exeext conftest.$ac_ext
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14842 $as_echo "$ac_cv_have_daylight" >&6; }
14843 if test "$ac_cv_have_daylight" = "yes"
14844 then
14846 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14850 ac_save_LIBS="$LIBS"
14851 LIBS="$LIBS -lm"
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14853 $as_echo_n "checking for isinf... " >&6; }
14854 if ${ac_cv_have_isinf+:} false; then :
14855 $as_echo_n "(cached) " >&6
14856 else
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14859 #include <math.h>
14861 main ()
14863 float f = 0.0; return isinf(f)
14865 return 0;
14867 _ACEOF
14868 if ac_fn_c_try_link "$LINENO"; then :
14869 ac_cv_have_isinf="yes"
14870 else
14871 ac_cv_have_isinf="no"
14873 rm -f core conftest.err conftest.$ac_objext \
14874 conftest$ac_exeext conftest.$ac_ext
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14877 $as_echo "$ac_cv_have_isinf" >&6; }
14878 if test "$ac_cv_have_isinf" = "yes"
14879 then
14881 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14886 $as_echo_n "checking for isnan... " >&6; }
14887 if ${ac_cv_have_isnan+:} false; then :
14888 $as_echo_n "(cached) " >&6
14889 else
14890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14891 /* end confdefs.h. */
14892 #include <math.h>
14894 main ()
14896 float f = 0.0; return isnan(f)
14898 return 0;
14900 _ACEOF
14901 if ac_fn_c_try_link "$LINENO"; then :
14902 ac_cv_have_isnan="yes"
14903 else
14904 ac_cv_have_isnan="no"
14906 rm -f core conftest.err conftest.$ac_objext \
14907 conftest$ac_exeext conftest.$ac_ext
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14910 $as_echo "$ac_cv_have_isnan" >&6; }
14911 if test "$ac_cv_have_isnan" = "yes"
14912 then
14914 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14917 LIBS="$ac_save_LIBS"
14920 case $host_cpu in
14921 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14922 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14923 if ${ac_cv_cpp_def___i386__+:} false; then :
14924 $as_echo_n "(cached) " >&6
14925 else
14926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h. */
14928 #ifndef __i386__
14930 #endif
14931 _ACEOF
14932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14933 $EGREP "yes" >/dev/null 2>&1; then :
14934 ac_cv_cpp_def___i386__=yes
14935 else
14936 ac_cv_cpp_def___i386__=no
14938 rm -f conftest*
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14942 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14943 if test $ac_cv_cpp_def___i386__ = yes; then :
14944 CFLAGS="$CFLAGS -D__i386__"
14945 LINTFLAGS="$LINTFLAGS -D__i386__"
14946 fi ;;
14947 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14948 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14949 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14950 $as_echo_n "(cached) " >&6
14951 else
14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h. */
14954 #ifndef __x86_64__
14956 #endif
14957 _ACEOF
14958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14959 $EGREP "yes" >/dev/null 2>&1; then :
14960 ac_cv_cpp_def___x86_64__=yes
14961 else
14962 ac_cv_cpp_def___x86_64__=no
14964 rm -f conftest*
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14968 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14969 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14970 CFLAGS="$CFLAGS -D__x86_64__"
14971 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14972 fi ;;
14973 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14974 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14975 if ${ac_cv_cpp_def___sparc64__+:} false; then :
14976 $as_echo_n "(cached) " >&6
14977 else
14978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h. */
14980 #ifndef __sparc64__
14982 #endif
14983 _ACEOF
14984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14985 $EGREP "yes" >/dev/null 2>&1; then :
14986 ac_cv_cpp_def___sparc64__=yes
14987 else
14988 ac_cv_cpp_def___sparc64__=no
14990 rm -f conftest*
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14994 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14995 if test $ac_cv_cpp_def___sparc64__ = yes; then :
14996 CFLAGS="$CFLAGS -D__sparc64__"
14997 LINTFLAGS="$LINTFLAGS -D__sparc64__"
14998 fi ;;
14999 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
15000 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
15001 if ${ac_cv_cpp_def___sparc__+:} false; then :
15002 $as_echo_n "(cached) " >&6
15003 else
15004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15005 /* end confdefs.h. */
15006 #ifndef __sparc__
15008 #endif
15009 _ACEOF
15010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15011 $EGREP "yes" >/dev/null 2>&1; then :
15012 ac_cv_cpp_def___sparc__=yes
15013 else
15014 ac_cv_cpp_def___sparc__=no
15016 rm -f conftest*
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
15020 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
15021 if test $ac_cv_cpp_def___sparc__ = yes; then :
15022 CFLAGS="$CFLAGS -D__sparc__"
15023 LINTFLAGS="$LINTFLAGS -D__sparc__"
15024 fi ;;
15025 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
15026 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
15027 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
15028 $as_echo_n "(cached) " >&6
15029 else
15030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h. */
15032 #ifndef __powerpc64__
15034 #endif
15035 _ACEOF
15036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15037 $EGREP "yes" >/dev/null 2>&1; then :
15038 ac_cv_cpp_def___powerpc64__=yes
15039 else
15040 ac_cv_cpp_def___powerpc64__=no
15042 rm -f conftest*
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
15046 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
15047 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
15048 CFLAGS="$CFLAGS -D__powerpc64__"
15049 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
15050 fi ;;
15051 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
15052 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
15053 if ${ac_cv_cpp_def___powerpc__+:} false; then :
15054 $as_echo_n "(cached) " >&6
15055 else
15056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15057 /* end confdefs.h. */
15058 #ifndef __powerpc__
15060 #endif
15061 _ACEOF
15062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15063 $EGREP "yes" >/dev/null 2>&1; then :
15064 ac_cv_cpp_def___powerpc__=yes
15065 else
15066 ac_cv_cpp_def___powerpc__=no
15068 rm -f conftest*
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
15072 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
15073 if test $ac_cv_cpp_def___powerpc__ = yes; then :
15074 CFLAGS="$CFLAGS -D__powerpc__"
15075 LINTFLAGS="$LINTFLAGS -D__powerpc__"
15076 fi ;;
15077 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
15078 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
15079 if ${ac_cv_cpp_def___aarch64__+:} false; then :
15080 $as_echo_n "(cached) " >&6
15081 else
15082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083 /* end confdefs.h. */
15084 #ifndef __aarch64__
15086 #endif
15087 _ACEOF
15088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15089 $EGREP "yes" >/dev/null 2>&1; then :
15090 ac_cv_cpp_def___aarch64__=yes
15091 else
15092 ac_cv_cpp_def___aarch64__=no
15094 rm -f conftest*
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
15098 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
15099 if test $ac_cv_cpp_def___aarch64__ = yes; then :
15100 CFLAGS="$CFLAGS -D__aarch64__"
15101 LINTFLAGS="$LINTFLAGS -D__aarch64__"
15102 fi ;;
15103 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
15104 $as_echo_n "checking whether we need to define __arm__... " >&6; }
15105 if ${ac_cv_cpp_def___arm__+:} false; then :
15106 $as_echo_n "(cached) " >&6
15107 else
15108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15109 /* end confdefs.h. */
15110 #ifndef __arm__
15112 #endif
15113 _ACEOF
15114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15115 $EGREP "yes" >/dev/null 2>&1; then :
15116 ac_cv_cpp_def___arm__=yes
15117 else
15118 ac_cv_cpp_def___arm__=no
15120 rm -f conftest*
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
15124 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
15125 if test $ac_cv_cpp_def___arm__ = yes; then :
15126 CFLAGS="$CFLAGS -D__arm__"
15127 LINTFLAGS="$LINTFLAGS -D__arm__"
15128 fi ;;
15129 esac
15131 case $host_vendor in
15132 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
15133 $as_echo_n "checking whether we need to define __sun__... " >&6; }
15134 if ${ac_cv_cpp_def___sun__+:} false; then :
15135 $as_echo_n "(cached) " >&6
15136 else
15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138 /* end confdefs.h. */
15139 #ifndef __sun__
15141 #endif
15142 _ACEOF
15143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15144 $EGREP "yes" >/dev/null 2>&1; then :
15145 ac_cv_cpp_def___sun__=yes
15146 else
15147 ac_cv_cpp_def___sun__=no
15149 rm -f conftest*
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
15153 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
15154 if test $ac_cv_cpp_def___sun__ = yes; then :
15155 CFLAGS="$CFLAGS -D__sun__"
15156 LINTFLAGS="$LINTFLAGS -D__sun__"
15157 fi ;;
15158 esac
15164 ac_config_commands="$ac_config_commands include/stamp-h"
15167 ALL_MAKEFILE_DEPENDS="
15168 # Rules automatically generated by configure
15170 .INIT: Makefile
15171 .MAKEFILEDEPS:
15172 all: Makefile
15173 Makefile: Makefile.in Make.vars.in Make.rules config.status
15174 @./config.status Make.tmp Makefile"
15176 ALL_POT_FILES=""
15177 ALL_TEST_RESOURCES=""
15180 wine_fn_append_file ()
15182 as_fn_append $1 " \\$as_nl $2"
15185 wine_fn_append_rule ()
15187 as_fn_append $1 "$as_nl$2"
15190 wine_fn_has_flag ()
15192 expr ",$2," : ".*,$1,.*" >/dev/null
15195 wine_fn_all_dir_rules ()
15197 ac_dir=$1
15198 ac_alldeps=$2
15199 ac_makedep="\$(MAKEDEP)"
15200 ac_input=Make.vars.in:$ac_dir/Makefile.in
15201 if test $ac_dir != tools
15202 then
15203 ac_alldeps="$2 $ac_makedep"
15204 else
15205 ac_alldeps="$2 include/config.h"
15207 case $2 in
15208 *.in) ac_input=$ac_input:$2 ;;
15209 *) ac_makedep="$2 $ac_makedep" ;;
15210 esac
15212 wine_fn_append_file ALL_DIRS $ac_dir
15213 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15214 "__clean__: $ac_dir/__clean__
15215 .PHONY: $ac_dir/__clean__
15216 $ac_dir/__clean__: $ac_dir/Makefile
15217 @cd $ac_dir && \$(MAKE) clean
15218 \$(RM) $ac_dir/Makefile
15219 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
15220 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
15221 depend: $ac_dir/__depend__
15222 .PHONY: $ac_dir/__depend__
15223 $ac_dir/__depend__: $ac_makedep dummy
15224 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
15227 wine_fn_pot_rules ()
15229 ac_dir=$1
15230 ac_flags=$2
15232 test "x$with_gettextpo" = xyes || return
15234 if wine_fn_has_flag mc $ac_flags
15235 then
15236 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
15237 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15238 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
15239 @cd $ac_dir && \$(MAKE) msg.pot
15240 $ac_dir/msg.pot: tools/wmc include"
15242 if wine_fn_has_flag po $ac_flags
15243 then
15244 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
15245 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15246 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
15247 @cd $ac_dir && \$(MAKE) rsrc.pot
15248 $ac_dir/rsrc.pot: tools/wrc include"
15252 wine_fn_config_makefile ()
15254 ac_dir=$1
15255 ac_enable=$2
15256 ac_flags=$3
15257 ac_rules=$4
15258 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15259 return 0
15262 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
15263 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15264 "all: $ac_dir
15265 .PHONY: $ac_dir
15266 $ac_dir: $ac_dir/Makefile dummy
15267 @cd $ac_dir && \$(MAKE)"
15269 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
15271 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15272 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15273 $ac_dir/__install__:: $ac_dir
15274 @cd $ac_dir && \$(MAKE) install
15275 $ac_dir/__uninstall__:: $ac_dir/Makefile
15276 @cd $ac_dir && \$(MAKE) uninstall
15277 install:: $ac_dir/__install__
15278 __uninstall__: $ac_dir/__uninstall__"
15280 if wine_fn_has_flag install-lib $ac_flags
15281 then
15282 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15283 ".PHONY: $ac_dir/__install-lib__
15284 $ac_dir/__install-lib__:: $ac_dir
15285 @cd $ac_dir && \$(MAKE) install-lib
15286 install-lib:: $ac_dir/__install-lib__"
15289 if wine_fn_has_flag install-dev $ac_flags
15290 then
15291 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15292 ".PHONY: $ac_dir/__install-dev
15293 $ac_dir/__install-dev__:: $ac_dir
15294 @cd $ac_dir && \$(MAKE) install-dev
15295 install-dev:: $ac_dir/__install-dev__"
15299 wine_fn_config_lib ()
15301 ac_name=$1
15302 ac_flags=$2
15303 ac_dir=dlls/$ac_name
15304 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
15306 if wine_fn_has_flag install-dev $ac_flags
15307 then :
15308 else
15309 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15310 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15311 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
15312 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15313 $ac_dir/__uninstall__::
15314 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15315 install install-dev:: $ac_dir/__install__
15316 __uninstall__: $ac_dir/__uninstall__"
15319 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
15320 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
15323 wine_fn_config_dll ()
15325 ac_name=$1
15326 ac_dir=dlls/$ac_name
15327 ac_enable=$2
15328 ac_flags=$3
15329 ac_implib=${4:-$ac_name}
15330 ac_file=$ac_dir/lib$ac_implib
15331 ac_dll=$ac_name
15332 ac_deps="tools/widl tools/winebuild tools/winegcc include"
15333 ac_implibflags=""
15335 case $ac_name in
15336 *16) ac_implibflags=" -m16" ;;
15337 *.*) ;;
15338 *) ac_dll=$ac_dll.dll ;;
15339 esac
15341 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
15343 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15344 test "$ac_enable" != enable_win16 || return 0
15345 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
15346 else
15347 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15348 "$ac_dir: __builddeps__
15349 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
15350 @cd $ac_dir && \$(MAKE) \$@"
15352 if wine_fn_has_flag install-lib $ac_flags
15353 then :
15354 else
15355 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15356 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
15357 install install-lib:: $ac_dir/__install-lib__
15358 __uninstall__: $ac_dir/__uninstall__"
15359 if test -n "$DLLEXT"
15360 then
15361 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15362 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15363 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
15364 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
15365 $ac_dir/__uninstall__::
15366 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
15367 else
15368 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15369 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15370 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
15371 $ac_dir/__uninstall__::
15372 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
15376 wine_fn_pot_rules $ac_dir $ac_flags
15379 if wine_fn_has_flag staticimplib $ac_flags
15380 then
15381 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15382 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
15383 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
15384 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
15385 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
15386 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
15387 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
15388 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15389 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15390 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15391 $ac_dir/__uninstall__::
15392 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15393 install install-dev:: $ac_dir/__install-dev__
15394 __uninstall__: $ac_dir/__uninstall__"
15396 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
15397 then
15398 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15399 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
15400 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
15401 $ac_dir/__uninstall__::
15402 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
15405 if test "x$CROSSTEST_DISABLE" = x
15406 then
15407 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15408 "__builddeps__: $ac_file.cross.a
15409 $ac_file.cross.a: $ac_dir/Makefile dummy
15410 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
15413 elif wine_fn_has_flag implib $ac_flags
15414 then
15415 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15416 "__builddeps__: $ac_file.$IMPLIBEXT
15417 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15418 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15419 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15420 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15421 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15422 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15423 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15424 $ac_dir/__uninstall__::
15425 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15426 install install-dev:: $ac_dir/__install-dev__
15427 __uninstall__: $ac_dir/__uninstall__"
15428 if test "x$CROSSTEST_DISABLE" = x
15429 then
15430 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15431 "__builddeps__: $ac_file.cross.a
15432 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15433 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
15436 if test "$ac_name" != "$ac_implib"
15437 then
15438 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15439 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
15440 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
15441 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
15442 clean::
15443 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
15444 if test "x$CROSSTEST_DISABLE" = x
15445 then
15446 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15447 "__builddeps__: dlls/lib$ac_implib.cross.a
15448 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
15449 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
15455 wine_fn_config_program ()
15457 ac_name=$1
15458 ac_dir=programs/$ac_name
15459 ac_enable=$2
15460 ac_flags=$3
15461 ac_program=$ac_name
15463 case $ac_name in
15464 *.*) ;;
15465 *) ac_program=$ac_program.exe ;;
15466 esac
15468 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
15470 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15472 else
15473 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15474 "$ac_dir: __builddeps__"
15476 wine_fn_pot_rules $ac_dir $ac_flags
15478 wine_fn_has_flag install $ac_flags || return
15479 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15480 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15481 install install-lib:: $ac_dir/__install__
15482 __uninstall__: $ac_dir/__uninstall__"
15484 if test -n "$DLLEXT"
15485 then
15486 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15487 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15488 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
15489 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
15490 $ac_dir/__uninstall__::
15491 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
15493 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
15494 then
15495 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15496 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
15497 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
15498 $ac_dir/__uninstall__::
15499 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
15501 else
15502 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15503 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15504 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
15505 $ac_dir/__uninstall__::
15506 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
15509 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
15510 then
15511 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15512 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
15513 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
15514 $ac_dir/__uninstall__::
15515 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
15520 wine_fn_config_test ()
15522 ac_dir=$1
15523 ac_name=$2
15524 ac_flags=$3
15525 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
15526 wine_fn_all_dir_rules $ac_dir Maketest.rules
15528 if test "x$enable_tests" = xno; then :
15530 else
15531 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15532 "all: $ac_dir
15533 .PHONY: $ac_dir
15534 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
15535 @cd $ac_dir && \$(MAKE)
15536 programs/winetest: $ac_dir
15537 check test: $ac_dir/__test__
15538 .PHONY: $ac_dir/__test__
15539 $ac_dir/__test__: dummy
15540 @cd $ac_dir && \$(MAKE) test
15541 testclean::
15542 \$(RM) $ac_dir/*.ok"
15544 if test "x$CROSSTEST_DISABLE" = x
15545 then
15546 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15547 "crosstest: $ac_dir/__crosstest__
15548 .PHONY: $ac_dir/__crosstest__
15549 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
15550 @cd $ac_dir && \$(MAKE) crosstest"
15555 wine_fn_config_tool ()
15557 ac_dir=$1
15558 ac_flags=$2
15559 if test "x$enable_tools" = xno; then :
15560 return 0
15563 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
15565 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
15566 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
15567 case $ac_dir in
15568 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
15569 esac
15572 wine_fn_config_makerules ()
15574 ac_rules=$1
15575 ac_deps=$2
15576 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15577 "$ac_rules: $ac_rules.in $ac_deps config.status
15578 @./config.status $ac_rules
15579 distclean::
15580 \$(RM) $ac_rules"
15583 wine_fn_config_symlink ()
15585 ac_link=$1
15586 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15587 "$ac_link:
15588 @./config.status $ac_link
15589 distclean::
15590 \$(RM) $ac_link"
15593 if test "x$CROSSTEST_DISABLE" != x
15594 then
15595 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15596 "crosstest:
15597 @echo \"crosstest is not supported (mingw not installed?)\" && false"
15599 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
15600 wine_fn_config_symlink dlls/shell32/AUTHORS
15601 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
15602 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
15603 if test "x$enable_fonts" != xno; then
15604 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
15605 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
15607 if test "x$enable_fonts" != xno; then
15608 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
15609 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
15611 if test "x$enable_fonts" != xno; then
15612 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
15613 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
15615 if test "x$enable_fonts" != xno; then
15616 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
15617 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
15619 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
15620 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
15621 if test "x$enable_tools" != xno; then
15622 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
15623 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
15625 ac_config_links="$ac_config_links wine:tools/winewrapper"
15626 wine_fn_config_symlink wine
15627 if test "x$enable_win64" != xno; then
15628 ac_config_links="$ac_config_links wine64:tools/winewrapper"
15629 wine_fn_config_symlink wine64
15632 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
15634 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
15636 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
15638 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
15640 ac_config_commands="$ac_config_commands dlls/user32/resources"
15642 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
15644 ac_config_commands="$ac_config_commands include/wine"
15647 wine_fn_config_makerules Make.rules
15648 MAKE_RULES=Make.rules
15649 ac_config_files="$ac_config_files Make.rules"
15651 wine_fn_config_makerules Maketest.rules Make.rules
15652 MAKE_TEST_RULES=Maketest.rules
15653 ac_config_files="$ac_config_files Maketest.rules"
15655 wine_fn_config_makerules dlls/Makedll.rules Make.rules
15656 MAKE_DLL_RULES=dlls/Makedll.rules
15657 ac_config_files="$ac_config_files dlls/Makedll.rules"
15659 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
15660 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
15661 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
15663 wine_fn_config_makerules programs/Makeprog.rules Make.rules
15664 MAKE_PROG_RULES=programs/Makeprog.rules
15665 ac_config_files="$ac_config_files programs/Makeprog.rules"
15668 wine_fn_config_dll acledit enable_acledit
15669 wine_fn_config_dll aclui enable_aclui implib
15670 wine_fn_config_dll activeds enable_activeds implib
15671 wine_fn_config_dll actxprxy enable_actxprxy
15672 wine_fn_config_lib adsiid
15673 wine_fn_config_dll advapi32 enable_advapi32 implib
15674 wine_fn_config_test dlls/advapi32/tests advapi32_test
15675 wine_fn_config_dll advpack enable_advpack implib
15676 wine_fn_config_test dlls/advpack/tests advpack_test
15677 wine_fn_config_dll amstream enable_amstream
15678 wine_fn_config_test dlls/amstream/tests amstream_test
15679 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
15680 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
15681 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
15682 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
15683 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
15684 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
15685 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
15686 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
15687 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
15688 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
15689 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
15690 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
15691 wine_fn_config_dll apphelp enable_apphelp
15692 wine_fn_config_test dlls/apphelp/tests apphelp_test
15693 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
15694 wine_fn_config_dll atl enable_atl implib
15695 wine_fn_config_test dlls/atl/tests atl_test
15696 wine_fn_config_dll atl100 enable_atl100 implib
15697 wine_fn_config_test dlls/atl100/tests atl100_test
15698 wine_fn_config_dll atl80 enable_atl80 implib
15699 wine_fn_config_test dlls/atl80/tests atl80_test
15700 wine_fn_config_dll authz enable_authz
15701 wine_fn_config_dll avicap32 enable_avicap32 implib
15702 wine_fn_config_dll avifil32 enable_avifil32 implib,po
15703 wine_fn_config_test dlls/avifil32/tests avifil32_test
15704 wine_fn_config_dll avifile.dll16 enable_win16
15705 wine_fn_config_dll avrt enable_avrt implib
15706 wine_fn_config_dll bcrypt enable_bcrypt
15707 wine_fn_config_dll browseui enable_browseui po
15708 wine_fn_config_test dlls/browseui/tests browseui_test
15709 wine_fn_config_dll cabinet enable_cabinet implib
15710 wine_fn_config_test dlls/cabinet/tests cabinet_test
15711 wine_fn_config_dll capi2032 enable_capi2032 implib
15712 wine_fn_config_dll cards enable_cards implib
15713 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
15714 wine_fn_config_dll clusapi enable_clusapi implib
15715 wine_fn_config_dll comcat enable_comcat
15716 wine_fn_config_test dlls/comcat/tests comcat_test
15717 wine_fn_config_dll comctl32 enable_comctl32 implib,po
15718 wine_fn_config_test dlls/comctl32/tests comctl32_test
15719 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
15720 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
15721 wine_fn_config_dll comm.drv16 enable_win16
15722 wine_fn_config_dll commdlg.dll16 enable_win16
15723 wine_fn_config_dll compobj.dll16 enable_win16
15724 wine_fn_config_dll compstui enable_compstui implib
15725 wine_fn_config_dll credui enable_credui implib,po
15726 wine_fn_config_test dlls/credui/tests credui_test
15727 wine_fn_config_dll crtdll enable_crtdll implib
15728 wine_fn_config_dll crypt32 enable_crypt32 implib,po
15729 wine_fn_config_test dlls/crypt32/tests crypt32_test
15730 wine_fn_config_dll cryptdlg enable_cryptdlg po
15731 wine_fn_config_dll cryptdll enable_cryptdll implib
15732 wine_fn_config_dll cryptnet enable_cryptnet implib
15733 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
15734 wine_fn_config_dll cryptui enable_cryptui implib,po
15735 wine_fn_config_test dlls/cryptui/tests cryptui_test
15736 wine_fn_config_dll ctapi32 enable_ctapi32
15737 wine_fn_config_dll ctl3d.dll16 enable_win16
15738 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
15739 wine_fn_config_dll ctl3dv2.dll16 enable_win16
15740 wine_fn_config_dll d3d10 enable_d3d10 implib
15741 wine_fn_config_test dlls/d3d10/tests d3d10_test
15742 wine_fn_config_dll d3d10core enable_d3d10core implib
15743 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
15744 wine_fn_config_dll d3d11 enable_d3d11
15745 wine_fn_config_dll d3d8 enable_d3d8 implib
15746 wine_fn_config_test dlls/d3d8/tests d3d8_test
15747 wine_fn_config_dll d3d9 enable_d3d9 implib
15748 wine_fn_config_test dlls/d3d9/tests d3d9_test
15749 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
15750 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
15751 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
15752 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
15753 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
15754 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
15755 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
15756 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
15757 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
15758 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
15759 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
15760 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
15761 wine_fn_config_dll d3dim enable_d3dim implib
15762 wine_fn_config_dll d3drm enable_d3drm implib
15763 wine_fn_config_test dlls/d3drm/tests d3drm_test
15764 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15765 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15766 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15767 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15768 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15769 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15770 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15771 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15772 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15773 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15774 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15775 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15776 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15777 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15778 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15779 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15780 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15781 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15782 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15783 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15784 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15785 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15786 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15787 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15788 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15789 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15790 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15791 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15792 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15793 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15794 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15795 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15796 wine_fn_config_dll d3dxof enable_d3dxof implib
15797 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15798 wine_fn_config_dll dbgeng enable_dbgeng implib
15799 wine_fn_config_dll dbghelp enable_dbghelp implib
15800 wine_fn_config_dll dciman32 enable_dciman32 implib
15801 wine_fn_config_dll ddeml.dll16 enable_win16
15802 wine_fn_config_dll ddraw enable_ddraw implib
15803 wine_fn_config_test dlls/ddraw/tests ddraw_test
15804 wine_fn_config_dll ddrawex enable_ddrawex
15805 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15806 wine_fn_config_dll devenum enable_devenum po
15807 wine_fn_config_test dlls/devenum/tests devenum_test
15808 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15809 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15810 wine_fn_config_test dlls/dinput/tests dinput_test
15811 wine_fn_config_dll dinput8 enable_dinput8 implib
15812 wine_fn_config_test dlls/dinput8/tests dinput8_test
15813 wine_fn_config_dll dispdib.dll16 enable_win16
15814 wine_fn_config_dll dispex enable_dispex
15815 wine_fn_config_test dlls/dispex/tests dispex_test
15816 wine_fn_config_dll display.drv16 enable_win16
15817 wine_fn_config_dll dmband enable_dmband
15818 wine_fn_config_test dlls/dmband/tests dmband_test
15819 wine_fn_config_dll dmcompos enable_dmcompos
15820 wine_fn_config_dll dmime enable_dmime
15821 wine_fn_config_test dlls/dmime/tests dmime_test
15822 wine_fn_config_dll dmloader enable_dmloader
15823 wine_fn_config_test dlls/dmloader/tests dmloader_test
15824 wine_fn_config_dll dmscript enable_dmscript
15825 wine_fn_config_dll dmstyle enable_dmstyle
15826 wine_fn_config_dll dmsynth enable_dmsynth
15827 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
15828 wine_fn_config_dll dmusic enable_dmusic
15829 wine_fn_config_test dlls/dmusic/tests dmusic_test
15830 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15831 wine_fn_config_dll dnsapi enable_dnsapi implib
15832 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15833 wine_fn_config_dll dplay enable_dplay implib
15834 wine_fn_config_dll dplayx enable_dplayx implib
15835 wine_fn_config_test dlls/dplayx/tests dplayx_test
15836 wine_fn_config_dll dpnaddr enable_dpnaddr
15837 wine_fn_config_dll dpnet enable_dpnet implib
15838 wine_fn_config_test dlls/dpnet/tests dpnet_test
15839 wine_fn_config_dll dpnhpast enable_dpnhpast
15840 wine_fn_config_dll dpnlobby enable_dpnlobby
15841 wine_fn_config_dll dpwsockx enable_dpwsockx
15842 wine_fn_config_dll drmclien enable_drmclien
15843 wine_fn_config_dll dsound enable_dsound implib
15844 wine_fn_config_test dlls/dsound/tests dsound_test
15845 wine_fn_config_dll dssenh enable_dssenh
15846 wine_fn_config_test dlls/dssenh/tests dssenh_test
15847 wine_fn_config_dll dswave enable_dswave
15848 wine_fn_config_dll dwmapi enable_dwmapi implib
15849 wine_fn_config_dll dwrite enable_dwrite implib
15850 wine_fn_config_test dlls/dwrite/tests dwrite_test
15851 wine_fn_config_dll dxdiagn enable_dxdiagn po
15852 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15853 wine_fn_config_lib dxerr8
15854 wine_fn_config_lib dxerr9
15855 wine_fn_config_dll dxgi enable_dxgi implib
15856 wine_fn_config_test dlls/dxgi/tests dxgi_test
15857 wine_fn_config_lib dxguid
15858 wine_fn_config_dll explorerframe enable_explorerframe
15859 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15860 wine_fn_config_dll faultrep enable_faultrep implib
15861 wine_fn_config_test dlls/faultrep/tests faultrep_test
15862 wine_fn_config_dll fltlib enable_fltlib
15863 wine_fn_config_dll fusion enable_fusion
15864 wine_fn_config_test dlls/fusion/tests fusion_test
15865 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15866 wine_fn_config_dll gameux enable_gameux
15867 wine_fn_config_test dlls/gameux/tests gameux_test
15868 wine_fn_config_dll gdi.exe16 enable_win16
15869 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15870 wine_fn_config_test dlls/gdi32/tests gdi32_test
15871 wine_fn_config_dll gdiplus enable_gdiplus implib
15872 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15873 wine_fn_config_dll glu32 enable_glu32 implib
15874 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15875 wine_fn_config_dll gpkcsp enable_gpkcsp
15876 wine_fn_config_dll hal enable_hal
15877 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx implib,po htmlhelp
15878 wine_fn_config_dll hid enable_hid implib
15879 wine_fn_config_dll hlink enable_hlink implib
15880 wine_fn_config_test dlls/hlink/tests hlink_test
15881 wine_fn_config_dll hnetcfg enable_hnetcfg
15882 wine_fn_config_dll httpapi enable_httpapi
15883 wine_fn_config_dll iccvid enable_iccvid po
15884 wine_fn_config_dll icmp enable_icmp
15885 wine_fn_config_dll ieframe enable_ieframe implib,po
15886 wine_fn_config_test dlls/ieframe/tests ieframe_test
15887 wine_fn_config_dll ifsmgr.vxd enable_win16
15888 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15889 wine_fn_config_dll imagehlp enable_imagehlp implib
15890 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15891 wine_fn_config_dll imm.dll16 enable_win16
15892 wine_fn_config_dll imm32 enable_imm32 implib
15893 wine_fn_config_test dlls/imm32/tests imm32_test
15894 wine_fn_config_dll inetcomm enable_inetcomm implib
15895 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15896 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15897 wine_fn_config_dll inetmib1 enable_inetmib1
15898 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15899 wine_fn_config_dll infosoft enable_infosoft
15900 wine_fn_config_test dlls/infosoft/tests infosoft_test
15901 wine_fn_config_dll initpki enable_initpki
15902 wine_fn_config_dll inkobj enable_inkobj
15903 wine_fn_config_dll inseng enable_inseng
15904 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15905 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15906 wine_fn_config_dll itircl enable_itircl
15907 wine_fn_config_dll itss enable_itss
15908 wine_fn_config_test dlls/itss/tests itss_test
15909 wine_fn_config_dll joy.cpl enable_joy_cpl po
15910 wine_fn_config_dll jscript enable_jscript po
15911 wine_fn_config_test dlls/jscript/tests jscript_test
15912 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15913 wine_fn_config_test dlls/kernel32/tests kernel32_test
15914 wine_fn_config_dll keyboard.drv16 enable_win16
15915 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15916 wine_fn_config_dll ktmw32 enable_ktmw32
15917 wine_fn_config_dll loadperf enable_loadperf implib
15918 wine_fn_config_dll localspl enable_localspl po
15919 wine_fn_config_test dlls/localspl/tests localspl_test
15920 wine_fn_config_dll localui enable_localui po
15921 wine_fn_config_test dlls/localui/tests localui_test
15922 wine_fn_config_dll lz32 enable_lz32 implib
15923 wine_fn_config_test dlls/lz32/tests lz32_test
15924 wine_fn_config_dll lzexpand.dll16 enable_win16
15925 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15926 wine_fn_config_test dlls/mapi32/tests mapi32_test
15927 wine_fn_config_dll mapistub enable_mapistub
15928 wine_fn_config_dll mciavi32 enable_mciavi32
15929 wine_fn_config_dll mcicda enable_mcicda
15930 wine_fn_config_dll mciqtz32 enable_mciqtz32
15931 wine_fn_config_dll mciseq enable_mciseq
15932 wine_fn_config_dll mciwave enable_mciwave
15933 wine_fn_config_dll mgmtapi enable_mgmtapi
15934 wine_fn_config_dll midimap enable_midimap
15935 wine_fn_config_dll mlang enable_mlang implib
15936 wine_fn_config_test dlls/mlang/tests mlang_test
15937 wine_fn_config_dll mmcndmgr enable_mmcndmgr
15938 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
15939 wine_fn_config_dll mmdevapi enable_mmdevapi
15940 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15941 wine_fn_config_dll mmdevldr.vxd enable_win16
15942 wine_fn_config_dll mmsystem.dll16 enable_win16
15943 wine_fn_config_dll monodebg.vxd enable_win16
15944 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15945 wine_fn_config_dll mouse.drv16 enable_win16
15946 wine_fn_config_dll mpr enable_mpr implib,po
15947 wine_fn_config_test dlls/mpr/tests mpr_test
15948 wine_fn_config_dll mprapi enable_mprapi implib
15949 wine_fn_config_dll msacm.dll16 enable_win16
15950 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15951 wine_fn_config_dll msacm32 enable_msacm32 implib,po
15952 wine_fn_config_test dlls/msacm32/tests msacm32_test
15953 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15954 wine_fn_config_dll mscat32 enable_mscat32
15955 wine_fn_config_dll mscms enable_mscms implib
15956 wine_fn_config_test dlls/mscms/tests mscms_test
15957 wine_fn_config_dll mscoree enable_mscoree
15958 wine_fn_config_test dlls/mscoree/tests mscoree_test
15959 wine_fn_config_dll msctf enable_msctf
15960 wine_fn_config_test dlls/msctf/tests msctf_test
15961 wine_fn_config_dll msdaps enable_msdaps
15962 wine_fn_config_dll msdmo enable_msdmo implib
15963 wine_fn_config_dll msftedit enable_msftedit
15964 wine_fn_config_dll msg711.acm enable_msg711_acm
15965 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15966 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15967 wine_fn_config_dll mshtml enable_mshtml implib,po
15968 wine_fn_config_test dlls/mshtml/tests mshtml_test
15969 wine_fn_config_dll msi enable_msi implib,po
15970 wine_fn_config_test dlls/msi/tests msi_test
15971 wine_fn_config_dll msident enable_msident
15972 wine_fn_config_dll msimg32 enable_msimg32 implib
15973 wine_fn_config_dll msimsg enable_msimsg
15974 wine_fn_config_dll msimtf enable_msimtf
15975 wine_fn_config_dll msisip enable_msisip
15976 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15977 wine_fn_config_dll msls31 enable_msls31
15978 wine_fn_config_dll msnet32 enable_msnet32
15979 wine_fn_config_dll mspatcha enable_mspatcha
15980 wine_fn_config_dll msrle32 enable_msrle32 po
15981 wine_fn_config_dll mssign32 enable_mssign32
15982 wine_fn_config_dll mssip32 enable_mssip32
15983 wine_fn_config_dll mstask enable_mstask
15984 wine_fn_config_test dlls/mstask/tests mstask_test
15985 wine_fn_config_dll msvcirt enable_msvcirt
15986 wine_fn_config_dll msvcm80 enable_msvcm80
15987 wine_fn_config_dll msvcm90 enable_msvcm90
15988 wine_fn_config_dll msvcp100 enable_msvcp100
15989 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
15990 wine_fn_config_dll msvcp110 enable_msvcp110
15991 wine_fn_config_dll msvcp60 enable_msvcp60
15992 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
15993 wine_fn_config_dll msvcp70 enable_msvcp70
15994 wine_fn_config_dll msvcp71 enable_msvcp71
15995 wine_fn_config_dll msvcp80 enable_msvcp80
15996 wine_fn_config_dll msvcp90 enable_msvcp90
15997 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15998 wine_fn_config_dll msvcr100 enable_msvcr100
15999 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
16000 wine_fn_config_dll msvcr110 enable_msvcr110
16001 wine_fn_config_dll msvcr70 enable_msvcr70 implib
16002 wine_fn_config_dll msvcr71 enable_msvcr71 implib
16003 wine_fn_config_dll msvcr80 enable_msvcr80
16004 wine_fn_config_dll msvcr90 enable_msvcr90
16005 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
16006 wine_fn_config_dll msvcrt enable_msvcrt implib
16007 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
16008 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
16009 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
16010 wine_fn_config_dll msvcrtd enable_msvcrtd implib
16011 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
16012 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
16013 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
16014 wine_fn_config_dll msvidc32 enable_msvidc32 po
16015 wine_fn_config_dll msvideo.dll16 enable_win16
16016 wine_fn_config_dll mswsock enable_mswsock implib
16017 wine_fn_config_dll msxml enable_msxml
16018 wine_fn_config_dll msxml2 enable_msxml2
16019 wine_fn_config_dll msxml3 enable_msxml3
16020 wine_fn_config_test dlls/msxml3/tests msxml3_test
16021 wine_fn_config_dll msxml4 enable_msxml4
16022 wine_fn_config_dll msxml6 enable_msxml6
16023 wine_fn_config_dll nddeapi enable_nddeapi implib
16024 wine_fn_config_dll netapi32 enable_netapi32 implib
16025 wine_fn_config_test dlls/netapi32/tests netapi32_test
16026 wine_fn_config_dll newdev enable_newdev implib
16027 wine_fn_config_dll normaliz enable_normaliz implib
16028 wine_fn_config_dll npmshtml enable_npmshtml
16029 wine_fn_config_dll ntdll enable_ntdll implib
16030 wine_fn_config_test dlls/ntdll/tests ntdll_test
16031 wine_fn_config_dll ntdsapi enable_ntdsapi implib
16032 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
16033 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
16034 wine_fn_config_dll ntprint enable_ntprint
16035 wine_fn_config_test dlls/ntprint/tests ntprint_test
16036 wine_fn_config_dll objsel enable_objsel
16037 wine_fn_config_dll odbc32 enable_odbc32 implib
16038 wine_fn_config_dll odbccp32 enable_odbccp32 implib
16039 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
16040 wine_fn_config_dll odbccu32 enable_odbccu32
16041 wine_fn_config_dll ole2.dll16 enable_win16
16042 wine_fn_config_dll ole2conv.dll16 enable_win16
16043 wine_fn_config_dll ole2disp.dll16 enable_win16
16044 wine_fn_config_dll ole2nls.dll16 enable_win16
16045 wine_fn_config_dll ole2prox.dll16 enable_win16
16046 wine_fn_config_dll ole2thk.dll16 enable_win16
16047 wine_fn_config_dll ole32 enable_ole32 implib
16048 wine_fn_config_test dlls/ole32/tests ole32_test
16049 wine_fn_config_dll oleacc enable_oleacc implib,po
16050 wine_fn_config_test dlls/oleacc/tests oleacc_test
16051 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
16052 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
16053 wine_fn_config_dll olecli.dll16 enable_win16
16054 wine_fn_config_dll olecli32 enable_olecli32 implib
16055 wine_fn_config_dll oledb32 enable_oledb32
16056 wine_fn_config_test dlls/oledb32/tests oledb32_test
16057 wine_fn_config_dll oledlg enable_oledlg implib,po
16058 wine_fn_config_dll olepro32 enable_olepro32 implib
16059 wine_fn_config_dll olesvr.dll16 enable_win16
16060 wine_fn_config_dll olesvr32 enable_olesvr32 implib
16061 wine_fn_config_dll olethk32 enable_olethk32
16062 wine_fn_config_dll openal32 enable_openal32
16063 wine_fn_config_dll opencl enable_opencl
16064 wine_fn_config_dll opengl32 enable_opengl32 implib
16065 wine_fn_config_test dlls/opengl32/tests opengl32_test
16066 wine_fn_config_dll pdh enable_pdh implib
16067 wine_fn_config_test dlls/pdh/tests pdh_test
16068 wine_fn_config_dll photometadatahandler enable_photometadatahandler
16069 wine_fn_config_dll pidgen enable_pidgen
16070 wine_fn_config_dll powrprof enable_powrprof implib
16071 wine_fn_config_dll printui enable_printui
16072 wine_fn_config_dll propsys enable_propsys implib
16073 wine_fn_config_test dlls/propsys/tests propsys_test
16074 wine_fn_config_dll psapi enable_psapi implib
16075 wine_fn_config_test dlls/psapi/tests psapi_test
16076 wine_fn_config_dll pstorec enable_pstorec
16077 wine_fn_config_dll qcap enable_qcap
16078 wine_fn_config_dll qedit enable_qedit
16079 wine_fn_config_test dlls/qedit/tests qedit_test
16080 wine_fn_config_dll qmgr enable_qmgr
16081 wine_fn_config_test dlls/qmgr/tests qmgr_test
16082 wine_fn_config_dll qmgrprxy enable_qmgrprxy
16083 wine_fn_config_dll quartz enable_quartz implib
16084 wine_fn_config_test dlls/quartz/tests quartz_test
16085 wine_fn_config_dll query enable_query
16086 wine_fn_config_dll rasapi16.dll16 enable_win16
16087 wine_fn_config_dll rasapi32 enable_rasapi32 implib
16088 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
16089 wine_fn_config_dll rasdlg enable_rasdlg implib
16090 wine_fn_config_dll regapi enable_regapi
16091 wine_fn_config_dll resutils enable_resutils implib
16092 wine_fn_config_dll riched20 enable_riched20 implib
16093 wine_fn_config_test dlls/riched20/tests riched20_test
16094 wine_fn_config_dll riched32 enable_riched32
16095 wine_fn_config_test dlls/riched32/tests riched32_test
16096 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
16097 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
16098 wine_fn_config_dll rsabase enable_rsabase
16099 wine_fn_config_dll rsaenh enable_rsaenh implib
16100 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
16101 wine_fn_config_dll rstrtmgr enable_rstrtmgr
16102 wine_fn_config_dll rtutils enable_rtutils implib
16103 wine_fn_config_dll samlib enable_samlib
16104 wine_fn_config_dll sane.ds enable_sane_ds po
16105 wine_fn_config_dll scarddlg enable_scarddlg
16106 wine_fn_config_dll sccbase enable_sccbase
16107 wine_fn_config_dll schannel enable_schannel
16108 wine_fn_config_test dlls/schannel/tests schannel_test
16109 wine_fn_config_dll scrrun enable_scrrun
16110 wine_fn_config_test dlls/scrrun/tests scrrun_test
16111 wine_fn_config_dll scsiport.sys enable_scsiport_sys
16112 wine_fn_config_dll secur32 enable_secur32 implib
16113 wine_fn_config_test dlls/secur32/tests secur32_test
16114 wine_fn_config_dll security enable_security
16115 wine_fn_config_dll sensapi enable_sensapi implib
16116 wine_fn_config_dll serialui enable_serialui implib,po
16117 wine_fn_config_test dlls/serialui/tests serialui_test
16118 wine_fn_config_dll setupapi enable_setupapi implib,po
16119 wine_fn_config_test dlls/setupapi/tests setupapi_test
16120 wine_fn_config_dll setupx.dll16 enable_win16
16121 wine_fn_config_dll sfc enable_sfc implib
16122 wine_fn_config_dll sfc_os enable_sfc_os implib
16123 wine_fn_config_dll shdoclc enable_shdoclc po
16124 wine_fn_config_dll shdocvw enable_shdocvw implib
16125 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
16126 wine_fn_config_dll shell.dll16 enable_win16
16127 wine_fn_config_dll shell32 enable_shell32 implib,po
16128 wine_fn_config_test dlls/shell32/tests shell32_test
16129 wine_fn_config_dll shfolder enable_shfolder implib
16130 wine_fn_config_dll shlwapi enable_shlwapi implib,po
16131 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
16132 wine_fn_config_dll slbcsp enable_slbcsp
16133 wine_fn_config_dll slc enable_slc implib
16134 wine_fn_config_dll snmpapi enable_snmpapi implib
16135 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
16136 wine_fn_config_dll softpub enable_softpub
16137 wine_fn_config_dll sound.drv16 enable_win16
16138 wine_fn_config_dll spoolss enable_spoolss implib
16139 wine_fn_config_test dlls/spoolss/tests spoolss_test
16140 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
16141 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
16142 wine_fn_config_dll sti enable_sti implib
16143 wine_fn_config_test dlls/sti/tests sti_test
16144 wine_fn_config_dll storage.dll16 enable_win16
16145 wine_fn_config_dll stress.dll16 enable_win16
16146 wine_fn_config_lib strmbase
16147 wine_fn_config_lib strmiids
16148 wine_fn_config_dll svrapi enable_svrapi
16149 wine_fn_config_dll sxs enable_sxs implib
16150 wine_fn_config_test dlls/sxs/tests sxs_test
16151 wine_fn_config_dll system.drv16 enable_win16
16152 wine_fn_config_dll t2embed enable_t2embed
16153 wine_fn_config_dll tapi32 enable_tapi32 implib
16154 wine_fn_config_dll toolhelp.dll16 enable_win16
16155 wine_fn_config_dll traffic enable_traffic
16156 wine_fn_config_dll twain.dll16 enable_win16
16157 wine_fn_config_dll twain_32 enable_twain_32
16158 wine_fn_config_test dlls/twain_32/tests twain_32_test
16159 wine_fn_config_dll typelib.dll16 enable_win16
16160 wine_fn_config_dll unicows enable_unicows implib
16161 wine_fn_config_dll updspapi enable_updspapi
16162 wine_fn_config_dll url enable_url implib
16163 wine_fn_config_dll urlmon enable_urlmon implib,po
16164 wine_fn_config_test dlls/urlmon/tests urlmon_test
16165 wine_fn_config_dll usbd.sys enable_usbd_sys implib
16166 wine_fn_config_dll user.exe16 enable_win16
16167 wine_fn_config_dll user32 enable_user32 implib,po
16168 wine_fn_config_test dlls/user32/tests user32_test
16169 wine_fn_config_dll userenv enable_userenv implib
16170 wine_fn_config_test dlls/userenv/tests userenv_test
16171 wine_fn_config_dll usp10 enable_usp10 implib
16172 wine_fn_config_test dlls/usp10/tests usp10_test
16173 wine_fn_config_lib uuid
16174 wine_fn_config_dll uxtheme enable_uxtheme implib
16175 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
16176 wine_fn_config_dll vbscript enable_vbscript
16177 wine_fn_config_test dlls/vbscript/tests vbscript_test
16178 wine_fn_config_dll vcomp enable_vcomp
16179 wine_fn_config_dll vcomp100 enable_vcomp100
16180 wine_fn_config_dll vcomp90 enable_vcomp90
16181 wine_fn_config_dll vdhcp.vxd enable_win16
16182 wine_fn_config_dll vdmdbg enable_vdmdbg implib
16183 wine_fn_config_dll ver.dll16 enable_win16
16184 wine_fn_config_dll version enable_version implib
16185 wine_fn_config_test dlls/version/tests version_test
16186 wine_fn_config_dll vmm.vxd enable_win16
16187 wine_fn_config_dll vnbt.vxd enable_win16
16188 wine_fn_config_dll vnetbios.vxd enable_win16
16189 wine_fn_config_dll vtdapi.vxd enable_win16
16190 wine_fn_config_dll vwin32.vxd enable_win16
16191 wine_fn_config_dll w32skrnl enable_win16
16192 wine_fn_config_dll w32sys.dll16 enable_win16
16193 wine_fn_config_dll wbemprox enable_wbemprox
16194 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
16195 wine_fn_config_dll webservices enable_webservices implib
16196 wine_fn_config_dll wer enable_wer implib
16197 wine_fn_config_test dlls/wer/tests wer_test
16198 wine_fn_config_dll wevtapi enable_wevtapi
16199 wine_fn_config_dll wiaservc enable_wiaservc
16200 wine_fn_config_dll win32s16.dll16 enable_win16
16201 wine_fn_config_dll win87em.dll16 enable_win16
16202 wine_fn_config_dll winaspi.dll16 enable_win16
16203 wine_fn_config_dll windebug.dll16 enable_win16
16204 wine_fn_config_dll windowscodecs enable_windowscodecs implib
16205 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
16206 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
16207 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
16208 wine_fn_config_dll winealsa.drv enable_winealsa_drv
16209 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
16210 wine_fn_config_lib winecrt0
16211 wine_fn_config_dll wined3d enable_wined3d implib
16212 wine_fn_config_dll winegstreamer enable_winegstreamer
16213 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
16214 wine_fn_config_dll winemac.drv enable_winemac_drv
16215 wine_fn_config_dll winemapi enable_winemapi
16216 wine_fn_config_dll winemp3.acm enable_winemp3_acm
16217 wine_fn_config_dll wineoss.drv enable_wineoss_drv
16218 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
16219 wine_fn_config_dll wineps16.drv16 enable_win16
16220 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
16221 wine_fn_config_dll winex11.drv enable_winex11_drv
16222 wine_fn_config_dll wing.dll16 enable_win16
16223 wine_fn_config_dll wing32 enable_wing32
16224 wine_fn_config_dll winhttp enable_winhttp implib
16225 wine_fn_config_test dlls/winhttp/tests winhttp_test
16226 wine_fn_config_dll wininet enable_wininet implib,po
16227 wine_fn_config_test dlls/wininet/tests wininet_test
16228 wine_fn_config_dll winmm enable_winmm implib,po
16229 wine_fn_config_test dlls/winmm/tests winmm_test
16230 wine_fn_config_dll winnls.dll16 enable_win16
16231 wine_fn_config_dll winnls32 enable_winnls32 implib
16232 wine_fn_config_dll winscard enable_winscard implib
16233 wine_fn_config_dll winsock.dll16 enable_win16
16234 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
16235 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
16236 wine_fn_config_dll winsta enable_winsta
16237 wine_fn_config_dll wintab.dll16 enable_win16
16238 wine_fn_config_dll wintab32 enable_wintab32 implib
16239 wine_fn_config_test dlls/wintab32/tests wintab32_test
16240 wine_fn_config_dll wintrust enable_wintrust implib
16241 wine_fn_config_test dlls/wintrust/tests wintrust_test
16242 wine_fn_config_dll wlanapi enable_wlanapi
16243 wine_fn_config_dll wldap32 enable_wldap32 implib,po
16244 wine_fn_config_test dlls/wldap32/tests wldap32_test
16245 wine_fn_config_dll wmi enable_wmi
16246 wine_fn_config_dll wmiutils enable_wmiutils
16247 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
16248 wine_fn_config_dll wmvcore enable_wmvcore
16249 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
16250 wine_fn_config_dll wow32 enable_win16 implib
16251 wine_fn_config_dll ws2_32 enable_ws2_32 implib
16252 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
16253 wine_fn_config_dll wshom.ocx enable_wshom_ocx
16254 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
16255 wine_fn_config_dll wsnmp32 enable_wsnmp32
16256 wine_fn_config_dll wsock32 enable_wsock32 implib
16257 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
16258 wine_fn_config_dll wuapi enable_wuapi
16259 wine_fn_config_dll wuaueng enable_wuaueng
16260 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
16261 wine_fn_config_dll xinput1_1 enable_xinput1_1
16262 wine_fn_config_dll xinput1_2 enable_xinput1_2
16263 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
16264 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
16265 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
16266 wine_fn_config_dll xmllite enable_xmllite
16267 wine_fn_config_test dlls/xmllite/tests xmllite_test
16268 wine_fn_config_dll xolehlp enable_xolehlp
16269 wine_fn_config_dll xpsprint enable_xpsprint
16270 wine_fn_config_dll xpssvcs enable_xpssvcs
16271 wine_fn_config_makefile documentation enable_documentation
16272 wine_fn_config_makefile fonts enable_fonts install-lib
16273 wine_fn_config_makefile include enable_include install-dev
16274 wine_fn_config_makefile libs/port enable_libs_port
16275 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
16276 wine_fn_config_makefile libs/wpp enable_libs_wpp
16277 wine_fn_config_makefile loader enable_loader install-lib,manpage
16278 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
16279 wine_fn_config_program attrib enable_attrib install,po
16280 wine_fn_config_program cabarc enable_cabarc install
16281 wine_fn_config_program cacls enable_cacls install
16282 wine_fn_config_program clock enable_clock install,po
16283 wine_fn_config_program cmd enable_cmd install,po
16284 wine_fn_config_test programs/cmd/tests cmd.exe_test
16285 wine_fn_config_program conhost enable_conhost install
16286 wine_fn_config_program control enable_control install
16287 wine_fn_config_program cscript enable_cscript install
16288 wine_fn_config_program dxdiag enable_dxdiag install,po
16289 wine_fn_config_program eject enable_eject install
16290 wine_fn_config_program expand enable_expand install
16291 wine_fn_config_program explorer enable_explorer install,po
16292 wine_fn_config_program extrac32 enable_extrac32 install
16293 wine_fn_config_program findstr enable_findstr install
16294 wine_fn_config_program hh enable_hh install
16295 wine_fn_config_program hostname enable_hostname install,po
16296 wine_fn_config_program icinfo enable_icinfo install
16297 wine_fn_config_program iexplore enable_iexplore install
16298 wine_fn_config_program ipconfig enable_ipconfig install,po
16299 wine_fn_config_program lodctr enable_lodctr install
16300 wine_fn_config_program mofcomp enable_mofcomp install
16301 wine_fn_config_program mshta enable_mshta install
16302 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
16303 wine_fn_config_program net enable_net install,po
16304 wine_fn_config_program netsh enable_netsh install
16305 wine_fn_config_program netstat enable_netstat install,po
16306 wine_fn_config_program ngen enable_ngen install
16307 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
16308 wine_fn_config_program oleview enable_oleview install,po
16309 wine_fn_config_program ping enable_ping install
16310 wine_fn_config_program plugplay enable_plugplay install
16311 wine_fn_config_program presentationfontcache enable_presentationfontcache install
16312 wine_fn_config_program progman enable_progman install,po
16313 wine_fn_config_program reg enable_reg install,po
16314 wine_fn_config_program regasm enable_regasm install
16315 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
16316 wine_fn_config_test programs/regedit/tests regedit.exe_test
16317 wine_fn_config_program regsvcs enable_regsvcs install
16318 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
16319 wine_fn_config_program rpcss enable_rpcss install
16320 wine_fn_config_program rundll.exe16 enable_win16 install
16321 wine_fn_config_program rundll32 enable_rundll32 install
16322 wine_fn_config_program sc enable_sc install
16323 wine_fn_config_program schtasks enable_schtasks install
16324 wine_fn_config_program secedit enable_secedit install
16325 wine_fn_config_program servicemodelreg enable_servicemodelreg install
16326 wine_fn_config_program services enable_services install
16327 wine_fn_config_test programs/services/tests services.exe_test
16328 wine_fn_config_program spoolsv enable_spoolsv install
16329 wine_fn_config_program start enable_start install,po
16330 wine_fn_config_program svchost enable_svchost install
16331 wine_fn_config_program taskkill enable_taskkill install,po
16332 wine_fn_config_program taskmgr enable_taskmgr install,po
16333 wine_fn_config_program termsv enable_termsv install
16334 wine_fn_config_program uninstaller enable_uninstaller install,po
16335 wine_fn_config_program unlodctr enable_unlodctr install
16336 wine_fn_config_program view enable_view install,po
16337 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
16338 wine_fn_config_program winebrowser enable_winebrowser install
16339 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
16340 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
16341 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
16342 wine_fn_config_program winedevice enable_winedevice install
16343 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
16344 wine_fn_config_program winemenubuilder enable_winemenubuilder install
16345 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
16346 wine_fn_config_program winemsibuilder enable_winemsibuilder install
16347 wine_fn_config_program winepath enable_winepath install,installbin,manpage
16348 wine_fn_config_program winetest enable_winetest
16349 wine_fn_config_program winevdm enable_win16 install
16350 wine_fn_config_program winhelp.exe16 enable_win16 install
16351 wine_fn_config_program winhlp32 enable_winhlp32 install,po
16352 wine_fn_config_program winoldap.mod16 enable_win16 install
16353 wine_fn_config_program winver enable_winver install
16354 wine_fn_config_program wmic enable_wmic install,po
16355 wine_fn_config_program wordpad enable_wordpad install,po
16356 wine_fn_config_program write enable_write install,po
16357 wine_fn_config_program wscript enable_wscript install
16358 wine_fn_config_test programs/wscript/tests wscript.exe_test
16359 wine_fn_config_program wusa enable_wusa install
16360 wine_fn_config_program xcopy enable_xcopy install,po
16361 wine_fn_config_makefile server enable_server install-lib,manpage
16362 wine_fn_config_tool tools install-dev,install-lib,manpage
16363 wine_fn_config_tool tools/widl install-dev,manpage
16364 wine_fn_config_tool tools/winebuild install-dev,manpage
16365 wine_fn_config_tool tools/winedump install-dev,manpage
16366 wine_fn_config_tool tools/winegcc install-dev,manpage
16367 wine_fn_config_tool tools/wmc install-dev,manpage
16368 wine_fn_config_tool tools/wrc install-dev,manpage
16370 LINGUAS="\
16371 ar \
16372 bg \
16373 ca \
16374 cs \
16375 da \
16376 de \
16377 el \
16378 en \
16379 en_US \
16380 eo \
16381 es \
16382 fa \
16383 fi \
16384 fr \
16385 he \
16386 hi \
16387 hu \
16388 it \
16389 ja \
16390 ko \
16391 lt \
16392 ml \
16393 nb_NO \
16394 nl \
16395 or \
16396 pa \
16397 pl \
16398 pt_BR \
16399 pt_PT \
16400 rm \
16401 ro \
16402 ru \
16403 sk \
16404 sl \
16405 sr_RS@cyrillic \
16406 sr_RS@latin \
16407 sv \
16408 te \
16409 th \
16410 tr \
16411 uk \
16412 wa \
16413 zh_CN \
16414 zh_TW"
16418 ac_config_commands="$ac_config_commands Makefile"
16421 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
16425 if test "x$enable_maintainer_mode" = xyes
16426 then
16427 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
16428 cd \$(srcdir) && autoconf --warnings=all
16429 \$(srcdir)/include/config.h.in: include/stamp-h.in
16430 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
16431 cd \$(srcdir) && autoheader --warnings=all
16432 @echo timestamp > \$@"
16435 if test "x$with_gettextpo" = xyes
16436 then
16437 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
16438 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
16439 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
16440 msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
16441 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
16442 msgcat -o \$@ \$(ALL_POT_FILES)"
16445 if test "$MSGFMT" != false
16446 then
16447 PORCFLAGS="--po-dir=\$(top_builddir)/po"
16449 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
16450 else
16451 LINGUAS=
16454 if test "x$enable_tools" != xno
16455 then
16456 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
16457 clean:: __clean__
16458 \$(RM) tools/makedep\$(EXEEXT)"
16461 if test -n "$with_wine64"
16462 then
16463 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
16464 fonts server tools:
16465 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
16466 $with_wine64/loader/wine:
16467 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
16468 $with_wine64/loader/wine-preloader:
16469 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
16470 clean::
16471 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
16474 cat >confcache <<\_ACEOF
16475 # This file is a shell script that caches the results of configure
16476 # tests run on this system so they can be shared between configure
16477 # scripts and configure runs, see configure's option --config-cache.
16478 # It is not useful on other systems. If it contains results you don't
16479 # want to keep, you may remove or edit it.
16481 # config.status only pays attention to the cache file if you give it
16482 # the --recheck option to rerun configure.
16484 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16485 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16486 # following values.
16488 _ACEOF
16490 # The following way of writing the cache mishandles newlines in values,
16491 # but we know of no workaround that is simple, portable, and efficient.
16492 # So, we kill variables containing newlines.
16493 # Ultrix sh set writes to stderr and can't be redirected directly,
16494 # and sets the high bit in the cache file unless we assign to the vars.
16496 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16497 eval ac_val=\$$ac_var
16498 case $ac_val in #(
16499 *${as_nl}*)
16500 case $ac_var in #(
16501 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16502 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16503 esac
16504 case $ac_var in #(
16505 _ | IFS | as_nl) ;; #(
16506 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16507 *) { eval $ac_var=; unset $ac_var;} ;;
16508 esac ;;
16509 esac
16510 done
16512 (set) 2>&1 |
16513 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16514 *${as_nl}ac_space=\ *)
16515 # `set' does not quote correctly, so add quotes: double-quote
16516 # substitution turns \\\\ into \\, and sed turns \\ into \.
16517 sed -n \
16518 "s/'/'\\\\''/g;
16519 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16520 ;; #(
16522 # `set' quotes correctly as required by POSIX, so do not add quotes.
16523 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16525 esac |
16526 sort
16528 sed '
16529 /^ac_cv_env_/b end
16530 t clear
16531 :clear
16532 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16533 t end
16534 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16535 :end' >>confcache
16536 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16537 if test -w "$cache_file"; then
16538 if test "x$cache_file" != "x/dev/null"; then
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16540 $as_echo "$as_me: updating cache $cache_file" >&6;}
16541 if test ! -f "$cache_file" || test -h "$cache_file"; then
16542 cat confcache >"$cache_file"
16543 else
16544 case $cache_file in #(
16545 */* | ?:*)
16546 mv -f confcache "$cache_file"$$ &&
16547 mv -f "$cache_file"$$ "$cache_file" ;; #(
16549 mv -f confcache "$cache_file" ;;
16550 esac
16553 else
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16555 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16558 rm -f confcache
16560 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16561 # Let make expand exec_prefix.
16562 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16564 DEFS=-DHAVE_CONFIG_H
16566 ac_libobjs=
16567 ac_ltlibobjs=
16569 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16570 # 1. Remove the extension, and $U if already installed.
16571 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16572 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16573 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16574 # will be set to the directory where LIBOBJS objects are built.
16575 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16576 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16577 done
16578 LIBOBJS=$ac_libobjs
16580 LTLIBOBJS=$ac_ltlibobjs
16584 : "${CONFIG_STATUS=./config.status}"
16585 ac_write_fail=0
16586 ac_clean_files_save=$ac_clean_files
16587 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16589 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16590 as_write_fail=0
16591 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16592 #! $SHELL
16593 # Generated by $as_me.
16594 # Run this file to recreate the current configuration.
16595 # Compiler output produced by configure, useful for debugging
16596 # configure, is in config.log if it exists.
16598 debug=false
16599 ac_cs_recheck=false
16600 ac_cs_silent=false
16602 SHELL=\${CONFIG_SHELL-$SHELL}
16603 export SHELL
16604 _ASEOF
16605 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16606 ## -------------------- ##
16607 ## M4sh Initialization. ##
16608 ## -------------------- ##
16610 # Be more Bourne compatible
16611 DUALCASE=1; export DUALCASE # for MKS sh
16612 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16613 emulate sh
16614 NULLCMD=:
16615 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16616 # is contrary to our usage. Disable this feature.
16617 alias -g '${1+"$@"}'='"$@"'
16618 setopt NO_GLOB_SUBST
16619 else
16620 case `(set -o) 2>/dev/null` in #(
16621 *posix*) :
16622 set -o posix ;; #(
16623 *) :
16625 esac
16629 as_nl='
16631 export as_nl
16632 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16633 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16634 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16635 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16636 # Prefer a ksh shell builtin over an external printf program on Solaris,
16637 # but without wasting forks for bash or zsh.
16638 if test -z "$BASH_VERSION$ZSH_VERSION" \
16639 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16640 as_echo='print -r --'
16641 as_echo_n='print -rn --'
16642 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16643 as_echo='printf %s\n'
16644 as_echo_n='printf %s'
16645 else
16646 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16647 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16648 as_echo_n='/usr/ucb/echo -n'
16649 else
16650 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16651 as_echo_n_body='eval
16652 arg=$1;
16653 case $arg in #(
16654 *"$as_nl"*)
16655 expr "X$arg" : "X\\(.*\\)$as_nl";
16656 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16657 esac;
16658 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16660 export as_echo_n_body
16661 as_echo_n='sh -c $as_echo_n_body as_echo'
16663 export as_echo_body
16664 as_echo='sh -c $as_echo_body as_echo'
16667 # The user is always right.
16668 if test "${PATH_SEPARATOR+set}" != set; then
16669 PATH_SEPARATOR=:
16670 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16671 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16672 PATH_SEPARATOR=';'
16677 # IFS
16678 # We need space, tab and new line, in precisely that order. Quoting is
16679 # there to prevent editors from complaining about space-tab.
16680 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16681 # splitting by setting IFS to empty value.)
16682 IFS=" "" $as_nl"
16684 # Find who we are. Look in the path if we contain no directory separator.
16685 as_myself=
16686 case $0 in #((
16687 *[\\/]* ) as_myself=$0 ;;
16688 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16689 for as_dir in $PATH
16691 IFS=$as_save_IFS
16692 test -z "$as_dir" && as_dir=.
16693 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16694 done
16695 IFS=$as_save_IFS
16698 esac
16699 # We did not find ourselves, most probably we were run as `sh COMMAND'
16700 # in which case we are not to be found in the path.
16701 if test "x$as_myself" = x; then
16702 as_myself=$0
16704 if test ! -f "$as_myself"; then
16705 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16706 exit 1
16709 # Unset variables that we do not need and which cause bugs (e.g. in
16710 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16711 # suppresses any "Segmentation fault" message there. '((' could
16712 # trigger a bug in pdksh 5.2.14.
16713 for as_var in BASH_ENV ENV MAIL MAILPATH
16714 do eval test x\${$as_var+set} = xset \
16715 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16716 done
16717 PS1='$ '
16718 PS2='> '
16719 PS4='+ '
16721 # NLS nuisances.
16722 LC_ALL=C
16723 export LC_ALL
16724 LANGUAGE=C
16725 export LANGUAGE
16727 # CDPATH.
16728 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16731 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16732 # ----------------------------------------
16733 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16734 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16735 # script with STATUS, using 1 if that was 0.
16736 as_fn_error ()
16738 as_status=$1; test $as_status -eq 0 && as_status=1
16739 if test "$4"; then
16740 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16741 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16743 $as_echo "$as_me: error: $2" >&2
16744 as_fn_exit $as_status
16745 } # as_fn_error
16748 # as_fn_set_status STATUS
16749 # -----------------------
16750 # Set $? to STATUS, without forking.
16751 as_fn_set_status ()
16753 return $1
16754 } # as_fn_set_status
16756 # as_fn_exit STATUS
16757 # -----------------
16758 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16759 as_fn_exit ()
16761 set +e
16762 as_fn_set_status $1
16763 exit $1
16764 } # as_fn_exit
16766 # as_fn_unset VAR
16767 # ---------------
16768 # Portably unset VAR.
16769 as_fn_unset ()
16771 { eval $1=; unset $1;}
16773 as_unset=as_fn_unset
16774 # as_fn_append VAR VALUE
16775 # ----------------------
16776 # Append the text in VALUE to the end of the definition contained in VAR. Take
16777 # advantage of any shell optimizations that allow amortized linear growth over
16778 # repeated appends, instead of the typical quadratic growth present in naive
16779 # implementations.
16780 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16781 eval 'as_fn_append ()
16783 eval $1+=\$2
16785 else
16786 as_fn_append ()
16788 eval $1=\$$1\$2
16790 fi # as_fn_append
16792 # as_fn_arith ARG...
16793 # ------------------
16794 # Perform arithmetic evaluation on the ARGs, and store the result in the
16795 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16796 # must be portable across $(()) and expr.
16797 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16798 eval 'as_fn_arith ()
16800 as_val=$(( $* ))
16802 else
16803 as_fn_arith ()
16805 as_val=`expr "$@" || test $? -eq 1`
16807 fi # as_fn_arith
16810 if expr a : '\(a\)' >/dev/null 2>&1 &&
16811 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16812 as_expr=expr
16813 else
16814 as_expr=false
16817 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16818 as_basename=basename
16819 else
16820 as_basename=false
16823 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16824 as_dirname=dirname
16825 else
16826 as_dirname=false
16829 as_me=`$as_basename -- "$0" ||
16830 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16831 X"$0" : 'X\(//\)$' \| \
16832 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16833 $as_echo X/"$0" |
16834 sed '/^.*\/\([^/][^/]*\)\/*$/{
16835 s//\1/
16838 /^X\/\(\/\/\)$/{
16839 s//\1/
16842 /^X\/\(\/\).*/{
16843 s//\1/
16846 s/.*/./; q'`
16848 # Avoid depending upon Character Ranges.
16849 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16850 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16851 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16852 as_cr_digits='0123456789'
16853 as_cr_alnum=$as_cr_Letters$as_cr_digits
16855 ECHO_C= ECHO_N= ECHO_T=
16856 case `echo -n x` in #(((((
16857 -n*)
16858 case `echo 'xy\c'` in
16859 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16860 xy) ECHO_C='\c';;
16861 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16862 ECHO_T=' ';;
16863 esac;;
16865 ECHO_N='-n';;
16866 esac
16868 rm -f conf$$ conf$$.exe conf$$.file
16869 if test -d conf$$.dir; then
16870 rm -f conf$$.dir/conf$$.file
16871 else
16872 rm -f conf$$.dir
16873 mkdir conf$$.dir 2>/dev/null
16875 if (echo >conf$$.file) 2>/dev/null; then
16876 if ln -s conf$$.file conf$$ 2>/dev/null; then
16877 as_ln_s='ln -s'
16878 # ... but there are two gotchas:
16879 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16880 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16881 # In both cases, we have to default to `cp -pR'.
16882 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16883 as_ln_s='cp -pR'
16884 elif ln conf$$.file conf$$ 2>/dev/null; then
16885 as_ln_s=ln
16886 else
16887 as_ln_s='cp -pR'
16889 else
16890 as_ln_s='cp -pR'
16892 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16893 rmdir conf$$.dir 2>/dev/null
16896 # as_fn_mkdir_p
16897 # -------------
16898 # Create "$as_dir" as a directory, including parents if necessary.
16899 as_fn_mkdir_p ()
16902 case $as_dir in #(
16903 -*) as_dir=./$as_dir;;
16904 esac
16905 test -d "$as_dir" || eval $as_mkdir_p || {
16906 as_dirs=
16907 while :; do
16908 case $as_dir in #(
16909 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16910 *) as_qdir=$as_dir;;
16911 esac
16912 as_dirs="'$as_qdir' $as_dirs"
16913 as_dir=`$as_dirname -- "$as_dir" ||
16914 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16915 X"$as_dir" : 'X\(//\)[^/]' \| \
16916 X"$as_dir" : 'X\(//\)$' \| \
16917 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16918 $as_echo X"$as_dir" |
16919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16920 s//\1/
16923 /^X\(\/\/\)[^/].*/{
16924 s//\1/
16927 /^X\(\/\/\)$/{
16928 s//\1/
16931 /^X\(\/\).*/{
16932 s//\1/
16935 s/.*/./; q'`
16936 test -d "$as_dir" && break
16937 done
16938 test -z "$as_dirs" || eval "mkdir $as_dirs"
16939 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16942 } # as_fn_mkdir_p
16943 if mkdir -p . 2>/dev/null; then
16944 as_mkdir_p='mkdir -p "$as_dir"'
16945 else
16946 test -d ./-p && rmdir ./-p
16947 as_mkdir_p=false
16951 # as_fn_executable_p FILE
16952 # -----------------------
16953 # Test if FILE is an executable regular file.
16954 as_fn_executable_p ()
16956 test -f "$1" && test -x "$1"
16957 } # as_fn_executable_p
16958 as_test_x='test -x'
16959 as_executable_p=as_fn_executable_p
16961 # Sed expression to map a string onto a valid CPP name.
16962 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16964 # Sed expression to map a string onto a valid variable name.
16965 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16968 exec 6>&1
16969 ## ----------------------------------- ##
16970 ## Main body of $CONFIG_STATUS script. ##
16971 ## ----------------------------------- ##
16972 _ASEOF
16973 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16976 # Save the log message, to keep $0 and so on meaningful, and to
16977 # report actual input values of CONFIG_FILES etc. instead of their
16978 # values after options handling.
16979 ac_log="
16980 This file was extended by Wine $as_me 1.5.30, which was
16981 generated by GNU Autoconf 2.69. Invocation command line was
16983 CONFIG_FILES = $CONFIG_FILES
16984 CONFIG_HEADERS = $CONFIG_HEADERS
16985 CONFIG_LINKS = $CONFIG_LINKS
16986 CONFIG_COMMANDS = $CONFIG_COMMANDS
16987 $ $0 $@
16989 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16992 _ACEOF
16994 case $ac_config_files in *"
16995 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16996 esac
16998 case $ac_config_headers in *"
16999 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17000 esac
17003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17004 # Files that config.status was made for.
17005 config_files="$ac_config_files"
17006 config_headers="$ac_config_headers"
17007 config_links="$ac_config_links"
17008 config_commands="$ac_config_commands"
17010 _ACEOF
17012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17013 ac_cs_usage="\
17014 \`$as_me' instantiates files and other configuration actions
17015 from templates according to the current configuration. Unless the files
17016 and actions are specified as TAGs, all are instantiated by default.
17018 Usage: $0 [OPTION]... [TAG]...
17020 -h, --help print this help, then exit
17021 -V, --version print version number and configuration settings, then exit
17022 --config print configuration, then exit
17023 -q, --quiet, --silent
17024 do not print progress messages
17025 -d, --debug don't remove temporary files
17026 --recheck update $as_me by reconfiguring in the same conditions
17027 --file=FILE[:TEMPLATE]
17028 instantiate the configuration file FILE
17029 --header=FILE[:TEMPLATE]
17030 instantiate the configuration header FILE
17032 Configuration files:
17033 $config_files
17035 Configuration headers:
17036 $config_headers
17038 Configuration links:
17039 $config_links
17041 Configuration commands:
17042 $config_commands
17044 Report bugs to <wine-devel@winehq.org>.
17045 Wine home page: <http://www.winehq.org>."
17047 _ACEOF
17048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17049 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17050 ac_cs_version="\\
17051 Wine config.status 1.5.30
17052 configured by $0, generated by GNU Autoconf 2.69,
17053 with options \\"\$ac_cs_config\\"
17055 Copyright (C) 2012 Free Software Foundation, Inc.
17056 This config.status script is free software; the Free Software Foundation
17057 gives unlimited permission to copy, distribute and modify it."
17059 ac_pwd='$ac_pwd'
17060 srcdir='$srcdir'
17061 INSTALL='$INSTALL'
17062 test -n "\$AWK" || AWK=awk
17063 _ACEOF
17065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17066 # The default lists apply if the user does not specify any file.
17067 ac_need_defaults=:
17068 while test $# != 0
17070 case $1 in
17071 --*=?*)
17072 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17073 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17074 ac_shift=:
17076 --*=)
17077 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17078 ac_optarg=
17079 ac_shift=:
17082 ac_option=$1
17083 ac_optarg=$2
17084 ac_shift=shift
17086 esac
17088 case $ac_option in
17089 # Handling of the options.
17090 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17091 ac_cs_recheck=: ;;
17092 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17093 $as_echo "$ac_cs_version"; exit ;;
17094 --config | --confi | --conf | --con | --co | --c )
17095 $as_echo "$ac_cs_config"; exit ;;
17096 --debug | --debu | --deb | --de | --d | -d )
17097 debug=: ;;
17098 --file | --fil | --fi | --f )
17099 $ac_shift
17100 case $ac_optarg in
17101 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17102 '') as_fn_error $? "missing file argument" ;;
17103 esac
17104 as_fn_append CONFIG_FILES " '$ac_optarg'"
17105 ac_need_defaults=false;;
17106 --header | --heade | --head | --hea )
17107 $ac_shift
17108 case $ac_optarg in
17109 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17110 esac
17111 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17112 ac_need_defaults=false;;
17113 --he | --h)
17114 # Conflict between --help and --header
17115 as_fn_error $? "ambiguous option: \`$1'
17116 Try \`$0 --help' for more information.";;
17117 --help | --hel | -h )
17118 $as_echo "$ac_cs_usage"; exit ;;
17119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17120 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17121 ac_cs_silent=: ;;
17123 # This is an error.
17124 -*) as_fn_error $? "unrecognized option: \`$1'
17125 Try \`$0 --help' for more information." ;;
17127 *) as_fn_append ac_config_targets " $1"
17128 ac_need_defaults=false ;;
17130 esac
17131 shift
17132 done
17134 ac_configure_extra_args=
17136 if $ac_cs_silent; then
17137 exec 6>/dev/null
17138 ac_configure_extra_args="$ac_configure_extra_args --silent"
17141 _ACEOF
17142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17143 if \$ac_cs_recheck; then
17144 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17145 shift
17146 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17147 CONFIG_SHELL='$SHELL'
17148 export CONFIG_SHELL
17149 exec "\$@"
17152 _ACEOF
17153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17154 exec 5>>config.log
17156 echo
17157 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17158 ## Running $as_me. ##
17159 _ASBOX
17160 $as_echo "$ac_log"
17161 } >&5
17163 _ACEOF
17164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17166 # INIT-COMMANDS
17168 wine_fn_output_makefile ()
17170 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
17171 $ALL_MAKEFILE_DEPENDS
17172 _WINE_EOF
17173 as_fn_error $? "could not create Makefile" "$LINENO" 5
17176 _ACEOF
17178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17180 # Handling of arguments.
17181 for ac_config_target in $ac_config_targets
17183 case $ac_config_target in
17184 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17185 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
17186 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
17187 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
17188 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
17189 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
17190 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
17191 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
17192 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
17193 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
17194 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
17195 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
17196 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
17197 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
17198 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
17199 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
17200 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
17201 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
17202 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17203 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17204 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
17205 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17206 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
17207 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17208 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
17209 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
17211 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17212 esac
17213 done
17216 # If the user did not use the arguments to specify the items to instantiate,
17217 # then the envvar interface is used. Set only those that are not.
17218 # We use the long form for the default assignment because of an extremely
17219 # bizarre bug on SunOS 4.1.3.
17220 if $ac_need_defaults; then
17221 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17222 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17223 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17224 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17227 # Have a temporary directory for convenience. Make it in the build tree
17228 # simply because there is no reason against having it here, and in addition,
17229 # creating and moving files from /tmp can sometimes cause problems.
17230 # Hook for its removal unless debugging.
17231 # Note that there is a small window in which the directory will not be cleaned:
17232 # after its creation but before its name has been assigned to `$tmp'.
17233 $debug ||
17235 tmp= ac_tmp=
17236 trap 'exit_status=$?
17237 : "${ac_tmp:=$tmp}"
17238 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17240 trap 'as_fn_exit 1' 1 2 13 15
17242 # Create a (secure) tmp directory for tmp files.
17245 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17246 test -d "$tmp"
17247 } ||
17249 tmp=./conf$$-$RANDOM
17250 (umask 077 && mkdir "$tmp")
17251 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17252 ac_tmp=$tmp
17254 # Set up the scripts for CONFIG_FILES section.
17255 # No need to generate them if there are no CONFIG_FILES.
17256 # This happens for instance with `./config.status config.h'.
17257 if test -n "$CONFIG_FILES"; then
17259 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17260 ac_cs_awk_getline=:
17261 ac_cs_awk_pipe_init=
17262 ac_cs_awk_read_file='
17263 while ((getline aline < (F[key])) > 0)
17264 print(aline)
17265 close(F[key])'
17266 ac_cs_awk_pipe_fini=
17267 else
17268 ac_cs_awk_getline=false
17269 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17270 ac_cs_awk_read_file='
17271 print "|#_!!_#|"
17272 print "cat " F[key] " &&"
17273 '$ac_cs_awk_pipe_init
17274 # The final `:' finishes the AND list.
17275 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17277 ac_cr=`echo X | tr X '\015'`
17278 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17279 # But we know of no other shell where ac_cr would be empty at this
17280 # point, so we can use a bashism as a fallback.
17281 if test "x$ac_cr" = x; then
17282 eval ac_cr=\$\'\\r\'
17284 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17285 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17286 ac_cs_awk_cr='\\r'
17287 else
17288 ac_cs_awk_cr=$ac_cr
17291 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17292 _ACEOF
17294 # Create commands to substitute file output variables.
17296 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17297 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
17298 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17299 echo "_ACAWK" &&
17300 echo "_ACEOF"
17301 } >conf$$files.sh &&
17302 . ./conf$$files.sh ||
17303 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17304 rm -f conf$$files.sh
17307 echo "cat >conf$$subs.awk <<_ACEOF" &&
17308 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17309 echo "_ACEOF"
17310 } >conf$$subs.sh ||
17311 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17312 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17313 ac_delim='%!_!# '
17314 for ac_last_try in false false false false false :; do
17315 . ./conf$$subs.sh ||
17316 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17318 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17319 if test $ac_delim_n = $ac_delim_num; then
17320 break
17321 elif $ac_last_try; then
17322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17323 else
17324 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17326 done
17327 rm -f conf$$subs.sh
17329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17330 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17331 _ACEOF
17332 sed -n '
17334 s/^/S["/; s/!.*/"]=/
17337 s/^[^!]*!//
17338 :repl
17339 t repl
17340 s/'"$ac_delim"'$//
17341 t delim
17344 s/\(.\{148\}\)..*/\1/
17345 t more1
17346 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17349 b repl
17350 :more1
17351 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17354 s/.\{148\}//
17355 t nl
17356 :delim
17358 s/\(.\{148\}\)..*/\1/
17359 t more2
17360 s/["\\]/\\&/g; s/^/"/; s/$/"/
17363 :more2
17364 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17367 s/.\{148\}//
17368 t delim
17369 ' <conf$$subs.awk | sed '
17370 /^[^""]/{
17372 s/\n//
17374 ' >>$CONFIG_STATUS || ac_write_fail=1
17375 rm -f conf$$subs.awk
17376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17377 _ACAWK
17378 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17379 for (key in S) S_is_set[key] = 1
17380 FS = "\a"
17381 \$ac_cs_awk_pipe_init
17384 line = $ 0
17385 nfields = split(line, field, "@")
17386 substed = 0
17387 len = length(field[1])
17388 for (i = 2; i < nfields; i++) {
17389 key = field[i]
17390 keylen = length(key)
17391 if (S_is_set[key]) {
17392 value = S[key]
17393 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17394 len += length(value) + length(field[++i])
17395 substed = 1
17396 } else
17397 len += 1 + keylen
17399 if (nfields == 3 && !substed) {
17400 key = field[2]
17401 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17402 \$ac_cs_awk_read_file
17403 next
17406 print line
17408 \$ac_cs_awk_pipe_fini
17409 _ACAWK
17410 _ACEOF
17411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17412 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17413 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17414 else
17416 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17417 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17418 _ACEOF
17420 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17421 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17422 # trailing colons and then remove the whole line if VPATH becomes empty
17423 # (actually we leave an empty line to preserve line numbers).
17424 if test "x$srcdir" = x.; then
17425 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17427 s///
17428 s/^/:/
17429 s/[ ]*$/:/
17430 s/:\$(srcdir):/:/g
17431 s/:\${srcdir}:/:/g
17432 s/:@srcdir@:/:/g
17433 s/^:*//
17434 s/:*$//
17436 s/\(=[ ]*\).*/\1/
17438 s/\n//
17439 s/^[^=]*=[ ]*$//
17443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17444 fi # test -n "$CONFIG_FILES"
17446 # Set up the scripts for CONFIG_HEADERS section.
17447 # No need to generate them if there are no CONFIG_HEADERS.
17448 # This happens for instance with `./config.status Makefile'.
17449 if test -n "$CONFIG_HEADERS"; then
17450 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17451 BEGIN {
17452 _ACEOF
17454 # Transform confdefs.h into an awk script `defines.awk', embedded as
17455 # here-document in config.status, that substitutes the proper values into
17456 # config.h.in to produce config.h.
17458 # Create a delimiter string that does not exist in confdefs.h, to ease
17459 # handling of long lines.
17460 ac_delim='%!_!# '
17461 for ac_last_try in false false :; do
17462 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17463 if test -z "$ac_tt"; then
17464 break
17465 elif $ac_last_try; then
17466 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17467 else
17468 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17470 done
17472 # For the awk script, D is an array of macro values keyed by name,
17473 # likewise P contains macro parameters if any. Preserve backslash
17474 # newline sequences.
17476 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17477 sed -n '
17478 s/.\{148\}/&'"$ac_delim"'/g
17479 t rset
17480 :rset
17481 s/^[ ]*#[ ]*define[ ][ ]*/ /
17482 t def
17484 :def
17485 s/\\$//
17486 t bsnl
17487 s/["\\]/\\&/g
17488 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17489 D["\1"]=" \3"/p
17490 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17492 :bsnl
17493 s/["\\]/\\&/g
17494 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17495 D["\1"]=" \3\\\\\\n"\\/p
17496 t cont
17497 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17498 t cont
17500 :cont
17502 s/.\{148\}/&'"$ac_delim"'/g
17503 t clear
17504 :clear
17505 s/\\$//
17506 t bsnlc
17507 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17509 :bsnlc
17510 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17511 b cont
17512 ' <confdefs.h | sed '
17513 s/'"$ac_delim"'/"\\\
17514 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17517 for (key in D) D_is_set[key] = 1
17518 FS = "\a"
17520 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17521 line = \$ 0
17522 split(line, arg, " ")
17523 if (arg[1] == "#") {
17524 defundef = arg[2]
17525 mac1 = arg[3]
17526 } else {
17527 defundef = substr(arg[1], 2)
17528 mac1 = arg[2]
17530 split(mac1, mac2, "(") #)
17531 macro = mac2[1]
17532 prefix = substr(line, 1, index(line, defundef) - 1)
17533 if (D_is_set[macro]) {
17534 # Preserve the white space surrounding the "#".
17535 print prefix "define", macro P[macro] D[macro]
17536 next
17537 } else {
17538 # Replace #undef with comments. This is necessary, for example,
17539 # in the case of _POSIX_SOURCE, which is predefined and required
17540 # on some systems where configure will not decide to define it.
17541 if (defundef == "undef") {
17542 print "/*", prefix defundef, macro, "*/"
17543 next
17547 { print }
17548 _ACAWK
17549 _ACEOF
17550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17551 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17552 fi # test -n "$CONFIG_HEADERS"
17555 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17556 shift
17557 for ac_tag
17559 case $ac_tag in
17560 :[FHLC]) ac_mode=$ac_tag; continue;;
17561 esac
17562 case $ac_mode$ac_tag in
17563 :[FHL]*:*);;
17564 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17565 :[FH]-) ac_tag=-:-;;
17566 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17567 esac
17568 ac_save_IFS=$IFS
17569 IFS=:
17570 set x $ac_tag
17571 IFS=$ac_save_IFS
17572 shift
17573 ac_file=$1
17574 shift
17576 case $ac_mode in
17577 :L) ac_source=$1;;
17578 :[FH])
17579 ac_file_inputs=
17580 for ac_f
17582 case $ac_f in
17583 -) ac_f="$ac_tmp/stdin";;
17584 *) # Look for the file first in the build tree, then in the source tree
17585 # (if the path is not absolute). The absolute path cannot be DOS-style,
17586 # because $ac_f cannot contain `:'.
17587 test -f "$ac_f" ||
17588 case $ac_f in
17589 [\\/$]*) false;;
17590 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17591 esac ||
17592 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17593 esac
17594 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17595 as_fn_append ac_file_inputs " '$ac_f'"
17596 done
17598 # Let's still pretend it is `configure' which instantiates (i.e., don't
17599 # use $as_me), people would be surprised to read:
17600 # /* config.h. Generated by config.status. */
17601 configure_input='Generated from '`
17602 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17603 `' by configure.'
17604 if test x"$ac_file" != x-; then
17605 configure_input="$ac_file. $configure_input"
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17607 $as_echo "$as_me: creating $ac_file" >&6;}
17609 # Neutralize special characters interpreted by sed in replacement strings.
17610 case $configure_input in #(
17611 *\&* | *\|* | *\\* )
17612 ac_sed_conf_input=`$as_echo "$configure_input" |
17613 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17614 *) ac_sed_conf_input=$configure_input;;
17615 esac
17617 case $ac_tag in
17618 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17620 esac
17622 esac
17624 ac_dir=`$as_dirname -- "$ac_file" ||
17625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17626 X"$ac_file" : 'X\(//\)[^/]' \| \
17627 X"$ac_file" : 'X\(//\)$' \| \
17628 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17629 $as_echo X"$ac_file" |
17630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17631 s//\1/
17634 /^X\(\/\/\)[^/].*/{
17635 s//\1/
17638 /^X\(\/\/\)$/{
17639 s//\1/
17642 /^X\(\/\).*/{
17643 s//\1/
17646 s/.*/./; q'`
17647 as_dir="$ac_dir"; as_fn_mkdir_p
17648 ac_builddir=.
17650 case "$ac_dir" in
17651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17653 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17654 # A ".." for each directory in $ac_dir_suffix.
17655 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17656 case $ac_top_builddir_sub in
17657 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17658 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17659 esac ;;
17660 esac
17661 ac_abs_top_builddir=$ac_pwd
17662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17663 # for backward compatibility:
17664 ac_top_builddir=$ac_top_build_prefix
17666 case $srcdir in
17667 .) # We are building in place.
17668 ac_srcdir=.
17669 ac_top_srcdir=$ac_top_builddir_sub
17670 ac_abs_top_srcdir=$ac_pwd ;;
17671 [\\/]* | ?:[\\/]* ) # Absolute name.
17672 ac_srcdir=$srcdir$ac_dir_suffix;
17673 ac_top_srcdir=$srcdir
17674 ac_abs_top_srcdir=$srcdir ;;
17675 *) # Relative name.
17676 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17677 ac_top_srcdir=$ac_top_build_prefix$srcdir
17678 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17679 esac
17680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17683 case $ac_mode in
17686 # CONFIG_FILE
17689 case $INSTALL in
17690 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17691 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17692 esac
17693 _ACEOF
17695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17696 # If the template does not know about datarootdir, expand it.
17697 # FIXME: This hack should be removed a few years after 2.60.
17698 ac_datarootdir_hack=; ac_datarootdir_seen=
17699 ac_sed_dataroot='
17700 /datarootdir/ {
17704 /@datadir@/p
17705 /@docdir@/p
17706 /@infodir@/p
17707 /@localedir@/p
17708 /@mandir@/p'
17709 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17710 *datarootdir*) ac_datarootdir_seen=yes;;
17711 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17713 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17714 _ACEOF
17715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17716 ac_datarootdir_hack='
17717 s&@datadir@&$datadir&g
17718 s&@docdir@&$docdir&g
17719 s&@infodir@&$infodir&g
17720 s&@localedir@&$localedir&g
17721 s&@mandir@&$mandir&g
17722 s&\\\${datarootdir}&$datarootdir&g' ;;
17723 esac
17724 _ACEOF
17726 # Neutralize VPATH when `$srcdir' = `.'.
17727 # Shell code in configure.ac might set extrasub.
17728 # FIXME: do we really want to maintain this feature?
17729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17730 ac_sed_extra="$ac_vpsub
17731 $extrasub
17732 _ACEOF
17733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17735 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17736 s|@configure_input@|$ac_sed_conf_input|;t t
17737 s&@top_builddir@&$ac_top_builddir_sub&;t t
17738 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17739 s&@srcdir@&$ac_srcdir&;t t
17740 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17741 s&@top_srcdir@&$ac_top_srcdir&;t t
17742 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17743 s&@builddir@&$ac_builddir&;t t
17744 s&@abs_builddir@&$ac_abs_builddir&;t t
17745 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17746 s&@INSTALL@&$ac_INSTALL&;t t
17747 $ac_datarootdir_hack
17749 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17750 if $ac_cs_awk_getline; then
17751 $AWK -f "$ac_tmp/subs.awk"
17752 else
17753 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17754 fi \
17755 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17757 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17758 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17759 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17760 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17762 which seems to be undefined. Please make sure it is defined" >&5
17763 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17764 which seems to be undefined. Please make sure it is defined" >&2;}
17766 rm -f "$ac_tmp/stdin"
17767 case $ac_file in
17768 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17769 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17770 esac \
17771 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17775 # CONFIG_HEADER
17777 if test x"$ac_file" != x-; then
17779 $as_echo "/* $configure_input */" \
17780 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17781 } >"$ac_tmp/config.h" \
17782 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17783 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17785 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17786 else
17787 rm -f "$ac_file"
17788 mv "$ac_tmp/config.h" "$ac_file" \
17789 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17791 else
17792 $as_echo "/* $configure_input */" \
17793 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17794 || as_fn_error $? "could not create -" "$LINENO" 5
17799 # CONFIG_LINK
17802 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17804 else
17805 # Prefer the file from the source tree if names are identical.
17806 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17807 ac_source=$srcdir/$ac_source
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17811 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17813 if test ! -r "$ac_source"; then
17814 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17816 rm -f "$ac_file"
17818 # Try a relative symlink, then a hard link, then a copy.
17819 case $ac_source in
17820 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17821 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17822 esac
17823 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17824 ln "$ac_source" "$ac_file" 2>/dev/null ||
17825 cp -p "$ac_source" "$ac_file" ||
17826 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17829 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17830 $as_echo "$as_me: executing $ac_file commands" >&6;}
17832 esac
17835 case $ac_file$ac_mode in
17836 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17837 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17838 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17839 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17840 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17841 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17842 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17843 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17844 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17845 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17846 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17847 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17848 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17849 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17850 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17851 "Makefile":C) wine_fn_output_makefile Makefile ;;
17853 esac
17854 done # for ac_tag
17857 as_fn_exit 0
17858 _ACEOF
17859 ac_clean_files=$ac_clean_files_save
17861 test $ac_write_fail = 0 ||
17862 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17865 # configure is writing to config.log, and then calls config.status.
17866 # config.status does its own redirection, appending to config.log.
17867 # Unfortunately, on DOS this fails, as config.log is still kept open
17868 # by configure, so config.status won't be able to write to it; its
17869 # output is simply discarded. So we exec the FD to /dev/null,
17870 # effectively closing config.log, so it can be properly (re)opened and
17871 # appended to by config.status. When coming back to configure, we
17872 # need to make the FD available again.
17873 if test "$no_create" != yes; then
17874 ac_cs_success=:
17875 ac_config_status_args=
17876 test "$silent" = yes &&
17877 ac_config_status_args="$ac_config_status_args --quiet"
17878 exec 5>/dev/null
17879 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17880 exec 5>>config.log
17881 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17882 # would make configure fail if this is the last instruction.
17883 $ac_cs_success || as_fn_exit 1
17885 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17887 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17891 if test "$no_create" = "yes"
17892 then
17893 exit 0
17896 ac_save_IFS="$IFS"
17897 if test "x$wine_notices != "x; then
17898 echo >&6
17899 IFS="|"
17900 for msg in $wine_notices; do
17901 IFS="$ac_save_IFS"
17902 if test -n "$msg"; then
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17904 $as_echo "$as_me: $msg" >&6;}
17906 done
17908 IFS="|"
17909 for msg in $wine_warnings; do
17910 IFS="$ac_save_IFS"
17911 if test -n "$msg"; then
17912 echo >&2
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17914 $as_echo "$as_me: WARNING: $msg" >&2;}
17916 done
17917 IFS="$ac_save_IFS"
17919 echo "
17920 $as_me: Finished. Do '${ac_make}' to compile Wine.
17921 " >&6