gdi32: Add support for DIB pattern brush fills.
[wine.git] / configure
blob2b3863ee1160f50d905ee8b815160af86b13191c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Wine 1.3.19.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
153 esac
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 else
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: wine-devel@winehq.org about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
247 exit 1
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
265 { eval $1=; unset $1;}
267 as_unset=as_fn_unset
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
274 return $1
275 } # as_fn_set_status
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
318 /^X\(\/\/\)$/{
319 s//\1/
322 /^X\(\/\).*/{
323 s//\1/
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
343 eval $1+=\$2
345 else
346 as_fn_append ()
348 eval $1=\$$1\$2
350 fi # as_fn_append
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
360 as_val=$(( $* ))
362 else
363 as_fn_arith ()
365 as_val=`expr "$@" || test $? -eq 1`
367 fi # as_fn_arith
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
414 /^X\/\(\/\/\)$/{
415 s//\1/
418 /^X\/\(\/\).*/{
419 s//\1/
422 s/.*/./; q'`
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
445 :lineno
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
473 ECHO_N='-n';;
474 esac
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
497 else
498 as_ln_s='cp -p'
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 # Initializations.
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
560 # Identity of this package.
561 PACKAGE_NAME='Wine'
562 PACKAGE_TARNAME='wine'
563 PACKAGE_VERSION='1.3.19'
564 PACKAGE_STRING='Wine 1.3.19'
565 PACKAGE_BUGREPORT='wine-devel@winehq.org'
566 PACKAGE_URL='http://www.winehq.org'
568 ac_unique_file="server/atom.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='LTLIBOBJS
606 LIBOBJS
607 LINGUAS
608 ALL_TEST_BINARIES
609 ALL_WINETEST_DEPENDS
610 LDAPLIBS
611 LIBPOLL
612 LIBDL
613 EXTRA_BINARIES
614 MAIN_BINARY
615 SOCKETLIBS
616 CRTLIBS
617 TOOLSEXT
618 LDPATH
619 UNWINDFLAGS
620 BUILTINFLAG
621 EXTRACFLAGS
622 LIBKSTAT
623 LIBOPENAL
624 LIBMPG123
625 PNGINCL
626 FONTCONFIGINCL
627 CUPSINCL
628 OSS4INCL
629 ALSALIBS
630 GSTREAMER_INCL
631 GSTREAMER_LIBS
632 ESDLIBS
633 ESDINCL
634 ESDCONFIG
635 LIBGETTEXTPO
636 ZLIB
637 FREETYPEINCL
638 FREETYPELIBS
639 ft_devel
640 LCMSLIBS
641 RESOLVLIBS
642 GPHOTO2INCL
643 GPHOTO2LIBS
644 gphoto2port_devel
645 gphoto2_devel
646 SANEINCL
647 sane_devel
648 GNUTLSINCL
649 HALINCL
650 XSLTINCL
651 XML2INCL
652 XML2LIBS
653 NASLIBS
654 X_EXTRA_LIBS
655 X_LIBS
656 X_PRE_LIBS
657 X_CFLAGS
658 XMKMF
659 LIBPTHREAD
660 CROSSTARGET
661 CROSSCC
662 CROSSTEST_DISABLE
663 PRELINK
664 CARBONLIB
665 QUICKTIMELIB
666 LIBOPENCL
667 FRAMEWORK_OPENAL
668 COREAUDIO
669 SECURITYLIB
670 DISKARBITRATIONLIB
671 LDEXECFLAGS
672 APPLICATIONSERVICESLIB
673 IOKITLIB
674 COREFOUNDATIONLIB
675 DLLWRAP
676 DLLTOOL
678 LDRPATH_LOCAL
679 LDRPATH_INSTALL
680 IMPLIBEXT
681 LIBEXT
682 LDDLLFLAGS
683 LDSHARED
684 DLLFLAGS
685 DLLEXT
687 OPENGL_LIBS
688 XLIB
689 MAINTAINER_MODE
690 ICOTOOL
691 CONVERT
692 RSVG
693 PKG_CONFIG
694 FONTFORGE
695 LINTFLAGS
696 LINT
697 INSTALL_DATA
698 INSTALL_SCRIPT
699 INSTALL_PROGRAM
700 LDCONFIG
701 EGREP
702 GREP
703 LN_S
704 STRIP
705 RANLIB
706 ARFLAGS
707 ac_ct_AR
709 BISON
710 FLEX
711 TOOLSDIR
712 WOW64_DISABLE
713 TARGETFLAGS
714 CPPBIN
715 ac_ct_CXX
716 CXXFLAGS
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
725 SET_MAKE
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 target_alias
735 host_alias
736 build_alias
737 LIBS
738 ECHO_T
739 ECHO_N
740 ECHO_C
741 DEFS
742 mandir
743 localedir
744 libdir
745 psdir
746 pdfdir
747 dvidir
748 htmldir
749 infodir
750 docdir
751 oldincludedir
752 includedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL'
772 ac_subst_files='MAKE_RULES
773 MAKE_TEST_RULES
774 MAKE_DLL_RULES
775 MAKE_IMPLIB_RULES
776 MAKE_PROG_RULES'
777 ac_user_opts='
778 enable_option_checking
779 enable_win16
780 enable_win64
781 enable_tests
782 enable_maintainer_mode
783 with_alsa
784 with_capi
785 with_cms
786 with_coreaudio
787 with_cups
788 with_curses
789 with_esd
790 with_fontconfig
791 with_freetype
792 with_gettextpo
793 with_gphoto
794 with_glu
795 with_gnutls
796 with_gsm
797 with_gstreamer
798 with_hal
799 with_jack
800 with_jpeg
801 with_ldap
802 with_mpg123
803 with_nas
804 with_openal
805 with_opencl
806 with_opengl
807 with_openssl
808 with_oss
809 with_png
810 with_pthread
811 with_sane
812 with_tiff
813 with_v4l
814 with_xcomposite
815 with_xcursor
816 with_xinerama
817 with_xinput
818 with_xinput2
819 with_xml
820 with_xrandr
821 with_xrender
822 with_xshape
823 with_xshm
824 with_xslt
825 with_xxf86vm
826 with_zlib
827 with_wine_tools
828 with_wine64
829 enable_largefile
830 with_x
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
836 CFLAGS
837 LDFLAGS
838 LIBS
839 CPPFLAGS
841 CXXFLAGS
844 XMKMF'
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
895 ac_prev=
896 ac_dashdash=
897 for ac_option
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
902 ac_prev=
903 continue
906 case $ac_option in
907 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *=) ac_optarg= ;;
909 *) ac_optarg=yes ;;
910 esac
912 # Accept the important Cygnus configure options, so we can diagnose typos.
914 case $ac_dashdash$ac_option in
916 ac_dashdash=yes ;;
918 -bindir | --bindir | --bindi | --bind | --bin | --bi)
919 ac_prev=bindir ;;
920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921 bindir=$ac_optarg ;;
923 -build | --build | --buil | --bui | --bu)
924 ac_prev=build_alias ;;
925 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926 build_alias=$ac_optarg ;;
928 -cache-file | --cache-file | --cache-fil | --cache-fi \
929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930 ac_prev=cache_file ;;
931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933 cache_file=$ac_optarg ;;
935 --config-cache | -C)
936 cache_file=config.cache ;;
938 -datadir | --datadir | --datadi | --datad)
939 ac_prev=datadir ;;
940 -datadir=* | --datadir=* | --datadi=* | --datad=*)
941 datadir=$ac_optarg ;;
943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944 | --dataroo | --dataro | --datar)
945 ac_prev=datarootdir ;;
946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948 datarootdir=$ac_optarg ;;
950 -disable-* | --disable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=no ;;
966 -docdir | --docdir | --docdi | --doc | --do)
967 ac_prev=docdir ;;
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 docdir=$ac_optarg ;;
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 ac_prev=dvidir ;;
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 dvidir=$ac_optarg ;;
976 -enable-* | --enable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error $? "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
985 "enable_$ac_useropt"
986 "*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=\$ac_optarg ;;
992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
999 exec_prefix=$ac_optarg ;;
1001 -gas | --gas | --ga | --g)
1002 # Obsolete; use --with-gas.
1003 with_gas=yes ;;
1005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
1012 -host | --host | --hos | --ho)
1013 ac_prev=host_alias ;;
1014 -host=* | --host=* | --hos=* | --ho=*)
1015 host_alias=$ac_optarg ;;
1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 ac_prev=htmldir ;;
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 | --ht=*)
1021 htmldir=$ac_optarg ;;
1023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
1028 includedir=$ac_optarg ;;
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 ac_prev=infodir ;;
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033 infodir=$ac_optarg ;;
1035 -libdir | --libdir | --libdi | --libd)
1036 ac_prev=libdir ;;
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038 libdir=$ac_optarg ;;
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
1045 libexecdir=$ac_optarg ;;
1047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1052 -localstatedir | --localstatedir | --localstatedi | --localstated \
1053 | --localstate | --localstat | --localsta | --localst | --locals)
1054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057 localstatedir=$ac_optarg ;;
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 ac_prev=mandir ;;
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062 mandir=$ac_optarg ;;
1064 -nfp | --nfp | --nf)
1065 # Obsolete; use --without-fp.
1066 with_fp=no ;;
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069 | --no-cr | --no-c | -n)
1070 no_create=yes ;;
1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 no_recursion=yes ;;
1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083 oldincludedir=$ac_optarg ;;
1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 ac_prev=prefix ;;
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088 prefix=$ac_optarg ;;
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095 program_prefix=$ac_optarg ;;
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102 program_suffix=$ac_optarg ;;
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
1119 program_transform_name=$ac_optarg ;;
1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 ac_prev=pdfdir ;;
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1126 -psdir | --psdir | --psdi | --psd | --ps)
1127 ac_prev=psdir ;;
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 psdir=$ac_optarg ;;
1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1133 silent=yes ;;
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
1139 sbindir=$ac_optarg ;;
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
1150 sharedstatedir=$ac_optarg ;;
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
1155 site=$ac_optarg ;;
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1180 -with-* | --with-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=\$ac_optarg ;;
1196 -without-* | --without-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1230 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information"
1234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1240 esac
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1245 # FIXME: should be removed in autoconf 3.0.
1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252 esac
1253 done
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 as_fn_error $? "missing argument to $ac_option"
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1262 no) ;;
1263 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 esac
1268 # Check all directory arguments for consistency.
1269 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
1282 case $ac_val in
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 esac
1286 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1287 done
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used" >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310 test "$silent" = yes && exec 6>/dev/null
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error $? "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error $? "pwd does not report name of working directory"
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1339 /^X\(\/\/\)$/{
1340 s//\1/
1343 /^X\(\/\).*/{
1344 s//\1/
1347 s/.*/./; q'`
1348 srcdir=$ac_confdir
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 srcdir=..
1352 else
1353 ac_srcdir_defaulted=no
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362 pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 srcdir=.
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 done
1381 # Report the --help message.
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1386 cat <<_ACEOF
1387 \`configure' configures Wine 1.3.19 to adapt to many kinds of systems.
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1394 Defaults for the options are specified in brackets.
1396 Configuration:
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking ...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1407 Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1411 [PREFIX]
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1418 For better control, use the options below.
1420 Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1440 _ACEOF
1442 cat <<\_ACEOF
1444 X features:
1445 --x-includes=DIR X include files are in DIR
1446 --x-libraries=DIR X library files are in DIR
1448 System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 _ACEOF
1454 if test -n "$ac_init_help"; then
1455 case $ac_init_help in
1456 short | recursive ) echo "Configuration of Wine 1.3.19:";;
1457 esac
1458 cat <<\_ACEOF
1460 Optional Features:
1461 --disable-option-checking ignore unrecognized --enable/--with options
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --disable-win16 do not include Win16 support
1465 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1466 binaries)
1467 --disable-tests do not build the regression tests
1468 --enable-maintainer-mode
1469 enable maintainer-specific build rules
1470 --disable-largefile omit support for large files
1472 Optional Packages:
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1475 --without-alsa do not use the Alsa sound support
1476 --without-capi do not use CAPI (ISDN support)
1477 --without-cms do not use CMS (color management support)
1478 --without-coreaudio do not use the CoreAudio sound support
1479 --without-cups do not use CUPS
1480 --without-curses do not use (n)curses
1481 --without-esd do not use the EsounD sound support
1482 --without-fontconfig do not use fontconfig
1483 --without-freetype do not use the FreeType library
1484 --without-gettextpo do not use the GetTextPO library
1485 --without-gphoto do not use gphoto (Digital Camera support)
1486 --without-glu do not use the GLU library
1487 --without-gnutls do not use GnuTLS (schannel support)
1488 --without-gsm do not use libgsm (GSM 06.10 codec support)
1489 --without-gstreamer do not use GStreamer (codecs support)
1490 --without-hal do not use HAL (dynamic device support)
1491 --without-jack do not use the Jack sound support
1492 --without-jpeg do not use JPEG
1493 --without-ldap do not use LDAP
1494 --without-mpg123 do not use the mpg123 library
1495 --without-nas do not use the NAS sound support
1496 --without-openal do not use OpenAL
1497 --without-opencl do not use OpenCL
1498 --without-opengl do not use OpenGL
1499 --without-openssl do not use OpenSSL
1500 --without-oss do not use the OSS sound support
1501 --without-png do not use PNG
1502 --without-pthread do not use the pthread library
1503 --without-sane do not use SANE (scanner support)
1504 --without-tiff do not use TIFF
1505 --without-v4l do not use v4l1 (v4l support)
1506 --without-xcomposite do not use the Xcomposite extension
1507 --without-xcursor do not use the Xcursor extension
1508 --without-xinerama do not use Xinerama (multi-monitor support)
1509 --without-xinput do not use the Xinput extension
1510 --without-xinput2 do not use the Xinput 2 extension
1511 --without-xml do not use XML
1512 --without-xrandr do not use Xrandr (resolution changes)
1513 --without-xrender do not use the Xrender extension
1514 --without-xshape do not use the Xshape extension
1515 --without-xshm do not use XShm (shared memory extension)
1516 --without-xslt do not use XSLT
1517 --without-xxf86vm do not use XFree video mode extension
1518 --without-zlib do not use Zlib (data compression)
1519 --with-wine-tools=DIR use Wine tools from directory DIR
1520 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1521 --with-x use the X Window System
1523 Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
1528 LIBS libraries to pass to the linker, e.g. -l<library>
1529 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
1531 CXX C++ compiler command
1532 CXXFLAGS C++ compiler flags
1533 CPP C preprocessor
1534 XMKMF Path to xmkmf, Makefile generator for X Window System
1536 Use these variables to override the choices made by `configure' or to help
1537 it to find libraries and programs with nonstandard names/locations.
1539 Report bugs to <wine-devel@winehq.org>.
1540 Wine home page: <http://www.winehq.org>.
1541 _ACEOF
1542 ac_status=$?
1545 if test "$ac_init_help" = "recursive"; then
1546 # If there are subdirs, report their specific --help.
1547 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548 test -d "$ac_dir" ||
1549 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1550 continue
1551 ac_builddir=.
1553 case "$ac_dir" in
1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1557 # A ".." for each directory in $ac_dir_suffix.
1558 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1559 case $ac_top_builddir_sub in
1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562 esac ;;
1563 esac
1564 ac_abs_top_builddir=$ac_pwd
1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566 # for backward compatibility:
1567 ac_top_builddir=$ac_top_build_prefix
1569 case $srcdir in
1570 .) # We are building in place.
1571 ac_srcdir=.
1572 ac_top_srcdir=$ac_top_builddir_sub
1573 ac_abs_top_srcdir=$ac_pwd ;;
1574 [\\/]* | ?:[\\/]* ) # Absolute name.
1575 ac_srcdir=$srcdir$ac_dir_suffix;
1576 ac_top_srcdir=$srcdir
1577 ac_abs_top_srcdir=$srcdir ;;
1578 *) # Relative name.
1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580 ac_top_srcdir=$ac_top_build_prefix$srcdir
1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 esac
1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585 cd "$ac_dir" || { ac_status=$?; continue; }
1586 # Check for guested configure.
1587 if test -f "$ac_srcdir/configure.gnu"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590 elif test -f "$ac_srcdir/configure"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure" --help=recursive
1593 else
1594 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595 fi || ac_status=$?
1596 cd "$ac_pwd" || { ac_status=$?; break; }
1597 done
1600 test -n "$ac_init_help" && exit $ac_status
1601 if $ac_init_version; then
1602 cat <<\_ACEOF
1603 Wine configure 1.3.19
1604 generated by GNU Autoconf 2.68
1606 Copyright (C) 2010 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1609 _ACEOF
1610 exit
1613 ## ------------------------ ##
1614 ## Autoconf initialization. ##
1615 ## ------------------------ ##
1617 # ac_fn_c_try_compile LINENO
1618 # --------------------------
1619 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_compile ()
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext
1624 if { { ac_try="$ac_compile"
1625 case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_compile") 2>conftest.err
1632 ac_status=$?
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_c_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest.$ac_objext; then :
1643 ac_retval=0
1644 else
1645 $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1648 ac_retval=1
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1653 } # ac_fn_c_try_compile
1655 # ac_fn_cxx_try_compile LINENO
1656 # ----------------------------
1657 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_cxx_try_compile ()
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext
1662 if { { ac_try="$ac_compile"
1663 case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_compile") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_cxx_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest.$ac_objext; then :
1681 ac_retval=0
1682 else
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1686 ac_retval=1
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1691 } # ac_fn_cxx_try_compile
1693 # ac_fn_c_try_link LINENO
1694 # -----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_link ()
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext conftest$ac_exeext
1700 if { { ac_try="$ac_link"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest$ac_exeext && {
1719 test "$cross_compiling" = yes ||
1720 $as_test_x conftest$ac_exeext
1721 }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1727 ac_retval=1
1729 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1730 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1731 # interfere with the next link command; also delete a directory that is
1732 # left behind by Apple's compiler. We do this before executing the actions.
1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 as_fn_set_status $ac_retval
1737 } # ac_fn_c_try_link
1739 # ac_fn_c_try_cpp LINENO
1740 # ----------------------
1741 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1742 ac_fn_c_try_cpp ()
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if { { ac_try="$ac_cpp conftest.$ac_ext"
1746 case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1753 ac_status=$?
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } > conftest.i && {
1761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1763 }; then :
1764 ac_retval=0
1765 else
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1769 ac_retval=1
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 as_fn_set_status $ac_retval
1774 } # ac_fn_c_try_cpp
1776 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1777 # -------------------------------------------------------
1778 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1779 # the include files in INCLUDES and setting the cache variable VAR
1780 # accordingly.
1781 ac_fn_c_check_header_mongrel ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 if eval \${$3+:} false; then :
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if eval \${$3+:} false; then :
1788 $as_echo_n "(cached) " >&6
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 else
1794 # Is the header compilable?
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1796 $as_echo_n "checking $2 usability... " >&6; }
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1800 #include <$2>
1801 _ACEOF
1802 if ac_fn_c_try_compile "$LINENO"; then :
1803 ac_header_compiler=yes
1804 else
1805 ac_header_compiler=no
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1809 $as_echo "$ac_header_compiler" >&6; }
1811 # Is the header present?
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1813 $as_echo_n "checking $2 presence... " >&6; }
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1816 #include <$2>
1817 _ACEOF
1818 if ac_fn_c_try_cpp "$LINENO"; then :
1819 ac_header_preproc=yes
1820 else
1821 ac_header_preproc=no
1823 rm -f conftest.err conftest.i conftest.$ac_ext
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1825 $as_echo "$ac_header_preproc" >&6; }
1827 # So? What about this header?
1828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1829 yes:no: )
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1831 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 no:yes:* )
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1837 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1839 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1841 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1843 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846 ( $as_echo "## ------------------------------------ ##
1847 ## Report this to wine-devel@winehq.org ##
1848 ## ------------------------------------ ##"
1849 ) | sed "s/^/$as_me: WARNING: /" >&2
1851 esac
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853 $as_echo_n "checking for $2... " >&6; }
1854 if eval \${$3+:} false; then :
1855 $as_echo_n "(cached) " >&6
1856 else
1857 eval "$3=\$ac_header_compiler"
1859 eval ac_res=\$$3
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 $as_echo "$ac_res" >&6; }
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865 } # ac_fn_c_check_header_mongrel
1867 # ac_fn_c_try_run LINENO
1868 # ----------------------
1869 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1870 # that executables *can* be run.
1871 ac_fn_c_try_run ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if { { ac_try="$ac_link"
1875 case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_link") 2>&5
1882 ac_status=$?
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1885 { { case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_try") 2>&5
1892 ac_status=$?
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; }; }; then :
1895 ac_retval=0
1896 else
1897 $as_echo "$as_me: program exited with status $ac_status" >&5
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1901 ac_retval=$ac_status
1903 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1907 } # ac_fn_c_try_run
1909 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1910 # -------------------------------------------------------
1911 # Tests whether HEADER exists and can be compiled using the include files in
1912 # INCLUDES, setting the cache variable VAR accordingly.
1913 ac_fn_c_check_header_compile ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919 $as_echo_n "(cached) " >&6
1920 else
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1924 #include <$2>
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927 eval "$3=yes"
1928 else
1929 eval "$3=no"
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 } # ac_fn_c_check_header_compile
1940 # ac_fn_c_check_func LINENO FUNC VAR
1941 # ----------------------------------
1942 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1943 ac_fn_c_check_func ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949 $as_echo_n "(cached) " >&6
1950 else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1955 #define $2 innocuous_$2
1957 /* System header to define __stub macros and hopefully few prototypes,
1958 which can conflict with char $2 (); below.
1959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1960 <limits.h> exists even on freestanding compilers. */
1962 #ifdef __STDC__
1963 # include <limits.h>
1964 #else
1965 # include <assert.h>
1966 #endif
1968 #undef $2
1970 /* Override any GCC internal prototype to avoid an error.
1971 Use char because int might match the return type of a GCC
1972 builtin and then its argument prototype would still apply. */
1973 #ifdef __cplusplus
1974 extern "C"
1975 #endif
1976 char $2 ();
1977 /* The GNU C library defines this for functions which it implements
1978 to always fail with ENOSYS. Some functions are actually named
1979 something starting with __ and the normal name is an alias. */
1980 #if defined __stub_$2 || defined __stub___$2
1981 choke me
1982 #endif
1985 main ()
1987 return $2 ();
1989 return 0;
1991 _ACEOF
1992 if ac_fn_c_try_link "$LINENO"; then :
1993 eval "$3=yes"
1994 else
1995 eval "$3=no"
1997 rm -f core conftest.err conftest.$ac_objext \
1998 conftest$ac_exeext conftest.$ac_ext
2000 eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 } # ac_fn_c_check_func
2007 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2008 # ----------------------------------------------------
2009 # Tries to find if the field MEMBER exists in type AGGR, after including
2010 # INCLUDES, setting cache variable VAR accordingly.
2011 ac_fn_c_check_member ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2015 $as_echo_n "checking for $2.$3... " >&6; }
2016 if eval \${$4+:} false; then :
2017 $as_echo_n "(cached) " >&6
2018 else
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2023 main ()
2025 static $2 ac_aggr;
2026 if (ac_aggr.$3)
2027 return 0;
2029 return 0;
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 eval "$4=yes"
2034 else
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2039 main ()
2041 static $2 ac_aggr;
2042 if (sizeof ac_aggr.$3)
2043 return 0;
2045 return 0;
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049 eval "$4=yes"
2050 else
2051 eval "$4=no"
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 eval ac_res=\$$4
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059 $as_echo "$ac_res" >&6; }
2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062 } # ac_fn_c_check_member
2064 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2065 # -------------------------------------------
2066 # Tests whether TYPE exists after having included INCLUDES, setting cache
2067 # variable VAR accordingly.
2068 ac_fn_c_check_type ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 eval "$3=no"
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2081 main ()
2083 if (sizeof ($2))
2084 return 0;
2086 return 0;
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2094 main ()
2096 if (sizeof (($2)))
2097 return 0;
2099 return 0;
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2104 else
2105 eval "$3=yes"
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 eval ac_res=\$$3
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116 } # ac_fn_c_check_type
2117 cat >config.log <<_ACEOF
2118 This file contains any messages produced by compilers while
2119 running configure, to aid debugging if configure makes a mistake.
2121 It was created by Wine $as_me 1.3.19, which was
2122 generated by GNU Autoconf 2.68. Invocation command line was
2124 $ $0 $@
2126 _ACEOF
2127 exec 5>>config.log
2129 cat <<_ASUNAME
2130 ## --------- ##
2131 ## Platform. ##
2132 ## --------- ##
2134 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2135 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2136 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2137 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2138 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2140 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2141 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2143 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2144 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2145 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2146 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2147 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2148 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2149 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2151 _ASUNAME
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2156 IFS=$as_save_IFS
2157 test -z "$as_dir" && as_dir=.
2158 $as_echo "PATH: $as_dir"
2159 done
2160 IFS=$as_save_IFS
2162 } >&5
2164 cat >&5 <<_ACEOF
2167 ## ----------- ##
2168 ## Core tests. ##
2169 ## ----------- ##
2171 _ACEOF
2174 # Keep a trace of the command line.
2175 # Strip out --no-create and --no-recursion so they do not pile up.
2176 # Strip out --silent because we don't want to record it for future runs.
2177 # Also quote any args containing shell meta-characters.
2178 # Make two passes to allow for proper duplicate-argument suppression.
2179 ac_configure_args=
2180 ac_configure_args0=
2181 ac_configure_args1=
2182 ac_must_keep_next=false
2183 for ac_pass in 1 2
2185 for ac_arg
2187 case $ac_arg in
2188 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2190 | -silent | --silent | --silen | --sile | --sil)
2191 continue ;;
2192 *\'*)
2193 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2194 esac
2195 case $ac_pass in
2196 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2198 as_fn_append ac_configure_args1 " '$ac_arg'"
2199 if test $ac_must_keep_next = true; then
2200 ac_must_keep_next=false # Got value, back to normal.
2201 else
2202 case $ac_arg in
2203 *=* | --config-cache | -C | -disable-* | --disable-* \
2204 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2205 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2206 | -with-* | --with-* | -without-* | --without-* | --x)
2207 case "$ac_configure_args0 " in
2208 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2209 esac
2211 -* ) ac_must_keep_next=true ;;
2212 esac
2214 as_fn_append ac_configure_args " '$ac_arg'"
2216 esac
2217 done
2218 done
2219 { ac_configure_args0=; unset ac_configure_args0;}
2220 { ac_configure_args1=; unset ac_configure_args1;}
2222 # When interrupted or exit'd, cleanup temporary files, and complete
2223 # config.log. We remove comments because anyway the quotes in there
2224 # would cause problems or look ugly.
2225 # WARNING: Use '\'' to represent an apostrophe within the trap.
2226 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2227 trap 'exit_status=$?
2228 # Save into config.log some information that might help in debugging.
2230 echo
2232 $as_echo "## ---------------- ##
2233 ## Cache variables. ##
2234 ## ---------------- ##"
2235 echo
2236 # The following way of writing the cache mishandles newlines in values,
2238 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2239 eval ac_val=\$$ac_var
2240 case $ac_val in #(
2241 *${as_nl}*)
2242 case $ac_var in #(
2243 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2244 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2245 esac
2246 case $ac_var in #(
2247 _ | IFS | as_nl) ;; #(
2248 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2249 *) { eval $ac_var=; unset $ac_var;} ;;
2250 esac ;;
2251 esac
2252 done
2253 (set) 2>&1 |
2254 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2255 *${as_nl}ac_space=\ *)
2256 sed -n \
2257 "s/'\''/'\''\\\\'\'''\''/g;
2258 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2259 ;; #(
2261 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2263 esac |
2264 sort
2266 echo
2268 $as_echo "## ----------------- ##
2269 ## Output variables. ##
2270 ## ----------------- ##"
2271 echo
2272 for ac_var in $ac_subst_vars
2274 eval ac_val=\$$ac_var
2275 case $ac_val in
2276 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2277 esac
2278 $as_echo "$ac_var='\''$ac_val'\''"
2279 done | sort
2280 echo
2282 if test -n "$ac_subst_files"; then
2283 $as_echo "## ------------------- ##
2284 ## File substitutions. ##
2285 ## ------------------- ##"
2286 echo
2287 for ac_var in $ac_subst_files
2289 eval ac_val=\$$ac_var
2290 case $ac_val in
2291 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2292 esac
2293 $as_echo "$ac_var='\''$ac_val'\''"
2294 done | sort
2295 echo
2298 if test -s confdefs.h; then
2299 $as_echo "## ----------- ##
2300 ## confdefs.h. ##
2301 ## ----------- ##"
2302 echo
2303 cat confdefs.h
2304 echo
2306 test "$ac_signal" != 0 &&
2307 $as_echo "$as_me: caught signal $ac_signal"
2308 $as_echo "$as_me: exit $exit_status"
2309 } >&5
2310 rm -f core *.core core.conftest.* &&
2311 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2312 exit $exit_status
2314 for ac_signal in 1 2 13 15; do
2315 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2316 done
2317 ac_signal=0
2319 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2320 rm -f -r conftest* confdefs.h
2322 $as_echo "/* confdefs.h */" > confdefs.h
2324 # Predefined preprocessor variables.
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_NAME "$PACKAGE_NAME"
2328 _ACEOF
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2332 _ACEOF
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2336 _ACEOF
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_STRING "$PACKAGE_STRING"
2340 _ACEOF
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2344 _ACEOF
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_URL "$PACKAGE_URL"
2348 _ACEOF
2351 # Let the site file select an alternate cache file if it wants to.
2352 # Prefer an explicitly selected file to automatically selected ones.
2353 ac_site_file1=NONE
2354 ac_site_file2=NONE
2355 if test -n "$CONFIG_SITE"; then
2356 # We do not want a PATH search for config.site.
2357 case $CONFIG_SITE in #((
2358 -*) ac_site_file1=./$CONFIG_SITE;;
2359 */*) ac_site_file1=$CONFIG_SITE;;
2360 *) ac_site_file1=./$CONFIG_SITE;;
2361 esac
2362 elif test "x$prefix" != xNONE; then
2363 ac_site_file1=$prefix/share/config.site
2364 ac_site_file2=$prefix/etc/config.site
2365 else
2366 ac_site_file1=$ac_default_prefix/share/config.site
2367 ac_site_file2=$ac_default_prefix/etc/config.site
2369 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2371 test "x$ac_site_file" = xNONE && continue
2372 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2374 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2375 sed 's/^/| /' "$ac_site_file" >&5
2376 . "$ac_site_file" \
2377 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2379 as_fn_error $? "failed to load site script $ac_site_file
2380 See \`config.log' for more details" "$LINENO" 5; }
2382 done
2384 if test -r "$cache_file"; then
2385 # Some versions of bash will fail to source /dev/null (special files
2386 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2387 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2389 $as_echo "$as_me: loading cache $cache_file" >&6;}
2390 case $cache_file in
2391 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2392 *) . "./$cache_file";;
2393 esac
2395 else
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2397 $as_echo "$as_me: creating cache $cache_file" >&6;}
2398 >$cache_file
2401 # Check that the precious variables saved in the cache have kept the same
2402 # value.
2403 ac_cache_corrupted=false
2404 for ac_var in $ac_precious_vars; do
2405 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2406 eval ac_new_set=\$ac_env_${ac_var}_set
2407 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2408 eval ac_new_val=\$ac_env_${ac_var}_value
2409 case $ac_old_set,$ac_new_set in
2410 set,)
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2412 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2413 ac_cache_corrupted=: ;;
2414 ,set)
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2416 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2417 ac_cache_corrupted=: ;;
2418 ,);;
2420 if test "x$ac_old_val" != "x$ac_new_val"; then
2421 # differences in whitespace do not lead to failure.
2422 ac_old_val_w=`echo x $ac_old_val`
2423 ac_new_val_w=`echo x $ac_new_val`
2424 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2426 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2427 ac_cache_corrupted=:
2428 else
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2430 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2431 eval $ac_var=\$ac_old_val
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2434 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2436 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2437 fi;;
2438 esac
2439 # Pass precious variables to config.status.
2440 if test "$ac_new_set" = set; then
2441 case $ac_new_val in
2442 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2443 *) ac_arg=$ac_var=$ac_new_val ;;
2444 esac
2445 case " $ac_configure_args " in
2446 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2447 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2448 esac
2450 done
2451 if $ac_cache_corrupted; then
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_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2455 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2456 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2458 ## -------------------- ##
2459 ## Main body of script. ##
2460 ## -------------------- ##
2462 ac_ext=c
2463 ac_cpp='$CPP $CPPFLAGS'
2464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470 ac_config_headers="$ac_config_headers include/config.h"
2472 ac_aux_dir=
2473 for ac_dir in tools "$srcdir"/tools; do
2474 if test -f "$ac_dir/install-sh"; then
2475 ac_aux_dir=$ac_dir
2476 ac_install_sh="$ac_aux_dir/install-sh -c"
2477 break
2478 elif test -f "$ac_dir/install.sh"; then
2479 ac_aux_dir=$ac_dir
2480 ac_install_sh="$ac_aux_dir/install.sh -c"
2481 break
2482 elif test -f "$ac_dir/shtool"; then
2483 ac_aux_dir=$ac_dir
2484 ac_install_sh="$ac_aux_dir/shtool install -c"
2485 break
2487 done
2488 if test -z "$ac_aux_dir"; then
2489 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2492 # These three variables are undocumented and unsupported,
2493 # and are intended to be withdrawn in a future Autoconf release.
2494 # They can cause serious problems if a builder's source tree is in a directory
2495 # whose full name contains unusual characters.
2496 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2497 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2498 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2504 # Check whether --enable-win16 was given.
2505 if test "${enable_win16+set}" = set; then :
2506 enableval=$enable_win16;
2509 # Check whether --enable-win64 was given.
2510 if test "${enable_win64+set}" = set; then :
2511 enableval=$enable_win64;
2514 # Check whether --enable-tests was given.
2515 if test "${enable_tests+set}" = set; then :
2516 enableval=$enable_tests;
2519 # Check whether --enable-maintainer-mode was given.
2520 if test "${enable_maintainer_mode+set}" = set; then :
2521 enableval=$enable_maintainer_mode;
2526 # Check whether --with-alsa was given.
2527 if test "${with_alsa+set}" = set; then :
2528 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2532 # Check whether --with-capi was given.
2533 if test "${with_capi+set}" = set; then :
2534 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2538 # Check whether --with-cms was given.
2539 if test "${with_cms+set}" = set; then :
2540 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2544 # Check whether --with-coreaudio was given.
2545 if test "${with_coreaudio+set}" = set; then :
2546 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2550 # Check whether --with-cups was given.
2551 if test "${with_cups+set}" = set; then :
2552 withval=$with_cups;
2556 # Check whether --with-curses was given.
2557 if test "${with_curses+set}" = set; then :
2558 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2562 # Check whether --with-esd was given.
2563 if test "${with_esd+set}" = set; then :
2564 withval=$with_esd;
2568 # Check whether --with-fontconfig was given.
2569 if test "${with_fontconfig+set}" = set; then :
2570 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2574 # Check whether --with-freetype was given.
2575 if test "${with_freetype+set}" = set; then :
2576 withval=$with_freetype;
2580 # Check whether --with-gettextpo was given.
2581 if test "${with_gettextpo+set}" = set; then :
2582 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2586 # Check whether --with-gphoto was given.
2587 if test "${with_gphoto+set}" = set; then :
2588 withval=$with_gphoto;
2592 # Check whether --with-glu was given.
2593 if test "${with_glu+set}" = set; then :
2594 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2598 # Check whether --with-gnutls was given.
2599 if test "${with_gnutls+set}" = set; then :
2600 withval=$with_gnutls;
2604 # Check whether --with-gsm was given.
2605 if test "${with_gsm+set}" = set; then :
2606 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2610 # Check whether --with-gstreamer was given.
2611 if test "${with_gstreamer+set}" = set; then :
2612 withval=$with_gstreamer;
2616 # Check whether --with-hal was given.
2617 if test "${with_hal+set}" = set; then :
2618 withval=$with_hal;
2622 # Check whether --with-jack was given.
2623 if test "${with_jack+set}" = set; then :
2624 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2628 # Check whether --with-jpeg was given.
2629 if test "${with_jpeg+set}" = set; then :
2630 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2634 # Check whether --with-ldap was given.
2635 if test "${with_ldap+set}" = set; then :
2636 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2640 # Check whether --with-mpg123 was given.
2641 if test "${with_mpg123+set}" = set; then :
2642 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2646 # Check whether --with-nas was given.
2647 if test "${with_nas+set}" = set; then :
2648 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2652 # Check whether --with-openal was given.
2653 if test "${with_openal+set}" = set; then :
2654 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2658 # Check whether --with-opencl was given.
2659 if test "${with_opencl+set}" = set; then :
2660 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2664 # Check whether --with-opengl was given.
2665 if test "${with_opengl+set}" = set; then :
2666 withval=$with_opengl;
2670 # Check whether --with-openssl was given.
2671 if test "${with_openssl+set}" = set; then :
2672 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2676 # Check whether --with-oss was given.
2677 if test "${with_oss+set}" = set; then :
2678 withval=$with_oss;
2682 # Check whether --with-png was given.
2683 if test "${with_png+set}" = set; then :
2684 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2688 # Check whether --with-pthread was given.
2689 if test "${with_pthread+set}" = set; then :
2690 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2694 # Check whether --with-sane was given.
2695 if test "${with_sane+set}" = set; then :
2696 withval=$with_sane;
2700 # Check whether --with-tiff was given.
2701 if test "${with_tiff+set}" = set; then :
2702 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2706 # Check whether --with-v4l was given.
2707 if test "${with_v4l+set}" = set; then :
2708 withval=$with_v4l;
2712 # Check whether --with-xcomposite was given.
2713 if test "${with_xcomposite+set}" = set; then :
2714 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2718 # Check whether --with-xcursor was given.
2719 if test "${with_xcursor+set}" = set; then :
2720 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2724 # Check whether --with-xinerama was given.
2725 if test "${with_xinerama+set}" = set; then :
2726 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2730 # Check whether --with-xinput was given.
2731 if test "${with_xinput+set}" = set; then :
2732 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2736 # Check whether --with-xinput2 was given.
2737 if test "${with_xinput2+set}" = set; then :
2738 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2742 # Check whether --with-xml was given.
2743 if test "${with_xml+set}" = set; then :
2744 withval=$with_xml;
2748 # Check whether --with-xrandr was given.
2749 if test "${with_xrandr+set}" = set; then :
2750 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2754 # Check whether --with-xrender was given.
2755 if test "${with_xrender+set}" = set; then :
2756 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2760 # Check whether --with-xshape was given.
2761 if test "${with_xshape+set}" = set; then :
2762 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2766 # Check whether --with-xshm was given.
2767 if test "${with_xshm+set}" = set; then :
2768 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2772 # Check whether --with-xslt was given.
2773 if test "${with_xslt+set}" = set; then :
2774 withval=$with_xslt;
2778 # Check whether --with-xxf86vm was given.
2779 if test "${with_xxf86vm+set}" = set; then :
2780 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
2784 # Check whether --with-zlib was given.
2785 if test "${with_zlib+set}" = set; then :
2786 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2791 # Check whether --with-wine-tools was given.
2792 if test "${with_wine_tools+set}" = set; then :
2793 withval=$with_wine_tools;
2797 # Check whether --with-wine64 was given.
2798 if test "${with_wine64+set}" = set; then :
2799 withval=$with_wine64;
2803 # Make sure we can run config.sub.
2804 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2805 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2808 $as_echo_n "checking build system type... " >&6; }
2809 if ${ac_cv_build+:} false; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 ac_build_alias=$build_alias
2813 test "x$ac_build_alias" = x &&
2814 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2815 test "x$ac_build_alias" = x &&
2816 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2817 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2818 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2822 $as_echo "$ac_cv_build" >&6; }
2823 case $ac_cv_build in
2824 *-*-*) ;;
2825 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2826 esac
2827 build=$ac_cv_build
2828 ac_save_IFS=$IFS; IFS='-'
2829 set x $ac_cv_build
2830 shift
2831 build_cpu=$1
2832 build_vendor=$2
2833 shift; shift
2834 # Remember, the first character of IFS is used to create $*,
2835 # except with old shells:
2836 build_os=$*
2837 IFS=$ac_save_IFS
2838 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2842 $as_echo_n "checking host system type... " >&6; }
2843 if ${ac_cv_host+:} false; then :
2844 $as_echo_n "(cached) " >&6
2845 else
2846 if test "x$host_alias" = x; then
2847 ac_cv_host=$ac_cv_build
2848 else
2849 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2850 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2855 $as_echo "$ac_cv_host" >&6; }
2856 case $ac_cv_host in
2857 *-*-*) ;;
2858 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2859 esac
2860 host=$ac_cv_host
2861 ac_save_IFS=$IFS; IFS='-'
2862 set x $ac_cv_host
2863 shift
2864 host_cpu=$1
2865 host_vendor=$2
2866 shift; shift
2867 # Remember, the first character of IFS is used to create $*,
2868 # except with old shells:
2869 host_os=$*
2870 IFS=$ac_save_IFS
2871 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2875 case "$srcdir" in
2876 .) ;;
2877 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2878 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2879 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2880 fi ;;
2881 esac
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2885 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2886 set x ${MAKE-make}
2887 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2888 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 cat >conftest.make <<\_ACEOF
2892 SHELL = /bin/sh
2893 all:
2894 @echo '@@@%%%=$(MAKE)=@@@%%%'
2895 _ACEOF
2896 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2897 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2898 *@@@%%%=?*=@@@%%%*)
2899 eval ac_cv_prog_make_${ac_make}_set=yes;;
2901 eval ac_cv_prog_make_${ac_make}_set=no;;
2902 esac
2903 rm -f conftest.make
2905 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2907 $as_echo "yes" >&6; }
2908 SET_MAKE=
2909 else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2912 SET_MAKE="MAKE=${MAKE-make}"
2915 ac_ext=c
2916 ac_cpp='$CPP $CPPFLAGS'
2917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920 if test -n "$ac_tool_prefix"; then
2921 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2922 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_CC+:} false; then :
2926 $as_echo_n "(cached) " >&6
2927 else
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2934 IFS=$as_save_IFS
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 break 2
2942 done
2943 done
2944 IFS=$as_save_IFS
2948 CC=$ac_cv_prog_CC
2949 if test -n "$CC"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2951 $as_echo "$CC" >&6; }
2952 else
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2959 if test -z "$ac_cv_prog_CC"; then
2960 ac_ct_CC=$CC
2961 # Extract the first word of "gcc", so it can be a program name with args.
2962 set dummy gcc; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2966 $as_echo_n "(cached) " >&6
2967 else
2968 if test -n "$ac_ct_CC"; then
2969 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2970 else
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH
2974 IFS=$as_save_IFS
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978 ac_cv_prog_ac_ct_CC="gcc"
2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 break 2
2982 done
2983 done
2984 IFS=$as_save_IFS
2988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2989 if test -n "$ac_ct_CC"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2991 $as_echo "$ac_ct_CC" >&6; }
2992 else
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2997 if test "x$ac_ct_CC" = x; then
2998 CC=""
2999 else
3000 case $cross_compiling:$ac_tool_warned in
3001 yes:)
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3004 ac_tool_warned=yes ;;
3005 esac
3006 CC=$ac_ct_CC
3008 else
3009 CC="$ac_cv_prog_CC"
3012 if test -z "$CC"; then
3013 if test -n "$ac_tool_prefix"; then
3014 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3015 set dummy ${ac_tool_prefix}cc; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if ${ac_cv_prog_CC+:} false; then :
3019 $as_echo_n "(cached) " >&6
3020 else
3021 if test -n "$CC"; then
3022 ac_cv_prog_CC="$CC" # Let the user override the test.
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031 ac_cv_prog_CC="${ac_tool_prefix}cc"
3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 break 2
3035 done
3036 done
3037 IFS=$as_save_IFS
3041 CC=$ac_cv_prog_CC
3042 if test -n "$CC"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3044 $as_echo "$CC" >&6; }
3045 else
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3053 if test -z "$CC"; then
3054 # Extract the first word of "cc", so it can be a program name with args.
3055 set dummy cc; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if ${ac_cv_prog_CC+:} false; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 if test -n "$CC"; then
3062 ac_cv_prog_CC="$CC" # Let the user override the test.
3063 else
3064 ac_prog_rejected=no
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3073 ac_prog_rejected=yes
3074 continue
3076 ac_cv_prog_CC="cc"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3080 done
3081 done
3082 IFS=$as_save_IFS
3084 if test $ac_prog_rejected = yes; then
3085 # We found a bogon in the path, so make sure we never use it.
3086 set dummy $ac_cv_prog_CC
3087 shift
3088 if test $# != 0; then
3089 # We chose a different compiler from the bogus one.
3090 # However, it has the same basename, so the bogon will be chosen
3091 # first if we set CC to just the basename; use the full file name.
3092 shift
3093 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3098 CC=$ac_cv_prog_CC
3099 if test -n "$CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 $as_echo "$CC" >&6; }
3102 else
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3109 if test -z "$CC"; then
3110 if test -n "$ac_tool_prefix"; then
3111 for ac_prog in cl.exe
3113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if ${ac_cv_prog_CC+:} false; then :
3118 $as_echo_n "(cached) " >&6
3119 else
3120 if test -n "$CC"; then
3121 ac_cv_prog_CC="$CC" # Let the user override the test.
3122 else
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 for as_dir in $PATH
3126 IFS=$as_save_IFS
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3130 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 break 2
3134 done
3135 done
3136 IFS=$as_save_IFS
3140 CC=$ac_cv_prog_CC
3141 if test -n "$CC"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3143 $as_echo "$CC" >&6; }
3144 else
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3150 test -n "$CC" && break
3151 done
3153 if test -z "$CC"; then
3154 ac_ct_CC=$CC
3155 for ac_prog in cl.exe
3157 # Extract the first word of "$ac_prog", so it can be a program name with args.
3158 set dummy $ac_prog; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3162 $as_echo_n "(cached) " >&6
3163 else
3164 if test -n "$ac_ct_CC"; then
3165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3174 ac_cv_prog_ac_ct_CC="$ac_prog"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3178 done
3179 done
3180 IFS=$as_save_IFS
3184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3185 if test -n "$ac_ct_CC"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3187 $as_echo "$ac_ct_CC" >&6; }
3188 else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3194 test -n "$ac_ct_CC" && break
3195 done
3197 if test "x$ac_ct_CC" = x; then
3198 CC=""
3199 else
3200 case $cross_compiling:$ac_tool_warned in
3201 yes:)
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3204 ac_tool_warned=yes ;;
3205 esac
3206 CC=$ac_ct_CC
3213 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215 as_fn_error $? "no acceptable C compiler found in \$PATH
3216 See \`config.log' for more details" "$LINENO" 5; }
3218 # Provide some information about the compiler.
3219 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3220 set X $ac_compile
3221 ac_compiler=$2
3222 for ac_option in --version -v -V -qversion; do
3223 { { ac_try="$ac_compiler $ac_option >&5"
3224 case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227 esac
3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229 $as_echo "$ac_try_echo"; } >&5
3230 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3231 ac_status=$?
3232 if test -s conftest.err; then
3233 sed '10a\
3234 ... rest of stderr output deleted ...
3235 10q' conftest.err >conftest.er1
3236 cat conftest.er1 >&5
3238 rm -f conftest.er1 conftest.err
3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 test $ac_status = 0; }
3241 done
3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244 /* end confdefs.h. */
3247 main ()
3251 return 0;
3253 _ACEOF
3254 ac_clean_files_save=$ac_clean_files
3255 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3256 # Try to create an executable without -o first, disregard a.out.
3257 # It will help us diagnose broken compilers, and finding out an intuition
3258 # of exeext.
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3260 $as_echo_n "checking whether the C compiler works... " >&6; }
3261 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3263 # The possible output files:
3264 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3266 ac_rmfiles=
3267 for ac_file in $ac_files
3269 case $ac_file in
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3271 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3272 esac
3273 done
3274 rm -f $ac_rmfiles
3276 if { { ac_try="$ac_link_default"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283 (eval "$ac_link_default") 2>&5
3284 ac_status=$?
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }; then :
3287 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3288 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3289 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3290 # so that the user can short-circuit this test for compilers unknown to
3291 # Autoconf.
3292 for ac_file in $ac_files ''
3294 test -f "$ac_file" || continue
3295 case $ac_file in
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3298 [ab].out )
3299 # We found the default executable, but exeext='' is most
3300 # certainly right.
3301 break;;
3302 *.* )
3303 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3304 then :; else
3305 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3307 # We set ac_cv_exeext here because the later test for it is not
3308 # safe: cross compilers may not add the suffix if given an `-o'
3309 # argument, so we may need to know it at that point already.
3310 # Even if this section looks crufty: it has the advantage of
3311 # actually working.
3312 break;;
3314 break;;
3315 esac
3316 done
3317 test "$ac_cv_exeext" = no && ac_cv_exeext=
3319 else
3320 ac_file=''
3322 if test -z "$ac_file"; then :
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 $as_echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3330 as_fn_error 77 "C compiler cannot create executables
3331 See \`config.log' for more details" "$LINENO" 5; }
3332 else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3334 $as_echo "yes" >&6; }
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3337 $as_echo_n "checking for C compiler default output file name... " >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3339 $as_echo "$ac_file" >&6; }
3340 ac_exeext=$ac_cv_exeext
3342 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3343 ac_clean_files=$ac_clean_files_save
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3345 $as_echo_n "checking for suffix of executables... " >&6; }
3346 if { { ac_try="$ac_link"
3347 case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350 esac
3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 $as_echo "$ac_try_echo"; } >&5
3353 (eval "$ac_link") 2>&5
3354 ac_status=$?
3355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 test $ac_status = 0; }; then :
3357 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3358 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3359 # work properly (i.e., refer to `conftest.exe'), while it won't with
3360 # `rm'.
3361 for ac_file in conftest.exe conftest conftest.*; do
3362 test -f "$ac_file" || continue
3363 case $ac_file in
3364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3365 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3366 break;;
3367 * ) break;;
3368 esac
3369 done
3370 else
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3374 See \`config.log' for more details" "$LINENO" 5; }
3376 rm -f conftest conftest$ac_cv_exeext
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3378 $as_echo "$ac_cv_exeext" >&6; }
3380 rm -f conftest.$ac_ext
3381 EXEEXT=$ac_cv_exeext
3382 ac_exeext=$EXEEXT
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3385 #include <stdio.h>
3387 main ()
3389 FILE *f = fopen ("conftest.out", "w");
3390 return ferror (f) || fclose (f) != 0;
3393 return 0;
3395 _ACEOF
3396 ac_clean_files="$ac_clean_files conftest.out"
3397 # Check that the compiler produces executables we can run. If not, either
3398 # the compiler is broken, or we cross compile.
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3400 $as_echo_n "checking whether we are cross compiling... " >&6; }
3401 if test "$cross_compiling" != yes; then
3402 { { ac_try="$ac_link"
3403 case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_link") 2>&5
3410 ac_status=$?
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }
3413 if { ac_try='./conftest$ac_cv_exeext'
3414 { { case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417 esac
3418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419 $as_echo "$ac_try_echo"; } >&5
3420 (eval "$ac_try") 2>&5
3421 ac_status=$?
3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423 test $ac_status = 0; }; }; then
3424 cross_compiling=no
3425 else
3426 if test "$cross_compiling" = maybe; then
3427 cross_compiling=yes
3428 else
3429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error $? "cannot run C compiled programs.
3432 If you meant to cross compile, use \`--host'.
3433 See \`config.log' for more details" "$LINENO" 5; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3438 $as_echo "$cross_compiling" >&6; }
3440 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3441 ac_clean_files=$ac_clean_files_save
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3443 $as_echo_n "checking for suffix of object files... " >&6; }
3444 if ${ac_cv_objext+:} false; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3451 main ()
3455 return 0;
3457 _ACEOF
3458 rm -f conftest.o conftest.obj
3459 if { { ac_try="$ac_compile"
3460 case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463 esac
3464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465 $as_echo "$ac_try_echo"; } >&5
3466 (eval "$ac_compile") 2>&5
3467 ac_status=$?
3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469 test $ac_status = 0; }; then :
3470 for ac_file in conftest.o conftest.obj conftest.*; do
3471 test -f "$ac_file" || continue;
3472 case $ac_file in
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3475 break;;
3476 esac
3477 done
3478 else
3479 $as_echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error $? "cannot compute suffix of object files: cannot compile
3485 See \`config.log' for more details" "$LINENO" 5; }
3487 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3490 $as_echo "$ac_cv_objext" >&6; }
3491 OBJEXT=$ac_cv_objext
3492 ac_objext=$OBJEXT
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3494 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3495 if ${ac_cv_c_compiler_gnu+:} false; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3502 main ()
3504 #ifndef __GNUC__
3505 choke me
3506 #endif
3509 return 0;
3511 _ACEOF
3512 if ac_fn_c_try_compile "$LINENO"; then :
3513 ac_compiler_gnu=yes
3514 else
3515 ac_compiler_gnu=no
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3522 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3523 if test $ac_compiler_gnu = yes; then
3524 GCC=yes
3525 else
3526 GCC=
3528 ac_test_CFLAGS=${CFLAGS+set}
3529 ac_save_CFLAGS=$CFLAGS
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3531 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3532 if ${ac_cv_prog_cc_g+:} false; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 ac_save_c_werror_flag=$ac_c_werror_flag
3536 ac_c_werror_flag=yes
3537 ac_cv_prog_cc_g=no
3538 CFLAGS="-g"
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3543 main ()
3547 return 0;
3549 _ACEOF
3550 if ac_fn_c_try_compile "$LINENO"; then :
3551 ac_cv_prog_cc_g=yes
3552 else
3553 CFLAGS=""
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3558 main ()
3562 return 0;
3564 _ACEOF
3565 if ac_fn_c_try_compile "$LINENO"; then :
3567 else
3568 ac_c_werror_flag=$ac_save_c_werror_flag
3569 CFLAGS="-g"
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3574 main ()
3578 return 0;
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582 ac_cv_prog_cc_g=yes
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 ac_c_werror_flag=$ac_save_c_werror_flag
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3592 $as_echo "$ac_cv_prog_cc_g" >&6; }
3593 if test "$ac_test_CFLAGS" = set; then
3594 CFLAGS=$ac_save_CFLAGS
3595 elif test $ac_cv_prog_cc_g = yes; then
3596 if test "$GCC" = yes; then
3597 CFLAGS="-g -O2"
3598 else
3599 CFLAGS="-g"
3601 else
3602 if test "$GCC" = yes; then
3603 CFLAGS="-O2"
3604 else
3605 CFLAGS=
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3609 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3610 if ${ac_cv_prog_cc_c89+:} false; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 ac_cv_prog_cc_c89=no
3614 ac_save_CC=$CC
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3617 #include <stdarg.h>
3618 #include <stdio.h>
3619 #include <sys/types.h>
3620 #include <sys/stat.h>
3621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3622 struct buf { int x; };
3623 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3624 static char *e (p, i)
3625 char **p;
3626 int i;
3628 return p[i];
3630 static char *f (char * (*g) (char **, int), char **p, ...)
3632 char *s;
3633 va_list v;
3634 va_start (v,p);
3635 s = g (p, va_arg (v,int));
3636 va_end (v);
3637 return s;
3640 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3641 function prototypes and stuff, but not '\xHH' hex character constants.
3642 These don't provoke an error unfortunately, instead are silently treated
3643 as 'x'. The following induces an error, until -std is added to get
3644 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3645 array size at least. It's necessary to write '\x00'==0 to get something
3646 that's true only with -std. */
3647 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3649 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3650 inside strings and character constants. */
3651 #define FOO(x) 'x'
3652 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3654 int test (int i, double x);
3655 struct s1 {int (*f) (int a);};
3656 struct s2 {int (*f) (double a);};
3657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3658 int argc;
3659 char **argv;
3661 main ()
3663 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3665 return 0;
3667 _ACEOF
3668 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3669 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3671 CC="$ac_save_CC $ac_arg"
3672 if ac_fn_c_try_compile "$LINENO"; then :
3673 ac_cv_prog_cc_c89=$ac_arg
3675 rm -f core conftest.err conftest.$ac_objext
3676 test "x$ac_cv_prog_cc_c89" != "xno" && break
3677 done
3678 rm -f conftest.$ac_ext
3679 CC=$ac_save_CC
3682 # AC_CACHE_VAL
3683 case "x$ac_cv_prog_cc_c89" in
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3686 $as_echo "none needed" >&6; } ;;
3687 xno)
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3689 $as_echo "unsupported" >&6; } ;;
3691 CC="$CC $ac_cv_prog_cc_c89"
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3693 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3694 esac
3695 if test "x$ac_cv_prog_cc_c89" != xno; then :
3699 ac_ext=c
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705 ac_ext=cpp
3706 ac_cpp='$CXXCPP $CPPFLAGS'
3707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3710 if test -z "$CXX"; then
3711 if test -n "$CCC"; then
3712 CXX=$CCC
3713 else
3714 if test -n "$ac_tool_prefix"; then
3715 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if ${ac_cv_prog_CXX+:} false; then :
3722 $as_echo_n "(cached) " >&6
3723 else
3724 if test -n "$CXX"; then
3725 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3734 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 break 2
3738 done
3739 done
3740 IFS=$as_save_IFS
3744 CXX=$ac_cv_prog_CXX
3745 if test -n "$CXX"; then
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3747 $as_echo "$CXX" >&6; }
3748 else
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 $as_echo "no" >&6; }
3754 test -n "$CXX" && break
3755 done
3757 if test -z "$CXX"; then
3758 ac_ct_CXX=$CXX
3759 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3761 # Extract the first word of "$ac_prog", so it can be a program name with args.
3762 set dummy $ac_prog; ac_word=$2
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 if test -n "$ac_ct_CXX"; then
3769 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3778 ac_cv_prog_ac_ct_CXX="$ac_prog"
3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3782 done
3783 done
3784 IFS=$as_save_IFS
3788 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3789 if test -n "$ac_ct_CXX"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3791 $as_echo "$ac_ct_CXX" >&6; }
3792 else
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3798 test -n "$ac_ct_CXX" && break
3799 done
3801 if test "x$ac_ct_CXX" = x; then
3802 CXX="g++"
3803 else
3804 case $cross_compiling:$ac_tool_warned in
3805 yes:)
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3808 ac_tool_warned=yes ;;
3809 esac
3810 CXX=$ac_ct_CXX
3816 # Provide some information about the compiler.
3817 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3818 set X $ac_compile
3819 ac_compiler=$2
3820 for ac_option in --version -v -V -qversion; do
3821 { { ac_try="$ac_compiler $ac_option >&5"
3822 case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825 esac
3826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827 $as_echo "$ac_try_echo"; } >&5
3828 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3829 ac_status=$?
3830 if test -s conftest.err; then
3831 sed '10a\
3832 ... rest of stderr output deleted ...
3833 10q' conftest.err >conftest.er1
3834 cat conftest.er1 >&5
3836 rm -f conftest.er1 conftest.err
3837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838 test $ac_status = 0; }
3839 done
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3842 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3843 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3844 $as_echo_n "(cached) " >&6
3845 else
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3850 main ()
3852 #ifndef __GNUC__
3853 choke me
3854 #endif
3857 return 0;
3859 _ACEOF
3860 if ac_fn_cxx_try_compile "$LINENO"; then :
3861 ac_compiler_gnu=yes
3862 else
3863 ac_compiler_gnu=no
3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3870 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3871 if test $ac_compiler_gnu = yes; then
3872 GXX=yes
3873 else
3874 GXX=
3876 ac_test_CXXFLAGS=${CXXFLAGS+set}
3877 ac_save_CXXFLAGS=$CXXFLAGS
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3879 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3880 if ${ac_cv_prog_cxx_g+:} false; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3884 ac_cxx_werror_flag=yes
3885 ac_cv_prog_cxx_g=no
3886 CXXFLAGS="-g"
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3891 main ()
3895 return 0;
3897 _ACEOF
3898 if ac_fn_cxx_try_compile "$LINENO"; then :
3899 ac_cv_prog_cxx_g=yes
3900 else
3901 CXXFLAGS=""
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3906 main ()
3910 return 0;
3912 _ACEOF
3913 if ac_fn_cxx_try_compile "$LINENO"; then :
3915 else
3916 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3917 CXXFLAGS="-g"
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3922 main ()
3926 return 0;
3928 _ACEOF
3929 if ac_fn_cxx_try_compile "$LINENO"; then :
3930 ac_cv_prog_cxx_g=yes
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3940 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3941 if test "$ac_test_CXXFLAGS" = set; then
3942 CXXFLAGS=$ac_save_CXXFLAGS
3943 elif test $ac_cv_prog_cxx_g = yes; then
3944 if test "$GXX" = yes; then
3945 CXXFLAGS="-g -O2"
3946 else
3947 CXXFLAGS="-g"
3949 else
3950 if test "$GXX" = yes; then
3951 CXXFLAGS="-O2"
3952 else
3953 CXXFLAGS=
3956 ac_ext=c
3957 ac_cpp='$CPP $CPPFLAGS'
3958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962 if test -n "$ac_tool_prefix"; then
3963 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3964 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if ${ac_cv_prog_CPPBIN+:} false; then :
3968 $as_echo_n "(cached) " >&6
3969 else
3970 if test -n "$CPPBIN"; then
3971 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3980 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3984 done
3985 done
3986 IFS=$as_save_IFS
3990 CPPBIN=$ac_cv_prog_CPPBIN
3991 if test -n "$CPPBIN"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3993 $as_echo "$CPPBIN" >&6; }
3994 else
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
4001 if test -z "$ac_cv_prog_CPPBIN"; then
4002 ac_ct_CPPBIN=$CPPBIN
4003 # Extract the first word of "cpp", so it can be a program name with args.
4004 set dummy cpp; ac_word=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 if test -n "$ac_ct_CPPBIN"; then
4011 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4012 else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4020 ac_cv_prog_ac_ct_CPPBIN="cpp"
4021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 break 2
4024 done
4025 done
4026 IFS=$as_save_IFS
4030 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4031 if test -n "$ac_ct_CPPBIN"; then
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4033 $as_echo "$ac_ct_CPPBIN" >&6; }
4034 else
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4039 if test "x$ac_ct_CPPBIN" = x; then
4040 CPPBIN="cpp"
4041 else
4042 case $cross_compiling:$ac_tool_warned in
4043 yes:)
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4046 ac_tool_warned=yes ;;
4047 esac
4048 CPPBIN=$ac_ct_CPPBIN
4050 else
4051 CPPBIN="$ac_cv_prog_CPPBIN"
4055 cat >>confdefs.h <<_ACEOF
4056 #define EXEEXT "$ac_exeext"
4057 _ACEOF
4060 case $host in
4061 *-darwin*)
4062 if test "x$enable_win64" = "xyes"
4063 then
4064 CC="$CC -m64"
4065 CXX="$CXX -m64"
4066 LD="${LD:-ld} -arch x86_64"
4067 AS="${AS:-as} -arch x86_64"
4068 host_cpu="x86_64"
4069 notice_platform="64-bit "
4070 TARGETFLAGS="-m64"
4072 else
4073 CC="$CC -m32"
4074 CXX="$CXX -m32"
4075 LD="${LD:-ld} -arch i386"
4076 AS="${AS:-as} -arch i386"
4077 host_cpu="i386"
4078 notice_platform="32-bit "
4079 TARGETFLAGS="-m32"
4081 enable_win16=${enable_win16:-yes}
4084 x86_64*)
4085 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4086 then
4087 CC="$CC -m32"
4088 CXX="$CXX -m32"
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4090 $as_echo_n "checking whether $CC works... " >&6; }
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4096 main ()
4100 return 0;
4102 _ACEOF
4103 if ac_fn_c_try_link "$LINENO"; then :
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4105 $as_echo "yes" >&6; }
4106 else
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108 $as_echo "no" >&6; }
4109 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4111 rm -f core conftest.err conftest.$ac_objext \
4112 conftest$ac_exeext conftest.$ac_ext
4113 LD="${LD:-ld} -m elf_i386"
4114 AS="${AS:-as} --32"
4115 host_cpu="i386"
4116 notice_platform="32-bit "
4117 TARGETFLAGS="-m32"
4119 enable_win16=${enable_win16:-yes}
4120 else
4121 if test "x${GCC}" = "xyes"
4122 then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4124 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127 #include <stdarg.h>
4129 main ()
4131 void func(__builtin_ms_va_list *args);
4133 return 0;
4135 _ACEOF
4136 if ac_fn_c_try_compile "$LINENO"; then :
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4138 $as_echo "yes" >&6; }
4139 else
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141 $as_echo "no" >&6; }
4142 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 TARGETFLAGS="-m64"
4150 *-mingw32*|*-cygwin*)
4151 enable_win16=${enable_win16:-no}
4152 CFLAGS="$CFLAGS -D_WIN32"
4154 i[3456789]86*)
4155 enable_win16=${enable_win16:-yes}
4157 esac
4159 enable_win16=${enable_win16:-no}
4160 enable_win64=${enable_win64:-no}
4162 enable_winetest=${enable_winetest:-$enable_tests}
4164 if test -n "$with_wine64"
4165 then
4166 if test "x$enable_win64" = "xyes"
4167 then
4168 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4169 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4171 WOW64_DISABLE=\#
4173 enable_fonts=${enable_fonts:-no}
4174 enable_server=${enable_server:-no}
4175 enable_tools=${enable_tools:-no}
4176 elif test "x$enable_win64" = "xyes"
4177 then
4178 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4182 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4183 if ${wine_cv_toolsdir+:} false; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 wine_cv_toolsdir="$with_wine_tools"
4187 if test -z "$with_wine_tools"; then
4188 if test "$cross_compiling" = "yes"; then
4189 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4190 elif test -n "$with_wine64"; then
4191 wine_cv_toolsdir="$with_wine64"
4194 if test -z "$wine_cv_toolsdir"; then
4195 wine_cv_toolsdir="\$(top_builddir)"
4196 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4197 case "$wine_cv_toolsdir" in
4198 /*) ;;
4199 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4200 esac
4201 else
4202 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4206 $as_echo "$wine_cv_toolsdir" >&6; }
4207 TOOLSDIR=$wine_cv_toolsdir
4209 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4210 then
4211 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4215 for ac_prog in flex
4217 # Extract the first word of "$ac_prog", so it can be a program name with args.
4218 set dummy $ac_prog; ac_word=$2
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4220 $as_echo_n "checking for $ac_word... " >&6; }
4221 if ${ac_cv_prog_FLEX+:} false; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 if test -n "$FLEX"; then
4225 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4226 else
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
4232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4234 ac_cv_prog_FLEX="$ac_prog"
4235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 break 2
4238 done
4239 done
4240 IFS=$as_save_IFS
4244 FLEX=$ac_cv_prog_FLEX
4245 if test -n "$FLEX"; then
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4247 $as_echo "$FLEX" >&6; }
4248 else
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4250 $as_echo "no" >&6; }
4254 test -n "$FLEX" && break
4255 done
4256 test -n "$FLEX" || FLEX="none"
4258 if test "$FLEX" = "none"
4259 then
4260 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4263 $as_echo_n "checking whether flex is recent enough... " >&6; }
4264 cat >conftest.l <<EOF
4265 %top{
4266 #include "prediluvian.h"
4270 if $FLEX -t conftest.l >/dev/null 2>&5
4271 then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4273 $as_echo "yes" >&6; }
4274 else
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 $as_echo "no" >&6; }
4277 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4280 for ac_prog in bison
4282 # Extract the first word of "$ac_prog", so it can be a program name with args.
4283 set dummy $ac_prog; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_prog_BISON+:} false; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 if test -n "$BISON"; then
4290 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299 ac_cv_prog_BISON="$ac_prog"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4303 done
4304 done
4305 IFS=$as_save_IFS
4309 BISON=$ac_cv_prog_BISON
4310 if test -n "$BISON"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4312 $as_echo "$BISON" >&6; }
4313 else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4319 test -n "$BISON" && break
4320 done
4321 test -n "$BISON" || BISON="none"
4323 if test "$BISON" = "none"
4324 then
4325 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4328 if test -n "$ac_tool_prefix"; then
4329 for ac_prog in ar gar
4331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4334 $as_echo_n "checking for $ac_word... " >&6; }
4335 if ${ac_cv_prog_AR+:} false; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 if test -n "$AR"; then
4339 ac_cv_prog_AR="$AR" # Let the user override the test.
4340 else
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4348 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 break 2
4352 done
4353 done
4354 IFS=$as_save_IFS
4358 AR=$ac_cv_prog_AR
4359 if test -n "$AR"; then
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4361 $as_echo "$AR" >&6; }
4362 else
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364 $as_echo "no" >&6; }
4368 test -n "$AR" && break
4369 done
4371 if test -z "$AR"; then
4372 ac_ct_AR=$AR
4373 for ac_prog in ar gar
4375 # Extract the first word of "$ac_prog", so it can be a program name with args.
4376 set dummy $ac_prog; ac_word=$2
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4378 $as_echo_n "checking for $ac_word... " >&6; }
4379 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4380 $as_echo_n "(cached) " >&6
4381 else
4382 if test -n "$ac_ct_AR"; then
4383 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4384 else
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH
4388 IFS=$as_save_IFS
4389 test -z "$as_dir" && as_dir=.
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4392 ac_cv_prog_ac_ct_AR="$ac_prog"
4393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 break 2
4396 done
4397 done
4398 IFS=$as_save_IFS
4402 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4403 if test -n "$ac_ct_AR"; then
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4405 $as_echo "$ac_ct_AR" >&6; }
4406 else
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408 $as_echo "no" >&6; }
4412 test -n "$ac_ct_AR" && break
4413 done
4415 if test "x$ac_ct_AR" = x; then
4416 AR="ar"
4417 else
4418 case $cross_compiling:$ac_tool_warned in
4419 yes:)
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4422 ac_tool_warned=yes ;;
4423 esac
4424 AR=$ac_ct_AR
4428 ARFLAGS=rc
4430 if test -n "$ac_tool_prefix"; then
4431 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4432 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if ${ac_cv_prog_RANLIB+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 if test -n "$RANLIB"; then
4439 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4440 else
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4448 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 break 2
4452 done
4453 done
4454 IFS=$as_save_IFS
4458 RANLIB=$ac_cv_prog_RANLIB
4459 if test -n "$RANLIB"; then
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4461 $as_echo "$RANLIB" >&6; }
4462 else
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464 $as_echo "no" >&6; }
4469 if test -z "$ac_cv_prog_RANLIB"; then
4470 ac_ct_RANLIB=$RANLIB
4471 # Extract the first word of "ranlib", so it can be a program name with args.
4472 set dummy ranlib; ac_word=$2
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4474 $as_echo_n "checking for $ac_word... " >&6; }
4475 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4476 $as_echo_n "(cached) " >&6
4477 else
4478 if test -n "$ac_ct_RANLIB"; then
4479 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4480 else
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488 ac_cv_prog_ac_ct_RANLIB="ranlib"
4489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 break 2
4492 done
4493 done
4494 IFS=$as_save_IFS
4498 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4499 if test -n "$ac_ct_RANLIB"; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4501 $as_echo "$ac_ct_RANLIB" >&6; }
4502 else
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 $as_echo "no" >&6; }
4507 if test "x$ac_ct_RANLIB" = x; then
4508 RANLIB=":"
4509 else
4510 case $cross_compiling:$ac_tool_warned in
4511 yes:)
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4514 ac_tool_warned=yes ;;
4515 esac
4516 RANLIB=$ac_ct_RANLIB
4518 else
4519 RANLIB="$ac_cv_prog_RANLIB"
4522 if test -n "$ac_tool_prefix"; then
4523 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4524 set dummy ${ac_tool_prefix}strip; ac_word=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if ${ac_cv_prog_STRIP+:} false; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if test -n "$STRIP"; then
4531 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 break 2
4544 done
4545 done
4546 IFS=$as_save_IFS
4550 STRIP=$ac_cv_prog_STRIP
4551 if test -n "$STRIP"; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4553 $as_echo "$STRIP" >&6; }
4554 else
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4561 if test -z "$ac_cv_prog_STRIP"; then
4562 ac_ct_STRIP=$STRIP
4563 # Extract the first word of "strip", so it can be a program name with args.
4564 set dummy strip; ac_word=$2
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4566 $as_echo_n "checking for $ac_word... " >&6; }
4567 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 if test -n "$ac_ct_STRIP"; then
4571 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4572 else
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH
4576 IFS=$as_save_IFS
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4580 ac_cv_prog_ac_ct_STRIP="strip"
4581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 break 2
4584 done
4585 done
4586 IFS=$as_save_IFS
4590 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4591 if test -n "$ac_ct_STRIP"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4593 $as_echo "$ac_ct_STRIP" >&6; }
4594 else
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596 $as_echo "no" >&6; }
4599 if test "x$ac_ct_STRIP" = x; then
4600 STRIP="strip"
4601 else
4602 case $cross_compiling:$ac_tool_warned in
4603 yes:)
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4606 ac_tool_warned=yes ;;
4607 esac
4608 STRIP=$ac_ct_STRIP
4610 else
4611 STRIP="$ac_cv_prog_STRIP"
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4615 $as_echo_n "checking whether ln -s works... " >&6; }
4616 LN_S=$as_ln_s
4617 if test "$LN_S" = "ln -s"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4619 $as_echo "yes" >&6; }
4620 else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4622 $as_echo "no, using $LN_S" >&6; }
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4626 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4627 if ${ac_cv_path_GREP+:} false; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 if test -z "$GREP"; then
4631 ac_path_GREP_found=false
4632 # Loop through the user's path and test for each of PROGNAME-LIST
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
4638 for ac_prog in grep ggrep; do
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4641 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4642 # Check for GNU ac_path_GREP and select it if it is found.
4643 # Check for GNU $ac_path_GREP
4644 case `"$ac_path_GREP" --version 2>&1` in
4645 *GNU*)
4646 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4648 ac_count=0
4649 $as_echo_n 0123456789 >"conftest.in"
4650 while :
4652 cat "conftest.in" "conftest.in" >"conftest.tmp"
4653 mv "conftest.tmp" "conftest.in"
4654 cp "conftest.in" "conftest.nl"
4655 $as_echo 'GREP' >> "conftest.nl"
4656 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4658 as_fn_arith $ac_count + 1 && ac_count=$as_val
4659 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4660 # Best one so far, save it but keep looking for a better one
4661 ac_cv_path_GREP="$ac_path_GREP"
4662 ac_path_GREP_max=$ac_count
4664 # 10*(2^10) chars as input seems more than enough
4665 test $ac_count -gt 10 && break
4666 done
4667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4668 esac
4670 $ac_path_GREP_found && break 3
4671 done
4672 done
4673 done
4674 IFS=$as_save_IFS
4675 if test -z "$ac_cv_path_GREP"; then
4676 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4678 else
4679 ac_cv_path_GREP=$GREP
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4684 $as_echo "$ac_cv_path_GREP" >&6; }
4685 GREP="$ac_cv_path_GREP"
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4689 $as_echo_n "checking for egrep... " >&6; }
4690 if ${ac_cv_path_EGREP+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4694 then ac_cv_path_EGREP="$GREP -E"
4695 else
4696 if test -z "$EGREP"; then
4697 ac_path_EGREP_found=false
4698 # Loop through the user's path and test for each of PROGNAME-LIST
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_prog in egrep; do
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4707 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4708 # Check for GNU ac_path_EGREP and select it if it is found.
4709 # Check for GNU $ac_path_EGREP
4710 case `"$ac_path_EGREP" --version 2>&1` in
4711 *GNU*)
4712 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4714 ac_count=0
4715 $as_echo_n 0123456789 >"conftest.in"
4716 while :
4718 cat "conftest.in" "conftest.in" >"conftest.tmp"
4719 mv "conftest.tmp" "conftest.in"
4720 cp "conftest.in" "conftest.nl"
4721 $as_echo 'EGREP' >> "conftest.nl"
4722 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4724 as_fn_arith $ac_count + 1 && ac_count=$as_val
4725 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4726 # Best one so far, save it but keep looking for a better one
4727 ac_cv_path_EGREP="$ac_path_EGREP"
4728 ac_path_EGREP_max=$ac_count
4730 # 10*(2^10) chars as input seems more than enough
4731 test $ac_count -gt 10 && break
4732 done
4733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4734 esac
4736 $ac_path_EGREP_found && break 3
4737 done
4738 done
4739 done
4740 IFS=$as_save_IFS
4741 if test -z "$ac_cv_path_EGREP"; then
4742 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4744 else
4745 ac_cv_path_EGREP=$EGREP
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4751 $as_echo "$ac_cv_path_EGREP" >&6; }
4752 EGREP="$ac_cv_path_EGREP"
4755 # Extract the first word of "ldconfig", so it can be a program name with args.
4756 set dummy ldconfig; ac_word=$2
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4758 $as_echo_n "checking for $ac_word... " >&6; }
4759 if ${ac_cv_path_LDCONFIG+:} false; then :
4760 $as_echo_n "(cached) " >&6
4761 else
4762 case $LDCONFIG in
4763 [\\/]* | ?:[\\/]*)
4764 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in /sbin /usr/sbin $PATH
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 break 2
4778 done
4779 done
4780 IFS=$as_save_IFS
4782 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4784 esac
4786 LDCONFIG=$ac_cv_path_LDCONFIG
4787 if test -n "$LDCONFIG"; then
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4789 $as_echo "$LDCONFIG" >&6; }
4790 else
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4796 # Find a good install program. We prefer a C program (faster),
4797 # so one script is as good as another. But avoid the broken or
4798 # incompatible versions:
4799 # SysV /etc/install, /usr/sbin/install
4800 # SunOS /usr/etc/install
4801 # IRIX /sbin/install
4802 # AIX /bin/install
4803 # AmigaOS /C/install, which installs bootblocks on floppy discs
4804 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4805 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4806 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4807 # OS/2's system install, which has a completely different semantic
4808 # ./install, which can be erroneously created by make from ./install.sh.
4809 # Reject install programs that cannot install multiple files.
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4811 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4812 if test -z "$INSTALL"; then
4813 if ${ac_cv_path_install+:} false; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 # Account for people who put trailing slashes in PATH elements.
4822 case $as_dir/ in #((
4823 ./ | .// | /[cC]/* | \
4824 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4825 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4826 /usr/ucb/* ) ;;
4828 # OSF1 and SCO ODT 3.0 have their own names for install.
4829 # Don't use installbsd from OSF since it installs stuff as root
4830 # by default.
4831 for ac_prog in ginstall scoinst install; do
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4834 if test $ac_prog = install &&
4835 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4836 # AIX install. It has an incompatible calling convention.
4838 elif test $ac_prog = install &&
4839 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4840 # program-specific install script used by HP pwplus--don't use.
4842 else
4843 rm -rf conftest.one conftest.two conftest.dir
4844 echo one > conftest.one
4845 echo two > conftest.two
4846 mkdir conftest.dir
4847 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4848 test -s conftest.one && test -s conftest.two &&
4849 test -s conftest.dir/conftest.one &&
4850 test -s conftest.dir/conftest.two
4851 then
4852 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4853 break 3
4857 done
4858 done
4860 esac
4862 done
4863 IFS=$as_save_IFS
4865 rm -rf conftest.one conftest.two conftest.dir
4868 if test "${ac_cv_path_install+set}" = set; then
4869 INSTALL=$ac_cv_path_install
4870 else
4871 # As a last resort, use the slow shell script. Don't cache a
4872 # value for INSTALL within a source directory, because that will
4873 # break other packages using the cache if that directory is
4874 # removed, or if the value is a relative name.
4875 INSTALL=$ac_install_sh
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4879 $as_echo "$INSTALL" >&6; }
4881 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4882 # It thinks the first close brace ends the variable substitution.
4883 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4885 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4887 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4889 case "$INSTALL" in
4890 [\\/$]* | ?:[\\/]* ) ;;
4891 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4892 esac
4894 for ac_prog in lclint lint
4896 # Extract the first word of "$ac_prog", so it can be a program name with args.
4897 set dummy $ac_prog; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if ${ac_cv_prog_LINT+:} false; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 if test -n "$LINT"; then
4904 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913 ac_cv_prog_LINT="$ac_prog"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4917 done
4918 done
4919 IFS=$as_save_IFS
4923 LINT=$ac_cv_prog_LINT
4924 if test -n "$LINT"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4926 $as_echo "$LINT" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4933 test -n "$LINT" && break
4934 done
4936 if test "$LINT" = "lint"
4937 then
4938 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4943 for ac_prog in fontforge
4945 # Extract the first word of "$ac_prog", so it can be a program name with args.
4946 set dummy $ac_prog; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_prog_FONTFORGE+:} false; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if test -n "$FONTFORGE"; then
4953 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_FONTFORGE="$ac_prog"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4966 done
4967 done
4968 IFS=$as_save_IFS
4972 FONTFORGE=$ac_cv_prog_FONTFORGE
4973 if test -n "$FONTFORGE"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4975 $as_echo "$FONTFORGE" >&6; }
4976 else
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4982 test -n "$FONTFORGE" && break
4983 done
4984 test -n "$FONTFORGE" || FONTFORGE="false"
4986 for ac_prog in pkg-config
4988 # Extract the first word of "$ac_prog", so it can be a program name with args.
4989 set dummy $ac_prog; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 if test -n "$PKG_CONFIG"; then
4996 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4997 else
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_prog_PKG_CONFIG="$ac_prog"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 break 2
5009 done
5010 done
5011 IFS=$as_save_IFS
5015 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5016 if test -n "$PKG_CONFIG"; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5018 $as_echo "$PKG_CONFIG" >&6; }
5019 else
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5025 test -n "$PKG_CONFIG" && break
5026 done
5027 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
5029 for ac_prog in rsvg
5031 # Extract the first word of "$ac_prog", so it can be a program name with args.
5032 set dummy $ac_prog; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_prog_RSVG+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$RSVG"; then
5039 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_prog_RSVG="$ac_prog"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5052 done
5053 done
5054 IFS=$as_save_IFS
5058 RSVG=$ac_cv_prog_RSVG
5059 if test -n "$RSVG"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5061 $as_echo "$RSVG" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5068 test -n "$RSVG" && break
5069 done
5070 test -n "$RSVG" || RSVG="false"
5072 for ac_prog in convert
5074 # Extract the first word of "$ac_prog", so it can be a program name with args.
5075 set dummy $ac_prog; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if ${ac_cv_prog_CONVERT+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 if test -n "$CONVERT"; then
5082 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091 ac_cv_prog_CONVERT="$ac_prog"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 break 2
5095 done
5096 done
5097 IFS=$as_save_IFS
5101 CONVERT=$ac_cv_prog_CONVERT
5102 if test -n "$CONVERT"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5104 $as_echo "$CONVERT" >&6; }
5105 else
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5111 test -n "$CONVERT" && break
5112 done
5113 test -n "$CONVERT" || CONVERT="false"
5115 for ac_prog in icotool
5117 # Extract the first word of "$ac_prog", so it can be a program name with args.
5118 set dummy $ac_prog; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if ${ac_cv_prog_ICOTOOL+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 if test -n "$ICOTOOL"; then
5125 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 ac_cv_prog_ICOTOOL="$ac_prog"
5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 break 2
5138 done
5139 done
5140 IFS=$as_save_IFS
5144 ICOTOOL=$ac_cv_prog_ICOTOOL
5145 if test -n "$ICOTOOL"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5147 $as_echo "$ICOTOOL" >&6; }
5148 else
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5154 test -n "$ICOTOOL" && break
5155 done
5156 test -n "$ICOTOOL" || ICOTOOL="false"
5159 if test "x$enable_maintainer_mode" != "xyes"
5160 then
5161 MAINTAINER_MODE=\#
5163 else
5164 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5165 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5167 if test "$CONVERT" = false
5168 then
5169 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5172 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5173 convert_version=`convert --version | head -n1`
5174 if test "x$convert_version" != "x"
5175 then
5176 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5177 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5178 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5179 then
5180 CONVERT=false
5183 if test "$CONVERT" = false
5184 then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5186 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5187 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5188 else
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5190 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5194 if test "$ICOTOOL" = false
5195 then
5196 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5197 else
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5199 $as_echo_n "checking for recent enough icotool... " >&6; }
5200 icotool_version=`icotool --version | head -n1`
5201 if test "x$icotool_version" != "x"
5202 then
5203 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5204 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5205 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5206 then
5207 ICOTOOL=false
5208 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5211 if test "$ICOTOOL" = false
5212 then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5214 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5215 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5216 else
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5218 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5226 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5227 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 ac_check_lib_save_LIBS=$LIBS
5231 LIBS="-li386 $LIBS"
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5235 /* Override any GCC internal prototype to avoid an error.
5236 Use char because int might match the return type of a GCC
5237 builtin and then its argument prototype would still apply. */
5238 #ifdef __cplusplus
5239 extern "C"
5240 #endif
5241 char i386_set_ldt ();
5243 main ()
5245 return i386_set_ldt ();
5247 return 0;
5249 _ACEOF
5250 if ac_fn_c_try_link "$LINENO"; then :
5251 ac_cv_lib_i386_i386_set_ldt=yes
5252 else
5253 ac_cv_lib_i386_i386_set_ldt=no
5255 rm -f core conftest.err conftest.$ac_objext \
5256 conftest$ac_exeext conftest.$ac_ext
5257 LIBS=$ac_check_lib_save_LIBS
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5260 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5261 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5262 cat >>confdefs.h <<_ACEOF
5263 #define HAVE_LIBI386 1
5264 _ACEOF
5266 LIBS="-li386 $LIBS"
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5271 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5272 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 ac_check_lib_save_LIBS=$LIBS
5276 LIBS="-lossaudio $LIBS"
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5280 /* Override any GCC internal prototype to avoid an error.
5281 Use char because int might match the return type of a GCC
5282 builtin and then its argument prototype would still apply. */
5283 #ifdef __cplusplus
5284 extern "C"
5285 #endif
5286 char _oss_ioctl ();
5288 main ()
5290 return _oss_ioctl ();
5292 return 0;
5294 _ACEOF
5295 if ac_fn_c_try_link "$LINENO"; then :
5296 ac_cv_lib_ossaudio__oss_ioctl=yes
5297 else
5298 ac_cv_lib_ossaudio__oss_ioctl=no
5300 rm -f core conftest.err conftest.$ac_objext \
5301 conftest$ac_exeext conftest.$ac_ext
5302 LIBS=$ac_check_lib_save_LIBS
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5305 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5306 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5307 cat >>confdefs.h <<_ACEOF
5308 #define HAVE_LIBOSSAUDIO 1
5309 _ACEOF
5311 LIBS="-lossaudio $LIBS"
5316 XLIB=""
5318 OPENGL_LIBS=""
5322 # Check whether --enable-largefile was given.
5323 if test "${enable_largefile+set}" = set; then :
5324 enableval=$enable_largefile;
5327 if test "$enable_largefile" != no; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5330 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5331 if ${ac_cv_sys_largefile_CC+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 ac_cv_sys_largefile_CC=no
5335 if test "$GCC" != yes; then
5336 ac_save_CC=$CC
5337 while :; do
5338 # IRIX 6.2 and later do not support large files by default,
5339 # so use the C compiler's -n32 option if that helps.
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5342 #include <sys/types.h>
5343 /* Check that off_t can represent 2**63 - 1 correctly.
5344 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5345 since some C++ compilers masquerading as C compilers
5346 incorrectly reject 9223372036854775807. */
5347 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5348 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5349 && LARGE_OFF_T % 2147483647 == 1)
5350 ? 1 : -1];
5352 main ()
5356 return 0;
5358 _ACEOF
5359 if ac_fn_c_try_compile "$LINENO"; then :
5360 break
5362 rm -f core conftest.err conftest.$ac_objext
5363 CC="$CC -n32"
5364 if ac_fn_c_try_compile "$LINENO"; then :
5365 ac_cv_sys_largefile_CC=' -n32'; break
5367 rm -f core conftest.err conftest.$ac_objext
5368 break
5369 done
5370 CC=$ac_save_CC
5371 rm -f conftest.$ac_ext
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5375 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5376 if test "$ac_cv_sys_largefile_CC" != no; then
5377 CC=$CC$ac_cv_sys_largefile_CC
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5381 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5382 if ${ac_cv_sys_file_offset_bits+:} false; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5385 while :; do
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5388 #include <sys/types.h>
5389 /* Check that off_t can represent 2**63 - 1 correctly.
5390 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5391 since some C++ compilers masquerading as C compilers
5392 incorrectly reject 9223372036854775807. */
5393 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5394 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5395 && LARGE_OFF_T % 2147483647 == 1)
5396 ? 1 : -1];
5398 main ()
5402 return 0;
5404 _ACEOF
5405 if ac_fn_c_try_compile "$LINENO"; then :
5406 ac_cv_sys_file_offset_bits=no; break
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411 #define _FILE_OFFSET_BITS 64
5412 #include <sys/types.h>
5413 /* Check that off_t can represent 2**63 - 1 correctly.
5414 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5415 since some C++ compilers masquerading as C compilers
5416 incorrectly reject 9223372036854775807. */
5417 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5418 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5419 && LARGE_OFF_T % 2147483647 == 1)
5420 ? 1 : -1];
5422 main ()
5426 return 0;
5428 _ACEOF
5429 if ac_fn_c_try_compile "$LINENO"; then :
5430 ac_cv_sys_file_offset_bits=64; break
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433 ac_cv_sys_file_offset_bits=unknown
5434 break
5435 done
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5438 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5439 case $ac_cv_sys_file_offset_bits in #(
5440 no | unknown) ;;
5442 cat >>confdefs.h <<_ACEOF
5443 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5444 _ACEOF
5446 esac
5447 rm -rf conftest*
5448 if test $ac_cv_sys_file_offset_bits = unknown; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5450 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5451 if ${ac_cv_sys_large_files+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 while :; do
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457 #include <sys/types.h>
5458 /* Check that off_t can represent 2**63 - 1 correctly.
5459 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5460 since some C++ compilers masquerading as C compilers
5461 incorrectly reject 9223372036854775807. */
5462 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5463 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5464 && LARGE_OFF_T % 2147483647 == 1)
5465 ? 1 : -1];
5467 main ()
5471 return 0;
5473 _ACEOF
5474 if ac_fn_c_try_compile "$LINENO"; then :
5475 ac_cv_sys_large_files=no; break
5477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480 #define _LARGE_FILES 1
5481 #include <sys/types.h>
5482 /* Check that off_t can represent 2**63 - 1 correctly.
5483 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5484 since some C++ compilers masquerading as C compilers
5485 incorrectly reject 9223372036854775807. */
5486 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5487 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5488 && LARGE_OFF_T % 2147483647 == 1)
5489 ? 1 : -1];
5491 main ()
5495 return 0;
5497 _ACEOF
5498 if ac_fn_c_try_compile "$LINENO"; then :
5499 ac_cv_sys_large_files=1; break
5501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502 ac_cv_sys_large_files=unknown
5503 break
5504 done
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5507 $as_echo "$ac_cv_sys_large_files" >&6; }
5508 case $ac_cv_sys_large_files in #(
5509 no | unknown) ;;
5511 cat >>confdefs.h <<_ACEOF
5512 #define _LARGE_FILES $ac_cv_sys_large_files
5513 _ACEOF
5515 esac
5516 rm -rf conftest*
5521 ac_ext=c
5522 ac_cpp='$CPP $CPPFLAGS'
5523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5527 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5528 # On Suns, sometimes $CPP names a directory.
5529 if test -n "$CPP" && test -d "$CPP"; then
5530 CPP=
5532 if test -z "$CPP"; then
5533 if ${ac_cv_prog_CPP+:} false; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 # Double quotes because CPP needs to be expanded
5537 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5539 ac_preproc_ok=false
5540 for ac_c_preproc_warn_flag in '' yes
5542 # Use a header file that comes with gcc, so configuring glibc
5543 # with a fresh cross-compiler works.
5544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5545 # <limits.h> exists even on freestanding compilers.
5546 # On the NeXT, cc -E runs the code through the compiler's parser,
5547 # not just through cpp. "Syntax error" is here to catch this case.
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h. */
5550 #ifdef __STDC__
5551 # include <limits.h>
5552 #else
5553 # include <assert.h>
5554 #endif
5555 Syntax error
5556 _ACEOF
5557 if ac_fn_c_try_cpp "$LINENO"; then :
5559 else
5560 # Broken: fails on valid input.
5561 continue
5563 rm -f conftest.err conftest.i conftest.$ac_ext
5565 # OK, works on sane cases. Now check whether nonexistent headers
5566 # can be detected and how.
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #include <ac_nonexistent.h>
5570 _ACEOF
5571 if ac_fn_c_try_cpp "$LINENO"; then :
5572 # Broken: success on invalid input.
5573 continue
5574 else
5575 # Passes both tests.
5576 ac_preproc_ok=:
5577 break
5579 rm -f conftest.err conftest.i conftest.$ac_ext
5581 done
5582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5583 rm -f conftest.i conftest.err conftest.$ac_ext
5584 if $ac_preproc_ok; then :
5585 break
5588 done
5589 ac_cv_prog_CPP=$CPP
5592 CPP=$ac_cv_prog_CPP
5593 else
5594 ac_cv_prog_CPP=$CPP
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5597 $as_echo "$CPP" >&6; }
5598 ac_preproc_ok=false
5599 for ac_c_preproc_warn_flag in '' yes
5601 # Use a header file that comes with gcc, so configuring glibc
5602 # with a fresh cross-compiler works.
5603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5604 # <limits.h> exists even on freestanding compilers.
5605 # On the NeXT, cc -E runs the code through the compiler's parser,
5606 # not just through cpp. "Syntax error" is here to catch this case.
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #ifdef __STDC__
5610 # include <limits.h>
5611 #else
5612 # include <assert.h>
5613 #endif
5614 Syntax error
5615 _ACEOF
5616 if ac_fn_c_try_cpp "$LINENO"; then :
5618 else
5619 # Broken: fails on valid input.
5620 continue
5622 rm -f conftest.err conftest.i conftest.$ac_ext
5624 # OK, works on sane cases. Now check whether nonexistent headers
5625 # can be detected and how.
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h. */
5628 #include <ac_nonexistent.h>
5629 _ACEOF
5630 if ac_fn_c_try_cpp "$LINENO"; then :
5631 # Broken: success on invalid input.
5632 continue
5633 else
5634 # Passes both tests.
5635 ac_preproc_ok=:
5636 break
5638 rm -f conftest.err conftest.i conftest.$ac_ext
5640 done
5641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5642 rm -f conftest.i conftest.err conftest.$ac_ext
5643 if $ac_preproc_ok; then :
5645 else
5646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5648 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5649 See \`config.log' for more details" "$LINENO" 5; }
5652 ac_ext=c
5653 ac_cpp='$CPP $CPPFLAGS'
5654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5660 $as_echo_n "checking for ANSI C header files... " >&6; }
5661 if ${ac_cv_header_stdc+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5666 #include <stdlib.h>
5667 #include <stdarg.h>
5668 #include <string.h>
5669 #include <float.h>
5672 main ()
5676 return 0;
5678 _ACEOF
5679 if ac_fn_c_try_compile "$LINENO"; then :
5680 ac_cv_header_stdc=yes
5681 else
5682 ac_cv_header_stdc=no
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686 if test $ac_cv_header_stdc = yes; then
5687 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 #include <string.h>
5692 _ACEOF
5693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5694 $EGREP "memchr" >/dev/null 2>&1; then :
5696 else
5697 ac_cv_header_stdc=no
5699 rm -f conftest*
5703 if test $ac_cv_header_stdc = yes; then
5704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5707 #include <stdlib.h>
5709 _ACEOF
5710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5711 $EGREP "free" >/dev/null 2>&1; then :
5713 else
5714 ac_cv_header_stdc=no
5716 rm -f conftest*
5720 if test $ac_cv_header_stdc = yes; then
5721 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5722 if test "$cross_compiling" = yes; then :
5724 else
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 #include <ctype.h>
5728 #include <stdlib.h>
5729 #if ((' ' & 0x0FF) == 0x020)
5730 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5731 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5732 #else
5733 # define ISLOWER(c) \
5734 (('a' <= (c) && (c) <= 'i') \
5735 || ('j' <= (c) && (c) <= 'r') \
5736 || ('s' <= (c) && (c) <= 'z'))
5737 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5738 #endif
5740 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5742 main ()
5744 int i;
5745 for (i = 0; i < 256; i++)
5746 if (XOR (islower (i), ISLOWER (i))
5747 || toupper (i) != TOUPPER (i))
5748 return 2;
5749 return 0;
5751 _ACEOF
5752 if ac_fn_c_try_run "$LINENO"; then :
5754 else
5755 ac_cv_header_stdc=no
5757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5758 conftest.$ac_objext conftest.beam conftest.$ac_ext
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5764 $as_echo "$ac_cv_header_stdc" >&6; }
5765 if test $ac_cv_header_stdc = yes; then
5767 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5771 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5772 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5773 inttypes.h stdint.h unistd.h
5774 do :
5775 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5776 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5778 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5779 cat >>confdefs.h <<_ACEOF
5780 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5781 _ACEOF
5785 done
5788 for ac_header in \
5789 AL/al.h \
5790 ApplicationServices/ApplicationServices.h \
5791 AudioToolbox/AudioConverter.h \
5792 AudioUnit/AudioUnit.h \
5793 AudioUnit/AudioComponent.h \
5794 CL/cl.h \
5795 Carbon/Carbon.h \
5796 CoreAudio/CoreAudio.h \
5797 DiskArbitration/DiskArbitration.h \
5798 IOKit/IOKitLib.h \
5799 IOKit/hid/IOHIDLib.h \
5800 OpenAL/al.h \
5801 OpenCL/opencl.h \
5802 QuickTime/ImageCompression.h \
5803 Security/Security.h \
5804 alias.h \
5805 alsa/asoundlib.h \
5806 arpa/inet.h \
5807 arpa/nameser.h \
5808 asm/types.h \
5809 capi20.h \
5810 curses.h \
5811 direct.h \
5812 dirent.h \
5813 dlfcn.h \
5814 elf.h \
5815 float.h \
5816 fnmatch.h \
5817 fontconfig/fontconfig.h \
5818 getopt.h \
5819 gettext-po.h \
5820 grp.h \
5821 gsm.h \
5822 gsm/gsm.h \
5823 ieeefp.h \
5824 inet/mib2.h \
5825 io.h \
5826 jack/jack.h \
5827 jpeglib.h \
5828 kstat.h \
5829 lber.h \
5830 lcms.h \
5831 lcms/lcms.h \
5832 ldap.h \
5833 link.h \
5834 linux/cdrom.h \
5835 linux/compiler.h \
5836 linux/hdreg.h \
5837 linux/input.h \
5838 linux/ioctl.h \
5839 linux/joystick.h \
5840 linux/major.h \
5841 linux/param.h \
5842 linux/serial.h \
5843 linux/types.h \
5844 linux/ucdrom.h \
5845 mach-o/nlist.h \
5846 mach-o/loader.h \
5847 mach/mach.h \
5848 mach/machine.h \
5849 machine/cpu.h \
5850 machine/limits.h \
5851 machine/sysarch.h \
5852 mntent.h \
5853 mpg123.h \
5854 ncurses.h \
5855 netdb.h \
5856 netinet/in.h \
5857 netinet/in_systm.h \
5858 netinet/tcp.h \
5859 netinet/tcp_fsm.h \
5860 openssl/err.h \
5861 openssl/ssl.h \
5862 png.h \
5863 poll.h \
5864 port.h \
5865 process.h \
5866 pthread.h \
5867 pwd.h \
5868 regex.h \
5869 sched.h \
5870 scsi/scsi.h \
5871 scsi/scsi_ioctl.h \
5872 scsi/sg.h \
5873 stdbool.h \
5874 stdint.h \
5875 strings.h \
5876 stropts.h \
5877 sys/asoundlib.h \
5878 sys/attr.h \
5879 sys/cdio.h \
5880 sys/elf32.h \
5881 sys/epoll.h \
5882 sys/errno.h \
5883 sys/event.h \
5884 sys/exec_elf.h \
5885 sys/filio.h \
5886 sys/inotify.h \
5887 sys/ioctl.h \
5888 sys/ipc.h \
5889 sys/limits.h \
5890 sys/link.h \
5891 sys/mman.h \
5892 sys/modem.h \
5893 sys/msg.h \
5894 sys/mtio.h \
5895 sys/param.h \
5896 sys/poll.h \
5897 sys/prctl.h \
5898 sys/protosw.h \
5899 sys/ptrace.h \
5900 sys/resource.h \
5901 sys/scsiio.h \
5902 sys/shm.h \
5903 sys/signal.h \
5904 sys/socket.h \
5905 sys/socketvar.h \
5906 sys/sockio.h \
5907 sys/statvfs.h \
5908 sys/strtio.h \
5909 sys/syscall.h \
5910 sys/tihdr.h \
5911 sys/time.h \
5912 sys/timeout.h \
5913 sys/times.h \
5914 sys/uio.h \
5915 sys/un.h \
5916 sys/utsname.h \
5917 sys/vm86.h \
5918 sys/wait.h \
5919 syscall.h \
5920 termios.h \
5921 tiffio.h \
5922 unistd.h \
5923 utime.h \
5924 valgrind/memcheck.h \
5925 valgrind/valgrind.h \
5926 zlib.h
5928 do :
5929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5930 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5931 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5932 cat >>confdefs.h <<_ACEOF
5933 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5934 _ACEOF
5938 done
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5941 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5942 if ${ac_cv_header_stat_broken+:} false; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946 /* end confdefs.h. */
5947 #include <sys/types.h>
5948 #include <sys/stat.h>
5950 #if defined S_ISBLK && defined S_IFDIR
5951 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5952 #endif
5954 #if defined S_ISBLK && defined S_IFCHR
5955 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5956 #endif
5958 #if defined S_ISLNK && defined S_IFREG
5959 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5960 #endif
5962 #if defined S_ISSOCK && defined S_IFREG
5963 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5964 #endif
5966 _ACEOF
5967 if ac_fn_c_try_compile "$LINENO"; then :
5968 ac_cv_header_stat_broken=no
5969 else
5970 ac_cv_header_stat_broken=yes
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5975 $as_echo "$ac_cv_header_stat_broken" >&6; }
5976 if test $ac_cv_header_stat_broken = yes; then
5978 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5984 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5985 do :
5986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5987 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5988 #ifdef HAVE_SYS_PARAM_H
5989 # include <sys/param.h>
5990 #endif
5992 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5993 cat >>confdefs.h <<_ACEOF
5994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5995 _ACEOF
5999 done
6002 for ac_header in \
6003 netinet/ip.h \
6004 net/if.h \
6005 net/if_arp.h \
6006 net/if_dl.h \
6007 net/if_types.h \
6008 net/route.h \
6009 netinet/if_ether.h \
6010 netinet/if_inarp.h \
6011 netinet/in_pcb.h \
6012 netinet/ip_icmp.h \
6013 netinet/ip_var.h \
6014 netinet/udp.h \
6015 netipx/ipx.h \
6017 do :
6018 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6019 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6020 #ifdef HAVE_SYS_SOCKET_H
6021 # include <sys/socket.h>
6022 #endif
6023 #ifdef HAVE_SYS_SOCKETVAR_H
6024 # include <sys/socketvar.h>
6025 #endif
6026 #ifdef HAVE_NET_ROUTE_H
6027 # include <net/route.h>
6028 #endif
6029 #ifdef HAVE_NETINET_IN_H
6030 # include <netinet/in.h>
6031 #endif
6032 #ifdef HAVE_NETINET_IN_SYSTM_H
6033 # include <netinet/in_systm.h>
6034 #endif
6035 #ifdef HAVE_NET_IF_H
6036 # include <net/if.h>
6037 #endif
6038 #ifdef HAVE_NETINET_IP_H
6039 # include <netinet/ip.h>
6040 #endif
6042 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6043 cat >>confdefs.h <<_ACEOF
6044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6045 _ACEOF
6049 done
6052 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6053 do :
6054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6055 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6056 #ifdef HAVE_ALIAS_H
6057 # include <alias.h>
6058 #endif
6059 #ifdef HAVE_SYS_SOCKET_H
6060 # include <sys/socket.h>
6061 #endif
6062 #ifdef HAVE_SYS_SOCKETVAR_H
6063 # include <sys/socketvar.h>
6064 #endif
6065 #ifdef HAVE_SYS_TIMEOUT_H
6066 # include <sys/timeout.h>
6067 #endif
6068 #ifdef HAVE_NETINET_IN_H
6069 # include <netinet/in.h>
6070 #endif
6071 #ifdef HAVE_NETINET_IN_SYSTM_H
6072 # include <netinet/in_systm.h>
6073 #endif
6074 #ifdef HAVE_NETINET_IP_H
6075 # include <netinet/ip.h>
6076 #endif
6077 #ifdef HAVE_NETINET_IP_VAR_H
6078 # include <netinet/ip_var.h>
6079 #endif
6080 #ifdef HAVE_NETINET_IP_ICMP_H
6081 # include <netinet/ip_icmp.h>
6082 #endif
6083 #ifdef HAVE_NETINET_UDP_H
6084 # include <netinet/udp.h>
6085 #endif
6086 #ifdef HAVE_NETINET_TCP_H
6087 # include <netinet/tcp.h>
6088 #endif
6089 #ifdef HAVE_NETINET_TCP_TIMER_H
6090 #include <netinet/tcp_timer.h>
6091 #endif
6093 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6094 cat >>confdefs.h <<_ACEOF
6095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6096 _ACEOF
6100 done
6103 for ac_header in linux/ipx.h linux/irda.h
6104 do :
6105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6106 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6107 #ifdef HAVE_ASM_TYPES_H
6108 # include <asm/types.h>
6109 #endif
6110 #ifdef HAVE_SYS_SOCKET_H
6111 # include <sys/socket.h>
6112 #endif
6113 #ifdef HAVE_LINUX_TYPES_H
6114 # include <linux/types.h>
6115 #endif
6117 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6118 cat >>confdefs.h <<_ACEOF
6119 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6120 _ACEOF
6124 done
6127 for ac_header in mach-o/dyld_images.h
6128 do :
6129 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6130 # include <stdbool.h>
6131 #endif
6132 #ifdef HAVE_STDINT_H
6133 # include <stdint.h>
6134 #endif
6136 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6137 cat >>confdefs.h <<_ACEOF
6138 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6139 _ACEOF
6143 done
6146 for ac_header in resolv.h
6147 do :
6148 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6149 #ifdef HAVE_SYS_SOCKET_H
6150 # include <sys/socket.h>
6151 #endif
6152 #ifdef HAVE_NETINET_IN_H
6153 # include <netinet/in.h>
6154 #endif
6155 #ifdef HAVE_ARPA_NAMESER_H
6156 # include <arpa/nameser.h>
6157 #endif
6159 if test "x$ac_cv_header_resolv_h" = xyes; then :
6160 cat >>confdefs.h <<_ACEOF
6161 #define HAVE_RESOLV_H 1
6162 _ACEOF
6166 done
6169 for ac_header in ifaddrs.h
6170 do :
6171 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6173 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6174 cat >>confdefs.h <<_ACEOF
6175 #define HAVE_IFADDRS_H 1
6176 _ACEOF
6180 done
6183 for ac_header in ucontext.h
6184 do :
6185 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6187 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6188 cat >>confdefs.h <<_ACEOF
6189 #define HAVE_UCONTEXT_H 1
6190 _ACEOF
6194 done
6197 for ac_header in sys/thr.h
6198 do :
6199 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6200 #ifdef HAVE_UCONTEXT_H
6201 #include <ucontext.h>
6202 #endif
6204 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6205 cat >>confdefs.h <<_ACEOF
6206 #define HAVE_SYS_THR_H 1
6207 _ACEOF
6211 done
6214 for ac_header in pthread_np.h
6215 do :
6216 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6217 #include <pthread.h>
6218 #endif
6220 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6221 cat >>confdefs.h <<_ACEOF
6222 #define HAVE_PTHREAD_NP_H 1
6223 _ACEOF
6227 done
6230 for ac_header in linux/videodev.h
6231 do :
6232 ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6233 #include <sys/time.h>
6234 #endif
6235 #include <sys/types.h>
6236 #ifdef HAVE_ASM_TYPES_H
6237 #include <asm/types.h>
6238 #endif
6240 if test "x$ac_cv_header_linux_videodev_h" = xyes; then :
6241 cat >>confdefs.h <<_ACEOF
6242 #define HAVE_LINUX_VIDEODEV_H 1
6243 _ACEOF
6247 done
6250 for ac_header in linux/capi.h
6251 do :
6252 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6254 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6255 cat >>confdefs.h <<_ACEOF
6256 #define HAVE_LINUX_CAPI_H 1
6257 _ACEOF
6261 done
6265 DLLEXT=""
6267 DLLFLAGS="-D_REENTRANT"
6269 LDSHARED=""
6271 LDDLLFLAGS=""
6273 LIBEXT="so"
6275 IMPLIBEXT="def"
6277 LDRPATH_INSTALL=""
6279 LDRPATH_LOCAL=""
6281 STATIC_IMPLIBEXT="def.a"
6282 # Extract the first word of "ldd", so it can be a program name with args.
6283 set dummy ldd; ac_word=$2
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if ${ac_cv_path_LDD+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 case $LDD in
6290 [\\/]* | ?:[\\/]*)
6291 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 as_dummy="/sbin:/usr/sbin:$PATH"
6296 for as_dir in $as_dummy
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 break 2
6306 done
6307 done
6308 IFS=$as_save_IFS
6310 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6312 esac
6314 LDD=$ac_cv_path_LDD
6315 if test -n "$LDD"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6317 $as_echo "$LDD" >&6; }
6318 else
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6325 case $host_os in
6326 cygwin*|mingw32*)
6327 if test -n "$ac_tool_prefix"; then
6328 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6329 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if ${ac_cv_prog_DLLTOOL+:} false; then :
6333 $as_echo_n "(cached) " >&6
6334 else
6335 if test -n "$DLLTOOL"; then
6336 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 break 2
6349 done
6350 done
6351 IFS=$as_save_IFS
6355 DLLTOOL=$ac_cv_prog_DLLTOOL
6356 if test -n "$DLLTOOL"; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6358 $as_echo "$DLLTOOL" >&6; }
6359 else
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6366 if test -z "$ac_cv_prog_DLLTOOL"; then
6367 ac_ct_DLLTOOL=$DLLTOOL
6368 # Extract the first word of "dlltool", so it can be a program name with args.
6369 set dummy dlltool; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 if test -n "$ac_ct_DLLTOOL"; then
6376 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6385 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 break 2
6389 done
6390 done
6391 IFS=$as_save_IFS
6395 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6396 if test -n "$ac_ct_DLLTOOL"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6398 $as_echo "$ac_ct_DLLTOOL" >&6; }
6399 else
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6404 if test "x$ac_ct_DLLTOOL" = x; then
6405 DLLTOOL="false"
6406 else
6407 case $cross_compiling:$ac_tool_warned in
6408 yes:)
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6411 ac_tool_warned=yes ;;
6412 esac
6413 DLLTOOL=$ac_ct_DLLTOOL
6415 else
6416 DLLTOOL="$ac_cv_prog_DLLTOOL"
6419 if test -n "$ac_tool_prefix"; then
6420 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6421 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if ${ac_cv_prog_DLLWRAP+:} false; then :
6425 $as_echo_n "(cached) " >&6
6426 else
6427 if test -n "$DLLWRAP"; then
6428 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6429 else
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 for as_dir in $PATH
6433 IFS=$as_save_IFS
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6437 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 break 2
6441 done
6442 done
6443 IFS=$as_save_IFS
6447 DLLWRAP=$ac_cv_prog_DLLWRAP
6448 if test -n "$DLLWRAP"; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6450 $as_echo "$DLLWRAP" >&6; }
6451 else
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6458 if test -z "$ac_cv_prog_DLLWRAP"; then
6459 ac_ct_DLLWRAP=$DLLWRAP
6460 # Extract the first word of "dllwrap", so it can be a program name with args.
6461 set dummy dllwrap; ac_word=$2
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 if test -n "$ac_ct_DLLWRAP"; then
6468 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6469 else
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6481 done
6482 done
6483 IFS=$as_save_IFS
6487 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6488 if test -n "$ac_ct_DLLWRAP"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6490 $as_echo "$ac_ct_DLLWRAP" >&6; }
6491 else
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493 $as_echo "no" >&6; }
6496 if test "x$ac_ct_DLLWRAP" = x; then
6497 DLLWRAP="false"
6498 else
6499 case $cross_compiling:$ac_tool_warned in
6500 yes:)
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6503 ac_tool_warned=yes ;;
6504 esac
6505 DLLWRAP=$ac_ct_DLLWRAP
6507 else
6508 DLLWRAP="$ac_cv_prog_DLLWRAP"
6511 if test "$DLLWRAP" = "false"; then
6512 LIBEXT="a"
6513 else
6514 LIBEXT="dll"
6516 IMPLIBEXT="a"
6517 STATIC_IMPLIBEXT="a"
6518 enable_iphlpapi=${enable_iphlpapi:-no}
6519 enable_kernel32=${enable_kernel32:-no}
6520 enable_msvcrt=${enable_msvcrt:-no}
6521 enable_ntdll=${enable_ntdll:-no}
6522 enable_ws2_32=${enable_ws2_32:-no}
6523 enable_loader=${enable_loader:-no}
6524 enable_server=${enable_server:-no}
6525 with_x=${with_x:-no}
6526 with_pthread=${with_pthread:-no}
6528 darwin*|macosx*)
6529 DLLEXT=".so"
6530 LIBEXT="dylib"
6531 DLLFLAGS="$DLLFLAGS -fPIC"
6532 LDDLLFLAGS="-bundle -multiply_defined suppress"
6533 LIBWINE_LDFLAGS="-multiply_defined suppress"
6534 LDSHARED="\$(CC) -dynamiclib"
6535 STRIP="$STRIP -x"
6536 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6537 COREFOUNDATIONLIB="-framework CoreFoundation"
6539 IOKITLIB="-framework IOKit -framework CoreFoundation"
6541 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6543 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6545 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6546 then
6547 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6550 if test "$ac_cv_header_Security_Security_h" = "yes"
6551 then
6552 SECURITYLIB="-framework Security -framework CoreFoundation"
6554 with_gnutls=${with_gnutls:-no}
6556 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6557 then
6558 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6559 then
6560 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6562 else
6563 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6566 ac_save_LIBS="$LIBS"
6567 LIBS="$LIBS $COREAUDIO"
6568 for ac_func in AUGraphAddNode
6569 do :
6570 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6571 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6572 cat >>confdefs.h <<_ACEOF
6573 #define HAVE_AUGRAPHADDNODE 1
6574 _ACEOF
6577 done
6579 LIBS="$ac_save_LIBS"
6581 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6582 then
6583 FRAMEWORK_OPENAL="-framework OpenAL"
6586 cat >>confdefs.h <<_ACEOF
6587 #define HAVE_OPENAL 1
6588 _ACEOF
6590 ac_cv_lib_openal=yes
6592 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6593 then
6594 LIBOPENCL="-framework OpenCL"
6596 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6598 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6599 then
6600 ac_save_LIBS="$LIBS"
6601 LIBS="$LIBS $IOKITLIB"
6602 for ac_func in IOHIDManagerCreate
6603 do :
6604 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6605 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6606 cat >>confdefs.h <<_ACEOF
6607 #define HAVE_IOHIDMANAGERCREATE 1
6608 _ACEOF
6611 done
6613 LIBS="$ac_save_LIBS"
6615 case $host_cpu in
6616 *powerpc*)
6617 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6618 esac
6619 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6620 then
6621 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6623 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6624 else
6625 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6627 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6628 then
6629 CARBONLIB="-framework Carbon"
6631 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6633 if test "x$enable_win16" = "xyes"
6634 then
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6636 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6637 if test "$cross_compiling" = yes; then :
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6639 $as_echo "cross-compiling, assuming yes" >&6; }
6640 else
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6643 asm(".text\n"
6644 "bad:\tnop;nop\n"
6645 "good:\tnop;nop\n\t"
6646 ".globl _testfunc\n"
6647 "_testfunc:\tcallw good");
6648 extern void testfunc();
6650 main ()
6652 unsigned short *p = (unsigned short *)testfunc;
6653 return p[0] != 0xe866 || p[1] != 0xfffa
6655 return 0;
6657 _ACEOF
6658 if ac_fn_c_try_run "$LINENO"; then :
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6660 $as_echo "yes" >&6; }
6661 else
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6664 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
6666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6667 conftest.$ac_objext conftest.beam conftest.$ac_ext
6673 DLLFLAGS="$DLLFLAGS -fPIC"
6674 DLLEXT=".so"
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6676 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6677 if ${ac_cv_c_dll_gnuelf+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 ac_wine_try_cflags_saved=$CFLAGS
6681 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684 void myfunc() {}
6685 _ACEOF
6686 if ac_fn_c_try_link "$LINENO"; then :
6687 ac_cv_c_dll_gnuelf="yes"
6688 else
6689 ac_cv_c_dll_gnuelf="no"
6691 rm -f core conftest.err conftest.$ac_objext \
6692 conftest$ac_exeext conftest.$ac_ext
6693 CFLAGS=$ac_wine_try_cflags_saved
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6696 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6697 if test "$ac_cv_c_dll_gnuelf" = "yes"
6698 then
6699 LDSHARED="\$(CC) -shared"
6700 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6702 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6703 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 ac_wine_try_cflags_saved=$CFLAGS
6707 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6710 int main(int argc, char **argv) { return 0; }
6711 _ACEOF
6712 if ac_fn_c_try_link "$LINENO"; then :
6713 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6714 else
6715 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6717 rm -f core conftest.err conftest.$ac_objext \
6718 conftest$ac_exeext conftest.$ac_ext
6719 CFLAGS=$ac_wine_try_cflags_saved
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6722 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6723 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6724 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6725 else
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6727 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6728 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 ac_wine_try_cflags_saved=$CFLAGS
6732 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735 int main(int argc, char **argv) { return 0; }
6736 _ACEOF
6737 if ac_fn_c_try_link "$LINENO"; then :
6738 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6739 else
6740 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6742 rm -f core conftest.err conftest.$ac_objext \
6743 conftest$ac_exeext conftest.$ac_ext
6744 CFLAGS=$ac_wine_try_cflags_saved
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6747 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6748 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6749 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6754 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6755 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 ac_wine_try_cflags_saved=$CFLAGS
6759 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6762 int main(int argc, char **argv) { return 0; }
6763 _ACEOF
6764 if ac_fn_c_try_link "$LINENO"; then :
6765 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6766 else
6767 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6769 rm -f core conftest.err conftest.$ac_objext \
6770 conftest$ac_exeext conftest.$ac_ext
6771 CFLAGS=$ac_wine_try_cflags_saved
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6774 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6775 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6776 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6779 { $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
6780 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6781 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6782 $as_echo_n "(cached) " >&6
6783 else
6784 ac_wine_try_cflags_saved=$CFLAGS
6785 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6788 int main(int argc, char **argv) { return 0; }
6789 _ACEOF
6790 if ac_fn_c_try_link "$LINENO"; then :
6791 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6792 else
6793 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6795 rm -f core conftest.err conftest.$ac_objext \
6796 conftest$ac_exeext conftest.$ac_ext
6797 CFLAGS=$ac_wine_try_cflags_saved
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6800 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6801 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6802 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6805 echo '{ global: *; };' >conftest.map
6806 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6808 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6809 if eval \${$as_ac_var+:} false; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6812 ac_wine_try_cflags_saved=$CFLAGS
6813 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6816 int main(int argc, char **argv) { return 0; }
6817 _ACEOF
6818 if ac_fn_c_try_link "$LINENO"; then :
6819 eval "$as_ac_var=yes"
6820 else
6821 eval "$as_ac_var=no"
6823 rm -f core conftest.err conftest.$ac_objext \
6824 conftest$ac_exeext conftest.$ac_ext
6825 CFLAGS=$ac_wine_try_cflags_saved
6827 eval ac_res=\$$as_ac_var
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6829 $as_echo "$ac_res" >&6; }
6830 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6831 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6833 rm -f conftest.map
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6836 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6837 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6838 $as_echo_n "(cached) " >&6
6839 else
6840 ac_wine_try_cflags_saved=$CFLAGS
6841 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6844 int main(int argc, char **argv) { return 0; }
6845 _ACEOF
6846 if ac_fn_c_try_link "$LINENO"; then :
6847 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6848 else
6849 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6851 rm -f core conftest.err conftest.$ac_objext \
6852 conftest$ac_exeext conftest.$ac_ext
6853 CFLAGS=$ac_wine_try_cflags_saved
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6856 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6857 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6858 LDEXECFLAGS="-Wl,--export-dynamic"
6862 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6864 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6865 if eval \${$as_ac_var+:} false; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868 ac_wine_try_cflags_saved=$CFLAGS
6869 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6872 int main(int argc, char **argv) { return 0; }
6873 _ACEOF
6874 if ac_fn_c_try_link "$LINENO"; then :
6875 eval "$as_ac_var=yes"
6876 else
6877 eval "$as_ac_var=no"
6879 rm -f core conftest.err conftest.$ac_objext \
6880 conftest$ac_exeext conftest.$ac_ext
6881 CFLAGS=$ac_wine_try_cflags_saved
6883 eval ac_res=\$$as_ac_var
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6885 $as_echo "$ac_res" >&6; }
6886 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6887 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6888 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6889 else
6890 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6892 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6893 if eval \${$as_ac_var+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 ac_wine_try_cflags_saved=$CFLAGS
6897 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6900 int main(int argc, char **argv) { return 0; }
6901 _ACEOF
6902 if ac_fn_c_try_link "$LINENO"; then :
6903 eval "$as_ac_var=yes"
6904 else
6905 eval "$as_ac_var=no"
6907 rm -f core conftest.err conftest.$ac_objext \
6908 conftest$ac_exeext conftest.$ac_ext
6909 CFLAGS=$ac_wine_try_cflags_saved
6911 eval ac_res=\$$as_ac_var
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6913 $as_echo "$ac_res" >&6; }
6914 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6915 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6916 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6921 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6922 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6923 $as_echo_n "(cached) " >&6
6924 else
6925 ac_wine_try_cflags_saved=$CFLAGS
6926 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928 /* end confdefs.h. */
6929 int main(int argc, char **argv) { return 0; }
6930 _ACEOF
6931 if ac_fn_c_try_link "$LINENO"; then :
6932 ac_cv_cflags__Wl___enable_new_dtags=yes
6933 else
6934 ac_cv_cflags__Wl___enable_new_dtags=no
6936 rm -f core conftest.err conftest.$ac_objext \
6937 conftest$ac_exeext conftest.$ac_ext
6938 CFLAGS=$ac_wine_try_cflags_saved
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6941 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6942 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6943 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6946 case $host_cpu in
6947 *i[3456789]86* | x86_64)
6948 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6950 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6951 if eval \${$as_ac_var+:} false; then :
6952 $as_echo_n "(cached) " >&6
6953 else
6954 ac_wine_try_cflags_saved=$CFLAGS
6955 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6958 int main(int argc, char **argv) { return 0; }
6959 _ACEOF
6960 if ac_fn_c_try_link "$LINENO"; then :
6961 eval "$as_ac_var=yes"
6962 else
6963 eval "$as_ac_var=no"
6965 rm -f core conftest.err conftest.$ac_objext \
6966 conftest$ac_exeext conftest.$ac_ext
6967 CFLAGS=$ac_wine_try_cflags_saved
6969 eval ac_res=\$$as_ac_var
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6971 $as_echo "$ac_res" >&6; }
6972 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6973 case $host_os in
6974 freebsd*) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6975 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6976 esac
6979 # Extract the first word of "prelink", so it can be a program name with args.
6980 set dummy prelink; ac_word=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 $as_echo_n "checking for $ac_word... " >&6; }
6983 if ${ac_cv_path_PRELINK+:} false; then :
6984 $as_echo_n "(cached) " >&6
6985 else
6986 case $PRELINK in
6987 [\\/]* | ?:[\\/]*)
6988 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in /sbin /usr/sbin $PATH
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6998 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7002 done
7003 done
7004 IFS=$as_save_IFS
7006 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7008 esac
7010 PRELINK=$ac_cv_path_PRELINK
7011 if test -n "$PRELINK"; then
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7013 $as_echo "$PRELINK" >&6; }
7014 else
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016 $as_echo "no" >&6; }
7020 if test "x$PRELINK" = xfalse
7021 then
7022 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7025 esac
7027 else
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7029 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7030 if ${ac_cv_c_dll_unixware+:} false; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7033 ac_wine_try_cflags_saved=$CFLAGS
7034 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7037 void myfunc() {}
7038 _ACEOF
7039 if ac_fn_c_try_link "$LINENO"; then :
7040 ac_cv_c_dll_unixware="yes"
7041 else
7042 ac_cv_c_dll_unixware="no"
7044 rm -f core conftest.err conftest.$ac_objext \
7045 conftest$ac_exeext conftest.$ac_ext
7046 CFLAGS=$ac_wine_try_cflags_saved
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7049 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7050 if test "$ac_cv_c_dll_unixware" = "yes"
7051 then
7052 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7053 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7055 else
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7057 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7058 if ${ac_cv_c_dll_hpux+:} false; then :
7059 $as_echo_n "(cached) " >&6
7060 else
7061 ac_wine_try_cflags_saved=$CFLAGS
7062 CFLAGS="$CFLAGS -shared"
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7065 void myfunc() {}
7066 _ACEOF
7067 if ac_fn_c_try_link "$LINENO"; then :
7068 ac_cv_c_dll_hpux="yes"
7069 else
7070 ac_cv_c_dll_hpux="no"
7072 rm -f core conftest.err conftest.$ac_objext \
7073 conftest$ac_exeext conftest.$ac_ext
7074 CFLAGS=$ac_wine_try_cflags_saved
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7077 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7078 if test "$ac_cv_c_dll_hpux" = "yes"
7079 then
7080 LIBEXT="sl"
7081 DLLEXT=".sl"
7082 LDDLLFLAGS="-shared -fPIC"
7083 LDSHARED="\$(CC) -shared"
7088 esac
7090 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7091 enable_winequartz_drv=${enable_winequartz_drv:-no}
7093 if test "$LIBEXT" = "a"; then
7094 as_fn_error $? "could not find a way to build shared libraries.
7095 It is currently not possible to build Wine without shared library
7096 (.so) support to allow transparent switch between .so and .dll files.
7097 If you are using Linux, you will need a newer binutils.
7098 " "$LINENO" 5
7101 CROSSTEST_DISABLE=\#
7103 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7104 then
7105 case "$host_cpu" in
7106 i[3456789]86*)
7107 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 " ;;
7108 x86_64)
7109 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 " ;;
7111 ac_prefix_list="" ;;
7112 esac
7113 for ac_prog in $ac_prefix_list
7115 # Extract the first word of "$ac_prog", so it can be a program name with args.
7116 set dummy $ac_prog; ac_word=$2
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118 $as_echo_n "checking for $ac_word... " >&6; }
7119 if ${ac_cv_prog_CROSSCC+:} false; then :
7120 $as_echo_n "(cached) " >&6
7121 else
7122 if test -n "$CROSSCC"; then
7123 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7124 else
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7128 IFS=$as_save_IFS
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7132 ac_cv_prog_CROSSCC="$ac_prog"
7133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 break 2
7136 done
7137 done
7138 IFS=$as_save_IFS
7142 CROSSCC=$ac_cv_prog_CROSSCC
7143 if test -n "$CROSSCC"; then
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7145 $as_echo "$CROSSCC" >&6; }
7146 else
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7148 $as_echo "no" >&6; }
7152 test -n "$CROSSCC" && break
7153 done
7154 test -n "$CROSSCC" || CROSSCC="false"
7156 if test "$CROSSCC" != "false"
7157 then
7158 ac_save_CC="$CC"
7159 CC="$CROSSCC"
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7161 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h. */
7166 main ()
7170 return 0;
7172 _ACEOF
7173 if ac_fn_c_try_compile "$LINENO"; then :
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7175 $as_echo "yes" >&6; }
7176 set x $CROSSCC
7177 shift
7178 target=""
7179 while test $# -ge 1
7181 case "$1" in
7182 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7183 esac
7184 shift
7185 done
7186 if test -n "$target"
7187 then
7188 CROSSTEST_DISABLE=""
7189 CROSSTARGET="$target"
7192 else
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197 CC="$ac_save_CC"
7202 if test "$ac_cv_header_pthread_h" = "yes"
7203 then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7205 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7206 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 ac_check_lib_save_LIBS=$LIBS
7210 LIBS="-lpthread $LIBS"
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7214 /* Override any GCC internal prototype to avoid an error.
7215 Use char because int might match the return type of a GCC
7216 builtin and then its argument prototype would still apply. */
7217 #ifdef __cplusplus
7218 extern "C"
7219 #endif
7220 char pthread_create ();
7222 main ()
7224 return pthread_create ();
7226 return 0;
7228 _ACEOF
7229 if ac_fn_c_try_link "$LINENO"; then :
7230 ac_cv_lib_pthread_pthread_create=yes
7231 else
7232 ac_cv_lib_pthread_pthread_create=no
7234 rm -f core conftest.err conftest.$ac_objext \
7235 conftest$ac_exeext conftest.$ac_ext
7236 LIBS=$ac_check_lib_save_LIBS
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7239 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7240 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7241 LIBPTHREAD="-lpthread"
7246 if test "x$LIBPTHREAD" = "x"; then :
7247 case "x$with_pthread" in
7248 xno) ;;
7249 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7250 Wine cannot support threads without libpthread.
7251 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7252 esac
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7257 $as_echo_n "checking for X... " >&6; }
7260 # Check whether --with-x was given.
7261 if test "${with_x+set}" = set; then :
7262 withval=$with_x;
7265 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7266 if test "x$with_x" = xno; then
7267 # The user explicitly disabled X.
7268 have_x=disabled
7269 else
7270 case $x_includes,$x_libraries in #(
7271 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7272 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 # One or both of the vars are not set, and there is no cached value.
7276 ac_x_includes=no ac_x_libraries=no
7277 rm -f -r conftest.dir
7278 if mkdir conftest.dir; then
7279 cd conftest.dir
7280 cat >Imakefile <<'_ACEOF'
7281 incroot:
7282 @echo incroot='${INCROOT}'
7283 usrlibdir:
7284 @echo usrlibdir='${USRLIBDIR}'
7285 libdir:
7286 @echo libdir='${LIBDIR}'
7287 _ACEOF
7288 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7289 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7290 for ac_var in incroot usrlibdir libdir; do
7291 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7292 done
7293 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7294 for ac_extension in a so sl dylib la dll; do
7295 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7296 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7297 ac_im_usrlibdir=$ac_im_libdir; break
7299 done
7300 # Screen out bogus values from the imake configuration. They are
7301 # bogus both because they are the default anyway, and because
7302 # using them would break gcc on systems where it needs fixed includes.
7303 case $ac_im_incroot in
7304 /usr/include) ac_x_includes= ;;
7305 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7306 esac
7307 case $ac_im_usrlibdir in
7308 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7309 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7310 esac
7312 cd ..
7313 rm -f -r conftest.dir
7316 # Standard set of common directories for X headers.
7317 # Check X11 before X11Rn because it is often a symlink to the current release.
7318 ac_x_header_dirs='
7319 /usr/X11/include
7320 /usr/X11R7/include
7321 /usr/X11R6/include
7322 /usr/X11R5/include
7323 /usr/X11R4/include
7325 /usr/include/X11
7326 /usr/include/X11R7
7327 /usr/include/X11R6
7328 /usr/include/X11R5
7329 /usr/include/X11R4
7331 /usr/local/X11/include
7332 /usr/local/X11R7/include
7333 /usr/local/X11R6/include
7334 /usr/local/X11R5/include
7335 /usr/local/X11R4/include
7337 /usr/local/include/X11
7338 /usr/local/include/X11R7
7339 /usr/local/include/X11R6
7340 /usr/local/include/X11R5
7341 /usr/local/include/X11R4
7343 /usr/X386/include
7344 /usr/x386/include
7345 /usr/XFree86/include/X11
7347 /usr/include
7348 /usr/local/include
7349 /usr/unsupported/include
7350 /usr/athena/include
7351 /usr/local/x11r5/include
7352 /usr/lpp/Xamples/include
7354 /usr/openwin/include
7355 /usr/openwin/share/include'
7357 if test "$ac_x_includes" = no; then
7358 # Guess where to find include files, by looking for Xlib.h.
7359 # First, try using that file with no special directory specified.
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7362 #include <X11/Xlib.h>
7363 _ACEOF
7364 if ac_fn_c_try_cpp "$LINENO"; then :
7365 # We can compile using X headers with no special include directory.
7366 ac_x_includes=
7367 else
7368 for ac_dir in $ac_x_header_dirs; do
7369 if test -r "$ac_dir/X11/Xlib.h"; then
7370 ac_x_includes=$ac_dir
7371 break
7373 done
7375 rm -f conftest.err conftest.i conftest.$ac_ext
7376 fi # $ac_x_includes = no
7378 if test "$ac_x_libraries" = no; then
7379 # Check for the libraries.
7380 # See if we find them without any special options.
7381 # Don't add to $LIBS permanently.
7382 ac_save_LIBS=$LIBS
7383 LIBS="-lX11 $LIBS"
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7386 #include <X11/Xlib.h>
7388 main ()
7390 XrmInitialize ()
7392 return 0;
7394 _ACEOF
7395 if ac_fn_c_try_link "$LINENO"; then :
7396 LIBS=$ac_save_LIBS
7397 # We can link X programs with no special library path.
7398 ac_x_libraries=
7399 else
7400 LIBS=$ac_save_LIBS
7401 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7403 # Don't even attempt the hair of trying to link an X program!
7404 for ac_extension in a so sl dylib la dll; do
7405 if test -r "$ac_dir/libX11.$ac_extension"; then
7406 ac_x_libraries=$ac_dir
7407 break 2
7409 done
7410 done
7412 rm -f core conftest.err conftest.$ac_objext \
7413 conftest$ac_exeext conftest.$ac_ext
7414 fi # $ac_x_libraries = no
7416 case $ac_x_includes,$ac_x_libraries in #(
7417 no,* | *,no | *\'*)
7418 # Didn't find X, or a directory has "'" in its name.
7419 ac_cv_have_x="have_x=no";; #(
7421 # Record where we found X for the cache.
7422 ac_cv_have_x="have_x=yes\
7423 ac_x_includes='$ac_x_includes'\
7424 ac_x_libraries='$ac_x_libraries'"
7425 esac
7427 ;; #(
7428 *) have_x=yes;;
7429 esac
7430 eval "$ac_cv_have_x"
7431 fi # $with_x != no
7433 if test "$have_x" != yes; then
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7435 $as_echo "$have_x" >&6; }
7436 no_x=yes
7437 else
7438 # If each of the values was on the command line, it overrides each guess.
7439 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7440 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7441 # Update the cache value to reflect the command line values.
7442 ac_cv_have_x="have_x=yes\
7443 ac_x_includes='$x_includes'\
7444 ac_x_libraries='$x_libraries'"
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7446 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7449 if test "$no_x" = yes; then
7450 # Not all programs may use this symbol, but it does not hurt to define it.
7452 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7454 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7455 else
7456 if test -n "$x_includes"; then
7457 X_CFLAGS="$X_CFLAGS -I$x_includes"
7460 # It would also be nice to do this for all -L options, not just this one.
7461 if test -n "$x_libraries"; then
7462 X_LIBS="$X_LIBS -L$x_libraries"
7463 # For Solaris; some versions of Sun CC require a space after -R and
7464 # others require no space. Words are not sufficient . . . .
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7466 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7467 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7468 ac_xsave_c_werror_flag=$ac_c_werror_flag
7469 ac_c_werror_flag=yes
7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471 /* end confdefs.h. */
7474 main ()
7478 return 0;
7480 _ACEOF
7481 if ac_fn_c_try_link "$LINENO"; then :
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7484 X_LIBS="$X_LIBS -R$x_libraries"
7485 else
7486 LIBS="$ac_xsave_LIBS -R $x_libraries"
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7491 main ()
7495 return 0;
7497 _ACEOF
7498 if ac_fn_c_try_link "$LINENO"; then :
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7500 $as_echo "yes" >&6; }
7501 X_LIBS="$X_LIBS -R $x_libraries"
7502 else
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7504 $as_echo "neither works" >&6; }
7506 rm -f core conftest.err conftest.$ac_objext \
7507 conftest$ac_exeext conftest.$ac_ext
7509 rm -f core conftest.err conftest.$ac_objext \
7510 conftest$ac_exeext conftest.$ac_ext
7511 ac_c_werror_flag=$ac_xsave_c_werror_flag
7512 LIBS=$ac_xsave_LIBS
7515 # Check for system-dependent libraries X programs must link with.
7516 # Do this before checking for the system-independent R6 libraries
7517 # (-lICE), since we may need -lsocket or whatever for X linking.
7519 if test "$ISC" = yes; then
7520 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7521 else
7522 # Martyn Johnson says this is needed for Ultrix, if the X
7523 # libraries were built with DECnet support. And Karl Berry says
7524 # the Alpha needs dnet_stub (dnet does not exist).
7525 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7529 /* Override any GCC internal prototype to avoid an error.
7530 Use char because int might match the return type of a GCC
7531 builtin and then its argument prototype would still apply. */
7532 #ifdef __cplusplus
7533 extern "C"
7534 #endif
7535 char XOpenDisplay ();
7537 main ()
7539 return XOpenDisplay ();
7541 return 0;
7543 _ACEOF
7544 if ac_fn_c_try_link "$LINENO"; then :
7546 else
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7548 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7549 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7550 $as_echo_n "(cached) " >&6
7551 else
7552 ac_check_lib_save_LIBS=$LIBS
7553 LIBS="-ldnet $LIBS"
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7557 /* Override any GCC internal prototype to avoid an error.
7558 Use char because int might match the return type of a GCC
7559 builtin and then its argument prototype would still apply. */
7560 #ifdef __cplusplus
7561 extern "C"
7562 #endif
7563 char dnet_ntoa ();
7565 main ()
7567 return dnet_ntoa ();
7569 return 0;
7571 _ACEOF
7572 if ac_fn_c_try_link "$LINENO"; then :
7573 ac_cv_lib_dnet_dnet_ntoa=yes
7574 else
7575 ac_cv_lib_dnet_dnet_ntoa=no
7577 rm -f core conftest.err conftest.$ac_objext \
7578 conftest$ac_exeext conftest.$ac_ext
7579 LIBS=$ac_check_lib_save_LIBS
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7582 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7583 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7584 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7587 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7589 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7590 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 ac_check_lib_save_LIBS=$LIBS
7594 LIBS="-ldnet_stub $LIBS"
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7598 /* Override any GCC internal prototype to avoid an error.
7599 Use char because int might match the return type of a GCC
7600 builtin and then its argument prototype would still apply. */
7601 #ifdef __cplusplus
7602 extern "C"
7603 #endif
7604 char dnet_ntoa ();
7606 main ()
7608 return dnet_ntoa ();
7610 return 0;
7612 _ACEOF
7613 if ac_fn_c_try_link "$LINENO"; then :
7614 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7615 else
7616 ac_cv_lib_dnet_stub_dnet_ntoa=no
7618 rm -f core conftest.err conftest.$ac_objext \
7619 conftest$ac_exeext conftest.$ac_ext
7620 LIBS=$ac_check_lib_save_LIBS
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7623 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7624 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7625 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7630 rm -f core conftest.err conftest.$ac_objext \
7631 conftest$ac_exeext conftest.$ac_ext
7632 LIBS="$ac_xsave_LIBS"
7634 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7635 # to get the SysV transport functions.
7636 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7637 # needs -lnsl.
7638 # The nsl library prevents programs from opening the X display
7639 # on Irix 5.2, according to T.E. Dickey.
7640 # The functions gethostbyname, getservbyname, and inet_addr are
7641 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7642 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7643 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7647 if test $ac_cv_func_gethostbyname = no; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7649 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7650 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653 ac_check_lib_save_LIBS=$LIBS
7654 LIBS="-lnsl $LIBS"
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7658 /* Override any GCC internal prototype to avoid an error.
7659 Use char because int might match the return type of a GCC
7660 builtin and then its argument prototype would still apply. */
7661 #ifdef __cplusplus
7662 extern "C"
7663 #endif
7664 char gethostbyname ();
7666 main ()
7668 return gethostbyname ();
7670 return 0;
7672 _ACEOF
7673 if ac_fn_c_try_link "$LINENO"; then :
7674 ac_cv_lib_nsl_gethostbyname=yes
7675 else
7676 ac_cv_lib_nsl_gethostbyname=no
7678 rm -f core conftest.err conftest.$ac_objext \
7679 conftest$ac_exeext conftest.$ac_ext
7680 LIBS=$ac_check_lib_save_LIBS
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7683 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7684 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7685 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7688 if test $ac_cv_lib_nsl_gethostbyname = no; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7690 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7691 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7692 $as_echo_n "(cached) " >&6
7693 else
7694 ac_check_lib_save_LIBS=$LIBS
7695 LIBS="-lbsd $LIBS"
7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7699 /* Override any GCC internal prototype to avoid an error.
7700 Use char because int might match the return type of a GCC
7701 builtin and then its argument prototype would still apply. */
7702 #ifdef __cplusplus
7703 extern "C"
7704 #endif
7705 char gethostbyname ();
7707 main ()
7709 return gethostbyname ();
7711 return 0;
7713 _ACEOF
7714 if ac_fn_c_try_link "$LINENO"; then :
7715 ac_cv_lib_bsd_gethostbyname=yes
7716 else
7717 ac_cv_lib_bsd_gethostbyname=no
7719 rm -f core conftest.err conftest.$ac_objext \
7720 conftest$ac_exeext conftest.$ac_ext
7721 LIBS=$ac_check_lib_save_LIBS
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7724 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7725 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7726 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7732 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7733 # socket/setsockopt and other routines are undefined under SCO ODT
7734 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7735 # on later versions), says Simon Leinen: it contains gethostby*
7736 # variants that don't use the name server (or something). -lsocket
7737 # must be given before -lnsl if both are needed. We assume that
7738 # if connect needs -lnsl, so does gethostbyname.
7739 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7740 if test "x$ac_cv_func_connect" = xyes; then :
7744 if test $ac_cv_func_connect = no; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7746 $as_echo_n "checking for connect in -lsocket... " >&6; }
7747 if ${ac_cv_lib_socket_connect+:} false; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 ac_check_lib_save_LIBS=$LIBS
7751 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7755 /* Override any GCC internal prototype to avoid an error.
7756 Use char because int might match the return type of a GCC
7757 builtin and then its argument prototype would still apply. */
7758 #ifdef __cplusplus
7759 extern "C"
7760 #endif
7761 char connect ();
7763 main ()
7765 return connect ();
7767 return 0;
7769 _ACEOF
7770 if ac_fn_c_try_link "$LINENO"; then :
7771 ac_cv_lib_socket_connect=yes
7772 else
7773 ac_cv_lib_socket_connect=no
7775 rm -f core conftest.err conftest.$ac_objext \
7776 conftest$ac_exeext conftest.$ac_ext
7777 LIBS=$ac_check_lib_save_LIBS
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7780 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7781 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7782 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7787 # Guillermo Gomez says -lposix is necessary on A/UX.
7788 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7789 if test "x$ac_cv_func_remove" = xyes; then :
7793 if test $ac_cv_func_remove = no; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7795 $as_echo_n "checking for remove in -lposix... " >&6; }
7796 if ${ac_cv_lib_posix_remove+:} false; then :
7797 $as_echo_n "(cached) " >&6
7798 else
7799 ac_check_lib_save_LIBS=$LIBS
7800 LIBS="-lposix $LIBS"
7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802 /* end confdefs.h. */
7804 /* Override any GCC internal prototype to avoid an error.
7805 Use char because int might match the return type of a GCC
7806 builtin and then its argument prototype would still apply. */
7807 #ifdef __cplusplus
7808 extern "C"
7809 #endif
7810 char remove ();
7812 main ()
7814 return remove ();
7816 return 0;
7818 _ACEOF
7819 if ac_fn_c_try_link "$LINENO"; then :
7820 ac_cv_lib_posix_remove=yes
7821 else
7822 ac_cv_lib_posix_remove=no
7824 rm -f core conftest.err conftest.$ac_objext \
7825 conftest$ac_exeext conftest.$ac_ext
7826 LIBS=$ac_check_lib_save_LIBS
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7829 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7830 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7831 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7836 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7837 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7838 if test "x$ac_cv_func_shmat" = xyes; then :
7842 if test $ac_cv_func_shmat = no; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7844 $as_echo_n "checking for shmat in -lipc... " >&6; }
7845 if ${ac_cv_lib_ipc_shmat+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 ac_check_lib_save_LIBS=$LIBS
7849 LIBS="-lipc $LIBS"
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7853 /* Override any GCC internal prototype to avoid an error.
7854 Use char because int might match the return type of a GCC
7855 builtin and then its argument prototype would still apply. */
7856 #ifdef __cplusplus
7857 extern "C"
7858 #endif
7859 char shmat ();
7861 main ()
7863 return shmat ();
7865 return 0;
7867 _ACEOF
7868 if ac_fn_c_try_link "$LINENO"; then :
7869 ac_cv_lib_ipc_shmat=yes
7870 else
7871 ac_cv_lib_ipc_shmat=no
7873 rm -f core conftest.err conftest.$ac_objext \
7874 conftest$ac_exeext conftest.$ac_ext
7875 LIBS=$ac_check_lib_save_LIBS
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7878 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7879 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7880 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7886 # Check for libraries that X11R6 Xt/Xaw programs need.
7887 ac_save_LDFLAGS=$LDFLAGS
7888 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7889 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7890 # check for ICE first), but we must link in the order -lSM -lICE or
7891 # we get undefined symbols. So assume we have SM if we have ICE.
7892 # These have to be linked with before -lX11, unlike the other
7893 # libraries we check for below, so use a different variable.
7894 # John Interrante, Karl Berry
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7896 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7897 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7898 $as_echo_n "(cached) " >&6
7899 else
7900 ac_check_lib_save_LIBS=$LIBS
7901 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h. */
7905 /* Override any GCC internal prototype to avoid an error.
7906 Use char because int might match the return type of a GCC
7907 builtin and then its argument prototype would still apply. */
7908 #ifdef __cplusplus
7909 extern "C"
7910 #endif
7911 char IceConnectionNumber ();
7913 main ()
7915 return IceConnectionNumber ();
7917 return 0;
7919 _ACEOF
7920 if ac_fn_c_try_link "$LINENO"; then :
7921 ac_cv_lib_ICE_IceConnectionNumber=yes
7922 else
7923 ac_cv_lib_ICE_IceConnectionNumber=no
7925 rm -f core conftest.err conftest.$ac_objext \
7926 conftest$ac_exeext conftest.$ac_ext
7927 LIBS=$ac_check_lib_save_LIBS
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7930 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7931 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7932 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7935 LDFLAGS=$ac_save_LDFLAGS
7940 if test "$have_x" = "yes"
7941 then
7942 XLIB="-lX11"
7943 ac_save_CPPFLAGS="$CPPFLAGS"
7944 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7947 $as_echo_n "checking for -lX11... " >&6; }
7948 if ${ac_cv_lib_soname_X11+:} false; then :
7949 $as_echo_n "(cached) " >&6
7950 else
7951 ac_check_soname_save_LIBS=$LIBS
7952 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7956 /* Override any GCC internal prototype to avoid an error.
7957 Use char because int might match the return type of a GCC
7958 builtin and then its argument prototype would still apply. */
7959 #ifdef __cplusplus
7960 extern "C"
7961 #endif
7962 char XCreateWindow ();
7964 main ()
7966 return XCreateWindow ();
7968 return 0;
7970 _ACEOF
7971 if ac_fn_c_try_link "$LINENO"; then :
7972 case "$LIBEXT" in
7973 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7974 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'` ;;
7975 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7976 esac
7978 rm -f core conftest.err conftest.$ac_objext \
7979 conftest$ac_exeext conftest.$ac_ext
7980 LIBS=$ac_check_soname_save_LIBS
7982 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7984 $as_echo "not found" >&6; }
7986 else
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7988 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7990 cat >>confdefs.h <<_ACEOF
7991 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7992 _ACEOF
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7997 $as_echo_n "checking for -lXext... " >&6; }
7998 if ${ac_cv_lib_soname_Xext+:} false; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 ac_check_soname_save_LIBS=$LIBS
8002 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h. */
8006 /* Override any GCC internal prototype to avoid an error.
8007 Use char because int might match the return type of a GCC
8008 builtin and then its argument prototype would still apply. */
8009 #ifdef __cplusplus
8010 extern "C"
8011 #endif
8012 char XextCreateExtension ();
8014 main ()
8016 return XextCreateExtension ();
8018 return 0;
8020 _ACEOF
8021 if ac_fn_c_try_link "$LINENO"; then :
8022 case "$LIBEXT" in
8023 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8024 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'` ;;
8025 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8026 esac
8028 rm -f core conftest.err conftest.$ac_objext \
8029 conftest$ac_exeext conftest.$ac_ext
8030 LIBS=$ac_check_soname_save_LIBS
8032 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8034 $as_echo "not found" >&6; }
8036 else
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8038 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8040 cat >>confdefs.h <<_ACEOF
8041 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8042 _ACEOF
8044 XLIB="-lXext $XLIB"
8047 for ac_header in X11/Xlib.h \
8048 X11/XKBlib.h \
8049 X11/Xutil.h \
8050 X11/Xcursor/Xcursor.h \
8051 X11/extensions/shape.h \
8052 X11/extensions/XInput.h \
8053 X11/extensions/XInput2.h \
8054 X11/extensions/XShm.h \
8055 X11/extensions/Xcomposite.h \
8056 X11/extensions/Xinerama.h \
8057 X11/extensions/Xrandr.h \
8058 X11/extensions/Xrender.h \
8059 X11/extensions/xf86vmode.h \
8060 X11/extensions/xf86vmproto.h
8061 do :
8062 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8063 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8064 # include <X11/Xlib.h>
8065 #endif
8066 #ifdef HAVE_X11_XUTIL_H
8067 # include <X11/Xutil.h>
8068 #endif
8070 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8071 cat >>confdefs.h <<_ACEOF
8072 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8073 _ACEOF
8077 done
8080 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8081 then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8083 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8084 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 ac_check_lib_save_LIBS=$LIBS
8088 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8092 /* Override any GCC internal prototype to avoid an error.
8093 Use char because int might match the return type of a GCC
8094 builtin and then its argument prototype would still apply. */
8095 #ifdef __cplusplus
8096 extern "C"
8097 #endif
8098 char XkbQueryExtension ();
8100 main ()
8102 return XkbQueryExtension ();
8104 return 0;
8106 _ACEOF
8107 if ac_fn_c_try_link "$LINENO"; then :
8108 ac_cv_lib_X11_XkbQueryExtension=yes
8109 else
8110 ac_cv_lib_X11_XkbQueryExtension=no
8112 rm -f core conftest.err conftest.$ac_objext \
8113 conftest$ac_exeext conftest.$ac_ext
8114 LIBS=$ac_check_lib_save_LIBS
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8117 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8118 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8120 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8126 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8127 then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8129 $as_echo_n "checking for -lXcursor... " >&6; }
8130 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8133 ac_check_soname_save_LIBS=$LIBS
8134 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h. */
8138 /* Override any GCC internal prototype to avoid an error.
8139 Use char because int might match the return type of a GCC
8140 builtin and then its argument prototype would still apply. */
8141 #ifdef __cplusplus
8142 extern "C"
8143 #endif
8144 char XcursorImageLoadCursor ();
8146 main ()
8148 return XcursorImageLoadCursor ();
8150 return 0;
8152 _ACEOF
8153 if ac_fn_c_try_link "$LINENO"; then :
8154 case "$LIBEXT" in
8155 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8156 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'` ;;
8157 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8158 esac
8160 rm -f core conftest.err conftest.$ac_objext \
8161 conftest$ac_exeext conftest.$ac_ext
8162 LIBS=$ac_check_soname_save_LIBS
8164 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8166 $as_echo "not found" >&6; }
8168 else
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8170 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8172 cat >>confdefs.h <<_ACEOF
8173 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8174 _ACEOF
8179 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8180 case "x$with_xcursor" in
8181 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8182 xno) ;;
8183 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8184 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8185 esac
8188 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8189 then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8191 $as_echo_n "checking for -lXi... " >&6; }
8192 if ${ac_cv_lib_soname_Xi+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 ac_check_soname_save_LIBS=$LIBS
8196 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8200 /* Override any GCC internal prototype to avoid an error.
8201 Use char because int might match the return type of a GCC
8202 builtin and then its argument prototype would still apply. */
8203 #ifdef __cplusplus
8204 extern "C"
8205 #endif
8206 char XOpenDevice ();
8208 main ()
8210 return XOpenDevice ();
8212 return 0;
8214 _ACEOF
8215 if ac_fn_c_try_link "$LINENO"; then :
8216 case "$LIBEXT" in
8217 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8218 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'` ;;
8219 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8220 esac
8222 rm -f core conftest.err conftest.$ac_objext \
8223 conftest$ac_exeext conftest.$ac_ext
8224 LIBS=$ac_check_soname_save_LIBS
8226 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8228 $as_echo "not found" >&6; }
8230 else
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8232 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8234 cat >>confdefs.h <<_ACEOF
8235 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8236 _ACEOF
8241 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8242 case "x$with_xinput" in
8243 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8244 xno) ;;
8245 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8246 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8247 esac
8250 if test "x$ac_cv_lib_soname_Xi" != x
8251 then
8252 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8253 case "x$with_xinput2" in
8254 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8255 xno) ;;
8256 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8257 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8258 esac
8262 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8263 then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8265 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8266 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8267 $as_echo_n "(cached) " >&6
8268 else
8269 ac_check_lib_save_LIBS=$LIBS
8270 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8274 /* Override any GCC internal prototype to avoid an error.
8275 Use char because int might match the return type of a GCC
8276 builtin and then its argument prototype would still apply. */
8277 #ifdef __cplusplus
8278 extern "C"
8279 #endif
8280 char XShmQueryExtension ();
8282 main ()
8284 return XShmQueryExtension ();
8286 return 0;
8288 _ACEOF
8289 if ac_fn_c_try_link "$LINENO"; then :
8290 ac_cv_lib_Xext_XShmQueryExtension=yes
8291 else
8292 ac_cv_lib_Xext_XShmQueryExtension=no
8294 rm -f core conftest.err conftest.$ac_objext \
8295 conftest$ac_exeext conftest.$ac_ext
8296 LIBS=$ac_check_lib_save_LIBS
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8299 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8300 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8302 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8307 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8308 case "x$with_xshm" in
8309 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8310 xno) ;;
8311 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8312 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8313 esac
8316 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8317 then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8319 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8320 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 ac_check_lib_save_LIBS=$LIBS
8324 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8328 /* Override any GCC internal prototype to avoid an error.
8329 Use char because int might match the return type of a GCC
8330 builtin and then its argument prototype would still apply. */
8331 #ifdef __cplusplus
8332 extern "C"
8333 #endif
8334 char XShapeQueryExtension ();
8336 main ()
8338 return XShapeQueryExtension ();
8340 return 0;
8342 _ACEOF
8343 if ac_fn_c_try_link "$LINENO"; then :
8344 ac_cv_lib_Xext_XShapeQueryExtension=yes
8345 else
8346 ac_cv_lib_Xext_XShapeQueryExtension=no
8348 rm -f core conftest.err conftest.$ac_objext \
8349 conftest$ac_exeext conftest.$ac_ext
8350 LIBS=$ac_check_lib_save_LIBS
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8353 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8354 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8356 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8361 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8362 case "x$with_xshape" in
8363 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8364 xno) ;;
8365 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8366 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8367 esac
8370 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8371 then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8373 $as_echo_n "checking for -lXxf86vm... " >&6; }
8374 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8375 $as_echo_n "(cached) " >&6
8376 else
8377 ac_check_soname_save_LIBS=$LIBS
8378 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380 /* end confdefs.h. */
8382 /* Override any GCC internal prototype to avoid an error.
8383 Use char because int might match the return type of a GCC
8384 builtin and then its argument prototype would still apply. */
8385 #ifdef __cplusplus
8386 extern "C"
8387 #endif
8388 char XF86VidModeQueryExtension ();
8390 main ()
8392 return XF86VidModeQueryExtension ();
8394 return 0;
8396 _ACEOF
8397 if ac_fn_c_try_link "$LINENO"; then :
8398 case "$LIBEXT" in
8399 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8400 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'` ;;
8401 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8402 esac
8404 rm -f core conftest.err conftest.$ac_objext \
8405 conftest$ac_exeext conftest.$ac_ext
8406 LIBS=$ac_check_soname_save_LIBS
8408 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8410 $as_echo "not found" >&6; }
8412 else
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8414 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8416 cat >>confdefs.h <<_ACEOF
8417 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8418 _ACEOF
8423 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8424 case "x$with_xxf86vm" in
8425 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8426 xno) ;;
8427 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8428 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8429 esac
8432 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"
8433 then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8435 $as_echo_n "checking for -lXrender... " >&6; }
8436 if ${ac_cv_lib_soname_Xrender+:} false; then :
8437 $as_echo_n "(cached) " >&6
8438 else
8439 ac_check_soname_save_LIBS=$LIBS
8440 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8444 /* Override any GCC internal prototype to avoid an error.
8445 Use char because int might match the return type of a GCC
8446 builtin and then its argument prototype would still apply. */
8447 #ifdef __cplusplus
8448 extern "C"
8449 #endif
8450 char XRenderQueryExtension ();
8452 main ()
8454 return XRenderQueryExtension ();
8456 return 0;
8458 _ACEOF
8459 if ac_fn_c_try_link "$LINENO"; then :
8460 case "$LIBEXT" in
8461 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8462 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'` ;;
8463 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8464 esac
8466 rm -f core conftest.err conftest.$ac_objext \
8467 conftest$ac_exeext conftest.$ac_ext
8468 LIBS=$ac_check_soname_save_LIBS
8470 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8472 $as_echo "not found" >&6; }
8474 else
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8476 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8478 cat >>confdefs.h <<_ACEOF
8479 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8480 _ACEOF
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8483 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8484 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8485 $as_echo_n "(cached) " >&6
8486 else
8487 ac_check_lib_save_LIBS=$LIBS
8488 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8492 /* Override any GCC internal prototype to avoid an error.
8493 Use char because int might match the return type of a GCC
8494 builtin and then its argument prototype would still apply. */
8495 #ifdef __cplusplus
8496 extern "C"
8497 #endif
8498 char XRenderSetPictureTransform ();
8500 main ()
8502 return XRenderSetPictureTransform ();
8504 return 0;
8506 _ACEOF
8507 if ac_fn_c_try_link "$LINENO"; then :
8508 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8509 else
8510 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8512 rm -f core conftest.err conftest.$ac_objext \
8513 conftest$ac_exeext conftest.$ac_ext
8514 LIBS=$ac_check_lib_save_LIBS
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8517 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8518 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8520 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8527 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8528 case "x$with_xrender" in
8529 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8530 xno) ;;
8531 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8532 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8533 esac
8536 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8537 then
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8540 #include <X11/Xlib.h>
8541 #include <X11/extensions/Xrandr.h>
8543 main ()
8545 static typeof(XRRSetScreenConfigAndRate) * func;
8547 return 0;
8549 _ACEOF
8550 if ac_fn_c_try_compile "$LINENO"; then :
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8552 $as_echo_n "checking for -lXrandr... " >&6; }
8553 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8554 $as_echo_n "(cached) " >&6
8555 else
8556 ac_check_soname_save_LIBS=$LIBS
8557 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8561 /* Override any GCC internal prototype to avoid an error.
8562 Use char because int might match the return type of a GCC
8563 builtin and then its argument prototype would still apply. */
8564 #ifdef __cplusplus
8565 extern "C"
8566 #endif
8567 char XRRQueryExtension ();
8569 main ()
8571 return XRRQueryExtension ();
8573 return 0;
8575 _ACEOF
8576 if ac_fn_c_try_link "$LINENO"; then :
8577 case "$LIBEXT" in
8578 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8579 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'` ;;
8580 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8581 esac
8583 rm -f core conftest.err conftest.$ac_objext \
8584 conftest$ac_exeext conftest.$ac_ext
8585 LIBS=$ac_check_soname_save_LIBS
8587 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8589 $as_echo "not found" >&6; }
8591 else
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8593 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8595 cat >>confdefs.h <<_ACEOF
8596 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8597 _ACEOF
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8605 case "x$with_xrandr" in
8606 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8607 xno) ;;
8608 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8609 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8610 esac
8613 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8614 then
8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616 /* end confdefs.h. */
8617 #include <X11/Xlib.h>
8618 #include <X11/extensions/Xinerama.h>
8620 main ()
8622 static typeof(XineramaQueryScreens) * func;
8624 return 0;
8626 _ACEOF
8627 if ac_fn_c_try_compile "$LINENO"; then :
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8629 $as_echo_n "checking for -lXinerama... " >&6; }
8630 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8631 $as_echo_n "(cached) " >&6
8632 else
8633 ac_check_soname_save_LIBS=$LIBS
8634 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8638 /* Override any GCC internal prototype to avoid an error.
8639 Use char because int might match the return type of a GCC
8640 builtin and then its argument prototype would still apply. */
8641 #ifdef __cplusplus
8642 extern "C"
8643 #endif
8644 char XineramaQueryScreens ();
8646 main ()
8648 return XineramaQueryScreens ();
8650 return 0;
8652 _ACEOF
8653 if ac_fn_c_try_link "$LINENO"; then :
8654 case "$LIBEXT" in
8655 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8656 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'` ;;
8657 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8658 esac
8660 rm -f core conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
8662 LIBS=$ac_check_soname_save_LIBS
8664 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8666 $as_echo "not found" >&6; }
8668 else
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8670 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8672 cat >>confdefs.h <<_ACEOF
8673 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8674 _ACEOF
8679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8682 case "x$with_xinerama" in
8683 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8684 xno) ;;
8685 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8686 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8687 esac
8690 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8691 then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8693 $as_echo_n "checking for -lXcomposite... " >&6; }
8694 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 ac_check_soname_save_LIBS=$LIBS
8698 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h. */
8702 /* Override any GCC internal prototype to avoid an error.
8703 Use char because int might match the return type of a GCC
8704 builtin and then its argument prototype would still apply. */
8705 #ifdef __cplusplus
8706 extern "C"
8707 #endif
8708 char XCompositeRedirectWindow ();
8710 main ()
8712 return XCompositeRedirectWindow ();
8714 return 0;
8716 _ACEOF
8717 if ac_fn_c_try_link "$LINENO"; then :
8718 case "$LIBEXT" in
8719 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8720 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'` ;;
8721 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8722 esac
8724 rm -f core conftest.err conftest.$ac_objext \
8725 conftest$ac_exeext conftest.$ac_ext
8726 LIBS=$ac_check_soname_save_LIBS
8728 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8730 $as_echo "not found" >&6; }
8732 else
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8734 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8736 cat >>confdefs.h <<_ACEOF
8737 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8738 _ACEOF
8743 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8744 case "x$with_xcomposite" in
8745 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8746 xno) ;;
8747 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8748 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8749 esac
8752 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8753 #include <X11/Xlib.h>
8754 #endif
8756 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8758 cat >>confdefs.h <<_ACEOF
8759 #define HAVE_XICCALLBACK_CALLBACK 1
8760 _ACEOF
8764 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8765 #include <X11/Xlib.h>
8766 #endif
8768 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8770 cat >>confdefs.h <<_ACEOF
8771 #define HAVE_XEVENT_XCOOKIE 1
8772 _ACEOF
8779 opengl_msg=""
8780 if test "x$with_opengl" != "xno"
8781 then
8782 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8783 do :
8784 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8785 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8786 # include <GL/glx.h>
8787 #endif
8789 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8790 cat >>confdefs.h <<_ACEOF
8791 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8792 _ACEOF
8796 done
8798 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8799 then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8801 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8802 if ${wine_cv_opengl_header_version_OK+:} false; then :
8803 $as_echo_n "(cached) " >&6
8804 else
8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 #include <GL/gl.h>
8809 main ()
8811 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8813 return 0;
8815 _ACEOF
8816 if ac_fn_c_try_compile "$LINENO"; then :
8817 wine_cv_opengl_header_version_OK="yes"
8818 else
8819 wine_cv_opengl_header_version_OK="no"
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8824 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8826 if test "$wine_cv_opengl_header_version_OK" = "yes"
8827 then
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8829 $as_echo_n "checking for -lGL... " >&6; }
8830 if ${ac_cv_lib_soname_GL+:} false; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 ac_check_soname_save_LIBS=$LIBS
8834 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8838 /* Override any GCC internal prototype to avoid an error.
8839 Use char because int might match the return type of a GCC
8840 builtin and then its argument prototype would still apply. */
8841 #ifdef __cplusplus
8842 extern "C"
8843 #endif
8844 char glXCreateContext ();
8846 main ()
8848 return glXCreateContext ();
8850 return 0;
8852 _ACEOF
8853 if ac_fn_c_try_link "$LINENO"; then :
8854 case "$LIBEXT" in
8855 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8856 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'` ;;
8857 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8858 esac
8860 rm -f core conftest.err conftest.$ac_objext \
8861 conftest$ac_exeext conftest.$ac_ext
8862 LIBS=$ac_check_soname_save_LIBS
8864 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8866 $as_echo "not found" >&6; }
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8868 $as_echo_n "checking for -lGL... " >&6; }
8869 if ${ac_cv_lib_soname_GL+:} false; then :
8870 $as_echo_n "(cached) " >&6
8871 else
8872 ac_check_soname_save_LIBS=$LIBS
8873 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"
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8877 /* Override any GCC internal prototype to avoid an error.
8878 Use char because int might match the return type of a GCC
8879 builtin and then its argument prototype would still apply. */
8880 #ifdef __cplusplus
8881 extern "C"
8882 #endif
8883 char glXCreateContext ();
8885 main ()
8887 return glXCreateContext ();
8889 return 0;
8891 _ACEOF
8892 if ac_fn_c_try_link "$LINENO"; then :
8893 case "$LIBEXT" in
8894 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8895 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'` ;;
8896 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8897 esac
8899 rm -f core conftest.err conftest.$ac_objext \
8900 conftest$ac_exeext conftest.$ac_ext
8901 LIBS=$ac_check_soname_save_LIBS
8903 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8905 $as_echo "not found" >&6; }
8906 if test -f /usr/X11R6/lib/libGL.a
8907 then
8908 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8909 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8910 else
8911 opengl_msg="No OpenGL library found on this system."
8913 else
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8915 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8917 cat >>confdefs.h <<_ACEOF
8918 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8919 _ACEOF
8921 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"
8923 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8926 else
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8928 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8930 cat >>confdefs.h <<_ACEOF
8931 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8932 _ACEOF
8934 OPENGL_LIBS="-lGL"
8936 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8939 if test "$ac_cv_header_GL_glu_h" = "yes"
8940 then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8942 $as_echo_n "checking for -lGLU... " >&6; }
8943 if ${ac_cv_lib_soname_GLU+:} false; then :
8944 $as_echo_n "(cached) " >&6
8945 else
8946 ac_check_soname_save_LIBS=$LIBS
8947 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8951 /* Override any GCC internal prototype to avoid an error.
8952 Use char because int might match the return type of a GCC
8953 builtin and then its argument prototype would still apply. */
8954 #ifdef __cplusplus
8955 extern "C"
8956 #endif
8957 char gluLookAt ();
8959 main ()
8961 return gluLookAt ();
8963 return 0;
8965 _ACEOF
8966 if ac_fn_c_try_link "$LINENO"; then :
8967 case "$LIBEXT" in
8968 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8969 dylib) ac_cv_lib_soname_GLU=`otool -L conftest$ac_exeext | grep "libGLU\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGLU\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8970 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8971 esac
8973 rm -f core conftest.err conftest.$ac_objext \
8974 conftest$ac_exeext conftest.$ac_ext
8975 LIBS=$ac_check_soname_save_LIBS
8977 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8979 $as_echo "not found" >&6; }
8981 else
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8983 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8985 cat >>confdefs.h <<_ACEOF
8986 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8987 _ACEOF
8992 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8993 case "x$with_glu" in
8994 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8995 xno) ;;
8996 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8997 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8998 esac
9000 else
9001 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
9003 else
9004 opengl_msg="OpenGL development headers not found."
9006 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
9007 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
9008 else
9009 enable_opengl32=${enable_opengl32:-no}
9010 enable_glu32=${enable_glu32:-no}
9012 if test -n "$opengl_msg"; then :
9013 case "x$with_opengl" in
9014 x) as_fn_append wine_warnings "|$opengl_msg
9015 OpenGL and Direct3D won't be supported." ;;
9016 xno) ;;
9017 *) as_fn_error $? "$opengl_msg
9018 OpenGL and Direct3D won't be supported.
9019 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9020 esac
9023 NASLIBS=""
9025 for ac_header in audio/audiolib.h
9026 do :
9027 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
9028 if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
9029 cat >>confdefs.h <<_ACEOF
9030 #define HAVE_AUDIO_AUDIOLIB_H 1
9031 _ACEOF
9032 for ac_header in audio/soundlib.h
9033 do :
9034 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
9036 if test "x$ac_cv_header_audio_soundlib_h" = xyes; then :
9037 cat >>confdefs.h <<_ACEOF
9038 #define HAVE_AUDIO_SOUNDLIB_H 1
9039 _ACEOF
9043 done
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
9046 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
9047 if ${ac_cv_lib_audio_AuCreateFlow+:} false; then :
9048 $as_echo_n "(cached) " >&6
9049 else
9050 ac_check_lib_save_LIBS=$LIBS
9051 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9055 /* Override any GCC internal prototype to avoid an error.
9056 Use char because int might match the return type of a GCC
9057 builtin and then its argument prototype would still apply. */
9058 #ifdef __cplusplus
9059 extern "C"
9060 #endif
9061 char AuCreateFlow ();
9063 main ()
9065 return AuCreateFlow ();
9067 return 0;
9069 _ACEOF
9070 if ac_fn_c_try_link "$LINENO"; then :
9071 ac_cv_lib_audio_AuCreateFlow=yes
9072 else
9073 ac_cv_lib_audio_AuCreateFlow=no
9075 rm -f core conftest.err conftest.$ac_objext \
9076 conftest$ac_exeext conftest.$ac_ext
9077 LIBS=$ac_check_lib_save_LIBS
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9080 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
9081 if test "x$ac_cv_lib_audio_AuCreateFlow" = xyes; then :
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
9083 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
9084 if ${ac_cv_lib_Xau_XauGetBestAuthByAddr+:} false; then :
9085 $as_echo_n "(cached) " >&6
9086 else
9087 ac_check_lib_save_LIBS=$LIBS
9088 LIBS="-lXau $X_LIBS $LIBS"
9089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090 /* end confdefs.h. */
9092 /* Override any GCC internal prototype to avoid an error.
9093 Use char because int might match the return type of a GCC
9094 builtin and then its argument prototype would still apply. */
9095 #ifdef __cplusplus
9096 extern "C"
9097 #endif
9098 char XauGetBestAuthByAddr ();
9100 main ()
9102 return XauGetBestAuthByAddr ();
9104 return 0;
9106 _ACEOF
9107 if ac_fn_c_try_link "$LINENO"; then :
9108 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9109 else
9110 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
9112 rm -f core conftest.err conftest.$ac_objext \
9113 conftest$ac_exeext conftest.$ac_ext
9114 LIBS=$ac_check_lib_save_LIBS
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
9117 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
9118 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = xyes; then :
9119 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9120 else
9121 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9129 done
9132 CPPFLAGS="$ac_save_CPPFLAGS"
9133 else
9134 XLIB=""
9135 X_CFLAGS=""
9136 X_LIBS=""
9137 enable_winex11_drv=${enable_winex11_drv:-no}
9138 enable_opengl32=${enable_opengl32:-no}
9139 enable_glu32=${enable_glu32:-no}
9141 if test "x$XLIB" = "x"; then :
9142 case "x$with_x" in
9143 xno) ;;
9144 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9145 without X support, which probably isn't what you want. You will need
9146 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9147 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9148 esac
9151 if test "$ac_cv_header_CL_cl_h" = "yes"
9152 then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9154 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9155 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9156 $as_echo_n "(cached) " >&6
9157 else
9158 ac_check_lib_save_LIBS=$LIBS
9159 LIBS="-lOpenCL $LIBS"
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9163 /* Override any GCC internal prototype to avoid an error.
9164 Use char because int might match the return type of a GCC
9165 builtin and then its argument prototype would still apply. */
9166 #ifdef __cplusplus
9167 extern "C"
9168 #endif
9169 char clGetPlatformInfo ();
9171 main ()
9173 return clGetPlatformInfo ();
9175 return 0;
9177 _ACEOF
9178 if ac_fn_c_try_link "$LINENO"; then :
9179 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9180 else
9181 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9183 rm -f core conftest.err conftest.$ac_objext \
9184 conftest$ac_exeext conftest.$ac_ext
9185 LIBS=$ac_check_lib_save_LIBS
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9188 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9189 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9190 LIBOPENCL="-lOpenCL"
9195 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9196 case "x$with_opencl" in
9197 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9198 xno) ;;
9199 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9200 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9201 esac
9203 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9206 XML2LIBS=""
9208 XML2INCL=""
9210 XSLTINCL=""
9212 if test "x$with_xml" != "xno"
9213 then
9214 ac_save_CPPFLAGS="$CPPFLAGS"
9215 if test "$PKG_CONFIG" != "false"
9216 then
9217 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9218 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9219 else
9220 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9221 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9223 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9224 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9225 do :
9226 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9227 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9228 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9229 cat >>confdefs.h <<_ACEOF
9230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9231 _ACEOF
9235 done
9237 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"
9238 then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9240 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9241 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9242 $as_echo_n "(cached) " >&6
9243 else
9244 ac_check_lib_save_LIBS=$LIBS
9245 LIBS="-lxml2 $ac_xml_libs $LIBS"
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9249 /* Override any GCC internal prototype to avoid an error.
9250 Use char because int might match the return type of a GCC
9251 builtin and then its argument prototype would still apply. */
9252 #ifdef __cplusplus
9253 extern "C"
9254 #endif
9255 char xmlParseMemory ();
9257 main ()
9259 return xmlParseMemory ();
9261 return 0;
9263 _ACEOF
9264 if ac_fn_c_try_link "$LINENO"; then :
9265 ac_cv_lib_xml2_xmlParseMemory=yes
9266 else
9267 ac_cv_lib_xml2_xmlParseMemory=no
9269 rm -f core conftest.err conftest.$ac_objext \
9270 conftest$ac_exeext conftest.$ac_ext
9271 LIBS=$ac_check_lib_save_LIBS
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9274 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9275 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9277 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9279 XML2LIBS="$ac_xml_libs"
9280 XML2INCL="$ac_xml_cflags"
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9284 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9285 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9286 $as_echo_n "(cached) " >&6
9287 else
9288 ac_check_lib_save_LIBS=$LIBS
9289 LIBS="-lxml2 $ac_xml_libs $LIBS"
9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h. */
9293 /* Override any GCC internal prototype to avoid an error.
9294 Use char because int might match the return type of a GCC
9295 builtin and then its argument prototype would still apply. */
9296 #ifdef __cplusplus
9297 extern "C"
9298 #endif
9299 char xmlReadMemory ();
9301 main ()
9303 return xmlReadMemory ();
9305 return 0;
9307 _ACEOF
9308 if ac_fn_c_try_link "$LINENO"; then :
9309 ac_cv_lib_xml2_xmlReadMemory=yes
9310 else
9311 ac_cv_lib_xml2_xmlReadMemory=no
9313 rm -f core conftest.err conftest.$ac_objext \
9314 conftest$ac_exeext conftest.$ac_ext
9315 LIBS=$ac_check_lib_save_LIBS
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9318 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9319 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9321 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9326 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9327 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9328 $as_echo_n "(cached) " >&6
9329 else
9330 ac_check_lib_save_LIBS=$LIBS
9331 LIBS="-lxml2 $ac_xml_libs $LIBS"
9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333 /* end confdefs.h. */
9335 /* Override any GCC internal prototype to avoid an error.
9336 Use char because int might match the return type of a GCC
9337 builtin and then its argument prototype would still apply. */
9338 #ifdef __cplusplus
9339 extern "C"
9340 #endif
9341 char xmlNewDocPI ();
9343 main ()
9345 return xmlNewDocPI ();
9347 return 0;
9349 _ACEOF
9350 if ac_fn_c_try_link "$LINENO"; then :
9351 ac_cv_lib_xml2_xmlNewDocPI=yes
9352 else
9353 ac_cv_lib_xml2_xmlNewDocPI=no
9355 rm -f core conftest.err conftest.$ac_objext \
9356 conftest$ac_exeext conftest.$ac_ext
9357 LIBS=$ac_check_lib_save_LIBS
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9360 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9361 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9363 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9368 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9369 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9370 $as_echo_n "(cached) " >&6
9371 else
9372 ac_check_lib_save_LIBS=$LIBS
9373 LIBS="-lxml2 $ac_xml_libs $LIBS"
9374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375 /* end confdefs.h. */
9377 /* Override any GCC internal prototype to avoid an error.
9378 Use char because int might match the return type of a GCC
9379 builtin and then its argument prototype would still apply. */
9380 #ifdef __cplusplus
9381 extern "C"
9382 #endif
9383 char xmlSchemaSetParserStructuredErrors ();
9385 main ()
9387 return xmlSchemaSetParserStructuredErrors ();
9389 return 0;
9391 _ACEOF
9392 if ac_fn_c_try_link "$LINENO"; then :
9393 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9394 else
9395 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9397 rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
9399 LIBS=$ac_check_lib_save_LIBS
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9402 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9403 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9405 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9410 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9411 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414 ac_check_lib_save_LIBS=$LIBS
9415 LIBS="-lxml2 $ac_xml_libs $LIBS"
9416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417 /* end confdefs.h. */
9419 /* Override any GCC internal prototype to avoid an error.
9420 Use char because int might match the return type of a GCC
9421 builtin and then its argument prototype would still apply. */
9422 #ifdef __cplusplus
9423 extern "C"
9424 #endif
9425 char xmlSchemaSetValidStructuredErrors ();
9427 main ()
9429 return xmlSchemaSetValidStructuredErrors ();
9431 return 0;
9433 _ACEOF
9434 if ac_fn_c_try_link "$LINENO"; then :
9435 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9436 else
9437 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9439 rm -f core conftest.err conftest.$ac_objext \
9440 conftest$ac_exeext conftest.$ac_ext
9441 LIBS=$ac_check_lib_save_LIBS
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9444 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9445 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9447 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9452 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9453 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9454 $as_echo_n "(cached) " >&6
9455 else
9456 ac_check_lib_save_LIBS=$LIBS
9457 LIBS="-lxml2 $ac_xml_libs $LIBS"
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9461 /* Override any GCC internal prototype to avoid an error.
9462 Use char because int might match the return type of a GCC
9463 builtin and then its argument prototype would still apply. */
9464 #ifdef __cplusplus
9465 extern "C"
9466 #endif
9467 char xmlFirstElementChild ();
9469 main ()
9471 return xmlFirstElementChild ();
9473 return 0;
9475 _ACEOF
9476 if ac_fn_c_try_link "$LINENO"; then :
9477 ac_cv_lib_xml2_xmlFirstElementChild=yes
9478 else
9479 ac_cv_lib_xml2_xmlFirstElementChild=no
9481 rm -f core conftest.err conftest.$ac_objext \
9482 conftest$ac_exeext conftest.$ac_ext
9483 LIBS=$ac_check_lib_save_LIBS
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9486 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9487 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9489 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9493 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9495 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9497 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9502 CPPFLAGS="$ac_save_CPPFLAGS"
9504 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9505 case "x$with_xml" in
9506 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9507 xno) ;;
9508 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9509 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9510 esac
9513 if test "x$with_xslt" != "xno"
9514 then
9515 if test "$PKG_CONFIG" != "false"
9516 then
9517 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9518 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9519 else
9520 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9521 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9523 ac_save_CPPFLAGS="$CPPFLAGS"
9524 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9525 for ac_header in libxslt/pattern.h libxslt/transform.h
9526 do :
9527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9528 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9529 # include <libxslt/pattern.h>
9530 #endif
9532 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9533 cat >>confdefs.h <<_ACEOF
9534 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9535 _ACEOF
9539 done
9541 CPPFLAGS="$ac_save_CPPFLAGS"
9542 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9543 then
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9545 $as_echo_n "checking for -lxslt... " >&6; }
9546 if ${ac_cv_lib_soname_xslt+:} false; then :
9547 $as_echo_n "(cached) " >&6
9548 else
9549 ac_check_soname_save_LIBS=$LIBS
9550 LIBS="-lxslt $ac_xslt_libs $LIBS"
9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9552 /* end confdefs.h. */
9554 /* Override any GCC internal prototype to avoid an error.
9555 Use char because int might match the return type of a GCC
9556 builtin and then its argument prototype would still apply. */
9557 #ifdef __cplusplus
9558 extern "C"
9559 #endif
9560 char xsltCompilePattern ();
9562 main ()
9564 return xsltCompilePattern ();
9566 return 0;
9568 _ACEOF
9569 if ac_fn_c_try_link "$LINENO"; then :
9570 case "$LIBEXT" in
9571 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9572 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'` ;;
9573 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9574 esac
9576 rm -f core conftest.err conftest.$ac_objext \
9577 conftest$ac_exeext conftest.$ac_ext
9578 LIBS=$ac_check_soname_save_LIBS
9580 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9582 $as_echo "not found" >&6; }
9584 else
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9586 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9588 cat >>confdefs.h <<_ACEOF
9589 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9590 _ACEOF
9592 XSLTINCL="$ac_xslt_cflags"
9596 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9597 case "x$with_xslt" in
9598 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9599 xno) ;;
9600 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9601 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9602 esac
9605 HALINCL=""
9607 if test "x$with_hal" != "xno"
9608 then
9609 ac_save_CPPFLAGS="$CPPFLAGS"
9610 if test "$PKG_CONFIG" != "false"
9611 then
9612 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9613 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9614 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9616 for ac_header in dbus/dbus.h hal/libhal.h
9617 do :
9618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9619 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9620 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9621 cat >>confdefs.h <<_ACEOF
9622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9623 _ACEOF
9627 done
9629 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9630 then
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9632 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9633 if ${ac_cv_lib_dbus_1_dbus_connection_close+:} false; then :
9634 $as_echo_n "(cached) " >&6
9635 else
9636 ac_check_lib_save_LIBS=$LIBS
9637 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639 /* end confdefs.h. */
9641 /* Override any GCC internal prototype to avoid an error.
9642 Use char because int might match the return type of a GCC
9643 builtin and then its argument prototype would still apply. */
9644 #ifdef __cplusplus
9645 extern "C"
9646 #endif
9647 char dbus_connection_close ();
9649 main ()
9651 return dbus_connection_close ();
9653 return 0;
9655 _ACEOF
9656 if ac_fn_c_try_link "$LINENO"; then :
9657 ac_cv_lib_dbus_1_dbus_connection_close=yes
9658 else
9659 ac_cv_lib_dbus_1_dbus_connection_close=no
9661 rm -f core conftest.err conftest.$ac_objext \
9662 conftest$ac_exeext conftest.$ac_ext
9663 LIBS=$ac_check_lib_save_LIBS
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9666 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9667 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = xyes; then :
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9669 $as_echo_n "checking for -lhal... " >&6; }
9670 if ${ac_cv_lib_soname_hal+:} false; then :
9671 $as_echo_n "(cached) " >&6
9672 else
9673 ac_check_soname_save_LIBS=$LIBS
9674 LIBS="-lhal $ac_hal_libs $LIBS"
9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9678 /* Override any GCC internal prototype to avoid an error.
9679 Use char because int might match the return type of a GCC
9680 builtin and then its argument prototype would still apply. */
9681 #ifdef __cplusplus
9682 extern "C"
9683 #endif
9684 char libhal_ctx_new ();
9686 main ()
9688 return libhal_ctx_new ();
9690 return 0;
9692 _ACEOF
9693 if ac_fn_c_try_link "$LINENO"; then :
9694 case "$LIBEXT" in
9695 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9696 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'` ;;
9697 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9698 esac
9700 rm -f core conftest.err conftest.$ac_objext \
9701 conftest$ac_exeext conftest.$ac_ext
9702 LIBS=$ac_check_soname_save_LIBS
9704 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9706 $as_echo "not found" >&6; }
9708 else
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9710 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9712 cat >>confdefs.h <<_ACEOF
9713 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9714 _ACEOF
9716 HALINCL="$ac_hal_cflags"
9721 CPPFLAGS="$ac_save_CPPFLAGS"
9723 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9724 case "x$with_hal" in
9725 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9726 xno) ;;
9727 *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9728 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9729 esac
9732 if test "x$with_gnutls" != "xno"
9733 then
9734 ac_save_CPPFLAGS="$CPPFLAGS"
9735 if test "$PKG_CONFIG" != "false"
9736 then
9737 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9738 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9739 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9741 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9742 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744 /* end confdefs.h. */
9745 #include <gnutls/gnutls.h>
9747 main ()
9749 typeof(gnutls_mac_get_key_size) *pfunc;
9751 return 0;
9753 _ACEOF
9754 if ac_fn_c_try_compile "$LINENO"; then :
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9756 $as_echo_n "checking for -lgnutls... " >&6; }
9757 if ${ac_cv_lib_soname_gnutls+:} false; then :
9758 $as_echo_n "(cached) " >&6
9759 else
9760 ac_check_soname_save_LIBS=$LIBS
9761 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9765 /* Override any GCC internal prototype to avoid an error.
9766 Use char because int might match the return type of a GCC
9767 builtin and then its argument prototype would still apply. */
9768 #ifdef __cplusplus
9769 extern "C"
9770 #endif
9771 char gnutls_global_init ();
9773 main ()
9775 return gnutls_global_init ();
9777 return 0;
9779 _ACEOF
9780 if ac_fn_c_try_link "$LINENO"; then :
9781 case "$LIBEXT" in
9782 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9783 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'` ;;
9784 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9785 esac
9787 rm -f core conftest.err conftest.$ac_objext \
9788 conftest$ac_exeext conftest.$ac_ext
9789 LIBS=$ac_check_soname_save_LIBS
9791 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9793 $as_echo "not found" >&6; }
9795 else
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9797 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9799 cat >>confdefs.h <<_ACEOF
9800 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9801 _ACEOF
9803 GNUTLSINCL="$ac_gnutls_cflags"
9807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9811 CPPFLAGS="$ac_save_CPPFLAGS"
9813 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9814 case "x$with_gnutls" in
9815 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9816 xno) ;;
9817 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9818 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9819 esac
9822 CURSESLIBS=""
9823 if test "$ac_cv_header_ncurses_h" = "yes"
9824 then
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9826 $as_echo_n "checking for -lncurses... " >&6; }
9827 if ${ac_cv_lib_soname_ncurses+:} false; then :
9828 $as_echo_n "(cached) " >&6
9829 else
9830 ac_check_soname_save_LIBS=$LIBS
9831 LIBS="-lncurses $LIBS"
9832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9835 /* Override any GCC internal prototype to avoid an error.
9836 Use char because int might match the return type of a GCC
9837 builtin and then its argument prototype would still apply. */
9838 #ifdef __cplusplus
9839 extern "C"
9840 #endif
9841 char waddch ();
9843 main ()
9845 return waddch ();
9847 return 0;
9849 _ACEOF
9850 if ac_fn_c_try_link "$LINENO"; then :
9851 case "$LIBEXT" in
9852 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9853 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'` ;;
9854 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9855 esac
9857 rm -f core conftest.err conftest.$ac_objext \
9858 conftest$ac_exeext conftest.$ac_ext
9859 LIBS=$ac_check_soname_save_LIBS
9861 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9863 $as_echo "not found" >&6; }
9865 else
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9867 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9869 cat >>confdefs.h <<_ACEOF
9870 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9871 _ACEOF
9873 CURSESLIBS="-lncurses"
9875 elif test "$ac_cv_header_curses_h" = "yes"
9876 then
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9878 $as_echo_n "checking for -lcurses... " >&6; }
9879 if ${ac_cv_lib_soname_curses+:} false; then :
9880 $as_echo_n "(cached) " >&6
9881 else
9882 ac_check_soname_save_LIBS=$LIBS
9883 LIBS="-lcurses $LIBS"
9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885 /* end confdefs.h. */
9887 /* Override any GCC internal prototype to avoid an error.
9888 Use char because int might match the return type of a GCC
9889 builtin and then its argument prototype would still apply. */
9890 #ifdef __cplusplus
9891 extern "C"
9892 #endif
9893 char waddch ();
9895 main ()
9897 return waddch ();
9899 return 0;
9901 _ACEOF
9902 if ac_fn_c_try_link "$LINENO"; then :
9903 case "$LIBEXT" in
9904 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9905 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'` ;;
9906 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9907 esac
9909 rm -f core conftest.err conftest.$ac_objext \
9910 conftest$ac_exeext conftest.$ac_ext
9911 LIBS=$ac_check_soname_save_LIBS
9913 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9915 $as_echo "not found" >&6; }
9917 else
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9919 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9921 cat >>confdefs.h <<_ACEOF
9922 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9923 _ACEOF
9925 CURSESLIBS="-lcurses"
9928 ac_save_LIBS="$LIBS"
9929 LIBS="$LIBS $CURSESLIBS"
9930 for ac_func in mousemask
9931 do :
9932 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9933 if test "x$ac_cv_func_mousemask" = xyes; then :
9934 cat >>confdefs.h <<_ACEOF
9935 #define HAVE_MOUSEMASK 1
9936 _ACEOF
9939 done
9941 LIBS="$ac_save_LIBS"
9942 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9943 case "x$with_curses" in
9944 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9945 xno) ;;
9946 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9947 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9948 esac
9951 if test "x$with_sane" != "xno"
9952 then
9953 ac_save_CPPFLAGS="$CPPFLAGS"
9954 # Extract the first word of "sane-config", so it can be a program name with args.
9955 set dummy sane-config; ac_word=$2
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9957 $as_echo_n "checking for $ac_word... " >&6; }
9958 if ${ac_cv_prog_sane_devel+:} false; then :
9959 $as_echo_n "(cached) " >&6
9960 else
9961 if test -n "$sane_devel"; then
9962 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9963 else
9964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965 for as_dir in $PATH
9967 IFS=$as_save_IFS
9968 test -z "$as_dir" && as_dir=.
9969 for ac_exec_ext in '' $ac_executable_extensions; do
9970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9971 ac_cv_prog_sane_devel="sane-config"
9972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9973 break 2
9975 done
9976 done
9977 IFS=$as_save_IFS
9979 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9982 sane_devel=$ac_cv_prog_sane_devel
9983 if test -n "$sane_devel"; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9985 $as_echo "$sane_devel" >&6; }
9986 else
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988 $as_echo "no" >&6; }
9992 if test "$sane_devel" != "no"
9993 then
9994 ac_sane_incl="`$sane_devel --cflags`"
9995 ac_sane_libs="`$sane_devel --ldflags`"
9996 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9998 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9999 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
10001 $as_echo_n "checking for -lsane... " >&6; }
10002 if ${ac_cv_lib_soname_sane+:} false; then :
10003 $as_echo_n "(cached) " >&6
10004 else
10005 ac_check_soname_save_LIBS=$LIBS
10006 LIBS="-lsane $ac_sane_libs $LIBS"
10007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008 /* end confdefs.h. */
10010 /* Override any GCC internal prototype to avoid an error.
10011 Use char because int might match the return type of a GCC
10012 builtin and then its argument prototype would still apply. */
10013 #ifdef __cplusplus
10014 extern "C"
10015 #endif
10016 char sane_init ();
10018 main ()
10020 return sane_init ();
10022 return 0;
10024 _ACEOF
10025 if ac_fn_c_try_link "$LINENO"; then :
10026 case "$LIBEXT" in
10027 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10028 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'` ;;
10029 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10030 esac
10032 rm -f core conftest.err conftest.$ac_objext \
10033 conftest$ac_exeext conftest.$ac_ext
10034 LIBS=$ac_check_soname_save_LIBS
10036 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10038 $as_echo "not found" >&6; }
10040 else
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
10042 $as_echo "$ac_cv_lib_soname_sane" >&6; }
10044 cat >>confdefs.h <<_ACEOF
10045 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10046 _ACEOF
10048 SANEINCL="$ac_sane_incl"
10054 CPPFLAGS="$ac_save_CPPFLAGS"
10056 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10057 case "x$with_sane" in
10058 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10059 xno) ;;
10060 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10061 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10062 esac
10065 if test "x$with_v4l" != "xno"
10066 then
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10068 $as_echo_n "checking for -lv4l1... " >&6; }
10069 if ${ac_cv_lib_soname_v4l1+:} false; then :
10070 $as_echo_n "(cached) " >&6
10071 else
10072 ac_check_soname_save_LIBS=$LIBS
10073 LIBS="-lv4l1 $LIBS"
10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075 /* end confdefs.h. */
10077 /* Override any GCC internal prototype to avoid an error.
10078 Use char because int might match the return type of a GCC
10079 builtin and then its argument prototype would still apply. */
10080 #ifdef __cplusplus
10081 extern "C"
10082 #endif
10083 char v4l1_open ();
10085 main ()
10087 return v4l1_open ();
10089 return 0;
10091 _ACEOF
10092 if ac_fn_c_try_link "$LINENO"; then :
10093 case "$LIBEXT" in
10094 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10095 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'` ;;
10096 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10097 esac
10099 rm -f core conftest.err conftest.$ac_objext \
10100 conftest$ac_exeext conftest.$ac_ext
10101 LIBS=$ac_check_soname_save_LIBS
10103 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10105 $as_echo "not found" >&6; }
10107 else
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10109 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10111 cat >>confdefs.h <<_ACEOF
10112 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10113 _ACEOF
10118 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10119 case "x$with_v4l" in
10120 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10121 xno) ;;
10122 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10123 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10124 esac
10127 if test "x$with_gphoto" != "xno"
10128 then
10129 ac_save_CPPFLAGS="$CPPFLAGS"
10130 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10131 set dummy gphoto2-config; ac_word=$2
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10133 $as_echo_n "checking for $ac_word... " >&6; }
10134 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10135 $as_echo_n "(cached) " >&6
10136 else
10137 if test -n "$gphoto2_devel"; then
10138 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10139 else
10140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141 for as_dir in $PATH
10143 IFS=$as_save_IFS
10144 test -z "$as_dir" && as_dir=.
10145 for ac_exec_ext in '' $ac_executable_extensions; do
10146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10147 ac_cv_prog_gphoto2_devel="gphoto2-config"
10148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10149 break 2
10151 done
10152 done
10153 IFS=$as_save_IFS
10155 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10158 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10159 if test -n "$gphoto2_devel"; then
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10161 $as_echo "$gphoto2_devel" >&6; }
10162 else
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; }
10168 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10169 set dummy gphoto2-port-config; ac_word=$2
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10171 $as_echo_n "checking for $ac_word... " >&6; }
10172 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10173 $as_echo_n "(cached) " >&6
10174 else
10175 if test -n "$gphoto2port_devel"; then
10176 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10177 else
10178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179 for as_dir in $PATH
10181 IFS=$as_save_IFS
10182 test -z "$as_dir" && as_dir=.
10183 for ac_exec_ext in '' $ac_executable_extensions; do
10184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10185 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10187 break 2
10189 done
10190 done
10191 IFS=$as_save_IFS
10193 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10196 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10197 if test -n "$gphoto2port_devel"; then
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10199 $as_echo "$gphoto2port_devel" >&6; }
10200 else
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202 $as_echo "no" >&6; }
10206 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10207 then
10208 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10209 ac_gphoto2_libs=""
10210 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10212 case "$i" in
10213 -L/usr/lib|-L/usr/lib64) ;;
10214 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10215 esac
10216 done
10217 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10219 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10220 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10221 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10223 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10224 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10225 $as_echo_n "(cached) " >&6
10226 else
10227 ac_check_lib_save_LIBS=$LIBS
10228 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10232 /* Override any GCC internal prototype to avoid an error.
10233 Use char because int might match the return type of a GCC
10234 builtin and then its argument prototype would still apply. */
10235 #ifdef __cplusplus
10236 extern "C"
10237 #endif
10238 char gp_camera_new ();
10240 main ()
10242 return gp_camera_new ();
10244 return 0;
10246 _ACEOF
10247 if ac_fn_c_try_link "$LINENO"; then :
10248 ac_cv_lib_gphoto2_gp_camera_new=yes
10249 else
10250 ac_cv_lib_gphoto2_gp_camera_new=no
10252 rm -f core conftest.err conftest.$ac_objext \
10253 conftest$ac_exeext conftest.$ac_ext
10254 LIBS=$ac_check_lib_save_LIBS
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10257 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10258 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10260 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10262 GPHOTO2LIBS="$ac_gphoto2_libs"
10264 GPHOTO2INCL="$ac_gphoto2_incl"
10271 CPPFLAGS="$ac_save_CPPFLAGS"
10273 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10274 case "x$with_gphoto" in
10275 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10276 xno) ;;
10277 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10278 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10279 esac
10283 if test "$ac_cv_header_resolv_h" = "yes"
10284 then
10285 ac_save_LIBS="$LIBS"
10286 for lib in '' -lresolv
10288 LIBS="$lib $ac_save_LIBS"
10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10291 #ifdef HAVE_NETINET_IN_H
10292 #include <netinet/in.h>
10293 #endif
10294 #include <resolv.h>
10296 main ()
10298 res_query("foo",ns_c_in,0,0,0);
10300 return 0;
10302 _ACEOF
10303 if ac_fn_c_try_link "$LINENO"; then :
10305 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10307 RESOLVLIBS="$lib"
10310 rm -f core conftest.err conftest.$ac_objext \
10311 conftest$ac_exeext conftest.$ac_ext
10312 if test "${RESOLVLIBS+set}" = set; then
10313 break
10315 done
10316 LIBS="$ac_save_LIBS"
10319 LCMSLIBS=""
10321 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10322 then
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10324 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10325 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10326 $as_echo_n "(cached) " >&6
10327 else
10328 ac_check_lib_save_LIBS=$LIBS
10329 LIBS="-llcms $LIBS"
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10333 /* Override any GCC internal prototype to avoid an error.
10334 Use char because int might match the return type of a GCC
10335 builtin and then its argument prototype would still apply. */
10336 #ifdef __cplusplus
10337 extern "C"
10338 #endif
10339 char cmsOpenProfileFromFile ();
10341 main ()
10343 return cmsOpenProfileFromFile ();
10345 return 0;
10347 _ACEOF
10348 if ac_fn_c_try_link "$LINENO"; then :
10349 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10350 else
10351 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10353 rm -f core conftest.err conftest.$ac_objext \
10354 conftest$ac_exeext conftest.$ac_ext
10355 LIBS=$ac_check_lib_save_LIBS
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10358 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10359 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10361 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10363 LCMSLIBS="-llcms"
10367 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10368 case "x$with_cms" in
10369 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10370 xno) ;;
10371 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10372 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10373 esac
10376 if test "x$with_freetype" != "xno"
10377 then
10378 for ac_prog in freetype-config freetype2-config
10380 # Extract the first word of "$ac_prog", so it can be a program name with args.
10381 set dummy $ac_prog; ac_word=$2
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383 $as_echo_n "checking for $ac_word... " >&6; }
10384 if ${ac_cv_prog_ft_devel+:} false; then :
10385 $as_echo_n "(cached) " >&6
10386 else
10387 if test -n "$ft_devel"; then
10388 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10389 else
10390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10391 for as_dir in $PATH
10393 IFS=$as_save_IFS
10394 test -z "$as_dir" && as_dir=.
10395 for ac_exec_ext in '' $ac_executable_extensions; do
10396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10397 ac_cv_prog_ft_devel="$ac_prog"
10398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10399 break 2
10401 done
10402 done
10403 IFS=$as_save_IFS
10407 ft_devel=$ac_cv_prog_ft_devel
10408 if test -n "$ft_devel"; then
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10410 $as_echo "$ft_devel" >&6; }
10411 else
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10413 $as_echo "no" >&6; }
10417 test -n "$ft_devel" && break
10418 done
10419 test -n "$ft_devel" || ft_devel="no"
10421 if test "$ft_devel" != "no"
10422 then
10423 ac_freetype_incl=`$ft_devel --cflags`
10424 ac_freetype_libs=`$ft_devel --libs`
10426 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10428 $as_echo_n "checking for -lfreetype... " >&6; }
10429 if ${ac_cv_lib_soname_freetype+:} false; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 ac_check_soname_save_LIBS=$LIBS
10433 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10437 /* Override any GCC internal prototype to avoid an error.
10438 Use char because int might match the return type of a GCC
10439 builtin and then its argument prototype would still apply. */
10440 #ifdef __cplusplus
10441 extern "C"
10442 #endif
10443 char FT_Init_FreeType ();
10445 main ()
10447 return FT_Init_FreeType ();
10449 return 0;
10451 _ACEOF
10452 if ac_fn_c_try_link "$LINENO"; then :
10453 case "$LIBEXT" in
10454 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10455 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'` ;;
10456 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10457 esac
10459 rm -f core conftest.err conftest.$ac_objext \
10460 conftest$ac_exeext conftest.$ac_ext
10461 LIBS=$ac_check_soname_save_LIBS
10463 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10465 $as_echo "not found" >&6; }
10466 ft_lib=no
10467 else
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10469 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10471 cat >>confdefs.h <<_ACEOF
10472 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10473 _ACEOF
10475 ft_lib=yes
10477 if test "$ft_lib" = "yes"
10478 then
10479 ac_save_CPPFLAGS="$CPPFLAGS"
10480 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10481 for ac_header in ft2build.h \
10482 freetype/freetype.h \
10483 freetype/ftglyph.h \
10484 freetype/fttypes.h \
10485 freetype/tttables.h \
10486 freetype/ftsnames.h \
10487 freetype/ttnameid.h \
10488 freetype/ftoutln.h \
10489 freetype/ftwinfnt.h \
10490 freetype/ftmodapi.h \
10491 freetype/ftlcdfil.h \
10492 freetype/internal/sfnt.h
10493 do :
10494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10495 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10496 # include <ft2build.h>
10497 #endif
10499 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10500 cat >>confdefs.h <<_ACEOF
10501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10502 _ACEOF
10506 done
10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10509 /* end confdefs.h. */
10510 #include <ft2build.h>
10511 #include <freetype/fttrigon.h>
10512 _ACEOF
10513 if ac_fn_c_try_cpp "$LINENO"; then :
10515 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10517 wine_cv_fttrigon=yes
10518 else
10519 wine_cv_fttrigon=no
10521 rm -f conftest.err conftest.i conftest.$ac_ext
10522 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10524 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10526 cat >>confdefs.h <<_ACEOF
10527 #define HAVE_FT_TRUETYPEENGINETYPE 1
10528 _ACEOF
10533 ac_save_CFLAGS="$CFLAGS"
10534 CFLAGS="$CFLAGS $ac_freetype_libs"
10535 for ac_func in FT_Load_Sfnt_Table
10536 do :
10537 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10538 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = xyes; then :
10539 cat >>confdefs.h <<_ACEOF
10540 #define HAVE_FT_LOAD_SFNT_TABLE 1
10541 _ACEOF
10544 done
10546 CFLAGS="$ac_save_CFLAGS"
10547 CPPFLAGS="$ac_save_CPPFLAGS"
10548 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10549 then
10551 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10553 FREETYPELIBS="$ac_freetype_libs"
10555 FREETYPEINCL="$ac_freetype_incl"
10560 if test "x$FREETYPELIBS" = "x"; then :
10561 case "x$with_freetype" in
10562 xno) ;;
10563 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10564 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10565 esac
10567 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10570 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10571 if ${ac_cv_c_ppdev+:} false; then :
10572 $as_echo_n "(cached) " >&6
10573 else
10574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10575 /* end confdefs.h. */
10576 #ifdef HAVE_SYS_IOCTL_H
10577 # include <sys/ioctl.h>
10578 #endif
10579 #include <linux/ppdev.h>
10581 main ()
10583 ioctl (1,PPCLAIM,0)
10585 return 0;
10587 _ACEOF
10588 if ac_fn_c_try_compile "$LINENO"; then :
10589 ac_cv_c_ppdev="yes"
10590 else
10591 ac_cv_c_ppdev="no"
10593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10596 $as_echo "$ac_cv_c_ppdev" >&6; }
10597 if test "$ac_cv_c_ppdev" = "yes"
10598 then
10600 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10604 ac_wine_check_funcs_save_LIBS="$LIBS"
10605 LIBS="$LIBS $LIBPTHREAD"
10606 for ac_func in \
10607 pthread_attr_get_np \
10608 pthread_getattr_np \
10609 pthread_get_stackaddr_np \
10610 pthread_get_stacksize_np
10611 do :
10612 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10613 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10614 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10615 cat >>confdefs.h <<_ACEOF
10616 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10617 _ACEOF
10620 done
10622 LIBS="$ac_wine_check_funcs_save_LIBS"
10624 if test "$ac_cv_header_zlib_h" = "yes"
10625 then
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10627 $as_echo_n "checking for inflate in -lz... " >&6; }
10628 if ${ac_cv_lib_z_inflate+:} false; then :
10629 $as_echo_n "(cached) " >&6
10630 else
10631 ac_check_lib_save_LIBS=$LIBS
10632 LIBS="-lz $LIBS"
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10636 /* Override any GCC internal prototype to avoid an error.
10637 Use char because int might match the return type of a GCC
10638 builtin and then its argument prototype would still apply. */
10639 #ifdef __cplusplus
10640 extern "C"
10641 #endif
10642 char inflate ();
10644 main ()
10646 return inflate ();
10648 return 0;
10650 _ACEOF
10651 if ac_fn_c_try_link "$LINENO"; then :
10652 ac_cv_lib_z_inflate=yes
10653 else
10654 ac_cv_lib_z_inflate=no
10656 rm -f core conftest.err conftest.$ac_objext \
10657 conftest$ac_exeext conftest.$ac_ext
10658 LIBS=$ac_check_lib_save_LIBS
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10661 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10662 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10664 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10666 ZLIB="-lz"
10671 if test "x$ZLIB" = "x"; then :
10672 case "x$with_zlib" in
10673 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10674 xno) ;;
10675 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10676 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10677 esac
10680 if test "x$enable_tools" != xno
10681 then
10682 if test "$ac_cv_header_gettext_po_h" = "yes"
10683 then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10685 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10686 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10687 $as_echo_n "(cached) " >&6
10688 else
10689 ac_check_lib_save_LIBS=$LIBS
10690 LIBS="-lgettextpo $LIBS"
10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h. */
10694 /* Override any GCC internal prototype to avoid an error.
10695 Use char because int might match the return type of a GCC
10696 builtin and then its argument prototype would still apply. */
10697 #ifdef __cplusplus
10698 extern "C"
10699 #endif
10700 char po_message_msgctxt ();
10702 main ()
10704 return po_message_msgctxt ();
10706 return 0;
10708 _ACEOF
10709 if ac_fn_c_try_link "$LINENO"; then :
10710 ac_cv_lib_gettextpo_po_message_msgctxt=yes
10711 else
10712 ac_cv_lib_gettextpo_po_message_msgctxt=no
10714 rm -f core conftest.err conftest.$ac_objext \
10715 conftest$ac_exeext conftest.$ac_ext
10716 LIBS=$ac_check_lib_save_LIBS
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10719 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10720 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10722 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10724 LIBGETTEXTPO="-lgettextpo"
10729 if test "x$LIBGETTEXTPO" = "x"; then :
10730 case "x$with_gettextpo" in
10731 x) as_fn_append wine_warnings "|GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported." ;;
10732 xno) ;;
10733 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported.
10734 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10735 esac
10739 if test "x$with_esd" != xno
10740 then
10741 save_CFLAGS="$CFLAGS"
10742 # Extract the first word of "esd-config", so it can be a program name with args.
10743 set dummy esd-config; ac_word=$2
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10745 $as_echo_n "checking for $ac_word... " >&6; }
10746 if ${ac_cv_path_ESDCONFIG+:} false; then :
10747 $as_echo_n "(cached) " >&6
10748 else
10749 case $ESDCONFIG in
10750 [\\/]* | ?:[\\/]*)
10751 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10761 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10763 break 2
10765 done
10766 done
10767 IFS=$as_save_IFS
10769 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10771 esac
10773 ESDCONFIG=$ac_cv_path_ESDCONFIG
10774 if test -n "$ESDCONFIG"; then
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10776 $as_echo "$ESDCONFIG" >&6; }
10777 else
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779 $as_echo "no" >&6; }
10783 if test "x$ESDCONFIG" != "xno"
10784 then
10785 ac_esd_incl=""
10786 for i in `$ESDCONFIG --cflags`
10788 case "$i" in
10789 -I*) ac_esd_incl="$ac_esd_incl $i";;
10790 esac
10791 done
10792 ac_esd_libs=`$ESDCONFIG --libs`
10793 CFLAGS="$CFLAGS $ac_esd_incl"
10795 ac_esd_libs=${ac_esd_libs:-"-lesd"}
10796 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10797 if test "x$ac_cv_header_esd_h" = xyes; then :
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10799 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10800 if ${ac_cv_lib_esd_esd_open_sound+:} false; then :
10801 $as_echo_n "(cached) " >&6
10802 else
10803 ac_check_lib_save_LIBS=$LIBS
10804 LIBS="-lesd $ac_esd_libs $LIBS"
10805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h. */
10808 /* Override any GCC internal prototype to avoid an error.
10809 Use char because int might match the return type of a GCC
10810 builtin and then its argument prototype would still apply. */
10811 #ifdef __cplusplus
10812 extern "C"
10813 #endif
10814 char esd_open_sound ();
10816 main ()
10818 return esd_open_sound ();
10820 return 0;
10822 _ACEOF
10823 if ac_fn_c_try_link "$LINENO"; then :
10824 ac_cv_lib_esd_esd_open_sound=yes
10825 else
10826 ac_cv_lib_esd_esd_open_sound=no
10828 rm -f core conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10830 LIBS=$ac_check_lib_save_LIBS
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10833 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10834 if test "x$ac_cv_lib_esd_esd_open_sound" = xyes; then :
10835 ESDINCL="$ac_esd_incl"
10837 ESDLIBS="$ac_esd_libs"
10844 CFLAGS="$save_CFLAGS"
10847 if test "x$with_gstreamer" != "xno"
10848 then
10849 ac_save_CPPFLAGS="$CPPFLAGS"
10850 if test "$PKG_CONFIG" != "false"; then
10851 ac_gst_incl=""
10852 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10854 case "$i" in
10855 -I*) ac_gst_incl="$ac_gst_incl $i";;
10856 esac
10857 done
10858 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10859 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10860 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10861 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10862 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10863 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10865 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10866 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10867 $as_echo_n "(cached) " >&6
10868 else
10869 ac_check_lib_save_LIBS=$LIBS
10870 LIBS="-lgstreamer-0.10 $LIBS"
10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h. */
10874 /* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
10877 #ifdef __cplusplus
10878 extern "C"
10879 #endif
10880 char gst_pad_get_caps_reffed ();
10882 main ()
10884 return gst_pad_get_caps_reffed ();
10886 return 0;
10888 _ACEOF
10889 if ac_fn_c_try_link "$LINENO"; then :
10890 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10891 else
10892 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10894 rm -f core conftest.err conftest.$ac_objext \
10895 conftest$ac_exeext conftest.$ac_ext
10896 LIBS=$ac_check_lib_save_LIBS
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10899 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10900 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10902 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10903 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10904 $as_echo_n "(cached) " >&6
10905 else
10906 ac_check_lib_save_LIBS=$LIBS
10907 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h. */
10911 /* Override any GCC internal prototype to avoid an error.
10912 Use char because int might match the return type of a GCC
10913 builtin and then its argument prototype would still apply. */
10914 #ifdef __cplusplus
10915 extern "C"
10916 #endif
10917 char gst_app_buffer_new ();
10919 main ()
10921 return gst_app_buffer_new ();
10923 return 0;
10925 _ACEOF
10926 if ac_fn_c_try_link "$LINENO"; then :
10927 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10928 else
10929 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10931 rm -f core conftest.err conftest.$ac_objext \
10932 conftest$ac_exeext conftest.$ac_ext
10933 LIBS=$ac_check_lib_save_LIBS
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10936 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10937 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10938 GSTREAMER_LIBS="$ac_gst_libs"
10940 GSTREAMER_INCL="$ac_gst_incl"
10953 CPPFLAGS="$ac_save_CPPFLAGS"
10955 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10956 case "x$with_gstreamer" in
10957 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10958 xno) ;;
10959 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10960 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10961 esac
10963 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10965 ALSALIBS=""
10967 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10968 then
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10970 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10971 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10972 $as_echo_n "(cached) " >&6
10973 else
10974 ac_check_lib_save_LIBS=$LIBS
10975 LIBS="-lasound $LIBS"
10976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10977 /* end confdefs.h. */
10979 /* Override any GCC internal prototype to avoid an error.
10980 Use char because int might match the return type of a GCC
10981 builtin and then its argument prototype would still apply. */
10982 #ifdef __cplusplus
10983 extern "C"
10984 #endif
10985 char snd_pcm_hw_params_get_access_mask ();
10987 main ()
10989 return snd_pcm_hw_params_get_access_mask ();
10991 return 0;
10993 _ACEOF
10994 if ac_fn_c_try_link "$LINENO"; then :
10995 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10996 else
10997 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10999 rm -f core conftest.err conftest.$ac_objext \
11000 conftest$ac_exeext conftest.$ac_ext
11001 LIBS=$ac_check_lib_save_LIBS
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
11004 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
11005 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11008 #ifdef HAVE_ALSA_ASOUNDLIB_H
11009 #include <alsa/asoundlib.h>
11010 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11011 #include <sys/asoundlib.h>
11012 #endif
11014 main ()
11016 int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL)
11018 return 0;
11020 _ACEOF
11021 if ac_fn_c_try_compile "$LINENO"; then :
11022 ALSALIBS="-lasound"
11024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11029 if test "x$with_oss" != xno
11030 then
11031 ac_save_CPPFLAGS="$CPPFLAGS"
11032 if test -f /etc/oss.conf
11033 then
11034 . /etc/oss.conf
11036 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
11037 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
11038 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11039 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
11040 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
11042 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
11044 cat >>confdefs.h <<_ACEOF
11045 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
11046 _ACEOF
11048 OSS4INCL="$ac_oss_incl"
11055 CPPFLAGS="$ac_save_CPPFLAGS"
11056 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
11057 then
11058 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
11063 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
11064 then
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
11066 $as_echo_n "checking for -lcapi20... " >&6; }
11067 if ${ac_cv_lib_soname_capi20+:} false; then :
11068 $as_echo_n "(cached) " >&6
11069 else
11070 ac_check_soname_save_LIBS=$LIBS
11071 LIBS="-lcapi20 $LIBS"
11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11075 /* Override any GCC internal prototype to avoid an error.
11076 Use char because int might match the return type of a GCC
11077 builtin and then its argument prototype would still apply. */
11078 #ifdef __cplusplus
11079 extern "C"
11080 #endif
11081 char capi20_register ();
11083 main ()
11085 return capi20_register ();
11087 return 0;
11089 _ACEOF
11090 if ac_fn_c_try_link "$LINENO"; then :
11091 case "$LIBEXT" in
11092 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11093 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'` ;;
11094 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11095 esac
11097 rm -f core conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
11099 LIBS=$ac_check_soname_save_LIBS
11101 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11103 $as_echo "not found" >&6; }
11105 else
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11107 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11109 cat >>confdefs.h <<_ACEOF
11110 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11111 _ACEOF
11116 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11117 case "x$with_capi" in
11118 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11119 xno) ;;
11120 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11121 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11122 esac
11125 CUPSINCL=""
11127 if test "x$with_cups" != "xno"
11128 then
11129 ac_save_CPPFLAGS="$CPPFLAGS"
11130 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11131 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11132 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11133 for ac_header in cups/cups.h
11134 do :
11135 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11136 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11137 cat >>confdefs.h <<_ACEOF
11138 #define HAVE_CUPS_CUPS_H 1
11139 _ACEOF
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11141 $as_echo_n "checking for -lcups... " >&6; }
11142 if ${ac_cv_lib_soname_cups+:} false; then :
11143 $as_echo_n "(cached) " >&6
11144 else
11145 ac_check_soname_save_LIBS=$LIBS
11146 LIBS="-lcups $ac_cups_libs $LIBS"
11147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11150 /* Override any GCC internal prototype to avoid an error.
11151 Use char because int might match the return type of a GCC
11152 builtin and then its argument prototype would still apply. */
11153 #ifdef __cplusplus
11154 extern "C"
11155 #endif
11156 char cupsGetDefault ();
11158 main ()
11160 return cupsGetDefault ();
11162 return 0;
11164 _ACEOF
11165 if ac_fn_c_try_link "$LINENO"; then :
11166 case "$LIBEXT" in
11167 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11168 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'` ;;
11169 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11170 esac
11172 rm -f core conftest.err conftest.$ac_objext \
11173 conftest$ac_exeext conftest.$ac_ext
11174 LIBS=$ac_check_soname_save_LIBS
11176 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11178 $as_echo "not found" >&6; }
11180 else
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11182 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11184 cat >>confdefs.h <<_ACEOF
11185 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11186 _ACEOF
11188 CUPSINCL="$ac_cups_cflags"
11192 done
11194 CPPFLAGS="$ac_save_CPPFLAGS"
11196 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11197 case "x$with_cups" in
11198 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11199 xno) ;;
11200 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11201 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11202 esac
11205 if test "$ac_cv_header_jack_jack_h" = "yes"
11206 then
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
11208 $as_echo_n "checking for -ljack... " >&6; }
11209 if ${ac_cv_lib_soname_jack+:} false; then :
11210 $as_echo_n "(cached) " >&6
11211 else
11212 ac_check_soname_save_LIBS=$LIBS
11213 LIBS="-ljack $LIBS"
11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11217 /* Override any GCC internal prototype to avoid an error.
11218 Use char because int might match the return type of a GCC
11219 builtin and then its argument prototype would still apply. */
11220 #ifdef __cplusplus
11221 extern "C"
11222 #endif
11223 char jack_client_new ();
11225 main ()
11227 return jack_client_new ();
11229 return 0;
11231 _ACEOF
11232 if ac_fn_c_try_link "$LINENO"; then :
11233 case "$LIBEXT" in
11234 dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11235 dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack-*[0-9.]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack-*[0-9.]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11236 *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack-*[0-9.]*\\.$LIBEXT" | sed -e "s/^.*\(libjack-*[0-9.]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11237 esac
11239 rm -f core conftest.err conftest.$ac_objext \
11240 conftest$ac_exeext conftest.$ac_ext
11241 LIBS=$ac_check_soname_save_LIBS
11243 if test "x$ac_cv_lib_soname_jack" = "x"; then :
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11245 $as_echo "not found" >&6; }
11247 else
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
11249 $as_echo "$ac_cv_lib_soname_jack" >&6; }
11251 cat >>confdefs.h <<_ACEOF
11252 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
11253 _ACEOF
11259 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11260 then
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11262 $as_echo_n "checking for -lfontconfig... " >&6; }
11263 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11264 $as_echo_n "(cached) " >&6
11265 else
11266 ac_check_soname_save_LIBS=$LIBS
11267 LIBS="-lfontconfig $LIBS"
11268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11269 /* end confdefs.h. */
11271 /* Override any GCC internal prototype to avoid an error.
11272 Use char because int might match the return type of a GCC
11273 builtin and then its argument prototype would still apply. */
11274 #ifdef __cplusplus
11275 extern "C"
11276 #endif
11277 char FcInit ();
11279 main ()
11281 return FcInit ();
11283 return 0;
11285 _ACEOF
11286 if ac_fn_c_try_link "$LINENO"; then :
11287 case "$LIBEXT" in
11288 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11289 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'` ;;
11290 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11291 esac
11293 rm -f core conftest.err conftest.$ac_objext \
11294 conftest$ac_exeext conftest.$ac_ext
11295 LIBS=$ac_check_soname_save_LIBS
11297 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11299 $as_echo "not found" >&6; }
11301 else
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11303 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11305 cat >>confdefs.h <<_ACEOF
11306 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11307 _ACEOF
11311 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11312 then
11313 ac_save_CPPFLAGS="$CPPFLAGS"
11314 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11315 $as_unset ac_cv_header_fontconfig_fontconfig_h
11316 for ac_header in fontconfig/fontconfig.h
11317 do :
11318 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11319 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11320 cat >>confdefs.h <<_ACEOF
11321 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11322 _ACEOF
11326 done
11328 CPPFLAGS="$ac_save_CPPFLAGS"
11329 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11330 then
11331 FONTCONFIGINCL="$X_CFLAGS"
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11334 $as_echo_n "checking for -lfontconfig... " >&6; }
11335 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11336 $as_echo_n "(cached) " >&6
11337 else
11338 ac_check_soname_save_LIBS=$LIBS
11339 LIBS="-lfontconfig $X_LIBS $LIBS"
11340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h. */
11343 /* Override any GCC internal prototype to avoid an error.
11344 Use char because int might match the return type of a GCC
11345 builtin and then its argument prototype would still apply. */
11346 #ifdef __cplusplus
11347 extern "C"
11348 #endif
11349 char FcInit ();
11351 main ()
11353 return FcInit ();
11355 return 0;
11357 _ACEOF
11358 if ac_fn_c_try_link "$LINENO"; then :
11359 case "$LIBEXT" in
11360 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11361 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'` ;;
11362 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11363 esac
11365 rm -f core conftest.err conftest.$ac_objext \
11366 conftest$ac_exeext conftest.$ac_ext
11367 LIBS=$ac_check_soname_save_LIBS
11369 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11371 $as_echo "not found" >&6; }
11373 else
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11375 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11377 cat >>confdefs.h <<_ACEOF
11378 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11379 _ACEOF
11385 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11386 case "x$with_fontconfig" in
11387 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11388 xno) ;;
11389 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11390 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11391 esac
11394 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11395 then
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11397 $as_echo_n "checking for -lssl... " >&6; }
11398 if ${ac_cv_lib_soname_ssl+:} false; then :
11399 $as_echo_n "(cached) " >&6
11400 else
11401 ac_check_soname_save_LIBS=$LIBS
11402 LIBS="-lssl $LIBS"
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h. */
11406 /* Override any GCC internal prototype to avoid an error.
11407 Use char because int might match the return type of a GCC
11408 builtin and then its argument prototype would still apply. */
11409 #ifdef __cplusplus
11410 extern "C"
11411 #endif
11412 char SSL_library_init ();
11414 main ()
11416 return SSL_library_init ();
11418 return 0;
11420 _ACEOF
11421 if ac_fn_c_try_link "$LINENO"; then :
11422 case "$LIBEXT" in
11423 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11424 dylib) ac_cv_lib_soname_ssl=`otool -L conftest$ac_exeext | grep "libssl\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libssl\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11425 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11426 esac
11428 rm -f core conftest.err conftest.$ac_objext \
11429 conftest$ac_exeext conftest.$ac_ext
11430 LIBS=$ac_check_soname_save_LIBS
11432 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11434 $as_echo "not found" >&6; }
11436 else
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11438 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11440 cat >>confdefs.h <<_ACEOF
11441 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11442 _ACEOF
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11447 $as_echo_n "checking for -lcrypto... " >&6; }
11448 if ${ac_cv_lib_soname_crypto+:} false; then :
11449 $as_echo_n "(cached) " >&6
11450 else
11451 ac_check_soname_save_LIBS=$LIBS
11452 LIBS="-lcrypto $LIBS"
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h. */
11456 /* Override any GCC internal prototype to avoid an error.
11457 Use char because int might match the return type of a GCC
11458 builtin and then its argument prototype would still apply. */
11459 #ifdef __cplusplus
11460 extern "C"
11461 #endif
11462 char BIO_new_socket ();
11464 main ()
11466 return BIO_new_socket ();
11468 return 0;
11470 _ACEOF
11471 if ac_fn_c_try_link "$LINENO"; then :
11472 case "$LIBEXT" in
11473 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11474 dylib) ac_cv_lib_soname_crypto=`otool -L conftest$ac_exeext | grep "libcrypto\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcrypto\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11475 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11476 esac
11478 rm -f core conftest.err conftest.$ac_objext \
11479 conftest$ac_exeext conftest.$ac_ext
11480 LIBS=$ac_check_soname_save_LIBS
11482 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11484 $as_echo "not found" >&6; }
11486 else
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11488 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11490 cat >>confdefs.h <<_ACEOF
11491 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11492 _ACEOF
11497 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11498 case "x$with_openssl" in
11499 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11500 xno) ;;
11501 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11502 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11503 esac
11506 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11507 then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11509 $as_echo_n "checking for -lgsm... " >&6; }
11510 if ${ac_cv_lib_soname_gsm+:} false; then :
11511 $as_echo_n "(cached) " >&6
11512 else
11513 ac_check_soname_save_LIBS=$LIBS
11514 LIBS="-lgsm $LIBS"
11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h. */
11518 /* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
11521 #ifdef __cplusplus
11522 extern "C"
11523 #endif
11524 char gsm_create ();
11526 main ()
11528 return gsm_create ();
11530 return 0;
11532 _ACEOF
11533 if ac_fn_c_try_link "$LINENO"; then :
11534 case "$LIBEXT" in
11535 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11536 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'` ;;
11537 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11538 esac
11540 rm -f core conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext conftest.$ac_ext
11542 LIBS=$ac_check_soname_save_LIBS
11544 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11546 $as_echo "not found" >&6; }
11548 else
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11550 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11552 cat >>confdefs.h <<_ACEOF
11553 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11554 _ACEOF
11559 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11560 case "x$with_gsm" in
11561 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11562 xno) ;;
11563 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11564 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11565 esac
11568 if test "$ac_cv_header_jpeglib_h" = "yes"
11569 then
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11571 $as_echo_n "checking for -ljpeg... " >&6; }
11572 if ${ac_cv_lib_soname_jpeg+:} false; then :
11573 $as_echo_n "(cached) " >&6
11574 else
11575 ac_check_soname_save_LIBS=$LIBS
11576 LIBS="-ljpeg $LIBS"
11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11580 /* Override any GCC internal prototype to avoid an error.
11581 Use char because int might match the return type of a GCC
11582 builtin and then its argument prototype would still apply. */
11583 #ifdef __cplusplus
11584 extern "C"
11585 #endif
11586 char jpeg_start_decompress ();
11588 main ()
11590 return jpeg_start_decompress ();
11592 return 0;
11594 _ACEOF
11595 if ac_fn_c_try_link "$LINENO"; then :
11596 case "$LIBEXT" in
11597 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11598 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'` ;;
11599 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11600 esac
11602 rm -f core conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext conftest.$ac_ext
11604 LIBS=$ac_check_soname_save_LIBS
11606 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11608 $as_echo "not found" >&6; }
11610 else
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11612 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11614 cat >>confdefs.h <<_ACEOF
11615 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11616 _ACEOF
11621 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11622 case "x$with_jpeg" in
11623 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11624 xno) ;;
11625 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11626 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11627 esac
11630 if test "$ac_cv_header_png_h" = "yes"
11631 then
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11633 $as_echo_n "checking for -lpng... " >&6; }
11634 if ${ac_cv_lib_soname_png+:} false; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 ac_check_soname_save_LIBS=$LIBS
11638 LIBS="-lpng -lm -lz $LIBS"
11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11642 /* Override any GCC internal prototype to avoid an error.
11643 Use char because int might match the return type of a GCC
11644 builtin and then its argument prototype would still apply. */
11645 #ifdef __cplusplus
11646 extern "C"
11647 #endif
11648 char png_create_read_struct ();
11650 main ()
11652 return png_create_read_struct ();
11654 return 0;
11656 _ACEOF
11657 if ac_fn_c_try_link "$LINENO"; then :
11658 case "$LIBEXT" in
11659 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11660 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'` ;;
11661 *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11662 esac
11664 rm -f core conftest.err conftest.$ac_objext \
11665 conftest$ac_exeext conftest.$ac_ext
11666 LIBS=$ac_check_soname_save_LIBS
11668 if test "x$ac_cv_lib_soname_png" = "x"; then :
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11670 $as_echo "not found" >&6; }
11672 else
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11674 $as_echo "$ac_cv_lib_soname_png" >&6; }
11676 cat >>confdefs.h <<_ACEOF
11677 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11678 _ACEOF
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11683 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11684 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11685 $as_echo_n "(cached) " >&6
11686 else
11687 ac_check_lib_save_LIBS=$LIBS
11688 LIBS="-lpng -lm -lz $LIBS"
11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11692 /* Override any GCC internal prototype to avoid an error.
11693 Use char because int might match the return type of a GCC
11694 builtin and then its argument prototype would still apply. */
11695 #ifdef __cplusplus
11696 extern "C"
11697 #endif
11698 char png_set_expand_gray_1_2_4_to_8 ();
11700 main ()
11702 return png_set_expand_gray_1_2_4_to_8 ();
11704 return 0;
11706 _ACEOF
11707 if ac_fn_c_try_link "$LINENO"; then :
11708 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11709 else
11710 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11712 rm -f core conftest.err conftest.$ac_objext \
11713 conftest$ac_exeext conftest.$ac_ext
11714 LIBS=$ac_check_lib_save_LIBS
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11717 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11718 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11720 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11725 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11726 then
11727 ac_save_CPPFLAGS="$CPPFLAGS"
11728 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11729 $as_unset ac_cv_header_png_h
11730 for ac_header in png.h
11731 do :
11732 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11733 if test "x$ac_cv_header_png_h" = xyes; then :
11734 cat >>confdefs.h <<_ACEOF
11735 #define HAVE_PNG_H 1
11736 _ACEOF
11740 done
11742 CPPFLAGS="$ac_save_CPPFLAGS"
11743 if test "$ac_cv_header_png_h" = "yes"
11744 then
11745 PNGINCL="$X_CFLAGS"
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11748 $as_echo_n "checking for -lpng... " >&6; }
11749 if ${ac_cv_lib_soname_png+:} false; then :
11750 $as_echo_n "(cached) " >&6
11751 else
11752 ac_check_soname_save_LIBS=$LIBS
11753 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h. */
11757 /* Override any GCC internal prototype to avoid an error.
11758 Use char because int might match the return type of a GCC
11759 builtin and then its argument prototype would still apply. */
11760 #ifdef __cplusplus
11761 extern "C"
11762 #endif
11763 char png_create_read_struct ();
11765 main ()
11767 return png_create_read_struct ();
11769 return 0;
11771 _ACEOF
11772 if ac_fn_c_try_link "$LINENO"; then :
11773 case "$LIBEXT" in
11774 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11775 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'` ;;
11776 *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11777 esac
11779 rm -f core conftest.err conftest.$ac_objext \
11780 conftest$ac_exeext conftest.$ac_ext
11781 LIBS=$ac_check_soname_save_LIBS
11783 if test "x$ac_cv_lib_soname_png" = "x"; then :
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11785 $as_echo "not found" >&6; }
11787 else
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11789 $as_echo "$ac_cv_lib_soname_png" >&6; }
11791 cat >>confdefs.h <<_ACEOF
11792 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11793 _ACEOF
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11798 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11799 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 ac_check_lib_save_LIBS=$LIBS
11803 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11807 /* Override any GCC internal prototype to avoid an error.
11808 Use char because int might match the return type of a GCC
11809 builtin and then its argument prototype would still apply. */
11810 #ifdef __cplusplus
11811 extern "C"
11812 #endif
11813 char png_set_expand_gray_1_2_4_to_8 ();
11815 main ()
11817 return png_set_expand_gray_1_2_4_to_8 ();
11819 return 0;
11821 _ACEOF
11822 if ac_fn_c_try_link "$LINENO"; then :
11823 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11824 else
11825 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11827 rm -f core conftest.err conftest.$ac_objext \
11828 conftest$ac_exeext conftest.$ac_ext
11829 LIBS=$ac_check_lib_save_LIBS
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11832 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11833 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11834 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11840 if test "x$ac_cv_lib_soname_png" = "x"; then :
11841 case "x$with_png" in
11842 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11843 xno) ;;
11844 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11845 This is an error since --with-png was requested." "$LINENO" 5 ;;
11846 esac
11849 if test "$ac_cv_header_tiffio_h" = "yes"
11850 then
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11852 $as_echo_n "checking for -ltiff... " >&6; }
11853 if ${ac_cv_lib_soname_tiff+:} false; then :
11854 $as_echo_n "(cached) " >&6
11855 else
11856 ac_check_soname_save_LIBS=$LIBS
11857 LIBS="-ltiff $LIBS"
11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11861 /* Override any GCC internal prototype to avoid an error.
11862 Use char because int might match the return type of a GCC
11863 builtin and then its argument prototype would still apply. */
11864 #ifdef __cplusplus
11865 extern "C"
11866 #endif
11867 char TIFFClientOpen ();
11869 main ()
11871 return TIFFClientOpen ();
11873 return 0;
11875 _ACEOF
11876 if ac_fn_c_try_link "$LINENO"; then :
11877 case "$LIBEXT" in
11878 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11879 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'` ;;
11880 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11881 esac
11883 rm -f core conftest.err conftest.$ac_objext \
11884 conftest$ac_exeext conftest.$ac_ext
11885 LIBS=$ac_check_soname_save_LIBS
11887 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11889 $as_echo "not found" >&6; }
11891 else
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11893 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11895 cat >>confdefs.h <<_ACEOF
11896 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11897 _ACEOF
11902 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11903 case "x$with_tiff" in
11904 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11905 xno) ;;
11906 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11907 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11908 esac
11911 if test "$ac_cv_header_mpg123_h" = "yes"
11912 then
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11914 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11915 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11916 $as_echo_n "(cached) " >&6
11917 else
11918 ac_check_lib_save_LIBS=$LIBS
11919 LIBS="-lmpg123 $LIBS"
11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11923 /* Override any GCC internal prototype to avoid an error.
11924 Use char because int might match the return type of a GCC
11925 builtin and then its argument prototype would still apply. */
11926 #ifdef __cplusplus
11927 extern "C"
11928 #endif
11929 char mpg123_feed ();
11931 main ()
11933 return mpg123_feed ();
11935 return 0;
11937 _ACEOF
11938 if ac_fn_c_try_link "$LINENO"; then :
11939 ac_cv_lib_mpg123_mpg123_feed=yes
11940 else
11941 ac_cv_lib_mpg123_mpg123_feed=no
11943 rm -f core conftest.err conftest.$ac_objext \
11944 conftest$ac_exeext conftest.$ac_ext
11945 LIBS=$ac_check_lib_save_LIBS
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11948 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11949 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11950 LIBMPG123="-lmpg123"
11955 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11956 case "x$with_mpg123" in
11957 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11958 xno) ;;
11959 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11960 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11961 esac
11963 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}
11965 if test "$ac_cv_header_AL_al_h" = "yes"
11966 then
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11968 $as_echo_n "checking for -lopenal... " >&6; }
11969 if ${ac_cv_lib_soname_openal+:} false; then :
11970 $as_echo_n "(cached) " >&6
11971 else
11972 ac_check_soname_save_LIBS=$LIBS
11973 LIBS="-lopenal $LIBS"
11974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975 /* end confdefs.h. */
11977 /* Override any GCC internal prototype to avoid an error.
11978 Use char because int might match the return type of a GCC
11979 builtin and then its argument prototype would still apply. */
11980 #ifdef __cplusplus
11981 extern "C"
11982 #endif
11983 char alGetSource3i ();
11985 main ()
11987 return alGetSource3i ();
11989 return 0;
11991 _ACEOF
11992 if ac_fn_c_try_link "$LINENO"; then :
11993 case "$LIBEXT" in
11994 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11995 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'` ;;
11996 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11997 esac
11999 rm -f core conftest.err conftest.$ac_objext \
12000 conftest$ac_exeext conftest.$ac_ext
12001 LIBS=$ac_check_soname_save_LIBS
12003 if test "x$ac_cv_lib_soname_openal" = "x"; then :
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12005 $as_echo "not found" >&6; }
12007 else
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
12009 $as_echo "$ac_cv_lib_soname_openal" >&6; }
12011 cat >>confdefs.h <<_ACEOF
12012 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
12013 _ACEOF
12015 LIBOPENAL="-lopenal"
12017 ac_cv_lib_openal=yes
12019 cat >>confdefs.h <<_ACEOF
12020 #define HAVE_OPENAL 1
12021 _ACEOF
12025 if test "x$ac_cv_lib_openal" != xyes; then :
12026 case "x$with_openal" in
12027 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
12028 xno) ;;
12029 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
12030 This is an error since --with-openal was requested." "$LINENO" 5 ;;
12031 esac
12033 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
12035 if test "$ac_cv_header_kstat_h" = "yes"
12036 then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12038 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12039 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12040 $as_echo_n "(cached) " >&6
12041 else
12042 ac_check_lib_save_LIBS=$LIBS
12043 LIBS="-lkstat $LIBS"
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12047 /* Override any GCC internal prototype to avoid an error.
12048 Use char because int might match the return type of a GCC
12049 builtin and then its argument prototype would still apply. */
12050 #ifdef __cplusplus
12051 extern "C"
12052 #endif
12053 char kstat_open ();
12055 main ()
12057 return kstat_open ();
12059 return 0;
12061 _ACEOF
12062 if ac_fn_c_try_link "$LINENO"; then :
12063 ac_cv_lib_kstat_kstat_open=yes
12064 else
12065 ac_cv_lib_kstat_kstat_open=no
12067 rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12069 LIBS=$ac_check_lib_save_LIBS
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12072 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12073 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12075 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12077 LIBKSTAT="-lkstat"
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12084 $as_echo_n "checking for -lodbc... " >&6; }
12085 if ${ac_cv_lib_soname_odbc+:} false; then :
12086 $as_echo_n "(cached) " >&6
12087 else
12088 ac_check_soname_save_LIBS=$LIBS
12089 LIBS="-lodbc $LIBS"
12090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091 /* end confdefs.h. */
12093 /* Override any GCC internal prototype to avoid an error.
12094 Use char because int might match the return type of a GCC
12095 builtin and then its argument prototype would still apply. */
12096 #ifdef __cplusplus
12097 extern "C"
12098 #endif
12099 char SQLConnect ();
12101 main ()
12103 return SQLConnect ();
12105 return 0;
12107 _ACEOF
12108 if ac_fn_c_try_link "$LINENO"; then :
12109 case "$LIBEXT" in
12110 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12111 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'` ;;
12112 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
12113 esac
12115 rm -f core conftest.err conftest.$ac_objext \
12116 conftest$ac_exeext conftest.$ac_ext
12117 LIBS=$ac_check_soname_save_LIBS
12119 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12121 $as_echo "not found" >&6; }
12122 cat >>confdefs.h <<_ACEOF
12123 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12124 _ACEOF
12126 else
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12128 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12130 cat >>confdefs.h <<_ACEOF
12131 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12132 _ACEOF
12137 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12138 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12139 test -n "$NASLIBS" || enable_winenas_drv=${enable_winenas_drv:-no}
12140 test -n "$ESDLIBS" || enable_wineesd_drv=${enable_wineesd_drv:-no}
12141 test -n "$ac_cv_lib_soname_jack" || enable_winejack_drv=${enable_winejack_drv:-no}
12142 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
12143 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12145 if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
12146 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
12147 "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono
12148 then
12149 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12153 EXTRACFLAGS=""
12155 if test "x${GCC}" = "xyes"
12156 then
12157 EXTRACFLAGS="-Wall -pipe"
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12160 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12161 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 if test "$cross_compiling" = yes; then :
12165 ac_cv_c_gcc_strength_bug="yes"
12166 else
12167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h. */
12169 int L[4] = {0,1,2,3};
12171 main ()
12173 static int Array[3];
12174 unsigned int B = 3;
12175 int i;
12176 for(i=0; i<B; i++) Array[i] = i - 3;
12177 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12178 L[i] = 4;
12179 return (Array[1] != -2 || L[2] != 3)
12181 return 0;
12183 _ACEOF
12184 if ac_fn_c_try_run "$LINENO"; then :
12185 ac_cv_c_gcc_strength_bug="no"
12186 else
12187 ac_cv_c_gcc_strength_bug="yes"
12189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12190 conftest.$ac_objext conftest.beam conftest.$ac_ext
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12195 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12196 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12197 then
12198 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12202 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12203 if ${ac_cv_cflags__fno_builtin+:} false; then :
12204 $as_echo_n "(cached) " >&6
12205 else
12206 ac_wine_try_cflags_saved=$CFLAGS
12207 CFLAGS="$CFLAGS -fno-builtin"
12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209 /* end confdefs.h. */
12210 int main(int argc, char **argv) { return 0; }
12211 _ACEOF
12212 if ac_fn_c_try_link "$LINENO"; then :
12213 ac_cv_cflags__fno_builtin=yes
12214 else
12215 ac_cv_cflags__fno_builtin=no
12217 rm -f core conftest.err conftest.$ac_objext \
12218 conftest$ac_exeext conftest.$ac_ext
12219 CFLAGS=$ac_wine_try_cflags_saved
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12222 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12223 if test $ac_cv_cflags__fno_builtin = yes; then :
12224 BUILTINFLAG="-fno-builtin"
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12228 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12229 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12230 $as_echo_n "(cached) " >&6
12231 else
12232 ac_wine_try_cflags_saved=$CFLAGS
12233 CFLAGS="$CFLAGS -fno-strict-aliasing"
12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12236 int main(int argc, char **argv) { return 0; }
12237 _ACEOF
12238 if ac_fn_c_try_link "$LINENO"; then :
12239 ac_cv_cflags__fno_strict_aliasing=yes
12240 else
12241 ac_cv_cflags__fno_strict_aliasing=no
12243 rm -f core conftest.err conftest.$ac_objext \
12244 conftest$ac_exeext conftest.$ac_ext
12245 CFLAGS=$ac_wine_try_cflags_saved
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12248 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12249 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12250 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12253 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12254 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12255 $as_echo_n "(cached) " >&6
12256 else
12257 ac_wine_try_cflags_saved=$CFLAGS
12258 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12261 int main(int argc, char **argv) { return 0; }
12262 _ACEOF
12263 if ac_fn_c_try_link "$LINENO"; then :
12264 ac_cv_cflags__Wdeclaration_after_statement=yes
12265 else
12266 ac_cv_cflags__Wdeclaration_after_statement=no
12268 rm -f core conftest.err conftest.$ac_objext \
12269 conftest$ac_exeext conftest.$ac_ext
12270 CFLAGS=$ac_wine_try_cflags_saved
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12273 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12274 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12275 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12278 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12279 if ${ac_cv_cflags__Wempty_body+:} false; then :
12280 $as_echo_n "(cached) " >&6
12281 else
12282 ac_wine_try_cflags_saved=$CFLAGS
12283 CFLAGS="$CFLAGS -Wempty-body"
12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h. */
12286 int main(int argc, char **argv) { return 0; }
12287 _ACEOF
12288 if ac_fn_c_try_link "$LINENO"; then :
12289 ac_cv_cflags__Wempty_body=yes
12290 else
12291 ac_cv_cflags__Wempty_body=no
12293 rm -f core conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12295 CFLAGS=$ac_wine_try_cflags_saved
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12298 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12299 if test $ac_cv_cflags__Wempty_body = yes; then :
12300 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12303 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12304 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12305 $as_echo_n "(cached) " >&6
12306 else
12307 ac_wine_try_cflags_saved=$CFLAGS
12308 CFLAGS="$CFLAGS -Wstrict-prototypes"
12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h. */
12311 int main(int argc, char **argv) { return 0; }
12312 _ACEOF
12313 if ac_fn_c_try_link "$LINENO"; then :
12314 ac_cv_cflags__Wstrict_prototypes=yes
12315 else
12316 ac_cv_cflags__Wstrict_prototypes=no
12318 rm -f core conftest.err conftest.$ac_objext \
12319 conftest$ac_exeext conftest.$ac_ext
12320 CFLAGS=$ac_wine_try_cflags_saved
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12323 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12324 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12325 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12328 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12329 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 ac_wine_try_cflags_saved=$CFLAGS
12333 CFLAGS="$CFLAGS -Wtype-limits"
12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12336 int main(int argc, char **argv) { return 0; }
12337 _ACEOF
12338 if ac_fn_c_try_link "$LINENO"; then :
12339 ac_cv_cflags__Wtype_limits=yes
12340 else
12341 ac_cv_cflags__Wtype_limits=no
12343 rm -f core conftest.err conftest.$ac_objext \
12344 conftest$ac_exeext conftest.$ac_ext
12345 CFLAGS=$ac_wine_try_cflags_saved
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12348 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12349 if test $ac_cv_cflags__Wtype_limits = yes; then :
12350 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12353 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12354 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12355 $as_echo_n "(cached) " >&6
12356 else
12357 ac_wine_try_cflags_saved=$CFLAGS
12358 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12361 int main(int argc, char **argv) { return 0; }
12362 _ACEOF
12363 if ac_fn_c_try_link "$LINENO"; then :
12364 ac_cv_cflags__Wunused_but_set_parameter=yes
12365 else
12366 ac_cv_cflags__Wunused_but_set_parameter=no
12368 rm -f core conftest.err conftest.$ac_objext \
12369 conftest$ac_exeext conftest.$ac_ext
12370 CFLAGS=$ac_wine_try_cflags_saved
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12373 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12374 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12375 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12378 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12379 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12380 $as_echo_n "(cached) " >&6
12381 else
12382 ac_wine_try_cflags_saved=$CFLAGS
12383 CFLAGS="$CFLAGS -Wwrite-strings"
12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385 /* end confdefs.h. */
12386 int main(int argc, char **argv) { return 0; }
12387 _ACEOF
12388 if ac_fn_c_try_link "$LINENO"; then :
12389 ac_cv_cflags__Wwrite_strings=yes
12390 else
12391 ac_cv_cflags__Wwrite_strings=no
12393 rm -f core conftest.err conftest.$ac_objext \
12394 conftest$ac_exeext conftest.$ac_ext
12395 CFLAGS=$ac_wine_try_cflags_saved
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12398 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12399 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12400 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12403 saved_CFLAGS="$CFLAGS"
12404 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12406 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12407 if ${ac_cv_c_string_h_warnings+:} false; then :
12408 $as_echo_n "(cached) " >&6
12409 else
12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h. */
12412 #include <string.h>
12414 main ()
12418 return 0;
12420 _ACEOF
12421 if ac_fn_c_try_compile "$LINENO"; then :
12422 ac_cv_c_string_h_warnings=no
12423 else
12424 ac_cv_c_string_h_warnings=yes
12426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12429 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12430 CFLAGS="$saved_CFLAGS"
12431 if test "$ac_cv_c_string_h_warnings" = "no"
12432 then
12433 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12436 saved_CFLAGS="$CFLAGS"
12437 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12439 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12440 if ${ac_cv_c_logicalop_noisy+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442 else
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12445 #include <string.h>
12447 main ()
12449 char*f(const char *h,char n) {return strchr(h,n);}
12451 return 0;
12453 _ACEOF
12454 if ac_fn_c_try_compile "$LINENO"; then :
12455 ac_cv_c_logicalop_noisy=no
12456 else
12457 ac_cv_c_logicalop_noisy=yes
12459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12462 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12463 CFLAGS="$saved_CFLAGS"
12464 if test "$ac_cv_c_logicalop_noisy" = "no"
12465 then
12466 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12469 if test "x$enable_maintainer_mode" = "xyes"
12470 then
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12472 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12473 if ${ac_cv_cflags__Werror+:} false; then :
12474 $as_echo_n "(cached) " >&6
12475 else
12476 ac_wine_try_cflags_saved=$CFLAGS
12477 CFLAGS="$CFLAGS -Werror"
12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12480 int main(int argc, char **argv) { return 0; }
12481 _ACEOF
12482 if ac_fn_c_try_link "$LINENO"; then :
12483 ac_cv_cflags__Werror=yes
12484 else
12485 ac_cv_cflags__Werror=no
12487 rm -f core conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
12489 CFLAGS=$ac_wine_try_cflags_saved
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12492 $as_echo "$ac_cv_cflags__Werror" >&6; }
12493 if test $ac_cv_cflags__Werror = yes; then :
12494 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12498 saved_CFLAGS="$CFLAGS"
12499 CFLAGS="$CFLAGS -Werror"
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12501 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12502 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12503 $as_echo_n "(cached) " >&6
12504 else
12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12507 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12509 main ()
12513 return 0;
12515 _ACEOF
12516 if ac_fn_c_try_compile "$LINENO"; then :
12517 ac_cv_have_ms_hook_prologue="yes"
12518 else
12519 ac_cv_have_ms_hook_prologue="no"
12521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12524 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12525 CFLAGS="$saved_CFLAGS"
12526 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12527 then
12529 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12531 else
12532 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12539 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12540 if ${ac_cv_c_fortify_enabled+:} false; then :
12541 $as_echo_n "(cached) " >&6
12542 else
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12545 #include <string.h>
12547 main ()
12549 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12550 #error Fortify enabled
12551 #endif
12553 return 0;
12555 _ACEOF
12556 if ac_fn_c_try_compile "$LINENO"; then :
12557 ac_cv_c_fortify_enabled=no
12558 else
12559 ac_cv_c_fortify_enabled=yes
12561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12564 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12565 if test "$ac_cv_c_fortify_enabled" = yes
12566 then
12567 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12572 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12573 if ${ac_cv_c_extern_prefix+:} false; then :
12574 $as_echo_n "(cached) " >&6
12575 else
12576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h. */
12578 extern int ac_test;
12580 main ()
12582 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12584 return 0;
12586 _ACEOF
12587 if ac_fn_c_try_link "$LINENO"; then :
12588 ac_cv_c_extern_prefix="yes"
12589 else
12590 ac_cv_c_extern_prefix="no"
12592 rm -f core conftest.err conftest.$ac_objext \
12593 conftest$ac_exeext conftest.$ac_ext
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12596 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12598 case $host_cpu in
12599 *i[3456789]86*)
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12601 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12602 if ${ac_cv_c_stdcall_suffix+:} false; then :
12603 $as_echo_n "(cached) " >&6
12604 else
12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606 /* end confdefs.h. */
12607 #ifndef _MSC_VER
12608 #define __stdcall __attribute__((__stdcall__))
12609 #endif
12610 int __stdcall ac_test(int i) { return i; }
12612 main ()
12614 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12616 return 0;
12618 _ACEOF
12619 if ac_fn_c_try_link "$LINENO"; then :
12620 ac_cv_c_stdcall_suffix="yes"
12621 else
12622 ac_cv_c_stdcall_suffix="no"
12624 rm -f core conftest.err conftest.$ac_objext \
12625 conftest$ac_exeext conftest.$ac_ext
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12628 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12629 *) ac_cv_c_stdcall_suffix="no" ;;
12630 esac
12633 if test "$ac_cv_c_extern_prefix" = "yes"
12634 then
12635 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12637 asm_name_prefix="_"
12638 else
12639 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12641 asm_name_prefix=""
12645 if test "$ac_cv_c_stdcall_suffix" = "yes"
12646 then
12647 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12649 else
12650 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12656 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12657 if ${ac_cv_asm_func_def+:} false; then :
12658 $as_echo_n "(cached) " >&6
12659 else
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12664 main ()
12666 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12668 return 0;
12670 _ACEOF
12671 if ac_fn_c_try_link "$LINENO"; then :
12672 ac_cv_asm_func_def=".def"
12673 else
12674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675 /* end confdefs.h. */
12678 main ()
12680 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12682 return 0;
12684 _ACEOF
12685 if ac_fn_c_try_link "$LINENO"; then :
12686 ac_cv_asm_func_def=".type @function"
12687 else
12688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689 /* end confdefs.h. */
12692 main ()
12694 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12696 return 0;
12698 _ACEOF
12699 if ac_fn_c_try_link "$LINENO"; then :
12700 ac_cv_asm_func_def=".type 2"
12701 else
12702 ac_cv_asm_func_def="unknown"
12704 rm -f core conftest.err conftest.$ac_objext \
12705 conftest$ac_exeext conftest.$ac_ext
12707 rm -f core conftest.err conftest.$ac_objext \
12708 conftest$ac_exeext conftest.$ac_ext
12710 rm -f core conftest.err conftest.$ac_objext \
12711 conftest$ac_exeext conftest.$ac_ext
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12714 $as_echo "$ac_cv_asm_func_def" >&6; }
12717 case "$ac_cv_asm_func_def" in
12718 ".def")
12719 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12721 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12722 ".type @function")
12723 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12725 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12726 ".type 2")
12727 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12729 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12731 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12733 asm_func_header="" ;;
12734 esac
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12737 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12738 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12742 /* end confdefs.h. */
12743 asm(".text\n\t.long 0");
12745 main ()
12749 return 0;
12751 _ACEOF
12752 if ac_fn_c_try_compile "$LINENO"; then :
12753 ac_cv_c_asm_outside_funcs="yes"
12754 else
12755 ac_cv_c_asm_outside_funcs="no"
12757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12760 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12763 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12764 if ${ac_cv_c_dot_previous+:} false; then :
12765 $as_echo_n "(cached) " >&6
12766 else
12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12771 main ()
12773 asm(".text\nac_test:\t.long 0\n\t.previous");
12775 return 0;
12777 _ACEOF
12778 if ac_fn_c_try_link "$LINENO"; then :
12779 ac_cv_c_dot_previous="yes"
12780 else
12781 ac_cv_c_dot_previous="no"
12783 rm -f core conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext conftest.$ac_ext
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12787 $as_echo "$ac_cv_c_dot_previous" >&6; }
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12790 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12791 if ${ac_cv_c_cfi_support+:} false; then :
12792 $as_echo_n "(cached) " >&6
12793 else
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12796 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12798 main ()
12802 return 0;
12804 _ACEOF
12805 if ac_fn_c_try_compile "$LINENO"; then :
12806 ac_cv_c_cfi_support="yes"
12807 else
12808 ac_cv_c_cfi_support="no"
12810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12813 $as_echo "$ac_cv_c_cfi_support" >&6; }
12815 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12816 asm_func_trailer=""
12817 if test "$ac_cv_c_dot_previous" = "yes"
12818 then
12819 asm_func_trailer="\\n\\t.previous"
12821 if test "$ac_cv_c_cfi_support" = "yes"
12822 then
12823 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12824 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12826 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12828 UNWINDFLAGS=-fasynchronous-unwind-tables
12830 else
12831 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12835 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12838 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12839 then
12840 cat >>confdefs.h <<_ACEOF
12841 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12842 _ACEOF
12844 else
12845 cat >>confdefs.h <<_ACEOF
12846 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12847 _ACEOF
12851 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12854 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12858 LDPATH=""
12860 case $build_os in
12861 cygwin*|mingw32*)
12862 TOOLSEXT=".exe"
12864 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12866 darwin*|macosx*)
12869 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12871 esac
12873 case $host_os in
12874 mingw32*)
12875 CRTLIBS="-lmsvcrt"
12877 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12880 esac
12882 MAIN_BINARY="wine"
12884 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12886 case $host_os in
12887 linux*)
12888 case $host_cpu in
12889 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12891 x86_64*) EXTRA_BINARIES="wine64-preloader"
12893 esac
12895 esac
12898 ac_save_CFLAGS="$CFLAGS"
12899 CFLAGS="$CFLAGS $BUILTINFLAG"
12900 for ac_func in \
12901 _pclose \
12902 _popen \
12903 _snprintf \
12904 _spawnvp \
12905 _strdup \
12906 _stricmp \
12907 _strnicmp \
12908 _strtoi64 \
12909 _strtoui64 \
12910 _vsnprintf \
12911 asctime_r \
12912 chsize \
12913 dlopen \
12914 epoll_create \
12915 ffs \
12916 finite \
12917 fnmatch \
12918 fork \
12919 fpclass \
12920 fstatfs \
12921 fstatvfs \
12922 ftruncate \
12923 futimes \
12924 futimesat \
12925 getattrlist \
12926 getdirentries \
12927 getopt_long \
12928 getpagesize \
12929 getpwuid \
12930 gettimeofday \
12931 getuid \
12932 kqueue \
12933 lstat \
12934 memmove \
12935 mmap \
12936 pclose \
12937 pipe2 \
12938 poll \
12939 popen \
12940 port_create \
12941 prctl \
12942 pread \
12943 pwrite \
12944 readdir \
12945 readlink \
12946 sched_yield \
12947 select \
12948 setproctitle \
12949 setrlimit \
12950 settimeofday \
12951 sigaltstack \
12952 sigprocmask \
12953 snprintf \
12954 spawnvp \
12955 statfs \
12956 statvfs \
12957 strcasecmp \
12958 strdup \
12959 strerror \
12960 strncasecmp \
12961 strtold \
12962 strtoll \
12963 strtoull \
12964 symlink \
12965 tcgetattr \
12966 thr_kill2 \
12967 timegm \
12968 usleep \
12969 vsnprintf \
12970 wait4 \
12971 waitpid \
12973 do :
12974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12975 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12976 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12977 cat >>confdefs.h <<_ACEOF
12978 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12979 _ACEOF
12982 done
12984 CFLAGS="$ac_save_CFLAGS"
12986 if test "$ac_cv_func_dlopen" = no
12987 then
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12989 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12990 if ${ac_cv_lib_dl_dlopen+:} false; then :
12991 $as_echo_n "(cached) " >&6
12992 else
12993 ac_check_lib_save_LIBS=$LIBS
12994 LIBS="-ldl $LIBS"
12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h. */
12998 /* Override any GCC internal prototype to avoid an error.
12999 Use char because int might match the return type of a GCC
13000 builtin and then its argument prototype would still apply. */
13001 #ifdef __cplusplus
13002 extern "C"
13003 #endif
13004 char dlopen ();
13006 main ()
13008 return dlopen ();
13010 return 0;
13012 _ACEOF
13013 if ac_fn_c_try_link "$LINENO"; then :
13014 ac_cv_lib_dl_dlopen=yes
13015 else
13016 ac_cv_lib_dl_dlopen=no
13018 rm -f core conftest.err conftest.$ac_objext \
13019 conftest$ac_exeext conftest.$ac_ext
13020 LIBS=$ac_check_lib_save_LIBS
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13023 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13024 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13025 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13026 LIBDL="-ldl"
13031 ac_wine_check_funcs_save_LIBS="$LIBS"
13032 LIBS="$LIBS $LIBDL"
13033 for ac_func in dladdr
13034 do :
13035 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
13036 if test "x$ac_cv_func_dladdr" = xyes; then :
13037 cat >>confdefs.h <<_ACEOF
13038 #define HAVE_DLADDR 1
13039 _ACEOF
13042 done
13044 LIBS="$ac_wine_check_funcs_save_LIBS"
13046 if test "$ac_cv_func_poll" = no
13047 then
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
13049 $as_echo_n "checking for poll in -lpoll... " >&6; }
13050 if ${ac_cv_lib_poll_poll+:} false; then :
13051 $as_echo_n "(cached) " >&6
13052 else
13053 ac_check_lib_save_LIBS=$LIBS
13054 LIBS="-lpoll $LIBS"
13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h. */
13058 /* Override any GCC internal prototype to avoid an error.
13059 Use char because int might match the return type of a GCC
13060 builtin and then its argument prototype would still apply. */
13061 #ifdef __cplusplus
13062 extern "C"
13063 #endif
13064 char poll ();
13066 main ()
13068 return poll ();
13070 return 0;
13072 _ACEOF
13073 if ac_fn_c_try_link "$LINENO"; then :
13074 ac_cv_lib_poll_poll=yes
13075 else
13076 ac_cv_lib_poll_poll=no
13078 rm -f core conftest.err conftest.$ac_objext \
13079 conftest$ac_exeext conftest.$ac_ext
13080 LIBS=$ac_check_lib_save_LIBS
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
13083 $as_echo "$ac_cv_lib_poll_poll" >&6; }
13084 if test "x$ac_cv_lib_poll_poll" = xyes; then :
13085 $as_echo "#define HAVE_POLL 1" >>confdefs.h
13086 LIBPOLL="-lpoll"
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13093 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13094 if ${ac_cv_search_gethostbyname+:} false; then :
13095 $as_echo_n "(cached) " >&6
13096 else
13097 ac_func_search_save_LIBS=$LIBS
13098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13099 /* end confdefs.h. */
13101 /* Override any GCC internal prototype to avoid an error.
13102 Use char because int might match the return type of a GCC
13103 builtin and then its argument prototype would still apply. */
13104 #ifdef __cplusplus
13105 extern "C"
13106 #endif
13107 char gethostbyname ();
13109 main ()
13111 return gethostbyname ();
13113 return 0;
13115 _ACEOF
13116 for ac_lib in '' nsl; do
13117 if test -z "$ac_lib"; then
13118 ac_res="none required"
13119 else
13120 ac_res=-l$ac_lib
13121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13123 if ac_fn_c_try_link "$LINENO"; then :
13124 ac_cv_search_gethostbyname=$ac_res
13126 rm -f core conftest.err conftest.$ac_objext \
13127 conftest$ac_exeext
13128 if ${ac_cv_search_gethostbyname+:} false; then :
13129 break
13131 done
13132 if ${ac_cv_search_gethostbyname+:} false; then :
13134 else
13135 ac_cv_search_gethostbyname=no
13137 rm conftest.$ac_ext
13138 LIBS=$ac_func_search_save_LIBS
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13141 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13142 ac_res=$ac_cv_search_gethostbyname
13143 if test "$ac_res" != no; then :
13144 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13150 $as_echo_n "checking for library containing connect... " >&6; }
13151 if ${ac_cv_search_connect+:} false; then :
13152 $as_echo_n "(cached) " >&6
13153 else
13154 ac_func_search_save_LIBS=$LIBS
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13158 /* Override any GCC internal prototype to avoid an error.
13159 Use char because int might match the return type of a GCC
13160 builtin and then its argument prototype would still apply. */
13161 #ifdef __cplusplus
13162 extern "C"
13163 #endif
13164 char connect ();
13166 main ()
13168 return connect ();
13170 return 0;
13172 _ACEOF
13173 for ac_lib in '' socket; do
13174 if test -z "$ac_lib"; then
13175 ac_res="none required"
13176 else
13177 ac_res=-l$ac_lib
13178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13180 if ac_fn_c_try_link "$LINENO"; then :
13181 ac_cv_search_connect=$ac_res
13183 rm -f core conftest.err conftest.$ac_objext \
13184 conftest$ac_exeext
13185 if ${ac_cv_search_connect+:} false; then :
13186 break
13188 done
13189 if ${ac_cv_search_connect+:} false; then :
13191 else
13192 ac_cv_search_connect=no
13194 rm conftest.$ac_ext
13195 LIBS=$ac_func_search_save_LIBS
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13198 $as_echo "$ac_cv_search_connect" >&6; }
13199 ac_res=$ac_cv_search_connect
13200 if test "$ac_res" != no; then :
13201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13207 $as_echo_n "checking for library containing inet_aton... " >&6; }
13208 if ${ac_cv_search_inet_aton+:} false; then :
13209 $as_echo_n "(cached) " >&6
13210 else
13211 ac_func_search_save_LIBS=$LIBS
13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h. */
13215 /* Override any GCC internal prototype to avoid an error.
13216 Use char because int might match the return type of a GCC
13217 builtin and then its argument prototype would still apply. */
13218 #ifdef __cplusplus
13219 extern "C"
13220 #endif
13221 char inet_aton ();
13223 main ()
13225 return inet_aton ();
13227 return 0;
13229 _ACEOF
13230 for ac_lib in '' resolv; do
13231 if test -z "$ac_lib"; then
13232 ac_res="none required"
13233 else
13234 ac_res=-l$ac_lib
13235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13237 if ac_fn_c_try_link "$LINENO"; then :
13238 ac_cv_search_inet_aton=$ac_res
13240 rm -f core conftest.err conftest.$ac_objext \
13241 conftest$ac_exeext
13242 if ${ac_cv_search_inet_aton+:} false; then :
13243 break
13245 done
13246 if ${ac_cv_search_inet_aton+:} false; then :
13248 else
13249 ac_cv_search_inet_aton=no
13251 rm conftest.$ac_ext
13252 LIBS=$ac_func_search_save_LIBS
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13255 $as_echo "$ac_cv_search_inet_aton" >&6; }
13256 ac_res=$ac_cv_search_inet_aton
13257 if test "$ac_res" != no; then :
13258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13263 for ac_func in \
13264 getaddrinfo \
13265 getnameinfo \
13266 getnetbyname \
13267 getprotobyname \
13268 getprotobynumber \
13269 getservbyport \
13270 inet_network \
13271 inet_ntop \
13272 inet_pton \
13273 sendmsg \
13274 socketpair \
13276 do :
13277 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13278 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13279 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13280 cat >>confdefs.h <<_ACEOF
13281 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13282 _ACEOF
13285 done
13288 LDAPLIBS=""
13290 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13291 then
13292 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13294 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13296 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13297 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13298 $as_echo_n "(cached) " >&6
13299 else
13300 ac_check_lib_save_LIBS=$LIBS
13301 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h. */
13305 /* Override any GCC internal prototype to avoid an error.
13306 Use char because int might match the return type of a GCC
13307 builtin and then its argument prototype would still apply. */
13308 #ifdef __cplusplus
13309 extern "C"
13310 #endif
13311 char ldap_initialize ();
13313 main ()
13315 return ldap_initialize ();
13317 return 0;
13319 _ACEOF
13320 if ac_fn_c_try_link "$LINENO"; then :
13321 ac_cv_lib_ldap_r_ldap_initialize=yes
13322 else
13323 ac_cv_lib_ldap_r_ldap_initialize=no
13325 rm -f core conftest.err conftest.$ac_objext \
13326 conftest$ac_exeext conftest.$ac_ext
13327 LIBS=$ac_check_lib_save_LIBS
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13330 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13331 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13333 $as_echo_n "checking for ber_init in -llber... " >&6; }
13334 if ${ac_cv_lib_lber_ber_init+:} false; then :
13335 $as_echo_n "(cached) " >&6
13336 else
13337 ac_check_lib_save_LIBS=$LIBS
13338 LIBS="-llber $LIBPTHREAD $LIBS"
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13342 /* Override any GCC internal prototype to avoid an error.
13343 Use char because int might match the return type of a GCC
13344 builtin and then its argument prototype would still apply. */
13345 #ifdef __cplusplus
13346 extern "C"
13347 #endif
13348 char ber_init ();
13350 main ()
13352 return ber_init ();
13354 return 0;
13356 _ACEOF
13357 if ac_fn_c_try_link "$LINENO"; then :
13358 ac_cv_lib_lber_ber_init=yes
13359 else
13360 ac_cv_lib_lber_ber_init=no
13362 rm -f core conftest.err conftest.$ac_objext \
13363 conftest$ac_exeext conftest.$ac_ext
13364 LIBS=$ac_check_lib_save_LIBS
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13367 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13368 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13370 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13372 LDAPLIBS="-lldap_r -llber"
13379 ac_wine_check_funcs_save_LIBS="$LIBS"
13380 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13381 for ac_func in \
13382 ldap_count_references \
13383 ldap_first_reference \
13384 ldap_next_reference \
13385 ldap_parse_reference \
13386 ldap_parse_sort_control \
13387 ldap_parse_sortresponse_control \
13388 ldap_parse_vlv_control \
13389 ldap_parse_vlvresponse_control
13390 do :
13391 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13392 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13393 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13394 cat >>confdefs.h <<_ACEOF
13395 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13396 _ACEOF
13399 done
13401 LIBS="$ac_wine_check_funcs_save_LIBS"
13403 if test "x$LDAPLIBS" = "x"; then :
13404 case "x$with_ldap" in
13405 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13406 xno) ;;
13407 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13408 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13409 esac
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13413 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13414 if ${wine_cv_one_arg_mkdir+:} false; then :
13415 $as_echo_n "(cached) " >&6
13416 else
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h. */
13419 #include <sys/stat.h>
13421 main ()
13423 mkdir("foo");
13425 return 0;
13427 _ACEOF
13428 if ac_fn_c_try_compile "$LINENO"; then :
13429 wine_cv_one_arg_mkdir=yes
13430 else
13431 wine_cv_one_arg_mkdir=no
13433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13436 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13437 if test "$wine_cv_one_arg_mkdir" = "yes"
13438 then
13440 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13445 $as_echo_n "checking for sched_setaffinity... " >&6; }
13446 if ${wine_cv_have_sched_setaffinity+:} false; then :
13447 $as_echo_n "(cached) " >&6
13448 else
13449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13450 /* end confdefs.h. */
13451 #define _GNU_SOURCE
13452 #include <sched.h>
13454 main ()
13456 sched_setaffinity(0, 0, 0);
13458 return 0;
13460 _ACEOF
13461 if ac_fn_c_try_link "$LINENO"; then :
13462 wine_cv_have_sched_setaffinity=yes
13463 else
13464 wine_cv_have_sched_setaffinity=no
13466 rm -f core conftest.err conftest.$ac_objext \
13467 conftest$ac_exeext conftest.$ac_ext
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13470 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13471 if test "$wine_cv_have_sched_setaffinity" = "yes"
13472 then
13474 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13480 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13481 if ${ac_cv_c_const+:} false; then :
13482 $as_echo_n "(cached) " >&6
13483 else
13484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13485 /* end confdefs.h. */
13488 main ()
13490 /* FIXME: Include the comments suggested by Paul. */
13491 #ifndef __cplusplus
13492 /* Ultrix mips cc rejects this. */
13493 typedef int charset[2];
13494 const charset cs;
13495 /* SunOS 4.1.1 cc rejects this. */
13496 char const *const *pcpcc;
13497 char **ppc;
13498 /* NEC SVR4.0.2 mips cc rejects this. */
13499 struct point {int x, y;};
13500 static struct point const zero = {0,0};
13501 /* AIX XL C 1.02.0.0 rejects this.
13502 It does not let you subtract one const X* pointer from another in
13503 an arm of an if-expression whose if-part is not a constant
13504 expression */
13505 const char *g = "string";
13506 pcpcc = &g + (g ? g-g : 0);
13507 /* HPUX 7.0 cc rejects these. */
13508 ++pcpcc;
13509 ppc = (char**) pcpcc;
13510 pcpcc = (char const *const *) ppc;
13511 { /* SCO 3.2v4 cc rejects this. */
13512 char *t;
13513 char const *s = 0 ? (char *) 0 : (char const *) 0;
13515 *t++ = 0;
13516 if (s) return 0;
13518 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13519 int x[] = {25, 17};
13520 const int *foo = &x[0];
13521 ++foo;
13523 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13524 typedef const int *iptr;
13525 iptr p = 0;
13526 ++p;
13528 { /* AIX XL C 1.02.0.0 rejects this saying
13529 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13530 struct s { int j; const int *ap[3]; };
13531 struct s *b; b->j = 5;
13533 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13534 const int foo = 10;
13535 if (!foo) return 0;
13537 return !cs[0] && !zero.x;
13538 #endif
13541 return 0;
13543 _ACEOF
13544 if ac_fn_c_try_compile "$LINENO"; then :
13545 ac_cv_c_const=yes
13546 else
13547 ac_cv_c_const=no
13549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13552 $as_echo "$ac_cv_c_const" >&6; }
13553 if test $ac_cv_c_const = no; then
13555 $as_echo "#define const /**/" >>confdefs.h
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13560 $as_echo_n "checking for inline... " >&6; }
13561 if ${ac_cv_c_inline+:} false; then :
13562 $as_echo_n "(cached) " >&6
13563 else
13564 ac_cv_c_inline=no
13565 for ac_kw in inline __inline__ __inline; do
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13568 #ifndef __cplusplus
13569 typedef int foo_t;
13570 static $ac_kw foo_t static_foo () {return 0; }
13571 $ac_kw foo_t foo () {return 0; }
13572 #endif
13574 _ACEOF
13575 if ac_fn_c_try_compile "$LINENO"; then :
13576 ac_cv_c_inline=$ac_kw
13578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13579 test "$ac_cv_c_inline" != no && break
13580 done
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13584 $as_echo "$ac_cv_c_inline" >&6; }
13586 case $ac_cv_c_inline in
13587 inline | yes) ;;
13589 case $ac_cv_c_inline in
13590 no) ac_val=;;
13591 *) ac_val=$ac_cv_c_inline;;
13592 esac
13593 cat >>confdefs.h <<_ACEOF
13594 #ifndef __cplusplus
13595 #define inline $ac_val
13596 #endif
13597 _ACEOF
13599 esac
13601 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13602 if test "x$ac_cv_type_mode_t" = xyes; then :
13604 cat >>confdefs.h <<_ACEOF
13605 #define HAVE_MODE_T 1
13606 _ACEOF
13610 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13611 if test "x$ac_cv_type_off_t" = xyes; then :
13613 cat >>confdefs.h <<_ACEOF
13614 #define HAVE_OFF_T 1
13615 _ACEOF
13619 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13620 if test "x$ac_cv_type_pid_t" = xyes; then :
13622 cat >>confdefs.h <<_ACEOF
13623 #define HAVE_PID_T 1
13624 _ACEOF
13628 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13629 if test "x$ac_cv_type_size_t" = xyes; then :
13631 cat >>confdefs.h <<_ACEOF
13632 #define HAVE_SIZE_T 1
13633 _ACEOF
13637 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13638 if test "x$ac_cv_type_ssize_t" = xyes; then :
13640 cat >>confdefs.h <<_ACEOF
13641 #define HAVE_SSIZE_T 1
13642 _ACEOF
13646 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13647 if test "x$ac_cv_type_long_long" = xyes; then :
13649 cat >>confdefs.h <<_ACEOF
13650 #define HAVE_LONG_LONG 1
13651 _ACEOF
13655 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13656 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13658 cat >>confdefs.h <<_ACEOF
13659 #define HAVE_FSBLKCNT_T 1
13660 _ACEOF
13664 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13665 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13667 cat >>confdefs.h <<_ACEOF
13668 #define HAVE_FSFILCNT_T 1
13669 _ACEOF
13674 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13675 #include <signal.h>
13677 if test "x$ac_cv_type_sigset_t" = xyes; then :
13679 cat >>confdefs.h <<_ACEOF
13680 #define HAVE_SIGSET_T 1
13681 _ACEOF
13686 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13688 if test "x$ac_cv_type_request_sense" = xyes; then :
13690 cat >>confdefs.h <<_ACEOF
13691 #define HAVE_REQUEST_SENSE 1
13692 _ACEOF
13698 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13699 #ifdef HAVE_SYS_SOCKET_H
13700 #include <sys/socket.h>
13701 #endif
13702 #ifdef HAVE_SYS_SOCKETVAR_H
13703 #include <sys/socketvar.h>
13704 #endif
13705 #ifdef HAVE_NET_ROUTE_H
13706 #include <net/route.h>
13707 #endif
13708 #ifdef HAVE_NETINET_IN_H
13709 #include <netinet/in.h>
13710 #endif
13711 #ifdef HAVE_NETINET_IN_SYSTM_H
13712 #include <netinet/in_systm.h>
13713 #endif
13714 #ifdef HAVE_NETINET_IP_H
13715 #include <netinet/ip.h>
13716 #endif
13717 #ifdef HAVE_NETINET_IN_PCB_H
13718 #include <netinet/in_pcb.h>
13719 #endif
13721 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13723 cat >>confdefs.h <<_ACEOF
13724 #define HAVE_STRUCT_XINPGEN 1
13725 _ACEOF
13731 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13732 #include <linux/input.h>
13733 #endif
13735 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13737 cat >>confdefs.h <<_ACEOF
13738 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13739 _ACEOF
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13746 $as_echo_n "checking for sigaddset... " >&6; }
13747 if ${wine_cv_have_sigaddset+:} false; then :
13748 $as_echo_n "(cached) " >&6
13749 else
13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h. */
13752 #include <signal.h>
13754 main ()
13756 sigset_t set; sigaddset(&set,SIGTERM);
13758 return 0;
13760 _ACEOF
13761 if ac_fn_c_try_link "$LINENO"; then :
13762 wine_cv_have_sigaddset=yes
13763 else
13764 wine_cv_have_sigaddset=no
13766 rm -f core conftest.err conftest.$ac_objext \
13767 conftest$ac_exeext conftest.$ac_ext
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13770 $as_echo "$wine_cv_have_sigaddset" >&6; }
13771 if test "$wine_cv_have_sigaddset" = "yes"
13772 then
13774 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13780 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13781 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13782 $as_echo_n "(cached) " >&6
13783 else
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13786 #include <netdb.h>
13788 main ()
13791 char *name=0;
13792 struct hostent he;
13793 struct hostent *result;
13794 char *buf=0;
13795 int bufsize=0;
13796 int res,errnr;
13797 char *addr=0;
13798 int addrlen=0;
13799 int addrtype=0;
13800 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13801 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13804 return 0;
13806 _ACEOF
13807 if ac_fn_c_try_link "$LINENO"; then :
13808 wine_cv_linux_gethostbyname_r_6=yes
13809 else
13810 wine_cv_linux_gethostbyname_r_6=no
13813 rm -f core conftest.err conftest.$ac_objext \
13814 conftest$ac_exeext conftest.$ac_ext
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13818 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13819 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13820 then
13822 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13826 if test "$ac_cv_header_linux_joystick_h" = "yes"
13827 then
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13829 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13830 if ${wine_cv_linux_joystick_22_api+:} false; then :
13831 $as_echo_n "(cached) " >&6
13832 else
13833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834 /* end confdefs.h. */
13836 #include <sys/ioctl.h>
13837 #include <sys/types.h>
13838 #include <linux/joystick.h>
13840 struct js_event blub;
13841 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13842 #error "no 2.2 header"
13843 #endif
13846 main ()
13848 /*empty*/
13850 return 0;
13852 _ACEOF
13853 if ac_fn_c_try_compile "$LINENO"; then :
13854 wine_cv_linux_joystick_22_api=yes
13855 else
13856 wine_cv_linux_joystick_22_api=no
13858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13862 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13863 if test "$wine_cv_linux_joystick_22_api" = "yes"
13864 then
13866 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13872 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13873 #ifdef HAVE_SYS_PARAM_H
13874 # include <sys/param.h>
13875 #endif
13876 #ifdef HAVE_SYS_MOUNT_H
13877 # include <sys/mount.h>
13878 #endif
13879 #ifdef HAVE_SYS_VFS_H
13880 # include <sys/vfs.h>
13881 #endif
13882 #ifdef HAVE_SYS_STATFS_H
13883 # include <sys/statfs.h>
13884 #endif
13886 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13888 cat >>confdefs.h <<_ACEOF
13889 #define HAVE_STRUCT_STATFS_F_BFREE 1
13890 _ACEOF
13894 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13895 #ifdef HAVE_SYS_PARAM_H
13896 # include <sys/param.h>
13897 #endif
13898 #ifdef HAVE_SYS_MOUNT_H
13899 # include <sys/mount.h>
13900 #endif
13901 #ifdef HAVE_SYS_VFS_H
13902 # include <sys/vfs.h>
13903 #endif
13904 #ifdef HAVE_SYS_STATFS_H
13905 # include <sys/statfs.h>
13906 #endif
13908 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13910 cat >>confdefs.h <<_ACEOF
13911 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13912 _ACEOF
13916 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13917 #ifdef HAVE_SYS_PARAM_H
13918 # include <sys/param.h>
13919 #endif
13920 #ifdef HAVE_SYS_MOUNT_H
13921 # include <sys/mount.h>
13922 #endif
13923 #ifdef HAVE_SYS_VFS_H
13924 # include <sys/vfs.h>
13925 #endif
13926 #ifdef HAVE_SYS_STATFS_H
13927 # include <sys/statfs.h>
13928 #endif
13930 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13932 cat >>confdefs.h <<_ACEOF
13933 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13934 _ACEOF
13938 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13939 #ifdef HAVE_SYS_PARAM_H
13940 # include <sys/param.h>
13941 #endif
13942 #ifdef HAVE_SYS_MOUNT_H
13943 # include <sys/mount.h>
13944 #endif
13945 #ifdef HAVE_SYS_VFS_H
13946 # include <sys/vfs.h>
13947 #endif
13948 #ifdef HAVE_SYS_STATFS_H
13949 # include <sys/statfs.h>
13950 #endif
13952 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13954 cat >>confdefs.h <<_ACEOF
13955 #define HAVE_STRUCT_STATFS_F_FFREE 1
13956 _ACEOF
13960 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13961 #ifdef HAVE_SYS_PARAM_H
13962 # include <sys/param.h>
13963 #endif
13964 #ifdef HAVE_SYS_MOUNT_H
13965 # include <sys/mount.h>
13966 #endif
13967 #ifdef HAVE_SYS_VFS_H
13968 # include <sys/vfs.h>
13969 #endif
13970 #ifdef HAVE_SYS_STATFS_H
13971 # include <sys/statfs.h>
13972 #endif
13974 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13976 cat >>confdefs.h <<_ACEOF
13977 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13978 _ACEOF
13982 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13983 #ifdef HAVE_SYS_PARAM_H
13984 # include <sys/param.h>
13985 #endif
13986 #ifdef HAVE_SYS_MOUNT_H
13987 # include <sys/mount.h>
13988 #endif
13989 #ifdef HAVE_SYS_VFS_H
13990 # include <sys/vfs.h>
13991 #endif
13992 #ifdef HAVE_SYS_STATFS_H
13993 # include <sys/statfs.h>
13994 #endif
13996 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13998 cat >>confdefs.h <<_ACEOF
13999 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
14000 _ACEOF
14006 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
14007 #include <sys/statvfs.h>
14008 #endif
14010 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
14012 cat >>confdefs.h <<_ACEOF
14013 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
14014 _ACEOF
14020 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
14021 #ifdef HAVE_SYS_SOCKET_H
14022 # include <sys/socket.h>
14023 #endif
14024 #ifdef HAVE_SYS_UN_H
14025 # include <sys/un.h>
14026 #endif
14028 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
14030 cat >>confdefs.h <<_ACEOF
14031 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
14032 _ACEOF
14036 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14037 #ifdef HAVE_SYS_SOCKET_H
14038 # include <sys/socket.h>
14039 #endif
14040 #ifdef HAVE_SYS_UN_H
14041 # include <sys/un.h>
14042 #endif
14044 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14046 cat >>confdefs.h <<_ACEOF
14047 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14048 _ACEOF
14052 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
14053 #ifdef HAVE_SYS_SOCKET_H
14054 # include <sys/socket.h>
14055 #endif
14056 #ifdef HAVE_SYS_UN_H
14057 # include <sys/un.h>
14058 #endif
14060 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
14062 cat >>confdefs.h <<_ACEOF
14063 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
14064 _ACEOF
14070 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
14071 #ifdef HAVE_SCSI_SG_H
14072 #include <scsi/sg.h>
14073 #endif
14075 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
14077 cat >>confdefs.h <<_ACEOF
14078 #define HAVE_SCSIREQ_T_CMD 1
14079 _ACEOF
14083 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>
14084 #ifdef HAVE_SCSI_SG_H
14085 #include <scsi/sg.h>
14086 #endif
14088 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
14090 cat >>confdefs.h <<_ACEOF
14091 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
14092 _ACEOF
14098 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14100 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
14102 cat >>confdefs.h <<_ACEOF
14103 #define HAVE_SIGINFO_T_SI_FD 1
14104 _ACEOF
14110 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14111 #ifdef HAVE_SYS_MTIO_H
14112 #include <sys/mtio.h>
14113 #endif
14115 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14117 cat >>confdefs.h <<_ACEOF
14118 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14119 _ACEOF
14123 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14124 #ifdef HAVE_SYS_MTIO_H
14125 #include <sys/mtio.h>
14126 #endif
14128 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14130 cat >>confdefs.h <<_ACEOF
14131 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14132 _ACEOF
14136 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14137 #ifdef HAVE_SYS_MTIO_H
14138 #include <sys/mtio.h>
14139 #endif
14141 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14143 cat >>confdefs.h <<_ACEOF
14144 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14145 _ACEOF
14151 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14152 #include <getopt.h>
14153 #endif
14155 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14157 cat >>confdefs.h <<_ACEOF
14158 #define HAVE_STRUCT_OPTION_NAME 1
14159 _ACEOF
14165 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14166 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14168 cat >>confdefs.h <<_ACEOF
14169 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14170 _ACEOF
14174 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14175 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14177 cat >>confdefs.h <<_ACEOF
14178 #define HAVE_STRUCT_STAT_ST_MTIM 1
14179 _ACEOF
14183 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14184 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14186 cat >>confdefs.h <<_ACEOF
14187 #define HAVE_STRUCT_STAT_ST_CTIM 1
14188 _ACEOF
14192 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14193 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14195 cat >>confdefs.h <<_ACEOF
14196 #define HAVE_STRUCT_STAT_ST_ATIM 1
14197 _ACEOF
14203 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
14204 #include <sys/types.h>
14205 #endif
14206 #ifdef HAVE_NETINET_IN_H
14207 #include <netinet/in.h>
14208 #endif
14210 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14212 cat >>confdefs.h <<_ACEOF
14213 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14214 _ACEOF
14220 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14221 #include <sys/types.h>
14222 #endif
14223 #ifdef HAVE_NETINET_IN_H
14224 # include <netinet/in.h>
14225 #endif
14226 #ifdef HAVE_ARPA_NAMESER_H
14227 # include <arpa/nameser.h>
14228 #endif
14230 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14232 cat >>confdefs.h <<_ACEOF
14233 #define HAVE_NS_MSG__MSG_PTR 1
14234 _ACEOF
14240 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14241 #include <sys/types.h>
14242 #endif
14243 #ifdef HAVE_ALIAS_H
14244 #include <alias.h>
14245 #endif
14246 #ifdef HAVE_SYS_SOCKET_H
14247 #include <sys/socket.h>
14248 #endif
14249 #ifdef HAVE_SYS_SOCKETVAR_H
14250 #include <sys/socketvar.h>
14251 #endif
14252 #ifdef HAVE_SYS_TIMEOUT_H
14253 #include <sys/timeout.h>
14254 #endif
14255 #ifdef HAVE_NETINET_IN_H
14256 #include <netinet/in.h>
14257 #endif
14258 #ifdef HAVE_NETINET_IN_SYSTM_H
14259 #include <netinet/in_systm.h>
14260 #endif
14261 #ifdef HAVE_NETINET_IP_H
14262 #include <netinet/ip.h>
14263 #endif
14264 #ifdef HAVE_NETINET_IP_VAR_H
14265 #include <netinet/ip_var.h>
14266 #endif
14267 #ifdef HAVE_NETINET_IP_ICMP_H
14268 #include <netinet/ip_icmp.h>
14269 #endif
14270 #ifdef HAVE_NETINET_ICMP_VAR
14271 #include <netinet/icmp_var.h>
14272 #endif
14274 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14276 cat >>confdefs.h <<_ACEOF
14277 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14278 _ACEOF
14284 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14285 #include <sys/types.h>
14286 #endif
14287 #ifdef HAVE_NET_IF_H
14288 # include <net/if.h>
14289 #endif
14291 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14293 cat >>confdefs.h <<_ACEOF
14294 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14295 _ACEOF
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14302 $as_echo_n "checking for timezone variable... " >&6; }
14303 if ${ac_cv_have_timezone+:} false; then :
14304 $as_echo_n "(cached) " >&6
14305 else
14306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307 /* end confdefs.h. */
14308 #include <time.h>
14310 main ()
14312 timezone = 1
14314 return 0;
14316 _ACEOF
14317 if ac_fn_c_try_link "$LINENO"; then :
14318 ac_cv_have_timezone="yes"
14319 else
14320 ac_cv_have_timezone="no"
14322 rm -f core conftest.err conftest.$ac_objext \
14323 conftest$ac_exeext conftest.$ac_ext
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14326 $as_echo "$ac_cv_have_timezone" >&6; }
14327 if test "$ac_cv_have_timezone" = "yes"
14328 then
14330 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14334 $as_echo_n "checking for daylight variable... " >&6; }
14335 if ${ac_cv_have_daylight+:} false; then :
14336 $as_echo_n "(cached) " >&6
14337 else
14338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14339 /* end confdefs.h. */
14340 #include <time.h>
14342 main ()
14344 daylight = 1
14346 return 0;
14348 _ACEOF
14349 if ac_fn_c_try_link "$LINENO"; then :
14350 ac_cv_have_daylight="yes"
14351 else
14352 ac_cv_have_daylight="no"
14354 rm -f core conftest.err conftest.$ac_objext \
14355 conftest$ac_exeext conftest.$ac_ext
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14358 $as_echo "$ac_cv_have_daylight" >&6; }
14359 if test "$ac_cv_have_daylight" = "yes"
14360 then
14362 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14367 $as_echo_n "checking for isinf... " >&6; }
14368 if ${ac_cv_have_isinf+:} false; then :
14369 $as_echo_n "(cached) " >&6
14370 else
14371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h. */
14373 #include <math.h>
14375 main ()
14377 float f = 0.0; int i=isinf(f)
14379 return 0;
14381 _ACEOF
14382 if ac_fn_c_try_link "$LINENO"; then :
14383 ac_cv_have_isinf="yes"
14384 else
14385 ac_cv_have_isinf="no"
14387 rm -f core conftest.err conftest.$ac_objext \
14388 conftest$ac_exeext conftest.$ac_ext
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14391 $as_echo "$ac_cv_have_isinf" >&6; }
14392 if test "$ac_cv_have_isinf" = "yes"
14393 then
14395 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14400 $as_echo_n "checking for isnan... " >&6; }
14401 if ${ac_cv_have_isnan+:} false; then :
14402 $as_echo_n "(cached) " >&6
14403 else
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14406 #include <math.h>
14408 main ()
14410 float f = 0.0; int i=isnan(f)
14412 return 0;
14414 _ACEOF
14415 if ac_fn_c_try_link "$LINENO"; then :
14416 ac_cv_have_isnan="yes"
14417 else
14418 ac_cv_have_isnan="no"
14420 rm -f core conftest.err conftest.$ac_objext \
14421 conftest$ac_exeext conftest.$ac_ext
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14424 $as_echo "$ac_cv_have_isnan" >&6; }
14425 if test "$ac_cv_have_isnan" = "yes"
14426 then
14428 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14433 case $host_cpu in
14434 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14435 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14436 if ${ac_cv_cpp_def___i386__+:} false; then :
14437 $as_echo_n "(cached) " >&6
14438 else
14439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14440 /* end confdefs.h. */
14441 #ifndef __i386__
14443 #endif
14444 _ACEOF
14445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14446 $EGREP "yes" >/dev/null 2>&1; then :
14447 ac_cv_cpp_def___i386__=yes
14448 else
14449 ac_cv_cpp_def___i386__=no
14451 rm -f conftest*
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14455 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14456 if test $ac_cv_cpp_def___i386__ = yes; then :
14457 CFLAGS="$CFLAGS -D__i386__"
14458 LINTFLAGS="$LINTFLAGS -D__i386__"
14459 fi ;;
14460 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14461 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14462 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14463 $as_echo_n "(cached) " >&6
14464 else
14465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h. */
14467 #ifndef __x86_64__
14469 #endif
14470 _ACEOF
14471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14472 $EGREP "yes" >/dev/null 2>&1; then :
14473 ac_cv_cpp_def___x86_64__=yes
14474 else
14475 ac_cv_cpp_def___x86_64__=no
14477 rm -f conftest*
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14481 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14482 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14483 CFLAGS="$CFLAGS -D__x86_64__"
14484 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14485 fi ;;
14486 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14487 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14488 if ${ac_cv_cpp_def___sparc__+:} false; then :
14489 $as_echo_n "(cached) " >&6
14490 else
14491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492 /* end confdefs.h. */
14493 #ifndef __sparc__
14495 #endif
14496 _ACEOF
14497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14498 $EGREP "yes" >/dev/null 2>&1; then :
14499 ac_cv_cpp_def___sparc__=yes
14500 else
14501 ac_cv_cpp_def___sparc__=no
14503 rm -f conftest*
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14507 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14508 if test $ac_cv_cpp_def___sparc__ = yes; then :
14509 CFLAGS="$CFLAGS -D__sparc__"
14510 LINTFLAGS="$LINTFLAGS -D__sparc__"
14511 fi ;;
14512 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14513 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14514 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14515 $as_echo_n "(cached) " >&6
14516 else
14517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h. */
14519 #ifndef __powerpc__
14521 #endif
14522 _ACEOF
14523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14524 $EGREP "yes" >/dev/null 2>&1; then :
14525 ac_cv_cpp_def___powerpc__=yes
14526 else
14527 ac_cv_cpp_def___powerpc__=no
14529 rm -f conftest*
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14533 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14534 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14535 CFLAGS="$CFLAGS -D__powerpc__"
14536 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14537 fi ;;
14538 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14539 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14540 if ${ac_cv_cpp_def___arm__+:} false; then :
14541 $as_echo_n "(cached) " >&6
14542 else
14543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14544 /* end confdefs.h. */
14545 #ifndef __arm__
14547 #endif
14548 _ACEOF
14549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14550 $EGREP "yes" >/dev/null 2>&1; then :
14551 ac_cv_cpp_def___arm__=yes
14552 else
14553 ac_cv_cpp_def___arm__=no
14555 rm -f conftest*
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14559 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14560 if test $ac_cv_cpp_def___arm__ = yes; then :
14561 CFLAGS="$CFLAGS -D__arm__"
14562 LINTFLAGS="$LINTFLAGS -D__arm__"
14563 fi ;;
14564 esac
14566 case $host_vendor in
14567 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14568 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14569 if ${ac_cv_cpp_def___sun__+:} false; then :
14570 $as_echo_n "(cached) " >&6
14571 else
14572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h. */
14574 #ifndef __sun__
14576 #endif
14577 _ACEOF
14578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14579 $EGREP "yes" >/dev/null 2>&1; then :
14580 ac_cv_cpp_def___sun__=yes
14581 else
14582 ac_cv_cpp_def___sun__=no
14584 rm -f conftest*
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14588 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14589 if test $ac_cv_cpp_def___sun__ = yes; then :
14590 CFLAGS="$CFLAGS -D__sun__"
14591 LINTFLAGS="$LINTFLAGS -D__sun__"
14592 fi ;;
14593 esac
14599 ac_config_commands="$ac_config_commands include/stamp-h"
14602 ALL_MAKEFILE_DEPENDS="
14603 # Rules automatically generated by configure
14605 .INIT: Makefile
14606 .MAKEFILEDEPS:
14607 all: Makefile
14608 Makefile: Makefile.in Make.vars.in Make.rules config.status
14609 @./config.status Make.tmp Makefile"
14611 ALL_POT_FILES=""
14612 ALL_WINETEST_DEPENDS="# Test binaries"
14614 ALL_TEST_BINARIES=""
14617 wine_fn_append_file ()
14619 as_fn_append $1 " \\$as_nl $2"
14622 wine_fn_append_rule ()
14624 as_fn_append $1 "$as_nl$2"
14627 wine_fn_has_flag ()
14629 expr ",$2," : ".*,$1,.*" >/dev/null
14632 wine_fn_all_dir_rules ()
14634 ac_dir=$1
14635 ac_alldeps=$2
14636 ac_makedep="\$(MAKEDEP)"
14637 ac_input=Make.vars.in:$ac_dir/Makefile.in
14638 if test $ac_dir != tools
14639 then
14640 ac_alldeps="$2 $ac_makedep"
14642 case $2 in
14643 *.in) ac_input=$ac_input:$2 ;;
14644 *) ac_makedep="$2 $ac_makedep" ;;
14645 esac
14647 wine_fn_append_file ALL_DIRS $ac_dir
14648 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14649 "__clean__: $ac_dir/__clean__
14650 .PHONY: $ac_dir/__clean__
14651 $ac_dir/__clean__: $ac_dir/Makefile
14652 @cd $ac_dir && \$(MAKE) clean
14653 \$(RM) $ac_dir/Makefile
14654 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14655 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14656 depend: $ac_dir/__depend__
14657 .PHONY: $ac_dir/__depend__
14658 $ac_dir/__depend__: $ac_makedep dummy
14659 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14662 wine_fn_config_makefile ()
14664 ac_dir=$1
14665 ac_enable=$2
14666 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14667 return 0
14670 wine_fn_all_dir_rules $ac_dir Make.rules
14671 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14672 "all: $ac_dir
14673 .PHONY: $ac_dir
14674 $ac_dir: $ac_dir/Makefile dummy
14675 @cd $ac_dir && \$(MAKE)
14676 install:: $ac_dir
14677 @cd $ac_dir && \$(MAKE) install
14678 install-lib:: $ac_dir
14679 @cd $ac_dir && \$(MAKE) install-lib
14680 install-dev:: $ac_dir
14681 @cd $ac_dir && \$(MAKE) install-dev
14682 uninstall:: $ac_dir/Makefile
14683 @cd $ac_dir && \$(MAKE) uninstall"
14686 wine_fn_config_lib ()
14688 ac_name=$1
14689 ac_dir=dlls/$ac_name
14690 wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules
14691 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14692 "all __builddeps__: $ac_dir
14693 $ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
14694 @cd $ac_dir && \$(MAKE)
14695 install install-dev:: $ac_dir
14696 @cd $ac_dir && \$(MAKE) install
14697 uninstall:: $ac_dir/Makefile
14698 @cd $ac_dir && \$(MAKE) uninstall"
14701 wine_fn_config_dll ()
14703 ac_name=$1
14704 ac_dir=dlls/$ac_name
14705 ac_enable=$2
14706 ac_flags=$3
14707 ac_implib=${4:-$ac_name}
14708 ac_file=$ac_dir/lib$ac_implib
14709 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14710 ac_implibflags=""
14712 case $ac_name in
14713 *16) ac_implibflags=" -m16" ;;
14714 esac
14716 wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14718 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14719 test "$ac_enable" != enable_win16 || return 0
14720 else
14721 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14722 "all: $ac_dir
14723 .PHONY: $ac_dir
14724 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14725 @cd $ac_dir && \$(MAKE)
14726 install:: $ac_dir/Makefile __builddeps__
14727 @cd $ac_dir && \$(MAKE) install
14728 install-lib:: $ac_dir/Makefile __builddeps__
14729 @cd $ac_dir && \$(MAKE) install-lib
14730 uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14731 @cd $ac_dir && \$(MAKE) \$@"
14733 if test "x$enable_maintainer_mode" = xyes
14734 then
14735 if wine_fn_has_flag mc $ac_flags
14736 then
14737 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14738 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14739 "$ac_dir/msg.pot: $ac_dir"
14741 if wine_fn_has_flag po $ac_flags
14742 then
14743 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14744 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14745 "$ac_dir/rsrc.pot: $ac_dir"
14750 if wine_fn_has_flag staticimplib $ac_flags
14751 then
14752 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14753 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14754 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14755 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14756 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14757 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14758 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14759 install-dev:: $ac_dir/Makefile __builddeps__
14760 @cd $ac_dir && \$(MAKE) install-dev"
14761 if test "x$CROSSTEST_DISABLE" = x
14762 then
14763 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14764 "__builddeps__: $ac_file.cross.a
14765 $ac_file.cross.a: $ac_dir/Makefile dummy
14766 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14769 elif wine_fn_has_flag implib $ac_flags
14770 then
14771 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14772 "__builddeps__: $ac_file.$IMPLIBEXT
14773 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14774 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14775 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14776 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14777 install-dev:: $ac_dir/Makefile __builddeps__
14778 @cd $ac_dir && \$(MAKE) install-dev"
14779 if test "x$CROSSTEST_DISABLE" = x
14780 then
14781 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14782 "__builddeps__: $ac_file.cross.a
14783 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14784 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14787 if test "$ac_name" != "$ac_implib"
14788 then
14789 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14790 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14791 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14792 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14793 clean::
14794 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14795 if test "x$CROSSTEST_DISABLE" = x
14796 then
14797 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14798 "__builddeps__: dlls/lib$ac_implib.cross.a
14799 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14800 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14806 wine_fn_config_program ()
14808 ac_name=$1
14809 ac_dir=programs/$ac_name
14810 ac_enable=$2
14811 ac_flags=$3
14812 wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules
14814 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14816 else
14817 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14818 "all: $ac_dir
14819 .PHONY: $ac_dir
14820 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14821 @cd $ac_dir && \$(MAKE)"
14823 if test "x$enable_maintainer_mode" = xyes
14824 then
14825 if wine_fn_has_flag mc $ac_flags
14826 then
14827 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14828 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14829 "$ac_dir/msg.pot: $ac_dir"
14831 if wine_fn_has_flag po $ac_flags
14832 then
14833 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14834 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14835 "$ac_dir/rsrc.pot: $ac_dir"
14839 wine_fn_has_flag install $ac_flags || return
14840 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14841 "install install-lib:: $ac_dir/Makefile __builddeps__
14842 @cd $ac_dir && \$(MAKE) install
14843 uninstall:: $ac_dir/Makefile
14844 @cd $ac_dir && \$(MAKE) uninstall"
14845 if test -n "$DLLEXT" -a "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14846 then
14847 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14848 "install install-lib:: tools \$(DESTDIR)\$(bindir)
14849 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14850 uninstall::
14851 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14856 wine_fn_config_test ()
14858 ac_dir=$1
14859 ac_name=$2
14860 wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14861 wine_fn_append_rule ALL_WINETEST_DEPENDS \
14862 "$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT
14863 cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14864 $ac_name.rc:
14865 echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14866 $ac_name.res: $ac_name.rc $ac_name.exe"
14867 wine_fn_all_dir_rules $ac_dir Maketest.rules
14869 if test "x$enable_tests" = xno; then :
14871 else
14872 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14873 "all programs/winetest: $ac_dir
14874 .PHONY: $ac_dir
14875 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14876 @cd $ac_dir && \$(MAKE)
14877 test: $ac_dir/__test__
14878 .PHONY: $ac_dir/__test__
14879 $ac_dir/__test__: dummy
14880 @cd $ac_dir && \$(MAKE) test
14881 testclean::
14882 \$(RM) $ac_dir/*.ok"
14884 if test "x$CROSSTEST_DISABLE" = x
14885 then
14886 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14887 "crosstest: $ac_dir/__crosstest__
14888 .PHONY: $ac_dir/__crosstest__
14889 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14890 @cd $ac_dir && \$(MAKE) crosstest"
14895 wine_fn_config_tool ()
14897 ac_dir=$1
14898 if test "x$enable_tools" = xno; then :
14899 return 0
14902 wine_fn_all_dir_rules $ac_dir Make.rules
14904 case $ac_dir in
14905 tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14906 "install:: $ac_dir
14907 @cd $ac_dir && \$(MAKE) install
14908 install-lib:: $ac_dir
14909 @cd $ac_dir && \$(MAKE) install-lib
14910 install-dev:: $ac_dir
14911 @cd $ac_dir && \$(MAKE) install-dev" ;;
14912 *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14913 "install install-dev:: $ac_dir
14914 @cd $ac_dir && \$(MAKE) install" ;;
14915 esac
14916 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14917 "uninstall:: $ac_dir/Makefile
14918 @cd $ac_dir && \$(MAKE) uninstall
14919 all __tooldeps__: $ac_dir
14920 .PHONY: $ac_dir
14921 $ac_dir: $ac_dir/Makefile libs/port dummy
14922 @cd $ac_dir && \$(MAKE)"
14923 case $ac_dir in
14924 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14925 esac
14928 wine_fn_config_makerules ()
14930 ac_rules=$1
14931 ac_deps=$2
14932 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14933 "$ac_rules: $ac_rules.in $ac_deps config.status
14934 @./config.status $ac_rules
14935 distclean::
14936 \$(RM) $ac_rules"
14939 wine_fn_config_symlink ()
14941 ac_link=$1
14942 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14943 "$ac_link:
14944 @./config.status $ac_link
14945 distclean::
14946 \$(RM) $ac_link"
14949 if test "x$CROSSTEST_DISABLE" != x
14950 then
14951 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14952 "crosstest:
14953 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14955 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14956 wine_fn_config_symlink dlls/shell32/AUTHORS
14957 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14958 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14959 if test "x$enable_fonts" != xno; then
14960 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14961 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14963 if test "x$enable_fonts" != xno; then
14964 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14965 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14967 if test "x$enable_fonts" != xno; then
14968 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14969 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14971 if test "x$enable_fonts" != xno; then
14972 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14973 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14975 if test "x$enable_tools" != xno; then
14976 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14977 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14979 ac_config_links="$ac_config_links wine:tools/winewrapper"
14980 wine_fn_config_symlink wine
14981 if test "x$enable_win64" != xno; then
14982 ac_config_links="$ac_config_links wine64:tools/winewrapper"
14983 wine_fn_config_symlink wine64
14986 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14988 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14990 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14992 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14994 ac_config_commands="$ac_config_commands dlls/user32/resources"
14996 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14998 ac_config_commands="$ac_config_commands include/wine"
15001 wine_fn_config_makerules Make.rules
15002 MAKE_RULES=Make.rules
15003 ac_config_files="$ac_config_files Make.rules"
15005 wine_fn_config_makerules Maketest.rules Make.rules
15006 MAKE_TEST_RULES=Maketest.rules
15007 ac_config_files="$ac_config_files Maketest.rules"
15009 wine_fn_config_makerules dlls/Makedll.rules Make.rules
15010 MAKE_DLL_RULES=dlls/Makedll.rules
15011 ac_config_files="$ac_config_files dlls/Makedll.rules"
15013 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
15014 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
15015 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
15017 wine_fn_config_makerules programs/Makeprog.rules Make.rules
15018 MAKE_PROG_RULES=programs/Makeprog.rules
15019 ac_config_files="$ac_config_files programs/Makeprog.rules"
15022 wine_fn_config_dll acledit enable_acledit
15023 wine_fn_config_dll aclui enable_aclui implib
15024 wine_fn_config_dll activeds enable_activeds implib
15025 wine_fn_config_dll actxprxy enable_actxprxy
15026 wine_fn_config_lib adsiid
15027 wine_fn_config_dll advapi32 enable_advapi32 implib
15028 wine_fn_config_test dlls/advapi32/tests advapi32_test
15029 wine_fn_config_dll advpack enable_advpack implib
15030 wine_fn_config_test dlls/advpack/tests advpack_test
15031 wine_fn_config_dll amstream enable_amstream
15032 wine_fn_config_test dlls/amstream/tests amstream_test
15033 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
15034 wine_fn_config_dll atl enable_atl implib
15035 wine_fn_config_test dlls/atl/tests atl_test
15036 wine_fn_config_dll authz enable_authz
15037 wine_fn_config_dll avicap32 enable_avicap32 implib
15038 wine_fn_config_dll avifil32 enable_avifil32 po,implib
15039 wine_fn_config_test dlls/avifil32/tests avifil32_test
15040 wine_fn_config_dll avifile.dll16 enable_win16
15041 wine_fn_config_dll avrt enable_avrt implib
15042 wine_fn_config_dll bcrypt enable_bcrypt
15043 wine_fn_config_dll browseui enable_browseui po
15044 wine_fn_config_test dlls/browseui/tests browseui_test
15045 wine_fn_config_dll cabinet enable_cabinet implib
15046 wine_fn_config_test dlls/cabinet/tests cabinet_test
15047 wine_fn_config_dll capi2032 enable_capi2032 implib
15048 wine_fn_config_dll cards enable_cards implib
15049 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
15050 wine_fn_config_dll clusapi enable_clusapi implib
15051 wine_fn_config_dll comcat enable_comcat
15052 wine_fn_config_test dlls/comcat/tests comcat_test
15053 wine_fn_config_dll comctl32 enable_comctl32 po,implib
15054 wine_fn_config_test dlls/comctl32/tests comctl32_test
15055 wine_fn_config_dll comdlg32 enable_comdlg32 po,implib
15056 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
15057 wine_fn_config_dll comm.drv16 enable_win16
15058 wine_fn_config_dll commdlg.dll16 enable_win16
15059 wine_fn_config_dll compobj.dll16 enable_win16
15060 wine_fn_config_dll compstui enable_compstui implib
15061 wine_fn_config_dll credui enable_credui po,implib
15062 wine_fn_config_test dlls/credui/tests credui_test
15063 wine_fn_config_dll crtdll enable_crtdll implib
15064 wine_fn_config_dll crypt32 enable_crypt32 po,implib
15065 wine_fn_config_test dlls/crypt32/tests crypt32_test
15066 wine_fn_config_dll cryptdlg enable_cryptdlg po
15067 wine_fn_config_dll cryptdll enable_cryptdll implib
15068 wine_fn_config_dll cryptnet enable_cryptnet implib
15069 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
15070 wine_fn_config_dll cryptui enable_cryptui po,implib
15071 wine_fn_config_test dlls/cryptui/tests cryptui_test
15072 wine_fn_config_dll ctapi32 enable_ctapi32
15073 wine_fn_config_dll ctl3d.dll16 enable_win16
15074 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
15075 wine_fn_config_dll ctl3dv2.dll16 enable_win16
15076 wine_fn_config_dll d3d10 enable_d3d10 implib
15077 wine_fn_config_test dlls/d3d10/tests d3d10_test
15078 wine_fn_config_dll d3d10core enable_d3d10core implib
15079 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
15080 wine_fn_config_dll d3d8 enable_d3d8 implib
15081 wine_fn_config_test dlls/d3d8/tests d3d8_test
15082 wine_fn_config_dll d3d9 enable_d3d9 implib
15083 wine_fn_config_test dlls/d3d9/tests d3d9_test
15084 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
15085 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
15086 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
15087 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
15088 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
15089 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
15090 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
15091 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
15092 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
15093 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
15094 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
15095 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
15096 wine_fn_config_dll d3dim enable_d3dim implib
15097 wine_fn_config_dll d3drm enable_d3drm implib
15098 wine_fn_config_test dlls/d3drm/tests d3drm_test
15099 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15100 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15101 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15102 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15103 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15104 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15105 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15106 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15107 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15108 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15109 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15110 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15111 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15112 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15113 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15114 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15115 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15116 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15117 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15118 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15119 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15120 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15121 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15122 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15123 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15124 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15125 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15126 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15127 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15128 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15129 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15130 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15131 wine_fn_config_dll d3dxof enable_d3dxof implib
15132 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15133 wine_fn_config_dll dbgeng enable_dbgeng implib
15134 wine_fn_config_dll dbghelp enable_dbghelp implib
15135 wine_fn_config_dll dciman32 enable_dciman32 implib
15136 wine_fn_config_dll ddeml.dll16 enable_win16
15137 wine_fn_config_dll ddraw enable_ddraw implib
15138 wine_fn_config_test dlls/ddraw/tests ddraw_test
15139 wine_fn_config_dll ddrawex enable_ddrawex
15140 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15141 wine_fn_config_dll devenum enable_devenum po
15142 wine_fn_config_dll dinput enable_dinput implib,staticimplib
15143 wine_fn_config_test dlls/dinput/tests dinput_test
15144 wine_fn_config_dll dinput8 enable_dinput8 implib
15145 wine_fn_config_test dlls/dinput8/tests dinput8_test
15146 wine_fn_config_dll dispdib.dll16 enable_win16
15147 wine_fn_config_dll dispex enable_dispex
15148 wine_fn_config_test dlls/dispex/tests dispex_test
15149 wine_fn_config_dll display.drv16 enable_win16
15150 wine_fn_config_dll dmband enable_dmband
15151 wine_fn_config_dll dmcompos enable_dmcompos
15152 wine_fn_config_dll dmime enable_dmime
15153 wine_fn_config_test dlls/dmime/tests dmime_test
15154 wine_fn_config_dll dmloader enable_dmloader
15155 wine_fn_config_test dlls/dmloader/tests dmloader_test
15156 wine_fn_config_dll dmscript enable_dmscript
15157 wine_fn_config_dll dmstyle enable_dmstyle
15158 wine_fn_config_dll dmsynth enable_dmsynth
15159 wine_fn_config_dll dmusic enable_dmusic
15160 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15161 wine_fn_config_dll dnsapi enable_dnsapi implib
15162 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15163 wine_fn_config_dll dplay enable_dplay implib
15164 wine_fn_config_dll dplayx enable_dplayx implib
15165 wine_fn_config_test dlls/dplayx/tests dplayx_test
15166 wine_fn_config_dll dpnaddr enable_dpnaddr
15167 wine_fn_config_dll dpnet enable_dpnet implib
15168 wine_fn_config_dll dpnhpast enable_dpnhpast
15169 wine_fn_config_dll dpnlobby enable_dpnlobby
15170 wine_fn_config_dll dpwsockx enable_dpwsockx
15171 wine_fn_config_dll drmclien enable_drmclien
15172 wine_fn_config_dll dsound enable_dsound implib
15173 wine_fn_config_test dlls/dsound/tests dsound_test
15174 wine_fn_config_dll dssenh enable_dssenh
15175 wine_fn_config_dll dswave enable_dswave
15176 wine_fn_config_dll dwmapi enable_dwmapi implib
15177 wine_fn_config_dll dxdiagn enable_dxdiagn po
15178 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15179 wine_fn_config_lib dxerr8
15180 wine_fn_config_lib dxerr9
15181 wine_fn_config_dll dxgi enable_dxgi implib
15182 wine_fn_config_test dlls/dxgi/tests dxgi_test
15183 wine_fn_config_lib dxguid
15184 wine_fn_config_dll explorerframe enable_explorerframe
15185 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15186 wine_fn_config_dll faultrep enable_faultrep implib
15187 wine_fn_config_test dlls/faultrep/tests faultrep_test
15188 wine_fn_config_dll fltlib enable_fltlib
15189 wine_fn_config_dll fusion enable_fusion
15190 wine_fn_config_test dlls/fusion/tests fusion_test
15191 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15192 wine_fn_config_dll gameux enable_gameux
15193 wine_fn_config_test dlls/gameux/tests gameux_test
15194 wine_fn_config_dll gdi.exe16 enable_win16
15195 wine_fn_config_dll gdi32 enable_gdi32 implib
15196 wine_fn_config_test dlls/gdi32/tests gdi32_test
15197 wine_fn_config_dll gdiplus enable_gdiplus implib
15198 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15199 wine_fn_config_dll glu32 enable_glu32 implib
15200 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
15201 wine_fn_config_dll gpkcsp enable_gpkcsp
15202 wine_fn_config_dll hal enable_hal
15203 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15204 wine_fn_config_dll hid enable_hid implib
15205 wine_fn_config_dll hlink enable_hlink implib
15206 wine_fn_config_test dlls/hlink/tests hlink_test
15207 wine_fn_config_dll hnetcfg enable_hnetcfg
15208 wine_fn_config_dll httpapi enable_httpapi
15209 wine_fn_config_dll iccvid enable_iccvid po
15210 wine_fn_config_dll icmp enable_icmp
15211 wine_fn_config_dll ifsmgr.vxd enable_win16
15212 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15213 wine_fn_config_dll imagehlp enable_imagehlp implib
15214 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15215 wine_fn_config_dll imm.dll16 enable_win16
15216 wine_fn_config_dll imm32 enable_imm32 implib
15217 wine_fn_config_test dlls/imm32/tests imm32_test
15218 wine_fn_config_dll inetcomm enable_inetcomm implib
15219 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15220 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15221 wine_fn_config_dll inetmib1 enable_inetmib1
15222 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15223 wine_fn_config_dll infosoft enable_infosoft
15224 wine_fn_config_test dlls/infosoft/tests infosoft_test
15225 wine_fn_config_dll initpki enable_initpki
15226 wine_fn_config_dll inkobj enable_inkobj
15227 wine_fn_config_dll inseng enable_inseng
15228 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15229 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15230 wine_fn_config_dll itircl enable_itircl
15231 wine_fn_config_dll itss enable_itss
15232 wine_fn_config_test dlls/itss/tests itss_test
15233 wine_fn_config_dll jscript enable_jscript po
15234 wine_fn_config_test dlls/jscript/tests jscript_test
15235 wine_fn_config_dll kernel32 enable_kernel32 mc,implib
15236 wine_fn_config_test dlls/kernel32/tests kernel32_test
15237 wine_fn_config_dll keyboard.drv16 enable_win16
15238 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15239 wine_fn_config_dll ktmw32 enable_ktmw32
15240 wine_fn_config_dll loadperf enable_loadperf implib
15241 wine_fn_config_dll localspl enable_localspl po
15242 wine_fn_config_test dlls/localspl/tests localspl_test
15243 wine_fn_config_dll localui enable_localui po
15244 wine_fn_config_test dlls/localui/tests localui_test
15245 wine_fn_config_dll lz32 enable_lz32 implib
15246 wine_fn_config_test dlls/lz32/tests lz32_test
15247 wine_fn_config_dll lzexpand.dll16 enable_win16
15248 wine_fn_config_dll mapi32 enable_mapi32 po,implib
15249 wine_fn_config_test dlls/mapi32/tests mapi32_test
15250 wine_fn_config_dll mapistub enable_mapistub
15251 wine_fn_config_dll mciavi32 enable_mciavi32
15252 wine_fn_config_dll mcicda enable_mcicda
15253 wine_fn_config_dll mciqtz32 enable_mciqtz32
15254 wine_fn_config_dll mciseq enable_mciseq
15255 wine_fn_config_dll mciwave enable_mciwave
15256 wine_fn_config_dll midimap enable_midimap
15257 wine_fn_config_dll mlang enable_mlang implib
15258 wine_fn_config_test dlls/mlang/tests mlang_test
15259 wine_fn_config_dll mmdevapi enable_mmdevapi
15260 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15261 wine_fn_config_dll mmdevldr.vxd enable_win16
15262 wine_fn_config_dll mmsystem.dll16 enable_win16
15263 wine_fn_config_dll monodebg.vxd enable_win16
15264 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15265 wine_fn_config_dll mouse.drv16 enable_win16
15266 wine_fn_config_dll mpr enable_mpr po,implib
15267 wine_fn_config_dll mprapi enable_mprapi implib
15268 wine_fn_config_dll msacm.dll16 enable_win16
15269 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15270 wine_fn_config_dll msacm32 enable_msacm32 implib
15271 wine_fn_config_test dlls/msacm32/tests msacm32_test
15272 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15273 wine_fn_config_dll mscat32 enable_mscat32
15274 wine_fn_config_dll mscms enable_mscms implib
15275 wine_fn_config_test dlls/mscms/tests mscms_test
15276 wine_fn_config_dll mscoree enable_mscoree
15277 wine_fn_config_test dlls/mscoree/tests mscoree_test
15278 wine_fn_config_dll msctf enable_msctf
15279 wine_fn_config_test dlls/msctf/tests msctf_test
15280 wine_fn_config_dll msdaps enable_msdaps
15281 wine_fn_config_dll msdmo enable_msdmo implib
15282 wine_fn_config_dll msftedit enable_msftedit
15283 wine_fn_config_dll msg711.acm enable_msg711_acm
15284 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15285 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15286 wine_fn_config_dll mshtml enable_mshtml po,implib
15287 wine_fn_config_test dlls/mshtml/tests mshtml_test
15288 wine_fn_config_dll msi enable_msi po,implib
15289 wine_fn_config_test dlls/msi/tests msi_test
15290 wine_fn_config_dll msimg32 enable_msimg32 implib
15291 wine_fn_config_dll msimsg enable_msimsg
15292 wine_fn_config_dll msimtf enable_msimtf
15293 wine_fn_config_dll msisip enable_msisip
15294 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15295 wine_fn_config_dll msnet32 enable_msnet32
15296 wine_fn_config_dll mspatcha enable_mspatcha
15297 wine_fn_config_dll msrle32 enable_msrle32 po
15298 wine_fn_config_dll mssign32 enable_mssign32
15299 wine_fn_config_dll mssip32 enable_mssip32
15300 wine_fn_config_dll mstask enable_mstask
15301 wine_fn_config_test dlls/mstask/tests mstask_test
15302 wine_fn_config_dll msvcirt enable_msvcirt
15303 wine_fn_config_dll msvcp100 enable_msvcp100
15304 wine_fn_config_dll msvcp60 enable_msvcp60
15305 wine_fn_config_dll msvcp70 enable_msvcp70
15306 wine_fn_config_dll msvcp71 enable_msvcp71
15307 wine_fn_config_dll msvcp80 enable_msvcp80
15308 wine_fn_config_dll msvcp90 enable_msvcp90
15309 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15310 wine_fn_config_dll msvcr100 enable_msvcr100
15311 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15312 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15313 wine_fn_config_dll msvcr80 enable_msvcr80
15314 wine_fn_config_dll msvcr90 enable_msvcr90
15315 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15316 wine_fn_config_dll msvcrt enable_msvcrt implib
15317 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15318 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15319 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15320 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15321 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15322 wine_fn_config_dll msvfw32 enable_msvfw32 po,implib
15323 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15324 wine_fn_config_dll msvidc32 enable_msvidc32 po
15325 wine_fn_config_dll msvideo.dll16 enable_win16
15326 wine_fn_config_dll mswsock enable_mswsock implib
15327 wine_fn_config_dll msxml enable_msxml
15328 wine_fn_config_dll msxml2 enable_msxml2
15329 wine_fn_config_dll msxml3 enable_msxml3
15330 wine_fn_config_test dlls/msxml3/tests msxml3_test
15331 wine_fn_config_dll msxml4 enable_msxml4
15332 wine_fn_config_dll msxml6 enable_msxml6
15333 wine_fn_config_dll nddeapi enable_nddeapi implib
15334 wine_fn_config_dll netapi32 enable_netapi32 implib
15335 wine_fn_config_test dlls/netapi32/tests netapi32_test
15336 wine_fn_config_dll newdev enable_newdev implib
15337 wine_fn_config_dll normaliz enable_normaliz implib
15338 wine_fn_config_dll npmshtml enable_npmshtml
15339 wine_fn_config_dll ntdll enable_ntdll implib
15340 wine_fn_config_test dlls/ntdll/tests ntdll_test
15341 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15342 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15343 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15344 wine_fn_config_dll ntprint enable_ntprint
15345 wine_fn_config_test dlls/ntprint/tests ntprint_test
15346 wine_fn_config_dll objsel enable_objsel
15347 wine_fn_config_dll odbc32 enable_odbc32 implib
15348 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15349 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15350 wine_fn_config_dll ole2.dll16 enable_win16
15351 wine_fn_config_dll ole2conv.dll16 enable_win16
15352 wine_fn_config_dll ole2disp.dll16 enable_win16
15353 wine_fn_config_dll ole2nls.dll16 enable_win16
15354 wine_fn_config_dll ole2prox.dll16 enable_win16
15355 wine_fn_config_dll ole2thk.dll16 enable_win16
15356 wine_fn_config_dll ole32 enable_ole32 implib
15357 wine_fn_config_test dlls/ole32/tests ole32_test
15358 wine_fn_config_dll oleacc enable_oleacc po,implib
15359 wine_fn_config_test dlls/oleacc/tests oleacc_test
15360 wine_fn_config_dll oleaut32 enable_oleaut32 po,implib
15361 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15362 wine_fn_config_dll olecli.dll16 enable_win16
15363 wine_fn_config_dll olecli32 enable_olecli32 implib
15364 wine_fn_config_dll oledb32 enable_oledb32
15365 wine_fn_config_test dlls/oledb32/tests oledb32_test
15366 wine_fn_config_dll oledlg enable_oledlg po,implib
15367 wine_fn_config_dll olepro32 enable_olepro32 implib
15368 wine_fn_config_dll olesvr.dll16 enable_win16
15369 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15370 wine_fn_config_dll olethk32 enable_olethk32
15371 wine_fn_config_dll openal32 enable_openal32
15372 wine_fn_config_dll opencl enable_opencl
15373 wine_fn_config_dll opengl32 enable_opengl32 implib
15374 wine_fn_config_test dlls/opengl32/tests opengl32_test
15375 wine_fn_config_dll pdh enable_pdh implib
15376 wine_fn_config_test dlls/pdh/tests pdh_test
15377 wine_fn_config_dll pidgen enable_pidgen
15378 wine_fn_config_dll powrprof enable_powrprof implib
15379 wine_fn_config_dll printui enable_printui
15380 wine_fn_config_dll propsys enable_propsys implib
15381 wine_fn_config_test dlls/propsys/tests propsys_test
15382 wine_fn_config_dll psapi enable_psapi implib
15383 wine_fn_config_test dlls/psapi/tests psapi_test
15384 wine_fn_config_dll pstorec enable_pstorec
15385 wine_fn_config_dll qcap enable_qcap
15386 wine_fn_config_dll qedit enable_qedit
15387 wine_fn_config_test dlls/qedit/tests qedit_test
15388 wine_fn_config_dll qmgr enable_qmgr
15389 wine_fn_config_test dlls/qmgr/tests qmgr_test
15390 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15391 wine_fn_config_dll quartz enable_quartz implib
15392 wine_fn_config_test dlls/quartz/tests quartz_test
15393 wine_fn_config_dll query enable_query
15394 wine_fn_config_dll rasapi16.dll16 enable_win16
15395 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15396 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15397 wine_fn_config_dll rasdlg enable_rasdlg implib
15398 wine_fn_config_dll resutils enable_resutils implib
15399 wine_fn_config_dll riched20 enable_riched20 implib
15400 wine_fn_config_test dlls/riched20/tests riched20_test
15401 wine_fn_config_dll riched32 enable_riched32
15402 wine_fn_config_test dlls/riched32/tests riched32_test
15403 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15404 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15405 wine_fn_config_dll rsabase enable_rsabase
15406 wine_fn_config_dll rsaenh enable_rsaenh implib
15407 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15408 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15409 wine_fn_config_dll rtutils enable_rtutils implib
15410 wine_fn_config_dll samlib enable_samlib
15411 wine_fn_config_dll sane.ds enable_sane_ds po
15412 wine_fn_config_dll scarddlg enable_scarddlg
15413 wine_fn_config_dll sccbase enable_sccbase
15414 wine_fn_config_dll schannel enable_schannel
15415 wine_fn_config_test dlls/schannel/tests schannel_test
15416 wine_fn_config_dll secur32 enable_secur32 implib
15417 wine_fn_config_test dlls/secur32/tests secur32_test
15418 wine_fn_config_dll security enable_security
15419 wine_fn_config_dll sensapi enable_sensapi implib
15420 wine_fn_config_dll serialui enable_serialui implib
15421 wine_fn_config_test dlls/serialui/tests serialui_test
15422 wine_fn_config_dll setupapi enable_setupapi po,implib
15423 wine_fn_config_test dlls/setupapi/tests setupapi_test
15424 wine_fn_config_dll setupx.dll16 enable_win16
15425 wine_fn_config_dll sfc enable_sfc implib
15426 wine_fn_config_dll sfc_os enable_sfc_os implib
15427 wine_fn_config_dll shdoclc enable_shdoclc po
15428 wine_fn_config_dll shdocvw enable_shdocvw po,implib
15429 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15430 wine_fn_config_dll shell.dll16 enable_win16
15431 wine_fn_config_dll shell32 enable_shell32 po,implib
15432 wine_fn_config_test dlls/shell32/tests shell32_test
15433 wine_fn_config_dll shfolder enable_shfolder implib
15434 wine_fn_config_dll shlwapi enable_shlwapi po,implib
15435 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15436 wine_fn_config_dll slbcsp enable_slbcsp
15437 wine_fn_config_dll slc enable_slc implib
15438 wine_fn_config_dll snmpapi enable_snmpapi implib
15439 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15440 wine_fn_config_dll softpub enable_softpub
15441 wine_fn_config_dll sound.drv16 enable_win16
15442 wine_fn_config_dll spoolss enable_spoolss implib
15443 wine_fn_config_test dlls/spoolss/tests spoolss_test
15444 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15445 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15446 wine_fn_config_dll sti enable_sti implib
15447 wine_fn_config_test dlls/sti/tests sti_test
15448 wine_fn_config_dll storage.dll16 enable_win16
15449 wine_fn_config_dll stress.dll16 enable_win16
15450 wine_fn_config_lib strmbase
15451 wine_fn_config_lib strmiids
15452 wine_fn_config_dll svrapi enable_svrapi
15453 wine_fn_config_dll sxs enable_sxs
15454 wine_fn_config_dll system.drv16 enable_win16
15455 wine_fn_config_dll t2embed enable_t2embed
15456 wine_fn_config_dll tapi32 enable_tapi32 implib
15457 wine_fn_config_dll toolhelp.dll16 enable_win16
15458 wine_fn_config_dll traffic enable_traffic
15459 wine_fn_config_dll twain.dll16 enable_win16
15460 wine_fn_config_dll twain_32 enable_twain_32
15461 wine_fn_config_test dlls/twain_32/tests twain_32_test
15462 wine_fn_config_dll typelib.dll16 enable_win16
15463 wine_fn_config_dll unicows enable_unicows implib
15464 wine_fn_config_dll updspapi enable_updspapi
15465 wine_fn_config_dll url enable_url implib
15466 wine_fn_config_dll urlmon enable_urlmon implib
15467 wine_fn_config_test dlls/urlmon/tests urlmon_test
15468 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15469 wine_fn_config_dll user.exe16 enable_win16
15470 wine_fn_config_dll user32 enable_user32 po,implib
15471 wine_fn_config_test dlls/user32/tests user32_test
15472 wine_fn_config_dll userenv enable_userenv implib
15473 wine_fn_config_test dlls/userenv/tests userenv_test
15474 wine_fn_config_dll usp10 enable_usp10 implib
15475 wine_fn_config_test dlls/usp10/tests usp10_test
15476 wine_fn_config_lib uuid
15477 wine_fn_config_dll uxtheme enable_uxtheme implib
15478 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15479 wine_fn_config_dll vcomp enable_vcomp
15480 wine_fn_config_dll vdhcp.vxd enable_win16
15481 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15482 wine_fn_config_dll ver.dll16 enable_win16
15483 wine_fn_config_dll version enable_version implib
15484 wine_fn_config_test dlls/version/tests version_test
15485 wine_fn_config_dll vmm.vxd enable_win16
15486 wine_fn_config_dll vnbt.vxd enable_win16
15487 wine_fn_config_dll vnetbios.vxd enable_win16
15488 wine_fn_config_dll vtdapi.vxd enable_win16
15489 wine_fn_config_dll vwin32.vxd enable_win16
15490 wine_fn_config_dll w32skrnl enable_win16
15491 wine_fn_config_dll w32sys.dll16 enable_win16
15492 wine_fn_config_dll wbemprox enable_wbemprox
15493 wine_fn_config_dll wer enable_wer implib
15494 wine_fn_config_test dlls/wer/tests wer_test
15495 wine_fn_config_dll wiaservc enable_wiaservc
15496 wine_fn_config_dll win32s16.dll16 enable_win16
15497 wine_fn_config_dll win87em.dll16 enable_win16
15498 wine_fn_config_dll winaspi.dll16 enable_win16
15499 wine_fn_config_dll windebug.dll16 enable_win16
15500 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15501 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15502 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15503 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15504 wine_fn_config_lib winecrt0
15505 wine_fn_config_dll wined3d enable_wined3d implib
15506 wine_fn_config_dll wineesd.drv enable_wineesd_drv
15507 wine_fn_config_dll winegstreamer enable_winegstreamer
15508 wine_fn_config_dll winejack.drv enable_winejack_drv
15509 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15510 wine_fn_config_dll winemapi enable_winemapi
15511 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15512 wine_fn_config_dll winenas.drv enable_winenas_drv
15513 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15514 wine_fn_config_dll wineps.drv enable_wineps_drv
15515 wine_fn_config_dll wineps16.drv16 enable_win16
15516 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15517 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15518 wine_fn_config_dll winex11.drv enable_winex11_drv
15519 wine_fn_config_dll wing.dll16 enable_win16
15520 wine_fn_config_dll wing32 enable_wing32
15521 wine_fn_config_dll winhttp enable_winhttp implib
15522 wine_fn_config_test dlls/winhttp/tests winhttp_test
15523 wine_fn_config_dll wininet enable_wininet po,implib
15524 wine_fn_config_test dlls/wininet/tests wininet_test
15525 wine_fn_config_dll winmm enable_winmm po,implib
15526 wine_fn_config_test dlls/winmm/tests winmm_test
15527 wine_fn_config_dll winnls.dll16 enable_win16
15528 wine_fn_config_dll winnls32 enable_winnls32 implib
15529 wine_fn_config_dll winscard enable_winscard implib
15530 wine_fn_config_dll winsock.dll16 enable_win16
15531 wine_fn_config_dll winspool.drv enable_winspool_drv po,implib winspool
15532 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15533 wine_fn_config_dll wintab.dll16 enable_win16
15534 wine_fn_config_dll wintab32 enable_wintab32 implib
15535 wine_fn_config_test dlls/wintab32/tests wintab32_test
15536 wine_fn_config_dll wintrust enable_wintrust implib
15537 wine_fn_config_test dlls/wintrust/tests wintrust_test
15538 wine_fn_config_dll wlanapi enable_wlanapi
15539 wine_fn_config_dll wldap32 enable_wldap32 po,implib
15540 wine_fn_config_test dlls/wldap32/tests wldap32_test
15541 wine_fn_config_dll wmi enable_wmi
15542 wine_fn_config_dll wmiutils enable_wmiutils
15543 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15544 wine_fn_config_dll wow32 enable_win16 implib
15545 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15546 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15547 wine_fn_config_dll wsock32 enable_wsock32 implib
15548 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15549 wine_fn_config_dll wuapi enable_wuapi
15550 wine_fn_config_dll wuaueng enable_wuaueng
15551 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15552 wine_fn_config_dll xinput1_1 enable_xinput1_1
15553 wine_fn_config_dll xinput1_2 enable_xinput1_2
15554 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15555 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15556 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15557 wine_fn_config_dll xmllite enable_xmllite
15558 wine_fn_config_test dlls/xmllite/tests xmllite_test
15559 wine_fn_config_makefile documentation enable_documentation
15560 wine_fn_config_makefile fonts enable_fonts
15561 wine_fn_config_makefile include enable_include
15562 wine_fn_config_makefile libs/port enable_libs_port
15563 wine_fn_config_makefile libs/wine enable_libs_wine
15564 wine_fn_config_makefile libs/wpp enable_libs_wpp
15565 wine_fn_config_makefile loader enable_loader
15566 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15567 wine_fn_config_program attrib enable_attrib install
15568 wine_fn_config_program cabarc enable_cabarc install
15569 wine_fn_config_program cacls enable_cacls install
15570 wine_fn_config_program clock enable_clock po,install
15571 wine_fn_config_program cmd enable_cmd po,install
15572 wine_fn_config_test programs/cmd/tests cmd.exe_test
15573 wine_fn_config_program cmdlgtst enable_cmdlgtst
15574 wine_fn_config_program control enable_control install
15575 wine_fn_config_program dxdiag enable_dxdiag install
15576 wine_fn_config_program eject enable_eject install
15577 wine_fn_config_program expand enable_expand install
15578 wine_fn_config_program explorer enable_explorer install
15579 wine_fn_config_program extrac32 enable_extrac32 install
15580 wine_fn_config_program hh enable_hh install
15581 wine_fn_config_program icinfo enable_icinfo install
15582 wine_fn_config_program iexplore enable_iexplore install
15583 wine_fn_config_program ipconfig enable_ipconfig po,install
15584 wine_fn_config_program lodctr enable_lodctr install
15585 wine_fn_config_program mofcomp enable_mofcomp install
15586 wine_fn_config_program mshta enable_mshta install
15587 wine_fn_config_program msiexec enable_msiexec install,installbin
15588 wine_fn_config_program net enable_net po,install
15589 wine_fn_config_program netsh enable_netsh install
15590 wine_fn_config_program ngen enable_ngen install
15591 wine_fn_config_program notepad enable_notepad po,install,installbin
15592 wine_fn_config_program oleview enable_oleview po,install
15593 wine_fn_config_program ping enable_ping install
15594 wine_fn_config_program plugplay enable_plugplay install
15595 wine_fn_config_program progman enable_progman po,install
15596 wine_fn_config_program reg enable_reg po,install
15597 wine_fn_config_program regedit enable_regedit po,install,installbin
15598 wine_fn_config_test programs/regedit/tests regedit.exe_test
15599 wine_fn_config_program regsvcs enable_regsvcs install
15600 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin
15601 wine_fn_config_program rpcss enable_rpcss install
15602 wine_fn_config_program rundll.exe16 enable_win16 install
15603 wine_fn_config_program rundll32 enable_rundll32 install
15604 wine_fn_config_program sc enable_sc install
15605 wine_fn_config_program secedit enable_secedit install
15606 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15607 wine_fn_config_program services enable_services install
15608 wine_fn_config_program spoolsv enable_spoolsv install
15609 wine_fn_config_program start enable_start po,install
15610 wine_fn_config_program svchost enable_svchost install
15611 wine_fn_config_program taskkill enable_taskkill po,install
15612 wine_fn_config_program taskmgr enable_taskmgr po,install
15613 wine_fn_config_program termsv enable_termsv install
15614 wine_fn_config_program uninstaller enable_uninstaller po,install
15615 wine_fn_config_program unlodctr enable_unlodctr install
15616 wine_fn_config_program view enable_view po
15617 wine_fn_config_program wineboot enable_wineboot install,installbin
15618 wine_fn_config_program winebrowser enable_winebrowser install
15619 wine_fn_config_program winecfg enable_winecfg po,install,installbin
15620 wine_fn_config_program wineconsole enable_wineconsole po,install,installbin
15621 wine_fn_config_program winedbg enable_winedbg po,install,installbin
15622 wine_fn_config_program winedevice enable_winedevice install
15623 wine_fn_config_program winefile enable_winefile po,install,installbin
15624 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15625 wine_fn_config_program winemine enable_winemine po,install,installbin
15626 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15627 wine_fn_config_program winepath enable_winepath install,installbin
15628 wine_fn_config_program winetest enable_winetest
15629 wine_fn_config_program winevdm enable_win16 install
15630 wine_fn_config_program winhelp.exe16 enable_win16 install
15631 wine_fn_config_program winhlp32 enable_winhlp32 po,install
15632 wine_fn_config_program winoldap.mod16 enable_win16 install
15633 wine_fn_config_program winver enable_winver install
15634 wine_fn_config_program wmic enable_wmic install
15635 wine_fn_config_program wordpad enable_wordpad po,install
15636 wine_fn_config_program write enable_write po,install
15637 wine_fn_config_program wscript enable_wscript install
15638 wine_fn_config_test programs/wscript/tests wscript.exe_test
15639 wine_fn_config_program xcopy enable_xcopy po,install
15640 wine_fn_config_makefile server enable_server
15641 wine_fn_config_tool tools
15642 wine_fn_config_tool tools/widl
15643 wine_fn_config_tool tools/winebuild
15644 wine_fn_config_tool tools/winedump
15645 wine_fn_config_tool tools/winegcc
15646 wine_fn_config_tool tools/wmc
15647 wine_fn_config_tool tools/wrc
15649 LINGUAS="\
15650 ar \
15651 bg \
15652 ca \
15653 cs \
15654 da \
15655 de \
15656 el \
15657 en \
15658 en_US \
15659 eo \
15660 es \
15661 fa \
15662 fi \
15663 fr \
15664 he \
15665 hi \
15666 hu \
15667 it \
15668 ja \
15669 ko \
15670 lt \
15671 ml \
15672 nb_NO \
15673 nl \
15674 or \
15675 pa \
15676 pl \
15677 pt_BR \
15678 pt_PT \
15679 rm \
15680 ro \
15681 ru \
15682 sk \
15683 sl \
15684 sr_RS@cyrillic \
15685 sr_RS@latin \
15686 sv \
15687 te \
15688 th \
15689 tr \
15690 uk \
15691 wa \
15692 zh_CN \
15693 zh_TW"
15697 ac_config_commands="$ac_config_commands Makefile"
15700 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15704 if test "x$enable_maintainer_mode" = xyes
15705 then
15706 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15707 cd \$(srcdir) && autoconf --warnings=all
15708 \$(srcdir)/include/config.h.in: include/stamp-h.in
15709 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15710 cd \$(srcdir) && autoheader --warnings=all
15711 @echo timestamp > \$@
15713 ALL_POT_FILES =$ALL_POT_FILES
15714 all: \$(ALL_PO_FILES)
15715 \$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
15716 msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15717 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15718 msgcat -o \$@ \$(ALL_POT_FILES)"
15721 if test "x$enable_tools" != xno
15722 then
15723 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15724 clean:: __clean__
15725 \$(RM) tools/makedep\$(EXEEXT)"
15728 if test -n "$with_wine64"
15729 then
15730 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15731 fonts server tools:
15732 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15733 $with_wine64/loader/wine:
15734 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15735 $with_wine64/loader/wine-preloader:
15736 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15737 clean::
15738 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15741 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
15742 -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
15744 cat >confcache <<\_ACEOF
15745 # This file is a shell script that caches the results of configure
15746 # tests run on this system so they can be shared between configure
15747 # scripts and configure runs, see configure's option --config-cache.
15748 # It is not useful on other systems. If it contains results you don't
15749 # want to keep, you may remove or edit it.
15751 # config.status only pays attention to the cache file if you give it
15752 # the --recheck option to rerun configure.
15754 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15755 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15756 # following values.
15758 _ACEOF
15760 # The following way of writing the cache mishandles newlines in values,
15761 # but we know of no workaround that is simple, portable, and efficient.
15762 # So, we kill variables containing newlines.
15763 # Ultrix sh set writes to stderr and can't be redirected directly,
15764 # and sets the high bit in the cache file unless we assign to the vars.
15766 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15767 eval ac_val=\$$ac_var
15768 case $ac_val in #(
15769 *${as_nl}*)
15770 case $ac_var in #(
15771 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15772 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15773 esac
15774 case $ac_var in #(
15775 _ | IFS | as_nl) ;; #(
15776 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15777 *) { eval $ac_var=; unset $ac_var;} ;;
15778 esac ;;
15779 esac
15780 done
15782 (set) 2>&1 |
15783 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15784 *${as_nl}ac_space=\ *)
15785 # `set' does not quote correctly, so add quotes: double-quote
15786 # substitution turns \\\\ into \\, and sed turns \\ into \.
15787 sed -n \
15788 "s/'/'\\\\''/g;
15789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15790 ;; #(
15792 # `set' quotes correctly as required by POSIX, so do not add quotes.
15793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15795 esac |
15796 sort
15798 sed '
15799 /^ac_cv_env_/b end
15800 t clear
15801 :clear
15802 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15803 t end
15804 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15805 :end' >>confcache
15806 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15807 if test -w "$cache_file"; then
15808 if test "x$cache_file" != "x/dev/null"; then
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15810 $as_echo "$as_me: updating cache $cache_file" >&6;}
15811 if test ! -f "$cache_file" || test -h "$cache_file"; then
15812 cat confcache >"$cache_file"
15813 else
15814 case $cache_file in #(
15815 */* | ?:*)
15816 mv -f confcache "$cache_file"$$ &&
15817 mv -f "$cache_file"$$ "$cache_file" ;; #(
15819 mv -f confcache "$cache_file" ;;
15820 esac
15823 else
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15825 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15828 rm -f confcache
15830 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15831 # Let make expand exec_prefix.
15832 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15834 DEFS=-DHAVE_CONFIG_H
15836 ac_libobjs=
15837 ac_ltlibobjs=
15839 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15840 # 1. Remove the extension, and $U if already installed.
15841 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15842 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15843 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15844 # will be set to the directory where LIBOBJS objects are built.
15845 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15846 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15847 done
15848 LIBOBJS=$ac_libobjs
15850 LTLIBOBJS=$ac_ltlibobjs
15854 : "${CONFIG_STATUS=./config.status}"
15855 ac_write_fail=0
15856 ac_clean_files_save=$ac_clean_files
15857 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15859 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15860 as_write_fail=0
15861 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15862 #! $SHELL
15863 # Generated by $as_me.
15864 # Run this file to recreate the current configuration.
15865 # Compiler output produced by configure, useful for debugging
15866 # configure, is in config.log if it exists.
15868 debug=false
15869 ac_cs_recheck=false
15870 ac_cs_silent=false
15872 SHELL=\${CONFIG_SHELL-$SHELL}
15873 export SHELL
15874 _ASEOF
15875 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15876 ## -------------------- ##
15877 ## M4sh Initialization. ##
15878 ## -------------------- ##
15880 # Be more Bourne compatible
15881 DUALCASE=1; export DUALCASE # for MKS sh
15882 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15883 emulate sh
15884 NULLCMD=:
15885 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15886 # is contrary to our usage. Disable this feature.
15887 alias -g '${1+"$@"}'='"$@"'
15888 setopt NO_GLOB_SUBST
15889 else
15890 case `(set -o) 2>/dev/null` in #(
15891 *posix*) :
15892 set -o posix ;; #(
15893 *) :
15895 esac
15899 as_nl='
15901 export as_nl
15902 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15903 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15904 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15905 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15906 # Prefer a ksh shell builtin over an external printf program on Solaris,
15907 # but without wasting forks for bash or zsh.
15908 if test -z "$BASH_VERSION$ZSH_VERSION" \
15909 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15910 as_echo='print -r --'
15911 as_echo_n='print -rn --'
15912 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15913 as_echo='printf %s\n'
15914 as_echo_n='printf %s'
15915 else
15916 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15917 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15918 as_echo_n='/usr/ucb/echo -n'
15919 else
15920 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15921 as_echo_n_body='eval
15922 arg=$1;
15923 case $arg in #(
15924 *"$as_nl"*)
15925 expr "X$arg" : "X\\(.*\\)$as_nl";
15926 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15927 esac;
15928 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15930 export as_echo_n_body
15931 as_echo_n='sh -c $as_echo_n_body as_echo'
15933 export as_echo_body
15934 as_echo='sh -c $as_echo_body as_echo'
15937 # The user is always right.
15938 if test "${PATH_SEPARATOR+set}" != set; then
15939 PATH_SEPARATOR=:
15940 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15941 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15942 PATH_SEPARATOR=';'
15947 # IFS
15948 # We need space, tab and new line, in precisely that order. Quoting is
15949 # there to prevent editors from complaining about space-tab.
15950 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15951 # splitting by setting IFS to empty value.)
15952 IFS=" "" $as_nl"
15954 # Find who we are. Look in the path if we contain no directory separator.
15955 as_myself=
15956 case $0 in #((
15957 *[\\/]* ) as_myself=$0 ;;
15958 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15959 for as_dir in $PATH
15961 IFS=$as_save_IFS
15962 test -z "$as_dir" && as_dir=.
15963 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15964 done
15965 IFS=$as_save_IFS
15968 esac
15969 # We did not find ourselves, most probably we were run as `sh COMMAND'
15970 # in which case we are not to be found in the path.
15971 if test "x$as_myself" = x; then
15972 as_myself=$0
15974 if test ! -f "$as_myself"; then
15975 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15976 exit 1
15979 # Unset variables that we do not need and which cause bugs (e.g. in
15980 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15981 # suppresses any "Segmentation fault" message there. '((' could
15982 # trigger a bug in pdksh 5.2.14.
15983 for as_var in BASH_ENV ENV MAIL MAILPATH
15984 do eval test x\${$as_var+set} = xset \
15985 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15986 done
15987 PS1='$ '
15988 PS2='> '
15989 PS4='+ '
15991 # NLS nuisances.
15992 LC_ALL=C
15993 export LC_ALL
15994 LANGUAGE=C
15995 export LANGUAGE
15997 # CDPATH.
15998 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16001 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16002 # ----------------------------------------
16003 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16004 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16005 # script with STATUS, using 1 if that was 0.
16006 as_fn_error ()
16008 as_status=$1; test $as_status -eq 0 && as_status=1
16009 if test "$4"; then
16010 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16011 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16013 $as_echo "$as_me: error: $2" >&2
16014 as_fn_exit $as_status
16015 } # as_fn_error
16018 # as_fn_set_status STATUS
16019 # -----------------------
16020 # Set $? to STATUS, without forking.
16021 as_fn_set_status ()
16023 return $1
16024 } # as_fn_set_status
16026 # as_fn_exit STATUS
16027 # -----------------
16028 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16029 as_fn_exit ()
16031 set +e
16032 as_fn_set_status $1
16033 exit $1
16034 } # as_fn_exit
16036 # as_fn_unset VAR
16037 # ---------------
16038 # Portably unset VAR.
16039 as_fn_unset ()
16041 { eval $1=; unset $1;}
16043 as_unset=as_fn_unset
16044 # as_fn_append VAR VALUE
16045 # ----------------------
16046 # Append the text in VALUE to the end of the definition contained in VAR. Take
16047 # advantage of any shell optimizations that allow amortized linear growth over
16048 # repeated appends, instead of the typical quadratic growth present in naive
16049 # implementations.
16050 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16051 eval 'as_fn_append ()
16053 eval $1+=\$2
16055 else
16056 as_fn_append ()
16058 eval $1=\$$1\$2
16060 fi # as_fn_append
16062 # as_fn_arith ARG...
16063 # ------------------
16064 # Perform arithmetic evaluation on the ARGs, and store the result in the
16065 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16066 # must be portable across $(()) and expr.
16067 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16068 eval 'as_fn_arith ()
16070 as_val=$(( $* ))
16072 else
16073 as_fn_arith ()
16075 as_val=`expr "$@" || test $? -eq 1`
16077 fi # as_fn_arith
16080 if expr a : '\(a\)' >/dev/null 2>&1 &&
16081 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16082 as_expr=expr
16083 else
16084 as_expr=false
16087 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16088 as_basename=basename
16089 else
16090 as_basename=false
16093 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16094 as_dirname=dirname
16095 else
16096 as_dirname=false
16099 as_me=`$as_basename -- "$0" ||
16100 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16101 X"$0" : 'X\(//\)$' \| \
16102 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16103 $as_echo X/"$0" |
16104 sed '/^.*\/\([^/][^/]*\)\/*$/{
16105 s//\1/
16108 /^X\/\(\/\/\)$/{
16109 s//\1/
16112 /^X\/\(\/\).*/{
16113 s//\1/
16116 s/.*/./; q'`
16118 # Avoid depending upon Character Ranges.
16119 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16120 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16121 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16122 as_cr_digits='0123456789'
16123 as_cr_alnum=$as_cr_Letters$as_cr_digits
16125 ECHO_C= ECHO_N= ECHO_T=
16126 case `echo -n x` in #(((((
16127 -n*)
16128 case `echo 'xy\c'` in
16129 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16130 xy) ECHO_C='\c';;
16131 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16132 ECHO_T=' ';;
16133 esac;;
16135 ECHO_N='-n';;
16136 esac
16138 rm -f conf$$ conf$$.exe conf$$.file
16139 if test -d conf$$.dir; then
16140 rm -f conf$$.dir/conf$$.file
16141 else
16142 rm -f conf$$.dir
16143 mkdir conf$$.dir 2>/dev/null
16145 if (echo >conf$$.file) 2>/dev/null; then
16146 if ln -s conf$$.file conf$$ 2>/dev/null; then
16147 as_ln_s='ln -s'
16148 # ... but there are two gotchas:
16149 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16150 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16151 # In both cases, we have to default to `cp -p'.
16152 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16153 as_ln_s='cp -p'
16154 elif ln conf$$.file conf$$ 2>/dev/null; then
16155 as_ln_s=ln
16156 else
16157 as_ln_s='cp -p'
16159 else
16160 as_ln_s='cp -p'
16162 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16163 rmdir conf$$.dir 2>/dev/null
16166 # as_fn_mkdir_p
16167 # -------------
16168 # Create "$as_dir" as a directory, including parents if necessary.
16169 as_fn_mkdir_p ()
16172 case $as_dir in #(
16173 -*) as_dir=./$as_dir;;
16174 esac
16175 test -d "$as_dir" || eval $as_mkdir_p || {
16176 as_dirs=
16177 while :; do
16178 case $as_dir in #(
16179 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16180 *) as_qdir=$as_dir;;
16181 esac
16182 as_dirs="'$as_qdir' $as_dirs"
16183 as_dir=`$as_dirname -- "$as_dir" ||
16184 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16185 X"$as_dir" : 'X\(//\)[^/]' \| \
16186 X"$as_dir" : 'X\(//\)$' \| \
16187 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16188 $as_echo X"$as_dir" |
16189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16190 s//\1/
16193 /^X\(\/\/\)[^/].*/{
16194 s//\1/
16197 /^X\(\/\/\)$/{
16198 s//\1/
16201 /^X\(\/\).*/{
16202 s//\1/
16205 s/.*/./; q'`
16206 test -d "$as_dir" && break
16207 done
16208 test -z "$as_dirs" || eval "mkdir $as_dirs"
16209 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16212 } # as_fn_mkdir_p
16213 if mkdir -p . 2>/dev/null; then
16214 as_mkdir_p='mkdir -p "$as_dir"'
16215 else
16216 test -d ./-p && rmdir ./-p
16217 as_mkdir_p=false
16220 if test -x / >/dev/null 2>&1; then
16221 as_test_x='test -x'
16222 else
16223 if ls -dL / >/dev/null 2>&1; then
16224 as_ls_L_option=L
16225 else
16226 as_ls_L_option=
16228 as_test_x='
16229 eval sh -c '\''
16230 if test -d "$1"; then
16231 test -d "$1/.";
16232 else
16233 case $1 in #(
16234 -*)set "./$1";;
16235 esac;
16236 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16237 ???[sx]*):;;*)false;;esac;fi
16238 '\'' sh
16241 as_executable_p=$as_test_x
16243 # Sed expression to map a string onto a valid CPP name.
16244 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16246 # Sed expression to map a string onto a valid variable name.
16247 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16250 exec 6>&1
16251 ## ----------------------------------- ##
16252 ## Main body of $CONFIG_STATUS script. ##
16253 ## ----------------------------------- ##
16254 _ASEOF
16255 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16258 # Save the log message, to keep $0 and so on meaningful, and to
16259 # report actual input values of CONFIG_FILES etc. instead of their
16260 # values after options handling.
16261 ac_log="
16262 This file was extended by Wine $as_me 1.3.19, which was
16263 generated by GNU Autoconf 2.68. Invocation command line was
16265 CONFIG_FILES = $CONFIG_FILES
16266 CONFIG_HEADERS = $CONFIG_HEADERS
16267 CONFIG_LINKS = $CONFIG_LINKS
16268 CONFIG_COMMANDS = $CONFIG_COMMANDS
16269 $ $0 $@
16271 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16274 _ACEOF
16276 case $ac_config_files in *"
16277 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16278 esac
16280 case $ac_config_headers in *"
16281 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16282 esac
16285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16286 # Files that config.status was made for.
16287 config_files="$ac_config_files"
16288 config_headers="$ac_config_headers"
16289 config_links="$ac_config_links"
16290 config_commands="$ac_config_commands"
16292 _ACEOF
16294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16295 ac_cs_usage="\
16296 \`$as_me' instantiates files and other configuration actions
16297 from templates according to the current configuration. Unless the files
16298 and actions are specified as TAGs, all are instantiated by default.
16300 Usage: $0 [OPTION]... [TAG]...
16302 -h, --help print this help, then exit
16303 -V, --version print version number and configuration settings, then exit
16304 --config print configuration, then exit
16305 -q, --quiet, --silent
16306 do not print progress messages
16307 -d, --debug don't remove temporary files
16308 --recheck update $as_me by reconfiguring in the same conditions
16309 --file=FILE[:TEMPLATE]
16310 instantiate the configuration file FILE
16311 --header=FILE[:TEMPLATE]
16312 instantiate the configuration header FILE
16314 Configuration files:
16315 $config_files
16317 Configuration headers:
16318 $config_headers
16320 Configuration links:
16321 $config_links
16323 Configuration commands:
16324 $config_commands
16326 Report bugs to <wine-devel@winehq.org>.
16327 Wine home page: <http://www.winehq.org>."
16329 _ACEOF
16330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16331 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16332 ac_cs_version="\\
16333 Wine config.status 1.3.19
16334 configured by $0, generated by GNU Autoconf 2.68,
16335 with options \\"\$ac_cs_config\\"
16337 Copyright (C) 2010 Free Software Foundation, Inc.
16338 This config.status script is free software; the Free Software Foundation
16339 gives unlimited permission to copy, distribute and modify it."
16341 ac_pwd='$ac_pwd'
16342 srcdir='$srcdir'
16343 INSTALL='$INSTALL'
16344 test -n "\$AWK" || AWK=awk
16345 _ACEOF
16347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16348 # The default lists apply if the user does not specify any file.
16349 ac_need_defaults=:
16350 while test $# != 0
16352 case $1 in
16353 --*=?*)
16354 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16355 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16356 ac_shift=:
16358 --*=)
16359 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16360 ac_optarg=
16361 ac_shift=:
16364 ac_option=$1
16365 ac_optarg=$2
16366 ac_shift=shift
16368 esac
16370 case $ac_option in
16371 # Handling of the options.
16372 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16373 ac_cs_recheck=: ;;
16374 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16375 $as_echo "$ac_cs_version"; exit ;;
16376 --config | --confi | --conf | --con | --co | --c )
16377 $as_echo "$ac_cs_config"; exit ;;
16378 --debug | --debu | --deb | --de | --d | -d )
16379 debug=: ;;
16380 --file | --fil | --fi | --f )
16381 $ac_shift
16382 case $ac_optarg in
16383 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16384 '') as_fn_error $? "missing file argument" ;;
16385 esac
16386 as_fn_append CONFIG_FILES " '$ac_optarg'"
16387 ac_need_defaults=false;;
16388 --header | --heade | --head | --hea )
16389 $ac_shift
16390 case $ac_optarg in
16391 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16392 esac
16393 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16394 ac_need_defaults=false;;
16395 --he | --h)
16396 # Conflict between --help and --header
16397 as_fn_error $? "ambiguous option: \`$1'
16398 Try \`$0 --help' for more information.";;
16399 --help | --hel | -h )
16400 $as_echo "$ac_cs_usage"; exit ;;
16401 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16402 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16403 ac_cs_silent=: ;;
16405 # This is an error.
16406 -*) as_fn_error $? "unrecognized option: \`$1'
16407 Try \`$0 --help' for more information." ;;
16409 *) as_fn_append ac_config_targets " $1"
16410 ac_need_defaults=false ;;
16412 esac
16413 shift
16414 done
16416 ac_configure_extra_args=
16418 if $ac_cs_silent; then
16419 exec 6>/dev/null
16420 ac_configure_extra_args="$ac_configure_extra_args --silent"
16423 _ACEOF
16424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16425 if \$ac_cs_recheck; then
16426 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16427 shift
16428 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16429 CONFIG_SHELL='$SHELL'
16430 export CONFIG_SHELL
16431 exec "\$@"
16434 _ACEOF
16435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16436 exec 5>>config.log
16438 echo
16439 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16440 ## Running $as_me. ##
16441 _ASBOX
16442 $as_echo "$ac_log"
16443 } >&5
16445 _ACEOF
16446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16448 # INIT-COMMANDS
16450 wine_fn_output_makefile ()
16452 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16453 $ALL_MAKEFILE_DEPENDS
16454 _WINE_EOF
16455 as_fn_error $? "could not create Makefile" "$LINENO" 5
16458 _ACEOF
16460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16462 # Handling of arguments.
16463 for ac_config_target in $ac_config_targets
16465 case $ac_config_target in
16466 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16467 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16468 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16469 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16470 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16471 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16472 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16473 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16474 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16475 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16476 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
16477 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16478 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16479 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16480 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16481 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16482 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16483 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16484 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16485 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16486 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16487 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16488 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16489 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16490 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16492 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16493 esac
16494 done
16497 # If the user did not use the arguments to specify the items to instantiate,
16498 # then the envvar interface is used. Set only those that are not.
16499 # We use the long form for the default assignment because of an extremely
16500 # bizarre bug on SunOS 4.1.3.
16501 if $ac_need_defaults; then
16502 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16503 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16504 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16505 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16508 # Have a temporary directory for convenience. Make it in the build tree
16509 # simply because there is no reason against having it here, and in addition,
16510 # creating and moving files from /tmp can sometimes cause problems.
16511 # Hook for its removal unless debugging.
16512 # Note that there is a small window in which the directory will not be cleaned:
16513 # after its creation but before its name has been assigned to `$tmp'.
16514 $debug ||
16516 tmp= ac_tmp=
16517 trap 'exit_status=$?
16518 : "${ac_tmp:=$tmp}"
16519 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16521 trap 'as_fn_exit 1' 1 2 13 15
16523 # Create a (secure) tmp directory for tmp files.
16526 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16527 test -d "$tmp"
16528 } ||
16530 tmp=./conf$$-$RANDOM
16531 (umask 077 && mkdir "$tmp")
16532 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16533 ac_tmp=$tmp
16535 # Set up the scripts for CONFIG_FILES section.
16536 # No need to generate them if there are no CONFIG_FILES.
16537 # This happens for instance with `./config.status config.h'.
16538 if test -n "$CONFIG_FILES"; then
16540 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16541 ac_cs_awk_getline=:
16542 ac_cs_awk_pipe_init=
16543 ac_cs_awk_read_file='
16544 while ((getline aline < (F[key])) > 0)
16545 print(aline)
16546 close(F[key])'
16547 ac_cs_awk_pipe_fini=
16548 else
16549 ac_cs_awk_getline=false
16550 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16551 ac_cs_awk_read_file='
16552 print "|#_!!_#|"
16553 print "cat " F[key] " &&"
16554 '$ac_cs_awk_pipe_init
16555 # The final `:' finishes the AND list.
16556 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16558 ac_cr=`echo X | tr X '\015'`
16559 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16560 # But we know of no other shell where ac_cr would be empty at this
16561 # point, so we can use a bashism as a fallback.
16562 if test "x$ac_cr" = x; then
16563 eval ac_cr=\$\'\\r\'
16565 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16566 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16567 ac_cs_awk_cr='\\r'
16568 else
16569 ac_cs_awk_cr=$ac_cr
16572 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16573 _ACEOF
16575 # Create commands to substitute file output variables.
16577 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16578 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16579 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16580 echo "_ACAWK" &&
16581 echo "_ACEOF"
16582 } >conf$$files.sh &&
16583 . ./conf$$files.sh ||
16584 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16585 rm -f conf$$files.sh
16588 echo "cat >conf$$subs.awk <<_ACEOF" &&
16589 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16590 echo "_ACEOF"
16591 } >conf$$subs.sh ||
16592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16593 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16594 ac_delim='%!_!# '
16595 for ac_last_try in false false false false false :; do
16596 . ./conf$$subs.sh ||
16597 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16599 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16600 if test $ac_delim_n = $ac_delim_num; then
16601 break
16602 elif $ac_last_try; then
16603 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16604 else
16605 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16607 done
16608 rm -f conf$$subs.sh
16610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16611 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16612 _ACEOF
16613 sed -n '
16615 s/^/S["/; s/!.*/"]=/
16618 s/^[^!]*!//
16619 :repl
16620 t repl
16621 s/'"$ac_delim"'$//
16622 t delim
16625 s/\(.\{148\}\)..*/\1/
16626 t more1
16627 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16630 b repl
16631 :more1
16632 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16635 s/.\{148\}//
16636 t nl
16637 :delim
16639 s/\(.\{148\}\)..*/\1/
16640 t more2
16641 s/["\\]/\\&/g; s/^/"/; s/$/"/
16644 :more2
16645 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16648 s/.\{148\}//
16649 t delim
16650 ' <conf$$subs.awk | sed '
16651 /^[^""]/{
16653 s/\n//
16655 ' >>$CONFIG_STATUS || ac_write_fail=1
16656 rm -f conf$$subs.awk
16657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16658 _ACAWK
16659 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16660 for (key in S) S_is_set[key] = 1
16661 FS = "\a"
16662 \$ac_cs_awk_pipe_init
16665 line = $ 0
16666 nfields = split(line, field, "@")
16667 substed = 0
16668 len = length(field[1])
16669 for (i = 2; i < nfields; i++) {
16670 key = field[i]
16671 keylen = length(key)
16672 if (S_is_set[key]) {
16673 value = S[key]
16674 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16675 len += length(value) + length(field[++i])
16676 substed = 1
16677 } else
16678 len += 1 + keylen
16680 if (nfields == 3 && !substed) {
16681 key = field[2]
16682 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16683 \$ac_cs_awk_read_file
16684 next
16687 print line
16689 \$ac_cs_awk_pipe_fini
16690 _ACAWK
16691 _ACEOF
16692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16693 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16694 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16695 else
16697 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16698 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16699 _ACEOF
16701 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16702 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16703 # trailing colons and then remove the whole line if VPATH becomes empty
16704 # (actually we leave an empty line to preserve line numbers).
16705 if test "x$srcdir" = x.; then
16706 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16708 s///
16709 s/^/:/
16710 s/[ ]*$/:/
16711 s/:\$(srcdir):/:/g
16712 s/:\${srcdir}:/:/g
16713 s/:@srcdir@:/:/g
16714 s/^:*//
16715 s/:*$//
16717 s/\(=[ ]*\).*/\1/
16719 s/\n//
16720 s/^[^=]*=[ ]*$//
16724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16725 fi # test -n "$CONFIG_FILES"
16727 # Set up the scripts for CONFIG_HEADERS section.
16728 # No need to generate them if there are no CONFIG_HEADERS.
16729 # This happens for instance with `./config.status Makefile'.
16730 if test -n "$CONFIG_HEADERS"; then
16731 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16732 BEGIN {
16733 _ACEOF
16735 # Transform confdefs.h into an awk script `defines.awk', embedded as
16736 # here-document in config.status, that substitutes the proper values into
16737 # config.h.in to produce config.h.
16739 # Create a delimiter string that does not exist in confdefs.h, to ease
16740 # handling of long lines.
16741 ac_delim='%!_!# '
16742 for ac_last_try in false false :; do
16743 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16744 if test -z "$ac_tt"; then
16745 break
16746 elif $ac_last_try; then
16747 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16748 else
16749 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16751 done
16753 # For the awk script, D is an array of macro values keyed by name,
16754 # likewise P contains macro parameters if any. Preserve backslash
16755 # newline sequences.
16757 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16758 sed -n '
16759 s/.\{148\}/&'"$ac_delim"'/g
16760 t rset
16761 :rset
16762 s/^[ ]*#[ ]*define[ ][ ]*/ /
16763 t def
16765 :def
16766 s/\\$//
16767 t bsnl
16768 s/["\\]/\\&/g
16769 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16770 D["\1"]=" \3"/p
16771 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16773 :bsnl
16774 s/["\\]/\\&/g
16775 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16776 D["\1"]=" \3\\\\\\n"\\/p
16777 t cont
16778 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16779 t cont
16781 :cont
16783 s/.\{148\}/&'"$ac_delim"'/g
16784 t clear
16785 :clear
16786 s/\\$//
16787 t bsnlc
16788 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16790 :bsnlc
16791 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16792 b cont
16793 ' <confdefs.h | sed '
16794 s/'"$ac_delim"'/"\\\
16795 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16798 for (key in D) D_is_set[key] = 1
16799 FS = "\a"
16801 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16802 line = \$ 0
16803 split(line, arg, " ")
16804 if (arg[1] == "#") {
16805 defundef = arg[2]
16806 mac1 = arg[3]
16807 } else {
16808 defundef = substr(arg[1], 2)
16809 mac1 = arg[2]
16811 split(mac1, mac2, "(") #)
16812 macro = mac2[1]
16813 prefix = substr(line, 1, index(line, defundef) - 1)
16814 if (D_is_set[macro]) {
16815 # Preserve the white space surrounding the "#".
16816 print prefix "define", macro P[macro] D[macro]
16817 next
16818 } else {
16819 # Replace #undef with comments. This is necessary, for example,
16820 # in the case of _POSIX_SOURCE, which is predefined and required
16821 # on some systems where configure will not decide to define it.
16822 if (defundef == "undef") {
16823 print "/*", prefix defundef, macro, "*/"
16824 next
16828 { print }
16829 _ACAWK
16830 _ACEOF
16831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16832 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16833 fi # test -n "$CONFIG_HEADERS"
16836 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16837 shift
16838 for ac_tag
16840 case $ac_tag in
16841 :[FHLC]) ac_mode=$ac_tag; continue;;
16842 esac
16843 case $ac_mode$ac_tag in
16844 :[FHL]*:*);;
16845 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16846 :[FH]-) ac_tag=-:-;;
16847 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16848 esac
16849 ac_save_IFS=$IFS
16850 IFS=:
16851 set x $ac_tag
16852 IFS=$ac_save_IFS
16853 shift
16854 ac_file=$1
16855 shift
16857 case $ac_mode in
16858 :L) ac_source=$1;;
16859 :[FH])
16860 ac_file_inputs=
16861 for ac_f
16863 case $ac_f in
16864 -) ac_f="$ac_tmp/stdin";;
16865 *) # Look for the file first in the build tree, then in the source tree
16866 # (if the path is not absolute). The absolute path cannot be DOS-style,
16867 # because $ac_f cannot contain `:'.
16868 test -f "$ac_f" ||
16869 case $ac_f in
16870 [\\/$]*) false;;
16871 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16872 esac ||
16873 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16874 esac
16875 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16876 as_fn_append ac_file_inputs " '$ac_f'"
16877 done
16879 # Let's still pretend it is `configure' which instantiates (i.e., don't
16880 # use $as_me), people would be surprised to read:
16881 # /* config.h. Generated by config.status. */
16882 configure_input='Generated from '`
16883 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16884 `' by configure.'
16885 if test x"$ac_file" != x-; then
16886 configure_input="$ac_file. $configure_input"
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16888 $as_echo "$as_me: creating $ac_file" >&6;}
16890 # Neutralize special characters interpreted by sed in replacement strings.
16891 case $configure_input in #(
16892 *\&* | *\|* | *\\* )
16893 ac_sed_conf_input=`$as_echo "$configure_input" |
16894 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16895 *) ac_sed_conf_input=$configure_input;;
16896 esac
16898 case $ac_tag in
16899 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16901 esac
16903 esac
16905 ac_dir=`$as_dirname -- "$ac_file" ||
16906 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16907 X"$ac_file" : 'X\(//\)[^/]' \| \
16908 X"$ac_file" : 'X\(//\)$' \| \
16909 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16910 $as_echo X"$ac_file" |
16911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16912 s//\1/
16915 /^X\(\/\/\)[^/].*/{
16916 s//\1/
16919 /^X\(\/\/\)$/{
16920 s//\1/
16923 /^X\(\/\).*/{
16924 s//\1/
16927 s/.*/./; q'`
16928 as_dir="$ac_dir"; as_fn_mkdir_p
16929 ac_builddir=.
16931 case "$ac_dir" in
16932 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16934 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16935 # A ".." for each directory in $ac_dir_suffix.
16936 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16937 case $ac_top_builddir_sub in
16938 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16939 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16940 esac ;;
16941 esac
16942 ac_abs_top_builddir=$ac_pwd
16943 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16944 # for backward compatibility:
16945 ac_top_builddir=$ac_top_build_prefix
16947 case $srcdir in
16948 .) # We are building in place.
16949 ac_srcdir=.
16950 ac_top_srcdir=$ac_top_builddir_sub
16951 ac_abs_top_srcdir=$ac_pwd ;;
16952 [\\/]* | ?:[\\/]* ) # Absolute name.
16953 ac_srcdir=$srcdir$ac_dir_suffix;
16954 ac_top_srcdir=$srcdir
16955 ac_abs_top_srcdir=$srcdir ;;
16956 *) # Relative name.
16957 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16958 ac_top_srcdir=$ac_top_build_prefix$srcdir
16959 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16960 esac
16961 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16964 case $ac_mode in
16967 # CONFIG_FILE
16970 case $INSTALL in
16971 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16972 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16973 esac
16974 _ACEOF
16976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16977 # If the template does not know about datarootdir, expand it.
16978 # FIXME: This hack should be removed a few years after 2.60.
16979 ac_datarootdir_hack=; ac_datarootdir_seen=
16980 ac_sed_dataroot='
16981 /datarootdir/ {
16985 /@datadir@/p
16986 /@docdir@/p
16987 /@infodir@/p
16988 /@localedir@/p
16989 /@mandir@/p'
16990 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16991 *datarootdir*) ac_datarootdir_seen=yes;;
16992 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16994 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16995 _ACEOF
16996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16997 ac_datarootdir_hack='
16998 s&@datadir@&$datadir&g
16999 s&@docdir@&$docdir&g
17000 s&@infodir@&$infodir&g
17001 s&@localedir@&$localedir&g
17002 s&@mandir@&$mandir&g
17003 s&\\\${datarootdir}&$datarootdir&g' ;;
17004 esac
17005 _ACEOF
17007 # Neutralize VPATH when `$srcdir' = `.'.
17008 # Shell code in configure.ac might set extrasub.
17009 # FIXME: do we really want to maintain this feature?
17010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17011 ac_sed_extra="$ac_vpsub
17012 $extrasub
17013 _ACEOF
17014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17016 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17017 s|@configure_input@|$ac_sed_conf_input|;t t
17018 s&@top_builddir@&$ac_top_builddir_sub&;t t
17019 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17020 s&@srcdir@&$ac_srcdir&;t t
17021 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17022 s&@top_srcdir@&$ac_top_srcdir&;t t
17023 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17024 s&@builddir@&$ac_builddir&;t t
17025 s&@abs_builddir@&$ac_abs_builddir&;t t
17026 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17027 s&@INSTALL@&$ac_INSTALL&;t t
17028 $ac_datarootdir_hack
17030 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17031 if $ac_cs_awk_getline; then
17032 $AWK -f "$ac_tmp/subs.awk"
17033 else
17034 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17035 fi \
17036 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17038 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17039 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17040 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17041 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17043 which seems to be undefined. Please make sure it is defined" >&5
17044 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17045 which seems to be undefined. Please make sure it is defined" >&2;}
17047 rm -f "$ac_tmp/stdin"
17048 case $ac_file in
17049 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17050 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17051 esac \
17052 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17056 # CONFIG_HEADER
17058 if test x"$ac_file" != x-; then
17060 $as_echo "/* $configure_input */" \
17061 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17062 } >"$ac_tmp/config.h" \
17063 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17064 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17066 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17067 else
17068 rm -f "$ac_file"
17069 mv "$ac_tmp/config.h" "$ac_file" \
17070 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17072 else
17073 $as_echo "/* $configure_input */" \
17074 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17075 || as_fn_error $? "could not create -" "$LINENO" 5
17080 # CONFIG_LINK
17083 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17085 else
17086 # Prefer the file from the source tree if names are identical.
17087 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17088 ac_source=$srcdir/$ac_source
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17092 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17094 if test ! -r "$ac_source"; then
17095 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17097 rm -f "$ac_file"
17099 # Try a relative symlink, then a hard link, then a copy.
17100 case $ac_source in
17101 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17102 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17103 esac
17104 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17105 ln "$ac_source" "$ac_file" 2>/dev/null ||
17106 cp -p "$ac_source" "$ac_file" ||
17107 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17110 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17111 $as_echo "$as_me: executing $ac_file commands" >&6;}
17113 esac
17116 case $ac_file$ac_mode in
17117 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17118 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17119 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17120 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17121 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17122 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17123 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17124 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17125 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17126 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17127 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17128 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17129 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17130 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17131 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17132 "Makefile":C) wine_fn_output_makefile Makefile ;;
17134 esac
17135 done # for ac_tag
17138 as_fn_exit 0
17139 _ACEOF
17140 ac_clean_files=$ac_clean_files_save
17142 test $ac_write_fail = 0 ||
17143 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17146 # configure is writing to config.log, and then calls config.status.
17147 # config.status does its own redirection, appending to config.log.
17148 # Unfortunately, on DOS this fails, as config.log is still kept open
17149 # by configure, so config.status won't be able to write to it; its
17150 # output is simply discarded. So we exec the FD to /dev/null,
17151 # effectively closing config.log, so it can be properly (re)opened and
17152 # appended to by config.status. When coming back to configure, we
17153 # need to make the FD available again.
17154 if test "$no_create" != yes; then
17155 ac_cs_success=:
17156 ac_config_status_args=
17157 test "$silent" = yes &&
17158 ac_config_status_args="$ac_config_status_args --quiet"
17159 exec 5>/dev/null
17160 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17161 exec 5>>config.log
17162 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17163 # would make configure fail if this is the last instruction.
17164 $ac_cs_success || as_fn_exit 1
17166 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17168 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17172 if test "$no_create" = "yes"
17173 then
17174 exit 0
17177 ac_save_IFS="$IFS"
17178 if test "x$wine_notices != "x; then
17179 echo >&6
17180 IFS="|"
17181 for msg in $wine_notices; do
17182 IFS="$ac_save_IFS"
17183 if test -n "$msg"; then
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17185 $as_echo "$as_me: $msg" >&6;}
17187 done
17189 IFS="|"
17190 for msg in $wine_warnings; do
17191 IFS="$ac_save_IFS"
17192 if test -n "$msg"; then
17193 echo >&2
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17195 $as_echo "$as_me: WARNING: $msg" >&2;}
17197 done
17198 IFS="$ac_save_IFS"
17200 echo "
17201 $as_me: Finished. Do '${ac_make}' to compile Wine.
17202 " >&6