wined3d: Add stream offsets in device_stream_info_from_declaration().
[wine.git] / configure
blob0e0507438317a086767082eb2437fa1f2191a205
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Wine 1.3.24.
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.24'
564 PACKAGE_STRING='Wine 1.3.24'
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_RESOURCES
609 LDAPLIBS
610 LIBPOLL
611 LIBDL
612 EXTRA_BINARIES
613 MAIN_BINARY
614 SOCKETLIBS
615 CRTLIBS
616 TOOLSEXT
617 LDPATH
618 UNWINDFLAGS
619 BUILTINFLAG
620 EXTRACFLAGS
621 LIBKSTAT
622 LIBOPENAL
623 LIBMPG123
624 PNGINCL
625 FONTCONFIGINCL
626 CUPSINCL
627 OSS4INCL
628 ALSALIBS
629 GSTREAMER_INCL
630 GSTREAMER_LIBS
631 ESDLIBS
632 ESDINCL
633 ESDCONFIG
634 LIBGETTEXTPO
635 ZLIB
636 FREETYPEINCL
637 FREETYPELIBS
638 ft_devel
639 LCMSLIBS
640 RESOLVLIBS
641 GPHOTO2INCL
642 GPHOTO2LIBS
643 gphoto2port_devel
644 gphoto2_devel
645 SANEINCL
646 sane_devel
647 GNUTLSINCL
648 HALINCL
649 XSLTINCL
650 XML2INCL
651 XML2LIBS
652 NASLIBS
653 X_EXTRA_LIBS
654 X_LIBS
655 X_PRE_LIBS
656 X_CFLAGS
657 XMKMF
658 LIBPTHREAD
659 CROSSTARGET
660 CROSSCC
661 CROSSTEST_DISABLE
662 PRELINK
663 CARBONLIB
664 QUICKTIMELIB
665 LIBOPENCL
666 FRAMEWORK_OPENAL
667 COREAUDIO
668 SECURITYLIB
669 DISKARBITRATIONLIB
670 LDEXECFLAGS
671 APPLICATIONSERVICESLIB
672 IOKITLIB
673 COREFOUNDATIONLIB
674 DLLWRAP
675 DLLTOOL
677 LDRPATH_LOCAL
678 LDRPATH_INSTALL
679 IMPLIBEXT
680 LIBEXT
681 LDDLLFLAGS
682 LDSHARED
683 DLLFLAGS
684 DLLEXT
686 OPENGL_LIBS
687 XLIB
688 MAINTAINER_MODE
689 ICOTOOL
690 CONVERT
691 RSVG
692 PKG_CONFIG
693 FONTFORGE
694 LINTFLAGS
695 LINT
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 LDCONFIG
700 EGREP
701 GREP
702 LN_S
703 RANLIB
704 ARFLAGS
705 ac_ct_AR
707 BISON
708 FLEX
709 TOOLSDIR
710 WOW64_DISABLE
711 TARGETFLAGS
712 CPPBIN
713 ac_ct_CXX
714 CXXFLAGS
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
723 SET_MAKE
724 host_os
725 host_vendor
726 host_cpu
727 host
728 build_os
729 build_vendor
730 build_cpu
731 build
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL'
770 ac_subst_files='MAKE_RULES
771 MAKE_TEST_RULES
772 MAKE_DLL_RULES
773 MAKE_IMPLIB_RULES
774 MAKE_PROG_RULES'
775 ac_user_opts='
776 enable_option_checking
777 enable_win16
778 enable_win64
779 enable_tests
780 enable_maintainer_mode
781 with_alsa
782 with_capi
783 with_cms
784 with_coreaudio
785 with_cups
786 with_curses
787 with_esd
788 with_fontconfig
789 with_freetype
790 with_gettextpo
791 with_gphoto
792 with_glu
793 with_gnutls
794 with_gsm
795 with_gstreamer
796 with_hal
797 with_jack
798 with_jpeg
799 with_ldap
800 with_mpg123
801 with_nas
802 with_openal
803 with_opencl
804 with_opengl
805 with_openssl
806 with_oss
807 with_png
808 with_pthread
809 with_sane
810 with_tiff
811 with_v4l
812 with_xcomposite
813 with_xcursor
814 with_xinerama
815 with_xinput
816 with_xinput2
817 with_xml
818 with_xrandr
819 with_xrender
820 with_xshape
821 with_xshm
822 with_xslt
823 with_xxf86vm
824 with_zlib
825 with_wine_tools
826 with_wine64
827 enable_largefile
828 with_x
830 ac_precious_vars='build_alias
831 host_alias
832 target_alias
834 CFLAGS
835 LDFLAGS
836 LIBS
837 CPPFLAGS
839 CXXFLAGS
842 XMKMF'
845 # Initialize some variables set by options.
846 ac_init_help=
847 ac_init_version=false
848 ac_unrecognized_opts=
849 ac_unrecognized_sep=
850 # The variables have the same names as the options, with
851 # dashes changed to underlines.
852 cache_file=/dev/null
853 exec_prefix=NONE
854 no_create=
855 no_recursion=
856 prefix=NONE
857 program_prefix=NONE
858 program_suffix=NONE
859 program_transform_name=s,x,x,
860 silent=
861 site=
862 srcdir=
863 verbose=
864 x_includes=NONE
865 x_libraries=NONE
867 # Installation directory options.
868 # These are left unexpanded so users can "make install exec_prefix=/foo"
869 # and all the variables that are supposed to be based on exec_prefix
870 # by default will actually change.
871 # Use braces instead of parens because sh, perl, etc. also accept them.
872 # (The list follows the same order as the GNU Coding Standards.)
873 bindir='${exec_prefix}/bin'
874 sbindir='${exec_prefix}/sbin'
875 libexecdir='${exec_prefix}/libexec'
876 datarootdir='${prefix}/share'
877 datadir='${datarootdir}'
878 sysconfdir='${prefix}/etc'
879 sharedstatedir='${prefix}/com'
880 localstatedir='${prefix}/var'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884 infodir='${datarootdir}/info'
885 htmldir='${docdir}'
886 dvidir='${docdir}'
887 pdfdir='${docdir}'
888 psdir='${docdir}'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
893 ac_prev=
894 ac_dashdash=
895 for ac_option
897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
899 eval $ac_prev=\$ac_option
900 ac_prev=
901 continue
904 case $ac_option in
905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 *=) ac_optarg= ;;
907 *) ac_optarg=yes ;;
908 esac
910 # Accept the important Cygnus configure options, so we can diagnose typos.
912 case $ac_dashdash$ac_option in
914 ac_dashdash=yes ;;
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919 bindir=$ac_optarg ;;
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
933 --config-cache | -C)
934 cache_file=config.cache ;;
936 -datadir | --datadir | --datadi | --datad)
937 ac_prev=datadir ;;
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
948 -disable-* | --disable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=no ;;
964 -docdir | --docdir | --docdi | --doc | --do)
965 ac_prev=docdir ;;
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967 docdir=$ac_optarg ;;
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 ac_prev=dvidir ;;
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972 dvidir=$ac_optarg ;;
974 -enable-* | --enable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error $? "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
983 "enable_$ac_useropt"
984 "*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=\$ac_optarg ;;
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1001 with_gas=yes ;;
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 ac_prev=htmldir ;;
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 | --ht=*)
1019 htmldir=$ac_optarg ;;
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 ac_prev=infodir ;;
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1033 -libdir | --libdir | --libdi | --libd)
1034 ac_prev=libdir ;;
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 ac_prev=mandir ;;
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1064 with_fp=no ;;
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1068 no_create=yes ;;
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 no_recursion=yes ;;
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 ac_prev=prefix ;;
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 ac_prev=pdfdir ;;
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1124 -psdir | --psdir | --psdi | --psd | --ps)
1125 ac_prev=psdir ;;
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 psdir=$ac_optarg ;;
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 silent=yes ;;
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
1137 sbindir=$ac_optarg ;;
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
1148 sharedstatedir=$ac_optarg ;;
1150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
1153 site=$ac_optarg ;;
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1178 -with-* | --with-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=\$ac_optarg ;;
1194 -without-* | --without-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error $? "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=no ;;
1210 --x)
1211 # Obsolete; use --with-x.
1212 with_x=yes ;;
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219 x_includes=$ac_optarg ;;
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;;
1228 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information"
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
1237 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1238 esac
1239 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;;
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1250 esac
1251 done
1253 if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255 as_fn_error $? "missing argument to $ac_option"
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
1261 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 esac
1266 # Check all directory arguments for consistency.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1274 case $ac_val in
1275 */ )
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1278 esac
1279 # Be sure to have absolute directory names.
1280 case $ac_val in
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 esac
1284 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1285 done
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1299 If a cross compiler is detected then cross compile mode will be used" >&2
1300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308 test "$silent" = yes && exec 6>/dev/null
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 as_fn_error $? "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 as_fn_error $? "pwd does not report name of working directory"
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 $as_echo X"$as_myself" |
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 s//\1/
1333 /^X\(\/\/\)[^/].*/{
1334 s//\1/
1337 /^X\(\/\/\)$/{
1338 s//\1/
1341 /^X\(\/\).*/{
1342 s//\1/
1345 s/.*/./; q'`
1346 srcdir=$ac_confdir
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 srcdir=..
1350 else
1351 ac_srcdir_defaulted=no
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1360 pwd)`
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 srcdir=.
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1368 case $srcdir in
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 esac
1371 for ac_var in $ac_precious_vars; do
1372 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_env_${ac_var}_value=\$${ac_var}
1374 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376 done
1379 # Report the --help message.
1381 if test "$ac_init_help" = "long"; then
1382 # Omit some internal or obsolete options to make the list less imposing.
1383 # This message is too long to be a string in the A/UX 3.1 sh.
1384 cat <<_ACEOF
1385 \`configure' configures Wine 1.3.24 to adapt to many kinds of systems.
1387 Usage: $0 [OPTION]... [VAR=VALUE]...
1389 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390 VAR=VALUE. See below for descriptions of some of the useful variables.
1392 Defaults for the options are specified in brackets.
1394 Configuration:
1395 -h, --help display this help and exit
1396 --help=short display options specific to this package
1397 --help=recursive display the short help of all the included packages
1398 -V, --version display version information and exit
1399 -q, --quiet, --silent do not print \`checking ...' messages
1400 --cache-file=FILE cache test results in FILE [disabled]
1401 -C, --config-cache alias for \`--cache-file=config.cache'
1402 -n, --no-create do not create output files
1403 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405 Installation directories:
1406 --prefix=PREFIX install architecture-independent files in PREFIX
1407 [$ac_default_prefix]
1408 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409 [PREFIX]
1411 By default, \`make install' will install all the files in
1412 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1413 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1414 for instance \`--prefix=\$HOME'.
1416 For better control, use the options below.
1418 Fine tuning of the installation directories:
1419 --bindir=DIR user executables [EPREFIX/bin]
1420 --sbindir=DIR system admin executables [EPREFIX/sbin]
1421 --libexecdir=DIR program executables [EPREFIX/libexec]
1422 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1423 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1424 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1425 --libdir=DIR object code libraries [EPREFIX/lib]
1426 --includedir=DIR C header files [PREFIX/include]
1427 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1428 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1429 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1430 --infodir=DIR info documentation [DATAROOTDIR/info]
1431 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1432 --mandir=DIR man documentation [DATAROOTDIR/man]
1433 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1434 --htmldir=DIR html documentation [DOCDIR]
1435 --dvidir=DIR dvi documentation [DOCDIR]
1436 --pdfdir=DIR pdf documentation [DOCDIR]
1437 --psdir=DIR ps documentation [DOCDIR]
1438 _ACEOF
1440 cat <<\_ACEOF
1442 X features:
1443 --x-includes=DIR X include files are in DIR
1444 --x-libraries=DIR X library files are in DIR
1446 System types:
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 _ACEOF
1452 if test -n "$ac_init_help"; then
1453 case $ac_init_help in
1454 short | recursive ) echo "Configuration of Wine 1.3.24:";;
1455 esac
1456 cat <<\_ACEOF
1458 Optional Features:
1459 --disable-option-checking ignore unrecognized --enable/--with options
1460 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1461 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1462 --disable-win16 do not include Win16 support
1463 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1464 binaries)
1465 --disable-tests do not build the regression tests
1466 --enable-maintainer-mode
1467 enable maintainer-specific build rules
1468 --disable-largefile omit support for large files
1470 Optional Packages:
1471 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1472 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1473 --without-alsa do not use the Alsa sound support
1474 --without-capi do not use CAPI (ISDN support)
1475 --without-cms do not use CMS (color management support)
1476 --without-coreaudio do not use the CoreAudio sound support
1477 --without-cups do not use CUPS
1478 --without-curses do not use (n)curses
1479 --without-esd do not use the EsounD sound support
1480 --without-fontconfig do not use fontconfig
1481 --without-freetype do not use the FreeType library
1482 --without-gettextpo do not use the GetTextPO library
1483 --without-gphoto do not use gphoto (Digital Camera support)
1484 --without-glu do not use the GLU library
1485 --without-gnutls do not use GnuTLS (schannel support)
1486 --without-gsm do not use libgsm (GSM 06.10 codec support)
1487 --without-gstreamer do not use GStreamer (codecs support)
1488 --without-hal do not use HAL (dynamic device support)
1489 --without-jack do not use the Jack sound support
1490 --without-jpeg do not use JPEG
1491 --without-ldap do not use LDAP
1492 --without-mpg123 do not use the mpg123 library
1493 --without-nas do not use the NAS sound support
1494 --without-openal do not use OpenAL
1495 --without-opencl do not use OpenCL
1496 --without-opengl do not use OpenGL
1497 --without-openssl do not use OpenSSL
1498 --without-oss do not use the OSS sound support
1499 --without-png do not use PNG
1500 --without-pthread do not use the pthread library
1501 --without-sane do not use SANE (scanner support)
1502 --without-tiff do not use TIFF
1503 --without-v4l do not use v4l1 (v4l support)
1504 --without-xcomposite do not use the Xcomposite extension
1505 --without-xcursor do not use the Xcursor extension
1506 --without-xinerama do not use Xinerama (multi-monitor support)
1507 --without-xinput do not use the Xinput extension
1508 --without-xinput2 do not use the Xinput 2 extension
1509 --without-xml do not use XML
1510 --without-xrandr do not use Xrandr (resolution changes)
1511 --without-xrender do not use the Xrender extension
1512 --without-xshape do not use the Xshape extension
1513 --without-xshm do not use XShm (shared memory extension)
1514 --without-xslt do not use XSLT
1515 --without-xxf86vm do not use XFree video mode extension
1516 --without-zlib do not use Zlib (data compression)
1517 --with-wine-tools=DIR use Wine tools from directory DIR
1518 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1519 --with-x use the X Window System
1521 Some influential environment variables:
1522 CC C compiler command
1523 CFLAGS C compiler flags
1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1525 nonstandard directory <lib dir>
1526 LIBS libraries to pass to the linker, e.g. -l<library>
1527 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1528 you have headers in a nonstandard directory <include dir>
1529 CXX C++ compiler command
1530 CXXFLAGS C++ compiler flags
1531 CPP C preprocessor
1532 XMKMF Path to xmkmf, Makefile generator for X Window System
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1537 Report bugs to <wine-devel@winehq.org>.
1538 Wine home page: <http://www.winehq.org>.
1539 _ACEOF
1540 ac_status=$?
1543 if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546 test -d "$ac_dir" ||
1547 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548 continue
1549 ac_builddir=.
1551 case "$ac_dir" in
1552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1555 # A ".." for each directory in $ac_dir_suffix.
1556 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557 case $ac_top_builddir_sub in
1558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560 esac ;;
1561 esac
1562 ac_abs_top_builddir=$ac_pwd
1563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564 # for backward compatibility:
1565 ac_top_builddir=$ac_top_build_prefix
1567 case $srcdir in
1568 .) # We are building in place.
1569 ac_srcdir=.
1570 ac_top_srcdir=$ac_top_builddir_sub
1571 ac_abs_top_srcdir=$ac_pwd ;;
1572 [\\/]* | ?:[\\/]* ) # Absolute name.
1573 ac_srcdir=$srcdir$ac_dir_suffix;
1574 ac_top_srcdir=$srcdir
1575 ac_abs_top_srcdir=$srcdir ;;
1576 *) # Relative name.
1577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578 ac_top_srcdir=$ac_top_build_prefix$srcdir
1579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 esac
1581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583 cd "$ac_dir" || { ac_status=$?; continue; }
1584 # Check for guested configure.
1585 if test -f "$ac_srcdir/configure.gnu"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588 elif test -f "$ac_srcdir/configure"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure" --help=recursive
1591 else
1592 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 fi || ac_status=$?
1594 cd "$ac_pwd" || { ac_status=$?; break; }
1595 done
1598 test -n "$ac_init_help" && exit $ac_status
1599 if $ac_init_version; then
1600 cat <<\_ACEOF
1601 Wine configure 1.3.24
1602 generated by GNU Autoconf 2.68
1604 Copyright (C) 2010 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1607 _ACEOF
1608 exit
1611 ## ------------------------ ##
1612 ## Autoconf initialization. ##
1613 ## ------------------------ ##
1615 # ac_fn_c_try_compile LINENO
1616 # --------------------------
1617 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_compile ()
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext
1622 if { { ac_try="$ac_compile"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_compile") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest.$ac_objext; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1646 ac_retval=1
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1651 } # ac_fn_c_try_compile
1653 # ac_fn_cxx_try_compile LINENO
1654 # ----------------------------
1655 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_cxx_try_compile ()
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 rm -f conftest.$ac_objext
1660 if { { ac_try="$ac_compile"
1661 case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_compile") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && {
1676 test -z "$ac_cxx_werror_flag" ||
1677 test ! -s conftest.err
1678 } && test -s conftest.$ac_objext; then :
1679 ac_retval=0
1680 else
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1684 ac_retval=1
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 as_fn_set_status $ac_retval
1689 } # ac_fn_cxx_try_compile
1691 # ac_fn_c_try_link LINENO
1692 # -----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_link ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext conftest$ac_exeext
1698 if { { ac_try="$ac_link"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_link") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest$ac_exeext && {
1717 test "$cross_compiling" = yes ||
1718 $as_test_x conftest$ac_exeext
1719 }; then :
1720 ac_retval=0
1721 else
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1725 ac_retval=1
1727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729 # interfere with the next link command; also delete a directory that is
1730 # left behind by Apple's compiler. We do this before executing the actions.
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1735 } # ac_fn_c_try_link
1737 # ac_fn_c_try_cpp LINENO
1738 # ----------------------
1739 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_c_try_cpp ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_cpp conftest.$ac_ext"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1751 ac_status=$?
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } > conftest.i && {
1759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1760 test ! -s conftest.err
1761 }; then :
1762 ac_retval=0
1763 else
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1767 ac_retval=1
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
1772 } # ac_fn_c_try_cpp
1774 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1775 # -------------------------------------------------------
1776 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1777 # the include files in INCLUDES and setting the cache variable VAR
1778 # accordingly.
1779 ac_fn_c_check_header_mongrel ()
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if eval \${$3+:} false; then :
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1788 eval ac_res=\$$3
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790 $as_echo "$ac_res" >&6; }
1791 else
1792 # Is the header compilable?
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1794 $as_echo_n "checking $2 usability... " >&6; }
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1798 #include <$2>
1799 _ACEOF
1800 if ac_fn_c_try_compile "$LINENO"; then :
1801 ac_header_compiler=yes
1802 else
1803 ac_header_compiler=no
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1807 $as_echo "$ac_header_compiler" >&6; }
1809 # Is the header present?
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1811 $as_echo_n "checking $2 presence... " >&6; }
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1814 #include <$2>
1815 _ACEOF
1816 if ac_fn_c_try_cpp "$LINENO"; then :
1817 ac_header_preproc=yes
1818 else
1819 ac_header_preproc=no
1821 rm -f conftest.err conftest.i conftest.$ac_ext
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1823 $as_echo "$ac_header_preproc" >&6; }
1825 # So? What about this header?
1826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1827 yes:no: )
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1829 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 no:yes:* )
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1835 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1837 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1839 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1841 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1843 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1844 ( $as_echo "## ------------------------------------ ##
1845 ## Report this to wine-devel@winehq.org ##
1846 ## ------------------------------------ ##"
1847 ) | sed "s/^/$as_me: WARNING: /" >&2
1849 esac
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1854 else
1855 eval "$3=\$ac_header_compiler"
1857 eval ac_res=\$$3
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 } # ac_fn_c_check_header_mongrel
1865 # ac_fn_c_try_run LINENO
1866 # ----------------------
1867 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1868 # that executables *can* be run.
1869 ac_fn_c_try_run ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_link"
1873 case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>&5
1880 ac_status=$?
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1883 { { case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_try") 2>&5
1890 ac_status=$?
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; }; }; then :
1893 ac_retval=0
1894 else
1895 $as_echo "$as_me: program exited with status $ac_status" >&5
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1899 ac_retval=$ac_status
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1905 } # ac_fn_c_try_run
1907 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1908 # -------------------------------------------------------
1909 # Tests whether HEADER exists and can be compiled using the include files in
1910 # INCLUDES, setting the cache variable VAR accordingly.
1911 ac_fn_c_check_header_compile ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1918 else
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1922 #include <$2>
1923 _ACEOF
1924 if ac_fn_c_try_compile "$LINENO"; then :
1925 eval "$3=yes"
1926 else
1927 eval "$3=no"
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931 eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 } # ac_fn_c_check_header_compile
1938 # ac_fn_c_check_func LINENO FUNC VAR
1939 # ----------------------------------
1940 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1941 ac_fn_c_check_func ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947 $as_echo_n "(cached) " >&6
1948 else
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1953 #define $2 innocuous_$2
1955 /* System header to define __stub macros and hopefully few prototypes,
1956 which can conflict with char $2 (); below.
1957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1958 <limits.h> exists even on freestanding compilers. */
1960 #ifdef __STDC__
1961 # include <limits.h>
1962 #else
1963 # include <assert.h>
1964 #endif
1966 #undef $2
1968 /* Override any GCC internal prototype to avoid an error.
1969 Use char because int might match the return type of a GCC
1970 builtin and then its argument prototype would still apply. */
1971 #ifdef __cplusplus
1972 extern "C"
1973 #endif
1974 char $2 ();
1975 /* The GNU C library defines this for functions which it implements
1976 to always fail with ENOSYS. Some functions are actually named
1977 something starting with __ and the normal name is an alias. */
1978 #if defined __stub_$2 || defined __stub___$2
1979 choke me
1980 #endif
1983 main ()
1985 return $2 ();
1987 return 0;
1989 _ACEOF
1990 if ac_fn_c_try_link "$LINENO"; then :
1991 eval "$3=yes"
1992 else
1993 eval "$3=no"
1995 rm -f core conftest.err conftest.$ac_objext \
1996 conftest$ac_exeext conftest.$ac_ext
1998 eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 } # ac_fn_c_check_func
2005 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2006 # ----------------------------------------------------
2007 # Tries to find if the field MEMBER exists in type AGGR, after including
2008 # INCLUDES, setting cache variable VAR accordingly.
2009 ac_fn_c_check_member ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2013 $as_echo_n "checking for $2.$3... " >&6; }
2014 if eval \${$4+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016 else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2021 main ()
2023 static $2 ac_aggr;
2024 if (ac_aggr.$3)
2025 return 0;
2027 return 0;
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 eval "$4=yes"
2032 else
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2037 main ()
2039 static $2 ac_aggr;
2040 if (sizeof ac_aggr.$3)
2041 return 0;
2043 return 0;
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047 eval "$4=yes"
2048 else
2049 eval "$4=no"
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 eval ac_res=\$$4
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 } # ac_fn_c_check_member
2062 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2063 # -------------------------------------------
2064 # Tests whether TYPE exists after having included INCLUDES, setting cache
2065 # variable VAR accordingly.
2066 ac_fn_c_check_type ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070 $as_echo_n "checking for $2... " >&6; }
2071 if eval \${$3+:} false; then :
2072 $as_echo_n "(cached) " >&6
2073 else
2074 eval "$3=no"
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2079 main ()
2081 if (sizeof ($2))
2082 return 0;
2084 return 0;
2086 _ACEOF
2087 if ac_fn_c_try_compile "$LINENO"; then :
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2092 main ()
2094 if (sizeof (($2)))
2095 return 0;
2097 return 0;
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2102 else
2103 eval "$3=yes"
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 eval ac_res=\$$3
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 } # ac_fn_c_check_type
2115 cat >config.log <<_ACEOF
2116 This file contains any messages produced by compilers while
2117 running configure, to aid debugging if configure makes a mistake.
2119 It was created by Wine $as_me 1.3.24, which was
2120 generated by GNU Autoconf 2.68. Invocation command line was
2122 $ $0 $@
2124 _ACEOF
2125 exec 5>>config.log
2127 cat <<_ASUNAME
2128 ## --------- ##
2129 ## Platform. ##
2130 ## --------- ##
2132 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2133 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2134 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2135 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2136 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2138 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2139 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2141 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2142 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2143 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2144 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2145 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2146 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2147 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2149 _ASUNAME
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
2156 $as_echo "PATH: $as_dir"
2157 done
2158 IFS=$as_save_IFS
2160 } >&5
2162 cat >&5 <<_ACEOF
2165 ## ----------- ##
2166 ## Core tests. ##
2167 ## ----------- ##
2169 _ACEOF
2172 # Keep a trace of the command line.
2173 # Strip out --no-create and --no-recursion so they do not pile up.
2174 # Strip out --silent because we don't want to record it for future runs.
2175 # Also quote any args containing shell meta-characters.
2176 # Make two passes to allow for proper duplicate-argument suppression.
2177 ac_configure_args=
2178 ac_configure_args0=
2179 ac_configure_args1=
2180 ac_must_keep_next=false
2181 for ac_pass in 1 2
2183 for ac_arg
2185 case $ac_arg in
2186 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2188 | -silent | --silent | --silen | --sile | --sil)
2189 continue ;;
2190 *\'*)
2191 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2192 esac
2193 case $ac_pass in
2194 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2196 as_fn_append ac_configure_args1 " '$ac_arg'"
2197 if test $ac_must_keep_next = true; then
2198 ac_must_keep_next=false # Got value, back to normal.
2199 else
2200 case $ac_arg in
2201 *=* | --config-cache | -C | -disable-* | --disable-* \
2202 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2203 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2204 | -with-* | --with-* | -without-* | --without-* | --x)
2205 case "$ac_configure_args0 " in
2206 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2207 esac
2209 -* ) ac_must_keep_next=true ;;
2210 esac
2212 as_fn_append ac_configure_args " '$ac_arg'"
2214 esac
2215 done
2216 done
2217 { ac_configure_args0=; unset ac_configure_args0;}
2218 { ac_configure_args1=; unset ac_configure_args1;}
2220 # When interrupted or exit'd, cleanup temporary files, and complete
2221 # config.log. We remove comments because anyway the quotes in there
2222 # would cause problems or look ugly.
2223 # WARNING: Use '\'' to represent an apostrophe within the trap.
2224 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2225 trap 'exit_status=$?
2226 # Save into config.log some information that might help in debugging.
2228 echo
2230 $as_echo "## ---------------- ##
2231 ## Cache variables. ##
2232 ## ---------------- ##"
2233 echo
2234 # The following way of writing the cache mishandles newlines in values,
2236 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2237 eval ac_val=\$$ac_var
2238 case $ac_val in #(
2239 *${as_nl}*)
2240 case $ac_var in #(
2241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2242 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2243 esac
2244 case $ac_var in #(
2245 _ | IFS | as_nl) ;; #(
2246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2247 *) { eval $ac_var=; unset $ac_var;} ;;
2248 esac ;;
2249 esac
2250 done
2251 (set) 2>&1 |
2252 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2253 *${as_nl}ac_space=\ *)
2254 sed -n \
2255 "s/'\''/'\''\\\\'\'''\''/g;
2256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2257 ;; #(
2259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2261 esac |
2262 sort
2264 echo
2266 $as_echo "## ----------------- ##
2267 ## Output variables. ##
2268 ## ----------------- ##"
2269 echo
2270 for ac_var in $ac_subst_vars
2272 eval ac_val=\$$ac_var
2273 case $ac_val in
2274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2275 esac
2276 $as_echo "$ac_var='\''$ac_val'\''"
2277 done | sort
2278 echo
2280 if test -n "$ac_subst_files"; then
2281 $as_echo "## ------------------- ##
2282 ## File substitutions. ##
2283 ## ------------------- ##"
2284 echo
2285 for ac_var in $ac_subst_files
2287 eval ac_val=\$$ac_var
2288 case $ac_val in
2289 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2290 esac
2291 $as_echo "$ac_var='\''$ac_val'\''"
2292 done | sort
2293 echo
2296 if test -s confdefs.h; then
2297 $as_echo "## ----------- ##
2298 ## confdefs.h. ##
2299 ## ----------- ##"
2300 echo
2301 cat confdefs.h
2302 echo
2304 test "$ac_signal" != 0 &&
2305 $as_echo "$as_me: caught signal $ac_signal"
2306 $as_echo "$as_me: exit $exit_status"
2307 } >&5
2308 rm -f core *.core core.conftest.* &&
2309 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2310 exit $exit_status
2312 for ac_signal in 1 2 13 15; do
2313 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2314 done
2315 ac_signal=0
2317 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2318 rm -f -r conftest* confdefs.h
2320 $as_echo "/* confdefs.h */" > confdefs.h
2322 # Predefined preprocessor variables.
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_NAME "$PACKAGE_NAME"
2326 _ACEOF
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2330 _ACEOF
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2334 _ACEOF
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_STRING "$PACKAGE_STRING"
2338 _ACEOF
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2342 _ACEOF
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_URL "$PACKAGE_URL"
2346 _ACEOF
2349 # Let the site file select an alternate cache file if it wants to.
2350 # Prefer an explicitly selected file to automatically selected ones.
2351 ac_site_file1=NONE
2352 ac_site_file2=NONE
2353 if test -n "$CONFIG_SITE"; then
2354 # We do not want a PATH search for config.site.
2355 case $CONFIG_SITE in #((
2356 -*) ac_site_file1=./$CONFIG_SITE;;
2357 */*) ac_site_file1=$CONFIG_SITE;;
2358 *) ac_site_file1=./$CONFIG_SITE;;
2359 esac
2360 elif test "x$prefix" != xNONE; then
2361 ac_site_file1=$prefix/share/config.site
2362 ac_site_file2=$prefix/etc/config.site
2363 else
2364 ac_site_file1=$ac_default_prefix/share/config.site
2365 ac_site_file2=$ac_default_prefix/etc/config.site
2367 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2369 test "x$ac_site_file" = xNONE && continue
2370 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2372 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2373 sed 's/^/| /' "$ac_site_file" >&5
2374 . "$ac_site_file" \
2375 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2377 as_fn_error $? "failed to load site script $ac_site_file
2378 See \`config.log' for more details" "$LINENO" 5; }
2380 done
2382 if test -r "$cache_file"; then
2383 # Some versions of bash will fail to source /dev/null (special files
2384 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2385 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2387 $as_echo "$as_me: loading cache $cache_file" >&6;}
2388 case $cache_file in
2389 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2390 *) . "./$cache_file";;
2391 esac
2393 else
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2395 $as_echo "$as_me: creating cache $cache_file" >&6;}
2396 >$cache_file
2399 # Check that the precious variables saved in the cache have kept the same
2400 # value.
2401 ac_cache_corrupted=false
2402 for ac_var in $ac_precious_vars; do
2403 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2404 eval ac_new_set=\$ac_env_${ac_var}_set
2405 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2406 eval ac_new_val=\$ac_env_${ac_var}_value
2407 case $ac_old_set,$ac_new_set in
2408 set,)
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2410 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2411 ac_cache_corrupted=: ;;
2412 ,set)
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2414 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2415 ac_cache_corrupted=: ;;
2416 ,);;
2418 if test "x$ac_old_val" != "x$ac_new_val"; then
2419 # differences in whitespace do not lead to failure.
2420 ac_old_val_w=`echo x $ac_old_val`
2421 ac_new_val_w=`echo x $ac_new_val`
2422 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2424 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2425 ac_cache_corrupted=:
2426 else
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2428 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2429 eval $ac_var=\$ac_old_val
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2432 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2434 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2435 fi;;
2436 esac
2437 # Pass precious variables to config.status.
2438 if test "$ac_new_set" = set; then
2439 case $ac_new_val in
2440 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2441 *) ac_arg=$ac_var=$ac_new_val ;;
2442 esac
2443 case " $ac_configure_args " in
2444 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2445 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2446 esac
2448 done
2449 if $ac_cache_corrupted; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2453 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2454 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2456 ## -------------------- ##
2457 ## Main body of script. ##
2458 ## -------------------- ##
2460 ac_ext=c
2461 ac_cpp='$CPP $CPPFLAGS'
2462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2468 ac_config_headers="$ac_config_headers include/config.h"
2470 ac_aux_dir=
2471 for ac_dir in tools "$srcdir"/tools; do
2472 if test -f "$ac_dir/install-sh"; then
2473 ac_aux_dir=$ac_dir
2474 ac_install_sh="$ac_aux_dir/install-sh -c"
2475 break
2476 elif test -f "$ac_dir/install.sh"; then
2477 ac_aux_dir=$ac_dir
2478 ac_install_sh="$ac_aux_dir/install.sh -c"
2479 break
2480 elif test -f "$ac_dir/shtool"; then
2481 ac_aux_dir=$ac_dir
2482 ac_install_sh="$ac_aux_dir/shtool install -c"
2483 break
2485 done
2486 if test -z "$ac_aux_dir"; then
2487 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2490 # These three variables are undocumented and unsupported,
2491 # and are intended to be withdrawn in a future Autoconf release.
2492 # They can cause serious problems if a builder's source tree is in a directory
2493 # whose full name contains unusual characters.
2494 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2495 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2496 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2502 # Check whether --enable-win16 was given.
2503 if test "${enable_win16+set}" = set; then :
2504 enableval=$enable_win16;
2507 # Check whether --enable-win64 was given.
2508 if test "${enable_win64+set}" = set; then :
2509 enableval=$enable_win64;
2512 # Check whether --enable-tests was given.
2513 if test "${enable_tests+set}" = set; then :
2514 enableval=$enable_tests;
2517 # Check whether --enable-maintainer-mode was given.
2518 if test "${enable_maintainer_mode+set}" = set; then :
2519 enableval=$enable_maintainer_mode;
2524 # Check whether --with-alsa was given.
2525 if test "${with_alsa+set}" = set; then :
2526 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2530 # Check whether --with-capi was given.
2531 if test "${with_capi+set}" = set; then :
2532 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2536 # Check whether --with-cms was given.
2537 if test "${with_cms+set}" = set; then :
2538 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2542 # Check whether --with-coreaudio was given.
2543 if test "${with_coreaudio+set}" = set; then :
2544 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2548 # Check whether --with-cups was given.
2549 if test "${with_cups+set}" = set; then :
2550 withval=$with_cups;
2554 # Check whether --with-curses was given.
2555 if test "${with_curses+set}" = set; then :
2556 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2560 # Check whether --with-esd was given.
2561 if test "${with_esd+set}" = set; then :
2562 withval=$with_esd;
2566 # Check whether --with-fontconfig was given.
2567 if test "${with_fontconfig+set}" = set; then :
2568 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2572 # Check whether --with-freetype was given.
2573 if test "${with_freetype+set}" = set; then :
2574 withval=$with_freetype;
2578 # Check whether --with-gettextpo was given.
2579 if test "${with_gettextpo+set}" = set; then :
2580 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2584 # Check whether --with-gphoto was given.
2585 if test "${with_gphoto+set}" = set; then :
2586 withval=$with_gphoto;
2590 # Check whether --with-glu was given.
2591 if test "${with_glu+set}" = set; then :
2592 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2596 # Check whether --with-gnutls was given.
2597 if test "${with_gnutls+set}" = set; then :
2598 withval=$with_gnutls;
2602 # Check whether --with-gsm was given.
2603 if test "${with_gsm+set}" = set; then :
2604 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2608 # Check whether --with-gstreamer was given.
2609 if test "${with_gstreamer+set}" = set; then :
2610 withval=$with_gstreamer;
2614 # Check whether --with-hal was given.
2615 if test "${with_hal+set}" = set; then :
2616 withval=$with_hal;
2620 # Check whether --with-jack was given.
2621 if test "${with_jack+set}" = set; then :
2622 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2626 # Check whether --with-jpeg was given.
2627 if test "${with_jpeg+set}" = set; then :
2628 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2632 # Check whether --with-ldap was given.
2633 if test "${with_ldap+set}" = set; then :
2634 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2638 # Check whether --with-mpg123 was given.
2639 if test "${with_mpg123+set}" = set; then :
2640 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2644 # Check whether --with-nas was given.
2645 if test "${with_nas+set}" = set; then :
2646 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2650 # Check whether --with-openal was given.
2651 if test "${with_openal+set}" = set; then :
2652 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2656 # Check whether --with-opencl was given.
2657 if test "${with_opencl+set}" = set; then :
2658 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2662 # Check whether --with-opengl was given.
2663 if test "${with_opengl+set}" = set; then :
2664 withval=$with_opengl;
2668 # Check whether --with-openssl was given.
2669 if test "${with_openssl+set}" = set; then :
2670 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2674 # Check whether --with-oss was given.
2675 if test "${with_oss+set}" = set; then :
2676 withval=$with_oss;
2680 # Check whether --with-png was given.
2681 if test "${with_png+set}" = set; then :
2682 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2686 # Check whether --with-pthread was given.
2687 if test "${with_pthread+set}" = set; then :
2688 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2692 # Check whether --with-sane was given.
2693 if test "${with_sane+set}" = set; then :
2694 withval=$with_sane;
2698 # Check whether --with-tiff was given.
2699 if test "${with_tiff+set}" = set; then :
2700 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2704 # Check whether --with-v4l was given.
2705 if test "${with_v4l+set}" = set; then :
2706 withval=$with_v4l;
2710 # Check whether --with-xcomposite was given.
2711 if test "${with_xcomposite+set}" = set; then :
2712 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2716 # Check whether --with-xcursor was given.
2717 if test "${with_xcursor+set}" = set; then :
2718 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2722 # Check whether --with-xinerama was given.
2723 if test "${with_xinerama+set}" = set; then :
2724 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2728 # Check whether --with-xinput was given.
2729 if test "${with_xinput+set}" = set; then :
2730 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2734 # Check whether --with-xinput2 was given.
2735 if test "${with_xinput2+set}" = set; then :
2736 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2740 # Check whether --with-xml was given.
2741 if test "${with_xml+set}" = set; then :
2742 withval=$with_xml;
2746 # Check whether --with-xrandr was given.
2747 if test "${with_xrandr+set}" = set; then :
2748 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2752 # Check whether --with-xrender was given.
2753 if test "${with_xrender+set}" = set; then :
2754 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2758 # Check whether --with-xshape was given.
2759 if test "${with_xshape+set}" = set; then :
2760 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2764 # Check whether --with-xshm was given.
2765 if test "${with_xshm+set}" = set; then :
2766 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2770 # Check whether --with-xslt was given.
2771 if test "${with_xslt+set}" = set; then :
2772 withval=$with_xslt;
2776 # Check whether --with-xxf86vm was given.
2777 if test "${with_xxf86vm+set}" = set; then :
2778 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
2782 # Check whether --with-zlib was given.
2783 if test "${with_zlib+set}" = set; then :
2784 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2789 # Check whether --with-wine-tools was given.
2790 if test "${with_wine_tools+set}" = set; then :
2791 withval=$with_wine_tools;
2795 # Check whether --with-wine64 was given.
2796 if test "${with_wine64+set}" = set; then :
2797 withval=$with_wine64;
2801 # Make sure we can run config.sub.
2802 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2803 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2806 $as_echo_n "checking build system type... " >&6; }
2807 if ${ac_cv_build+:} false; then :
2808 $as_echo_n "(cached) " >&6
2809 else
2810 ac_build_alias=$build_alias
2811 test "x$ac_build_alias" = x &&
2812 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2813 test "x$ac_build_alias" = x &&
2814 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2815 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2816 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2820 $as_echo "$ac_cv_build" >&6; }
2821 case $ac_cv_build in
2822 *-*-*) ;;
2823 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2824 esac
2825 build=$ac_cv_build
2826 ac_save_IFS=$IFS; IFS='-'
2827 set x $ac_cv_build
2828 shift
2829 build_cpu=$1
2830 build_vendor=$2
2831 shift; shift
2832 # Remember, the first character of IFS is used to create $*,
2833 # except with old shells:
2834 build_os=$*
2835 IFS=$ac_save_IFS
2836 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2840 $as_echo_n "checking host system type... " >&6; }
2841 if ${ac_cv_host+:} false; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 if test "x$host_alias" = x; then
2845 ac_cv_host=$ac_cv_build
2846 else
2847 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2848 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2853 $as_echo "$ac_cv_host" >&6; }
2854 case $ac_cv_host in
2855 *-*-*) ;;
2856 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2857 esac
2858 host=$ac_cv_host
2859 ac_save_IFS=$IFS; IFS='-'
2860 set x $ac_cv_host
2861 shift
2862 host_cpu=$1
2863 host_vendor=$2
2864 shift; shift
2865 # Remember, the first character of IFS is used to create $*,
2866 # except with old shells:
2867 host_os=$*
2868 IFS=$ac_save_IFS
2869 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2873 case "$srcdir" in
2874 .) ;;
2875 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2876 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2877 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2878 fi ;;
2879 esac
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2883 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2884 set x ${MAKE-make}
2885 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2886 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2887 $as_echo_n "(cached) " >&6
2888 else
2889 cat >conftest.make <<\_ACEOF
2890 SHELL = /bin/sh
2891 all:
2892 @echo '@@@%%%=$(MAKE)=@@@%%%'
2893 _ACEOF
2894 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2895 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2896 *@@@%%%=?*=@@@%%%*)
2897 eval ac_cv_prog_make_${ac_make}_set=yes;;
2899 eval ac_cv_prog_make_${ac_make}_set=no;;
2900 esac
2901 rm -f conftest.make
2903 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2905 $as_echo "yes" >&6; }
2906 SET_MAKE=
2907 else
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2910 SET_MAKE="MAKE=${MAKE-make}"
2913 ac_ext=c
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918 if test -n "$ac_tool_prefix"; then
2919 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2920 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922 $as_echo_n "checking for $ac_word... " >&6; }
2923 if ${ac_cv_prog_CC+:} false; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 if test -n "$CC"; then
2927 ac_cv_prog_CC="$CC" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2940 done
2941 done
2942 IFS=$as_save_IFS
2946 CC=$ac_cv_prog_CC
2947 if test -n "$CC"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2949 $as_echo "$CC" >&6; }
2950 else
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2957 if test -z "$ac_cv_prog_CC"; then
2958 ac_ct_CC=$CC
2959 # Extract the first word of "gcc", so it can be a program name with args.
2960 set dummy gcc; ac_word=$2
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2964 $as_echo_n "(cached) " >&6
2965 else
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_ac_ct_CC="gcc"
2977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2980 done
2981 done
2982 IFS=$as_save_IFS
2986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2987 if test -n "$ac_ct_CC"; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2989 $as_echo "$ac_ct_CC" >&6; }
2990 else
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2995 if test "x$ac_ct_CC" = x; then
2996 CC=""
2997 else
2998 case $cross_compiling:$ac_tool_warned in
2999 yes:)
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3002 ac_tool_warned=yes ;;
3003 esac
3004 CC=$ac_ct_CC
3006 else
3007 CC="$ac_cv_prog_CC"
3010 if test -z "$CC"; then
3011 if test -n "$ac_tool_prefix"; then
3012 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3013 set dummy ${ac_tool_prefix}cc; ac_word=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if ${ac_cv_prog_CC+:} false; then :
3017 $as_echo_n "(cached) " >&6
3018 else
3019 if test -n "$CC"; then
3020 ac_cv_prog_CC="$CC" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_CC="${ac_tool_prefix}cc"
3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 break 2
3033 done
3034 done
3035 IFS=$as_save_IFS
3039 CC=$ac_cv_prog_CC
3040 if test -n "$CC"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3042 $as_echo "$CC" >&6; }
3043 else
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3051 if test -z "$CC"; then
3052 # Extract the first word of "cc", so it can be a program name with args.
3053 set dummy cc; ac_word=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if ${ac_cv_prog_CC+:} false; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 if test -n "$CC"; then
3060 ac_cv_prog_CC="$CC" # Let the user override the test.
3061 else
3062 ac_prog_rejected=no
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3071 ac_prog_rejected=yes
3072 continue
3074 ac_cv_prog_CC="cc"
3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3078 done
3079 done
3080 IFS=$as_save_IFS
3082 if test $ac_prog_rejected = yes; then
3083 # We found a bogon in the path, so make sure we never use it.
3084 set dummy $ac_cv_prog_CC
3085 shift
3086 if test $# != 0; then
3087 # We chose a different compiler from the bogus one.
3088 # However, it has the same basename, so the bogon will be chosen
3089 # first if we set CC to just the basename; use the full file name.
3090 shift
3091 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3096 CC=$ac_cv_prog_CC
3097 if test -n "$CC"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3099 $as_echo "$CC" >&6; }
3100 else
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3107 if test -z "$CC"; then
3108 if test -n "$ac_tool_prefix"; then
3109 for ac_prog in cl.exe
3111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if ${ac_cv_prog_CC+:} false; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 if test -n "$CC"; then
3119 ac_cv_prog_CC="$CC" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3124 IFS=$as_save_IFS
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3128 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 break 2
3132 done
3133 done
3134 IFS=$as_save_IFS
3138 CC=$ac_cv_prog_CC
3139 if test -n "$CC"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3141 $as_echo "$CC" >&6; }
3142 else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3148 test -n "$CC" && break
3149 done
3151 if test -z "$CC"; then
3152 ac_ct_CC=$CC
3153 for ac_prog in cl.exe
3155 # Extract the first word of "$ac_prog", so it can be a program name with args.
3156 set dummy $ac_prog; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3160 $as_echo_n "(cached) " >&6
3161 else
3162 if test -n "$ac_ct_CC"; then
3163 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3168 IFS=$as_save_IFS
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3172 ac_cv_prog_ac_ct_CC="$ac_prog"
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 break 2
3176 done
3177 done
3178 IFS=$as_save_IFS
3182 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3183 if test -n "$ac_ct_CC"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3185 $as_echo "$ac_ct_CC" >&6; }
3186 else
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3192 test -n "$ac_ct_CC" && break
3193 done
3195 if test "x$ac_ct_CC" = x; then
3196 CC=""
3197 else
3198 case $cross_compiling:$ac_tool_warned in
3199 yes:)
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3202 ac_tool_warned=yes ;;
3203 esac
3204 CC=$ac_ct_CC
3211 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213 as_fn_error $? "no acceptable C compiler found in \$PATH
3214 See \`config.log' for more details" "$LINENO" 5; }
3216 # Provide some information about the compiler.
3217 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3218 set X $ac_compile
3219 ac_compiler=$2
3220 for ac_option in --version -v -V -qversion; do
3221 { { ac_try="$ac_compiler $ac_option >&5"
3222 case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225 esac
3226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227 $as_echo "$ac_try_echo"; } >&5
3228 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3229 ac_status=$?
3230 if test -s conftest.err; then
3231 sed '10a\
3232 ... rest of stderr output deleted ...
3233 10q' conftest.err >conftest.er1
3234 cat conftest.er1 >&5
3236 rm -f conftest.er1 conftest.err
3237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3238 test $ac_status = 0; }
3239 done
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h. */
3245 main ()
3249 return 0;
3251 _ACEOF
3252 ac_clean_files_save=$ac_clean_files
3253 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3254 # Try to create an executable without -o first, disregard a.out.
3255 # It will help us diagnose broken compilers, and finding out an intuition
3256 # of exeext.
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3258 $as_echo_n "checking whether the C compiler works... " >&6; }
3259 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3261 # The possible output files:
3262 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3264 ac_rmfiles=
3265 for ac_file in $ac_files
3267 case $ac_file in
3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3269 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3270 esac
3271 done
3272 rm -f $ac_rmfiles
3274 if { { ac_try="$ac_link_default"
3275 case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_link_default") 2>&5
3282 ac_status=$?
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }; then :
3285 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3286 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3287 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3288 # so that the user can short-circuit this test for compilers unknown to
3289 # Autoconf.
3290 for ac_file in $ac_files ''
3292 test -f "$ac_file" || continue
3293 case $ac_file in
3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3296 [ab].out )
3297 # We found the default executable, but exeext='' is most
3298 # certainly right.
3299 break;;
3300 *.* )
3301 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3302 then :; else
3303 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3305 # We set ac_cv_exeext here because the later test for it is not
3306 # safe: cross compilers may not add the suffix if given an `-o'
3307 # argument, so we may need to know it at that point already.
3308 # Even if this section looks crufty: it has the advantage of
3309 # actually working.
3310 break;;
3312 break;;
3313 esac
3314 done
3315 test "$ac_cv_exeext" = no && ac_cv_exeext=
3317 else
3318 ac_file=''
3320 if test -z "$ac_file"; then :
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3323 $as_echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328 as_fn_error 77 "C compiler cannot create executables
3329 See \`config.log' for more details" "$LINENO" 5; }
3330 else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332 $as_echo "yes" >&6; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3335 $as_echo_n "checking for C compiler default output file name... " >&6; }
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3337 $as_echo "$ac_file" >&6; }
3338 ac_exeext=$ac_cv_exeext
3340 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3341 ac_clean_files=$ac_clean_files_save
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3343 $as_echo_n "checking for suffix of executables... " >&6; }
3344 if { { ac_try="$ac_link"
3345 case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348 esac
3349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350 $as_echo "$ac_try_echo"; } >&5
3351 (eval "$ac_link") 2>&5
3352 ac_status=$?
3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354 test $ac_status = 0; }; then :
3355 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3356 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3357 # work properly (i.e., refer to `conftest.exe'), while it won't with
3358 # `rm'.
3359 for ac_file in conftest.exe conftest conftest.*; do
3360 test -f "$ac_file" || continue
3361 case $ac_file in
3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3363 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3364 break;;
3365 * ) break;;
3366 esac
3367 done
3368 else
3369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3372 See \`config.log' for more details" "$LINENO" 5; }
3374 rm -f conftest conftest$ac_cv_exeext
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3376 $as_echo "$ac_cv_exeext" >&6; }
3378 rm -f conftest.$ac_ext
3379 EXEEXT=$ac_cv_exeext
3380 ac_exeext=$EXEEXT
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3383 #include <stdio.h>
3385 main ()
3387 FILE *f = fopen ("conftest.out", "w");
3388 return ferror (f) || fclose (f) != 0;
3391 return 0;
3393 _ACEOF
3394 ac_clean_files="$ac_clean_files conftest.out"
3395 # Check that the compiler produces executables we can run. If not, either
3396 # the compiler is broken, or we cross compile.
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3398 $as_echo_n "checking whether we are cross compiling... " >&6; }
3399 if test "$cross_compiling" != yes; then
3400 { { ac_try="$ac_link"
3401 case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
3405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406 $as_echo "$ac_try_echo"; } >&5
3407 (eval "$ac_link") 2>&5
3408 ac_status=$?
3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }
3411 if { ac_try='./conftest$ac_cv_exeext'
3412 { { case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415 esac
3416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417 $as_echo "$ac_try_echo"; } >&5
3418 (eval "$ac_try") 2>&5
3419 ac_status=$?
3420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421 test $ac_status = 0; }; }; then
3422 cross_compiling=no
3423 else
3424 if test "$cross_compiling" = maybe; then
3425 cross_compiling=yes
3426 else
3427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3429 as_fn_error $? "cannot run C compiled programs.
3430 If you meant to cross compile, use \`--host'.
3431 See \`config.log' for more details" "$LINENO" 5; }
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3436 $as_echo "$cross_compiling" >&6; }
3438 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3439 ac_clean_files=$ac_clean_files_save
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3441 $as_echo_n "checking for suffix of object files... " >&6; }
3442 if ${ac_cv_objext+:} false; then :
3443 $as_echo_n "(cached) " >&6
3444 else
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3449 main ()
3453 return 0;
3455 _ACEOF
3456 rm -f conftest.o conftest.obj
3457 if { { ac_try="$ac_compile"
3458 case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461 esac
3462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3463 $as_echo "$ac_try_echo"; } >&5
3464 (eval "$ac_compile") 2>&5
3465 ac_status=$?
3466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3467 test $ac_status = 0; }; then :
3468 for ac_file in conftest.o conftest.obj conftest.*; do
3469 test -f "$ac_file" || continue;
3470 case $ac_file in
3471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3472 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3473 break;;
3474 esac
3475 done
3476 else
3477 $as_echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3482 as_fn_error $? "cannot compute suffix of object files: cannot compile
3483 See \`config.log' for more details" "$LINENO" 5; }
3485 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3488 $as_echo "$ac_cv_objext" >&6; }
3489 OBJEXT=$ac_cv_objext
3490 ac_objext=$OBJEXT
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3492 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3493 if ${ac_cv_c_compiler_gnu+:} false; then :
3494 $as_echo_n "(cached) " >&6
3495 else
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3500 main ()
3502 #ifndef __GNUC__
3503 choke me
3504 #endif
3507 return 0;
3509 _ACEOF
3510 if ac_fn_c_try_compile "$LINENO"; then :
3511 ac_compiler_gnu=yes
3512 else
3513 ac_compiler_gnu=no
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3520 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3521 if test $ac_compiler_gnu = yes; then
3522 GCC=yes
3523 else
3524 GCC=
3526 ac_test_CFLAGS=${CFLAGS+set}
3527 ac_save_CFLAGS=$CFLAGS
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3529 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3530 if ${ac_cv_prog_cc_g+:} false; then :
3531 $as_echo_n "(cached) " >&6
3532 else
3533 ac_save_c_werror_flag=$ac_c_werror_flag
3534 ac_c_werror_flag=yes
3535 ac_cv_prog_cc_g=no
3536 CFLAGS="-g"
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3541 main ()
3545 return 0;
3547 _ACEOF
3548 if ac_fn_c_try_compile "$LINENO"; then :
3549 ac_cv_prog_cc_g=yes
3550 else
3551 CFLAGS=""
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3556 main ()
3560 return 0;
3562 _ACEOF
3563 if ac_fn_c_try_compile "$LINENO"; then :
3565 else
3566 ac_c_werror_flag=$ac_save_c_werror_flag
3567 CFLAGS="-g"
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3572 main ()
3576 return 0;
3578 _ACEOF
3579 if ac_fn_c_try_compile "$LINENO"; then :
3580 ac_cv_prog_cc_g=yes
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_c_werror_flag=$ac_save_c_werror_flag
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3590 $as_echo "$ac_cv_prog_cc_g" >&6; }
3591 if test "$ac_test_CFLAGS" = set; then
3592 CFLAGS=$ac_save_CFLAGS
3593 elif test $ac_cv_prog_cc_g = yes; then
3594 if test "$GCC" = yes; then
3595 CFLAGS="-g -O2"
3596 else
3597 CFLAGS="-g"
3599 else
3600 if test "$GCC" = yes; then
3601 CFLAGS="-O2"
3602 else
3603 CFLAGS=
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3607 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3608 if ${ac_cv_prog_cc_c89+:} false; then :
3609 $as_echo_n "(cached) " >&6
3610 else
3611 ac_cv_prog_cc_c89=no
3612 ac_save_CC=$CC
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3615 #include <stdarg.h>
3616 #include <stdio.h>
3617 #include <sys/types.h>
3618 #include <sys/stat.h>
3619 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3620 struct buf { int x; };
3621 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3622 static char *e (p, i)
3623 char **p;
3624 int i;
3626 return p[i];
3628 static char *f (char * (*g) (char **, int), char **p, ...)
3630 char *s;
3631 va_list v;
3632 va_start (v,p);
3633 s = g (p, va_arg (v,int));
3634 va_end (v);
3635 return s;
3638 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3639 function prototypes and stuff, but not '\xHH' hex character constants.
3640 These don't provoke an error unfortunately, instead are silently treated
3641 as 'x'. The following induces an error, until -std is added to get
3642 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3643 array size at least. It's necessary to write '\x00'==0 to get something
3644 that's true only with -std. */
3645 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3647 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3648 inside strings and character constants. */
3649 #define FOO(x) 'x'
3650 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3652 int test (int i, double x);
3653 struct s1 {int (*f) (int a);};
3654 struct s2 {int (*f) (double a);};
3655 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3656 int argc;
3657 char **argv;
3659 main ()
3661 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3663 return 0;
3665 _ACEOF
3666 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3667 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3669 CC="$ac_save_CC $ac_arg"
3670 if ac_fn_c_try_compile "$LINENO"; then :
3671 ac_cv_prog_cc_c89=$ac_arg
3673 rm -f core conftest.err conftest.$ac_objext
3674 test "x$ac_cv_prog_cc_c89" != "xno" && break
3675 done
3676 rm -f conftest.$ac_ext
3677 CC=$ac_save_CC
3680 # AC_CACHE_VAL
3681 case "x$ac_cv_prog_cc_c89" in
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3684 $as_echo "none needed" >&6; } ;;
3685 xno)
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3687 $as_echo "unsupported" >&6; } ;;
3689 CC="$CC $ac_cv_prog_cc_c89"
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3691 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3692 esac
3693 if test "x$ac_cv_prog_cc_c89" != xno; then :
3697 ac_ext=c
3698 ac_cpp='$CPP $CPPFLAGS'
3699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703 ac_ext=cpp
3704 ac_cpp='$CXXCPP $CPPFLAGS'
3705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3708 if test -z "$CXX"; then
3709 if test -n "$CCC"; then
3710 CXX=$CCC
3711 else
3712 if test -n "$ac_tool_prefix"; then
3713 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3718 $as_echo_n "checking for $ac_word... " >&6; }
3719 if ${ac_cv_prog_CXX+:} false; then :
3720 $as_echo_n "(cached) " >&6
3721 else
3722 if test -n "$CXX"; then
3723 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3724 else
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3732 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 break 2
3736 done
3737 done
3738 IFS=$as_save_IFS
3742 CXX=$ac_cv_prog_CXX
3743 if test -n "$CXX"; then
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3745 $as_echo "$CXX" >&6; }
3746 else
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 $as_echo "no" >&6; }
3752 test -n "$CXX" && break
3753 done
3755 if test -z "$CXX"; then
3756 ac_ct_CXX=$CXX
3757 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3759 # Extract the first word of "$ac_prog", so it can be a program name with args.
3760 set dummy $ac_prog; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3764 $as_echo_n "(cached) " >&6
3765 else
3766 if test -n "$ac_ct_CXX"; then
3767 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3776 ac_cv_prog_ac_ct_CXX="$ac_prog"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 break 2
3780 done
3781 done
3782 IFS=$as_save_IFS
3786 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3787 if test -n "$ac_ct_CXX"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3789 $as_echo "$ac_ct_CXX" >&6; }
3790 else
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3796 test -n "$ac_ct_CXX" && break
3797 done
3799 if test "x$ac_ct_CXX" = x; then
3800 CXX="g++"
3801 else
3802 case $cross_compiling:$ac_tool_warned in
3803 yes:)
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3806 ac_tool_warned=yes ;;
3807 esac
3808 CXX=$ac_ct_CXX
3814 # Provide some information about the compiler.
3815 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3816 set X $ac_compile
3817 ac_compiler=$2
3818 for ac_option in --version -v -V -qversion; do
3819 { { ac_try="$ac_compiler $ac_option >&5"
3820 case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823 esac
3824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825 $as_echo "$ac_try_echo"; } >&5
3826 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3827 ac_status=$?
3828 if test -s conftest.err; then
3829 sed '10a\
3830 ... rest of stderr output deleted ...
3831 10q' conftest.err >conftest.er1
3832 cat conftest.er1 >&5
3834 rm -f conftest.er1 conftest.err
3835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3836 test $ac_status = 0; }
3837 done
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3840 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3841 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3842 $as_echo_n "(cached) " >&6
3843 else
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3848 main ()
3850 #ifndef __GNUC__
3851 choke me
3852 #endif
3855 return 0;
3857 _ACEOF
3858 if ac_fn_cxx_try_compile "$LINENO"; then :
3859 ac_compiler_gnu=yes
3860 else
3861 ac_compiler_gnu=no
3863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3868 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3869 if test $ac_compiler_gnu = yes; then
3870 GXX=yes
3871 else
3872 GXX=
3874 ac_test_CXXFLAGS=${CXXFLAGS+set}
3875 ac_save_CXXFLAGS=$CXXFLAGS
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3877 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3878 if ${ac_cv_prog_cxx_g+:} false; then :
3879 $as_echo_n "(cached) " >&6
3880 else
3881 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3882 ac_cxx_werror_flag=yes
3883 ac_cv_prog_cxx_g=no
3884 CXXFLAGS="-g"
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3889 main ()
3893 return 0;
3895 _ACEOF
3896 if ac_fn_cxx_try_compile "$LINENO"; then :
3897 ac_cv_prog_cxx_g=yes
3898 else
3899 CXXFLAGS=""
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3904 main ()
3908 return 0;
3910 _ACEOF
3911 if ac_fn_cxx_try_compile "$LINENO"; then :
3913 else
3914 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3915 CXXFLAGS="-g"
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3920 main ()
3924 return 0;
3926 _ACEOF
3927 if ac_fn_cxx_try_compile "$LINENO"; then :
3928 ac_cv_prog_cxx_g=yes
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3938 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3939 if test "$ac_test_CXXFLAGS" = set; then
3940 CXXFLAGS=$ac_save_CXXFLAGS
3941 elif test $ac_cv_prog_cxx_g = yes; then
3942 if test "$GXX" = yes; then
3943 CXXFLAGS="-g -O2"
3944 else
3945 CXXFLAGS="-g"
3947 else
3948 if test "$GXX" = yes; then
3949 CXXFLAGS="-O2"
3950 else
3951 CXXFLAGS=
3954 ac_ext=c
3955 ac_cpp='$CPP $CPPFLAGS'
3956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960 if test -n "$ac_tool_prefix"; then
3961 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3962 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964 $as_echo_n "checking for $ac_word... " >&6; }
3965 if ${ac_cv_prog_CPPBIN+:} false; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 if test -n "$CPPBIN"; then
3969 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3978 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3982 done
3983 done
3984 IFS=$as_save_IFS
3988 CPPBIN=$ac_cv_prog_CPPBIN
3989 if test -n "$CPPBIN"; then
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3991 $as_echo "$CPPBIN" >&6; }
3992 else
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 $as_echo "no" >&6; }
3999 if test -z "$ac_cv_prog_CPPBIN"; then
4000 ac_ct_CPPBIN=$CPPBIN
4001 # Extract the first word of "cpp", so it can be a program name with args.
4002 set dummy cpp; ac_word=$2
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4004 $as_echo_n "checking for $ac_word... " >&6; }
4005 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4006 $as_echo_n "(cached) " >&6
4007 else
4008 if test -n "$ac_ct_CPPBIN"; then
4009 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4010 else
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 for as_dir in $PATH
4014 IFS=$as_save_IFS
4015 test -z "$as_dir" && as_dir=.
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4018 ac_cv_prog_ac_ct_CPPBIN="cpp"
4019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4020 break 2
4022 done
4023 done
4024 IFS=$as_save_IFS
4028 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4029 if test -n "$ac_ct_CPPBIN"; then
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4031 $as_echo "$ac_ct_CPPBIN" >&6; }
4032 else
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4034 $as_echo "no" >&6; }
4037 if test "x$ac_ct_CPPBIN" = x; then
4038 CPPBIN="cpp"
4039 else
4040 case $cross_compiling:$ac_tool_warned in
4041 yes:)
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4044 ac_tool_warned=yes ;;
4045 esac
4046 CPPBIN=$ac_ct_CPPBIN
4048 else
4049 CPPBIN="$ac_cv_prog_CPPBIN"
4053 cat >>confdefs.h <<_ACEOF
4054 #define EXEEXT "$ac_exeext"
4055 _ACEOF
4058 case $host in
4059 *-darwin*)
4060 if test "x$enable_win64" = "xyes"
4061 then
4062 CC="$CC -m64"
4063 CXX="$CXX -m64"
4064 LD="${LD:-ld} -arch x86_64"
4065 AS="${AS:-as} -arch x86_64"
4066 host_cpu="x86_64"
4067 notice_platform="64-bit "
4068 TARGETFLAGS="-m64"
4070 else
4071 CC="$CC -m32"
4072 CXX="$CXX -m32"
4073 LD="${LD:-ld} -arch i386"
4074 AS="${AS:-as} -arch i386"
4075 host_cpu="i386"
4076 notice_platform="32-bit "
4077 TARGETFLAGS="-m32"
4079 enable_win16=${enable_win16:-yes}
4082 x86_64*)
4083 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4084 then
4085 CC="$CC -m32"
4086 CXX="$CXX -m32"
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4088 $as_echo_n "checking whether $CC works... " >&6; }
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4094 main ()
4098 return 0;
4100 _ACEOF
4101 if ac_fn_c_try_link "$LINENO"; then :
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4103 $as_echo "yes" >&6; }
4104 else
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106 $as_echo "no" >&6; }
4107 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4109 rm -f core conftest.err conftest.$ac_objext \
4110 conftest$ac_exeext conftest.$ac_ext
4111 LD="${LD:-ld} -m elf_i386"
4112 AS="${AS:-as} --32"
4113 host_cpu="i386"
4114 notice_platform="32-bit "
4115 TARGETFLAGS="-m32"
4117 enable_win16=${enable_win16:-yes}
4118 else
4119 if test "x${GCC}" = "xyes"
4120 then
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4122 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4125 #include <stdarg.h>
4127 main ()
4129 void func(__builtin_ms_va_list *args);
4131 return 0;
4133 _ACEOF
4134 if ac_fn_c_try_compile "$LINENO"; then :
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4136 $as_echo "yes" >&6; }
4137 else
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 $as_echo "no" >&6; }
4140 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 TARGETFLAGS="-m64"
4148 *-mingw32*|*-cygwin*)
4149 enable_win16=${enable_win16:-no}
4150 CFLAGS="$CFLAGS -D_WIN32"
4152 i[3456789]86*)
4153 enable_win16=${enable_win16:-yes}
4155 esac
4157 enable_win16=${enable_win16:-no}
4158 enable_win64=${enable_win64:-no}
4160 enable_winetest=${enable_winetest:-$enable_tests}
4162 if test -n "$with_wine64"
4163 then
4164 if test "x$enable_win64" = "xyes"
4165 then
4166 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4167 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4169 WOW64_DISABLE=\#
4171 enable_fonts=${enable_fonts:-no}
4172 enable_server=${enable_server:-no}
4173 enable_tools=${enable_tools:-no}
4174 elif test "x$enable_win64" = "xyes"
4175 then
4176 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4180 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4181 if ${wine_cv_toolsdir+:} false; then :
4182 $as_echo_n "(cached) " >&6
4183 else
4184 wine_cv_toolsdir="$with_wine_tools"
4185 if test -z "$with_wine_tools"; then
4186 if test "$cross_compiling" = "yes"; then
4187 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4188 elif test -n "$with_wine64"; then
4189 wine_cv_toolsdir="$with_wine64"
4192 if test -z "$wine_cv_toolsdir"; then
4193 wine_cv_toolsdir="\$(top_builddir)"
4194 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4195 case "$wine_cv_toolsdir" in
4196 /*) ;;
4197 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4198 esac
4199 else
4200 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4204 $as_echo "$wine_cv_toolsdir" >&6; }
4205 TOOLSDIR=$wine_cv_toolsdir
4207 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4208 then
4209 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4213 for ac_prog in flex
4215 # Extract the first word of "$ac_prog", so it can be a program name with args.
4216 set dummy $ac_prog; ac_word=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if ${ac_cv_prog_FLEX+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221 else
4222 if test -n "$FLEX"; then
4223 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232 ac_cv_prog_FLEX="$ac_prog"
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 break 2
4236 done
4237 done
4238 IFS=$as_save_IFS
4242 FLEX=$ac_cv_prog_FLEX
4243 if test -n "$FLEX"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4245 $as_echo "$FLEX" >&6; }
4246 else
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4252 test -n "$FLEX" && break
4253 done
4254 test -n "$FLEX" || FLEX="none"
4256 if test "$FLEX" = "none"
4257 then
4258 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4261 $as_echo_n "checking whether flex is recent enough... " >&6; }
4262 cat >conftest.l <<EOF
4263 %top{
4264 #include "prediluvian.h"
4268 if $FLEX -t conftest.l >/dev/null 2>&5
4269 then
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4271 $as_echo "yes" >&6; }
4272 else
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274 $as_echo "no" >&6; }
4275 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4278 for ac_prog in bison
4280 # Extract the first word of "$ac_prog", so it can be a program name with args.
4281 set dummy $ac_prog; ac_word=$2
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283 $as_echo_n "checking for $ac_word... " >&6; }
4284 if ${ac_cv_prog_BISON+:} false; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4287 if test -n "$BISON"; then
4288 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4289 else
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4297 ac_cv_prog_BISON="$ac_prog"
4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 break 2
4301 done
4302 done
4303 IFS=$as_save_IFS
4307 BISON=$ac_cv_prog_BISON
4308 if test -n "$BISON"; then
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4310 $as_echo "$BISON" >&6; }
4311 else
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313 $as_echo "no" >&6; }
4317 test -n "$BISON" && break
4318 done
4319 test -n "$BISON" || BISON="none"
4321 if test "$BISON" = "none"
4322 then
4323 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4326 if test -n "$ac_tool_prefix"; then
4327 for ac_prog in ar gar
4329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4332 $as_echo_n "checking for $ac_word... " >&6; }
4333 if ${ac_cv_prog_AR+:} false; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 if test -n "$AR"; then
4337 ac_cv_prog_AR="$AR" # Let the user override the test.
4338 else
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4350 done
4351 done
4352 IFS=$as_save_IFS
4356 AR=$ac_cv_prog_AR
4357 if test -n "$AR"; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4359 $as_echo "$AR" >&6; }
4360 else
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4366 test -n "$AR" && break
4367 done
4369 if test -z "$AR"; then
4370 ac_ct_AR=$AR
4371 for ac_prog in ar gar
4373 # Extract the first word of "$ac_prog", so it can be a program name with args.
4374 set dummy $ac_prog; ac_word=$2
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376 $as_echo_n "checking for $ac_word... " >&6; }
4377 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 if test -n "$ac_ct_AR"; then
4381 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390 ac_cv_prog_ac_ct_AR="$ac_prog"
4391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 break 2
4394 done
4395 done
4396 IFS=$as_save_IFS
4400 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4401 if test -n "$ac_ct_AR"; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4403 $as_echo "$ac_ct_AR" >&6; }
4404 else
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4410 test -n "$ac_ct_AR" && break
4411 done
4413 if test "x$ac_ct_AR" = x; then
4414 AR="ar"
4415 else
4416 case $cross_compiling:$ac_tool_warned in
4417 yes:)
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4420 ac_tool_warned=yes ;;
4421 esac
4422 AR=$ac_ct_AR
4426 ARFLAGS=rc
4428 if test -n "$ac_tool_prefix"; then
4429 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4430 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432 $as_echo_n "checking for $ac_word... " >&6; }
4433 if ${ac_cv_prog_RANLIB+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 if test -n "$RANLIB"; then
4437 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4446 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 break 2
4450 done
4451 done
4452 IFS=$as_save_IFS
4456 RANLIB=$ac_cv_prog_RANLIB
4457 if test -n "$RANLIB"; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4459 $as_echo "$RANLIB" >&6; }
4460 else
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 $as_echo "no" >&6; }
4467 if test -z "$ac_cv_prog_RANLIB"; then
4468 ac_ct_RANLIB=$RANLIB
4469 # Extract the first word of "ranlib", so it can be a program name with args.
4470 set dummy ranlib; ac_word=$2
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4472 $as_echo_n "checking for $ac_word... " >&6; }
4473 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 if test -n "$ac_ct_RANLIB"; then
4477 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4478 else
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4486 ac_cv_prog_ac_ct_RANLIB="ranlib"
4487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 break 2
4490 done
4491 done
4492 IFS=$as_save_IFS
4496 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4497 if test -n "$ac_ct_RANLIB"; then
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4499 $as_echo "$ac_ct_RANLIB" >&6; }
4500 else
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4505 if test "x$ac_ct_RANLIB" = x; then
4506 RANLIB=":"
4507 else
4508 case $cross_compiling:$ac_tool_warned in
4509 yes:)
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4512 ac_tool_warned=yes ;;
4513 esac
4514 RANLIB=$ac_ct_RANLIB
4516 else
4517 RANLIB="$ac_cv_prog_RANLIB"
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4521 $as_echo_n "checking whether ln -s works... " >&6; }
4522 LN_S=$as_ln_s
4523 if test "$LN_S" = "ln -s"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4525 $as_echo "yes" >&6; }
4526 else
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4528 $as_echo "no, using $LN_S" >&6; }
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4532 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4533 if ${ac_cv_path_GREP+:} false; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 if test -z "$GREP"; then
4537 ac_path_GREP_found=false
4538 # Loop through the user's path and test for each of PROGNAME-LIST
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_prog in grep ggrep; do
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4547 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4548 # Check for GNU ac_path_GREP and select it if it is found.
4549 # Check for GNU $ac_path_GREP
4550 case `"$ac_path_GREP" --version 2>&1` in
4551 *GNU*)
4552 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4554 ac_count=0
4555 $as_echo_n 0123456789 >"conftest.in"
4556 while :
4558 cat "conftest.in" "conftest.in" >"conftest.tmp"
4559 mv "conftest.tmp" "conftest.in"
4560 cp "conftest.in" "conftest.nl"
4561 $as_echo 'GREP' >> "conftest.nl"
4562 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4564 as_fn_arith $ac_count + 1 && ac_count=$as_val
4565 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4566 # Best one so far, save it but keep looking for a better one
4567 ac_cv_path_GREP="$ac_path_GREP"
4568 ac_path_GREP_max=$ac_count
4570 # 10*(2^10) chars as input seems more than enough
4571 test $ac_count -gt 10 && break
4572 done
4573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4574 esac
4576 $ac_path_GREP_found && break 3
4577 done
4578 done
4579 done
4580 IFS=$as_save_IFS
4581 if test -z "$ac_cv_path_GREP"; then
4582 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4584 else
4585 ac_cv_path_GREP=$GREP
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4590 $as_echo "$ac_cv_path_GREP" >&6; }
4591 GREP="$ac_cv_path_GREP"
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4595 $as_echo_n "checking for egrep... " >&6; }
4596 if ${ac_cv_path_EGREP+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4600 then ac_cv_path_EGREP="$GREP -E"
4601 else
4602 if test -z "$EGREP"; then
4603 ac_path_EGREP_found=false
4604 # Loop through the user's path and test for each of PROGNAME-LIST
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_prog in egrep; do
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4613 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4614 # Check for GNU ac_path_EGREP and select it if it is found.
4615 # Check for GNU $ac_path_EGREP
4616 case `"$ac_path_EGREP" --version 2>&1` in
4617 *GNU*)
4618 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4620 ac_count=0
4621 $as_echo_n 0123456789 >"conftest.in"
4622 while :
4624 cat "conftest.in" "conftest.in" >"conftest.tmp"
4625 mv "conftest.tmp" "conftest.in"
4626 cp "conftest.in" "conftest.nl"
4627 $as_echo 'EGREP' >> "conftest.nl"
4628 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4630 as_fn_arith $ac_count + 1 && ac_count=$as_val
4631 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4632 # Best one so far, save it but keep looking for a better one
4633 ac_cv_path_EGREP="$ac_path_EGREP"
4634 ac_path_EGREP_max=$ac_count
4636 # 10*(2^10) chars as input seems more than enough
4637 test $ac_count -gt 10 && break
4638 done
4639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4640 esac
4642 $ac_path_EGREP_found && break 3
4643 done
4644 done
4645 done
4646 IFS=$as_save_IFS
4647 if test -z "$ac_cv_path_EGREP"; then
4648 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4650 else
4651 ac_cv_path_EGREP=$EGREP
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4657 $as_echo "$ac_cv_path_EGREP" >&6; }
4658 EGREP="$ac_cv_path_EGREP"
4661 # Extract the first word of "ldconfig", so it can be a program name with args.
4662 set dummy ldconfig; ac_word=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if ${ac_cv_path_LDCONFIG+:} false; then :
4666 $as_echo_n "(cached) " >&6
4667 else
4668 case $LDCONFIG in
4669 [\\/]* | ?:[\\/]*)
4670 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in /sbin /usr/sbin $PATH
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4684 done
4685 done
4686 IFS=$as_save_IFS
4688 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4690 esac
4692 LDCONFIG=$ac_cv_path_LDCONFIG
4693 if test -n "$LDCONFIG"; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4695 $as_echo "$LDCONFIG" >&6; }
4696 else
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4702 # Find a good install program. We prefer a C program (faster),
4703 # so one script is as good as another. But avoid the broken or
4704 # incompatible versions:
4705 # SysV /etc/install, /usr/sbin/install
4706 # SunOS /usr/etc/install
4707 # IRIX /sbin/install
4708 # AIX /bin/install
4709 # AmigaOS /C/install, which installs bootblocks on floppy discs
4710 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4711 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4712 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4713 # OS/2's system install, which has a completely different semantic
4714 # ./install, which can be erroneously created by make from ./install.sh.
4715 # Reject install programs that cannot install multiple files.
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4717 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4718 if test -z "$INSTALL"; then
4719 if ${ac_cv_path_install+:} false; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 # Account for people who put trailing slashes in PATH elements.
4728 case $as_dir/ in #((
4729 ./ | .// | /[cC]/* | \
4730 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4731 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4732 /usr/ucb/* ) ;;
4734 # OSF1 and SCO ODT 3.0 have their own names for install.
4735 # Don't use installbsd from OSF since it installs stuff as root
4736 # by default.
4737 for ac_prog in ginstall scoinst install; do
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4740 if test $ac_prog = install &&
4741 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4742 # AIX install. It has an incompatible calling convention.
4744 elif test $ac_prog = install &&
4745 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4746 # program-specific install script used by HP pwplus--don't use.
4748 else
4749 rm -rf conftest.one conftest.two conftest.dir
4750 echo one > conftest.one
4751 echo two > conftest.two
4752 mkdir conftest.dir
4753 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4754 test -s conftest.one && test -s conftest.two &&
4755 test -s conftest.dir/conftest.one &&
4756 test -s conftest.dir/conftest.two
4757 then
4758 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4759 break 3
4763 done
4764 done
4766 esac
4768 done
4769 IFS=$as_save_IFS
4771 rm -rf conftest.one conftest.two conftest.dir
4774 if test "${ac_cv_path_install+set}" = set; then
4775 INSTALL=$ac_cv_path_install
4776 else
4777 # As a last resort, use the slow shell script. Don't cache a
4778 # value for INSTALL within a source directory, because that will
4779 # break other packages using the cache if that directory is
4780 # removed, or if the value is a relative name.
4781 INSTALL=$ac_install_sh
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4785 $as_echo "$INSTALL" >&6; }
4787 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4788 # It thinks the first close brace ends the variable substitution.
4789 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4791 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4793 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4795 case "$INSTALL" in
4796 [\\/$]* | ?:[\\/]* ) ;;
4797 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4798 esac
4800 for ac_prog in lclint lint
4802 # Extract the first word of "$ac_prog", so it can be a program name with args.
4803 set dummy $ac_prog; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if ${ac_cv_prog_LINT+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 if test -n "$LINT"; then
4810 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819 ac_cv_prog_LINT="$ac_prog"
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4823 done
4824 done
4825 IFS=$as_save_IFS
4829 LINT=$ac_cv_prog_LINT
4830 if test -n "$LINT"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4832 $as_echo "$LINT" >&6; }
4833 else
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4839 test -n "$LINT" && break
4840 done
4842 if test "$LINT" = "lint"
4843 then
4844 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4849 for ac_prog in fontforge
4851 # Extract the first word of "$ac_prog", so it can be a program name with args.
4852 set dummy $ac_prog; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_prog_FONTFORGE+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test -n "$FONTFORGE"; then
4859 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_FONTFORGE="$ac_prog"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4872 done
4873 done
4874 IFS=$as_save_IFS
4878 FONTFORGE=$ac_cv_prog_FONTFORGE
4879 if test -n "$FONTFORGE"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4881 $as_echo "$FONTFORGE" >&6; }
4882 else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4888 test -n "$FONTFORGE" && break
4889 done
4890 test -n "$FONTFORGE" || FONTFORGE="false"
4892 for ac_prog in pkg-config
4894 # Extract the first word of "$ac_prog", so it can be a program name with args.
4895 set dummy $ac_prog; ac_word=$2
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897 $as_echo_n "checking for $ac_word... " >&6; }
4898 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 if test -n "$PKG_CONFIG"; then
4902 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4903 else
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911 ac_cv_prog_PKG_CONFIG="$ac_prog"
4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 break 2
4915 done
4916 done
4917 IFS=$as_save_IFS
4921 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4922 if test -n "$PKG_CONFIG"; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4924 $as_echo "$PKG_CONFIG" >&6; }
4925 else
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4931 test -n "$PKG_CONFIG" && break
4932 done
4933 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4935 for ac_prog in rsvg
4937 # Extract the first word of "$ac_prog", so it can be a program name with args.
4938 set dummy $ac_prog; ac_word=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if ${ac_cv_prog_RSVG+:} false; then :
4942 $as_echo_n "(cached) " >&6
4943 else
4944 if test -n "$RSVG"; then
4945 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954 ac_cv_prog_RSVG="$ac_prog"
4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 break 2
4958 done
4959 done
4960 IFS=$as_save_IFS
4964 RSVG=$ac_cv_prog_RSVG
4965 if test -n "$RSVG"; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4967 $as_echo "$RSVG" >&6; }
4968 else
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4974 test -n "$RSVG" && break
4975 done
4976 test -n "$RSVG" || RSVG="false"
4978 for ac_prog in convert
4980 # Extract the first word of "$ac_prog", so it can be a program name with args.
4981 set dummy $ac_prog; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if ${ac_cv_prog_CONVERT+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 if test -n "$CONVERT"; then
4988 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4997 ac_cv_prog_CONVERT="$ac_prog"
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5001 done
5002 done
5003 IFS=$as_save_IFS
5007 CONVERT=$ac_cv_prog_CONVERT
5008 if test -n "$CONVERT"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5010 $as_echo "$CONVERT" >&6; }
5011 else
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5017 test -n "$CONVERT" && break
5018 done
5019 test -n "$CONVERT" || CONVERT="false"
5021 for ac_prog in icotool
5023 # Extract the first word of "$ac_prog", so it can be a program name with args.
5024 set dummy $ac_prog; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if ${ac_cv_prog_ICOTOOL+:} false; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 if test -n "$ICOTOOL"; then
5031 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_prog_ICOTOOL="$ac_prog"
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5044 done
5045 done
5046 IFS=$as_save_IFS
5050 ICOTOOL=$ac_cv_prog_ICOTOOL
5051 if test -n "$ICOTOOL"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5053 $as_echo "$ICOTOOL" >&6; }
5054 else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5060 test -n "$ICOTOOL" && break
5061 done
5062 test -n "$ICOTOOL" || ICOTOOL="false"
5065 if test "x$enable_maintainer_mode" != "xyes"
5066 then
5067 MAINTAINER_MODE=\#
5069 else
5070 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5071 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5073 if test "$CONVERT" = false
5074 then
5075 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5078 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5079 convert_version=`convert --version | head -n1`
5080 if test "x$convert_version" != "x"
5081 then
5082 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5083 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5084 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5085 then
5086 CONVERT=false
5089 if test "$CONVERT" = false
5090 then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5092 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5093 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5096 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5100 if test "$ICOTOOL" = false
5101 then
5102 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5103 else
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5105 $as_echo_n "checking for recent enough icotool... " >&6; }
5106 icotool_version=`icotool --version | head -n1`
5107 if test "x$icotool_version" != "x"
5108 then
5109 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5110 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5111 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5112 then
5113 ICOTOOL=false
5114 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5117 if test "$ICOTOOL" = false
5118 then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5120 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5121 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5124 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5132 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5133 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 ac_check_lib_save_LIBS=$LIBS
5137 LIBS="-li386 $LIBS"
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5141 /* Override any GCC internal prototype to avoid an error.
5142 Use char because int might match the return type of a GCC
5143 builtin and then its argument prototype would still apply. */
5144 #ifdef __cplusplus
5145 extern "C"
5146 #endif
5147 char i386_set_ldt ();
5149 main ()
5151 return i386_set_ldt ();
5153 return 0;
5155 _ACEOF
5156 if ac_fn_c_try_link "$LINENO"; then :
5157 ac_cv_lib_i386_i386_set_ldt=yes
5158 else
5159 ac_cv_lib_i386_i386_set_ldt=no
5161 rm -f core conftest.err conftest.$ac_objext \
5162 conftest$ac_exeext conftest.$ac_ext
5163 LIBS=$ac_check_lib_save_LIBS
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5166 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5167 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5168 cat >>confdefs.h <<_ACEOF
5169 #define HAVE_LIBI386 1
5170 _ACEOF
5172 LIBS="-li386 $LIBS"
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5177 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5178 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 ac_check_lib_save_LIBS=$LIBS
5182 LIBS="-lossaudio $LIBS"
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5186 /* Override any GCC internal prototype to avoid an error.
5187 Use char because int might match the return type of a GCC
5188 builtin and then its argument prototype would still apply. */
5189 #ifdef __cplusplus
5190 extern "C"
5191 #endif
5192 char _oss_ioctl ();
5194 main ()
5196 return _oss_ioctl ();
5198 return 0;
5200 _ACEOF
5201 if ac_fn_c_try_link "$LINENO"; then :
5202 ac_cv_lib_ossaudio__oss_ioctl=yes
5203 else
5204 ac_cv_lib_ossaudio__oss_ioctl=no
5206 rm -f core conftest.err conftest.$ac_objext \
5207 conftest$ac_exeext conftest.$ac_ext
5208 LIBS=$ac_check_lib_save_LIBS
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5211 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5212 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5213 cat >>confdefs.h <<_ACEOF
5214 #define HAVE_LIBOSSAUDIO 1
5215 _ACEOF
5217 LIBS="-lossaudio $LIBS"
5222 XLIB=""
5224 OPENGL_LIBS=""
5228 # Check whether --enable-largefile was given.
5229 if test "${enable_largefile+set}" = set; then :
5230 enableval=$enable_largefile;
5233 if test "$enable_largefile" != no; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5236 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5237 if ${ac_cv_sys_largefile_CC+:} false; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 ac_cv_sys_largefile_CC=no
5241 if test "$GCC" != yes; then
5242 ac_save_CC=$CC
5243 while :; do
5244 # IRIX 6.2 and later do not support large files by default,
5245 # so use the C compiler's -n32 option if that helps.
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5248 #include <sys/types.h>
5249 /* Check that off_t can represent 2**63 - 1 correctly.
5250 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5251 since some C++ compilers masquerading as C compilers
5252 incorrectly reject 9223372036854775807. */
5253 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5254 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5255 && LARGE_OFF_T % 2147483647 == 1)
5256 ? 1 : -1];
5258 main ()
5262 return 0;
5264 _ACEOF
5265 if ac_fn_c_try_compile "$LINENO"; then :
5266 break
5268 rm -f core conftest.err conftest.$ac_objext
5269 CC="$CC -n32"
5270 if ac_fn_c_try_compile "$LINENO"; then :
5271 ac_cv_sys_largefile_CC=' -n32'; break
5273 rm -f core conftest.err conftest.$ac_objext
5274 break
5275 done
5276 CC=$ac_save_CC
5277 rm -f conftest.$ac_ext
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5281 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5282 if test "$ac_cv_sys_largefile_CC" != no; then
5283 CC=$CC$ac_cv_sys_largefile_CC
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5287 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5288 if ${ac_cv_sys_file_offset_bits+:} false; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 while :; do
5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h. */
5294 #include <sys/types.h>
5295 /* Check that off_t can represent 2**63 - 1 correctly.
5296 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5297 since some C++ compilers masquerading as C compilers
5298 incorrectly reject 9223372036854775807. */
5299 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5300 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5301 && LARGE_OFF_T % 2147483647 == 1)
5302 ? 1 : -1];
5304 main ()
5308 return 0;
5310 _ACEOF
5311 if ac_fn_c_try_compile "$LINENO"; then :
5312 ac_cv_sys_file_offset_bits=no; break
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5317 #define _FILE_OFFSET_BITS 64
5318 #include <sys/types.h>
5319 /* Check that off_t can represent 2**63 - 1 correctly.
5320 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5321 since some C++ compilers masquerading as C compilers
5322 incorrectly reject 9223372036854775807. */
5323 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5324 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5325 && LARGE_OFF_T % 2147483647 == 1)
5326 ? 1 : -1];
5328 main ()
5332 return 0;
5334 _ACEOF
5335 if ac_fn_c_try_compile "$LINENO"; then :
5336 ac_cv_sys_file_offset_bits=64; break
5338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339 ac_cv_sys_file_offset_bits=unknown
5340 break
5341 done
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5344 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5345 case $ac_cv_sys_file_offset_bits in #(
5346 no | unknown) ;;
5348 cat >>confdefs.h <<_ACEOF
5349 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5350 _ACEOF
5352 esac
5353 rm -rf conftest*
5354 if test $ac_cv_sys_file_offset_bits = unknown; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5356 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5357 if ${ac_cv_sys_large_files+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359 else
5360 while :; do
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5363 #include <sys/types.h>
5364 /* Check that off_t can represent 2**63 - 1 correctly.
5365 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5366 since some C++ compilers masquerading as C compilers
5367 incorrectly reject 9223372036854775807. */
5368 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5369 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5370 && LARGE_OFF_T % 2147483647 == 1)
5371 ? 1 : -1];
5373 main ()
5377 return 0;
5379 _ACEOF
5380 if ac_fn_c_try_compile "$LINENO"; then :
5381 ac_cv_sys_large_files=no; break
5383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386 #define _LARGE_FILES 1
5387 #include <sys/types.h>
5388 /* Check that off_t can represent 2**63 - 1 correctly.
5389 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5390 since some C++ compilers masquerading as C compilers
5391 incorrectly reject 9223372036854775807. */
5392 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5393 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5394 && LARGE_OFF_T % 2147483647 == 1)
5395 ? 1 : -1];
5397 main ()
5401 return 0;
5403 _ACEOF
5404 if ac_fn_c_try_compile "$LINENO"; then :
5405 ac_cv_sys_large_files=1; break
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 ac_cv_sys_large_files=unknown
5409 break
5410 done
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5413 $as_echo "$ac_cv_sys_large_files" >&6; }
5414 case $ac_cv_sys_large_files in #(
5415 no | unknown) ;;
5417 cat >>confdefs.h <<_ACEOF
5418 #define _LARGE_FILES $ac_cv_sys_large_files
5419 _ACEOF
5421 esac
5422 rm -rf conftest*
5427 ac_ext=c
5428 ac_cpp='$CPP $CPPFLAGS'
5429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5433 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5434 # On Suns, sometimes $CPP names a directory.
5435 if test -n "$CPP" && test -d "$CPP"; then
5436 CPP=
5438 if test -z "$CPP"; then
5439 if ${ac_cv_prog_CPP+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 # Double quotes because CPP needs to be expanded
5443 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5445 ac_preproc_ok=false
5446 for ac_c_preproc_warn_flag in '' yes
5448 # Use a header file that comes with gcc, so configuring glibc
5449 # with a fresh cross-compiler works.
5450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5451 # <limits.h> exists even on freestanding compilers.
5452 # On the NeXT, cc -E runs the code through the compiler's parser,
5453 # not just through cpp. "Syntax error" is here to catch this case.
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456 #ifdef __STDC__
5457 # include <limits.h>
5458 #else
5459 # include <assert.h>
5460 #endif
5461 Syntax error
5462 _ACEOF
5463 if ac_fn_c_try_cpp "$LINENO"; then :
5465 else
5466 # Broken: fails on valid input.
5467 continue
5469 rm -f conftest.err conftest.i conftest.$ac_ext
5471 # OK, works on sane cases. Now check whether nonexistent headers
5472 # can be detected and how.
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 #include <ac_nonexistent.h>
5476 _ACEOF
5477 if ac_fn_c_try_cpp "$LINENO"; then :
5478 # Broken: success on invalid input.
5479 continue
5480 else
5481 # Passes both tests.
5482 ac_preproc_ok=:
5483 break
5485 rm -f conftest.err conftest.i conftest.$ac_ext
5487 done
5488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5489 rm -f conftest.i conftest.err conftest.$ac_ext
5490 if $ac_preproc_ok; then :
5491 break
5494 done
5495 ac_cv_prog_CPP=$CPP
5498 CPP=$ac_cv_prog_CPP
5499 else
5500 ac_cv_prog_CPP=$CPP
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5503 $as_echo "$CPP" >&6; }
5504 ac_preproc_ok=false
5505 for ac_c_preproc_warn_flag in '' yes
5507 # Use a header file that comes with gcc, so configuring glibc
5508 # with a fresh cross-compiler works.
5509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5510 # <limits.h> exists even on freestanding compilers.
5511 # On the NeXT, cc -E runs the code through the compiler's parser,
5512 # not just through cpp. "Syntax error" is here to catch this case.
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515 #ifdef __STDC__
5516 # include <limits.h>
5517 #else
5518 # include <assert.h>
5519 #endif
5520 Syntax error
5521 _ACEOF
5522 if ac_fn_c_try_cpp "$LINENO"; then :
5524 else
5525 # Broken: fails on valid input.
5526 continue
5528 rm -f conftest.err conftest.i conftest.$ac_ext
5530 # OK, works on sane cases. Now check whether nonexistent headers
5531 # can be detected and how.
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 #include <ac_nonexistent.h>
5535 _ACEOF
5536 if ac_fn_c_try_cpp "$LINENO"; then :
5537 # Broken: success on invalid input.
5538 continue
5539 else
5540 # Passes both tests.
5541 ac_preproc_ok=:
5542 break
5544 rm -f conftest.err conftest.i conftest.$ac_ext
5546 done
5547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5548 rm -f conftest.i conftest.err conftest.$ac_ext
5549 if $ac_preproc_ok; then :
5551 else
5552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5554 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5555 See \`config.log' for more details" "$LINENO" 5; }
5558 ac_ext=c
5559 ac_cpp='$CPP $CPPFLAGS'
5560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5566 $as_echo_n "checking for ANSI C header files... " >&6; }
5567 if ${ac_cv_header_stdc+:} false; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572 #include <stdlib.h>
5573 #include <stdarg.h>
5574 #include <string.h>
5575 #include <float.h>
5578 main ()
5582 return 0;
5584 _ACEOF
5585 if ac_fn_c_try_compile "$LINENO"; then :
5586 ac_cv_header_stdc=yes
5587 else
5588 ac_cv_header_stdc=no
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 if test $ac_cv_header_stdc = yes; then
5593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h. */
5596 #include <string.h>
5598 _ACEOF
5599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5600 $EGREP "memchr" >/dev/null 2>&1; then :
5602 else
5603 ac_cv_header_stdc=no
5605 rm -f conftest*
5609 if test $ac_cv_header_stdc = yes; then
5610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613 #include <stdlib.h>
5615 _ACEOF
5616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5617 $EGREP "free" >/dev/null 2>&1; then :
5619 else
5620 ac_cv_header_stdc=no
5622 rm -f conftest*
5626 if test $ac_cv_header_stdc = yes; then
5627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5628 if test "$cross_compiling" = yes; then :
5630 else
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5633 #include <ctype.h>
5634 #include <stdlib.h>
5635 #if ((' ' & 0x0FF) == 0x020)
5636 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5637 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5638 #else
5639 # define ISLOWER(c) \
5640 (('a' <= (c) && (c) <= 'i') \
5641 || ('j' <= (c) && (c) <= 'r') \
5642 || ('s' <= (c) && (c) <= 'z'))
5643 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5644 #endif
5646 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5648 main ()
5650 int i;
5651 for (i = 0; i < 256; i++)
5652 if (XOR (islower (i), ISLOWER (i))
5653 || toupper (i) != TOUPPER (i))
5654 return 2;
5655 return 0;
5657 _ACEOF
5658 if ac_fn_c_try_run "$LINENO"; then :
5660 else
5661 ac_cv_header_stdc=no
5663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5664 conftest.$ac_objext conftest.beam conftest.$ac_ext
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5670 $as_echo "$ac_cv_header_stdc" >&6; }
5671 if test $ac_cv_header_stdc = yes; then
5673 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5677 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5678 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5679 inttypes.h stdint.h unistd.h
5680 do :
5681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5682 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5684 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5685 cat >>confdefs.h <<_ACEOF
5686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5687 _ACEOF
5691 done
5694 for ac_header in \
5695 AL/al.h \
5696 ApplicationServices/ApplicationServices.h \
5697 AudioToolbox/AudioConverter.h \
5698 AudioUnit/AudioUnit.h \
5699 AudioUnit/AudioComponent.h \
5700 CL/cl.h \
5701 Carbon/Carbon.h \
5702 CoreAudio/CoreAudio.h \
5703 DiskArbitration/DiskArbitration.h \
5704 IOKit/IOKitLib.h \
5705 IOKit/hid/IOHIDLib.h \
5706 OpenAL/al.h \
5707 OpenCL/opencl.h \
5708 QuickTime/ImageCompression.h \
5709 Security/Security.h \
5710 alias.h \
5711 alsa/asoundlib.h \
5712 arpa/inet.h \
5713 arpa/nameser.h \
5714 asm/types.h \
5715 capi20.h \
5716 curses.h \
5717 direct.h \
5718 dirent.h \
5719 dlfcn.h \
5720 elf.h \
5721 float.h \
5722 fnmatch.h \
5723 fontconfig/fontconfig.h \
5724 getopt.h \
5725 gettext-po.h \
5726 grp.h \
5727 gsm.h \
5728 gsm/gsm.h \
5729 ieeefp.h \
5730 inet/mib2.h \
5731 io.h \
5732 jack/jack.h \
5733 jpeglib.h \
5734 kstat.h \
5735 lber.h \
5736 lcms.h \
5737 lcms/lcms.h \
5738 ldap.h \
5739 link.h \
5740 linux/cdrom.h \
5741 linux/compiler.h \
5742 linux/hdreg.h \
5743 linux/input.h \
5744 linux/ioctl.h \
5745 linux/joystick.h \
5746 linux/major.h \
5747 linux/param.h \
5748 linux/serial.h \
5749 linux/types.h \
5750 linux/ucdrom.h \
5751 mach-o/nlist.h \
5752 mach-o/loader.h \
5753 mach/mach.h \
5754 mach/machine.h \
5755 machine/cpu.h \
5756 machine/limits.h \
5757 machine/sysarch.h \
5758 mntent.h \
5759 mpg123.h \
5760 ncurses.h \
5761 netdb.h \
5762 netinet/in.h \
5763 netinet/in_systm.h \
5764 netinet/tcp.h \
5765 netinet/tcp_fsm.h \
5766 openssl/err.h \
5767 openssl/ssl.h \
5768 png.h \
5769 poll.h \
5770 port.h \
5771 process.h \
5772 pthread.h \
5773 pwd.h \
5774 regex.h \
5775 sched.h \
5776 scsi/scsi.h \
5777 scsi/scsi_ioctl.h \
5778 scsi/sg.h \
5779 stdbool.h \
5780 stdint.h \
5781 strings.h \
5782 stropts.h \
5783 sys/asoundlib.h \
5784 sys/attr.h \
5785 sys/cdio.h \
5786 sys/elf32.h \
5787 sys/epoll.h \
5788 sys/errno.h \
5789 sys/event.h \
5790 sys/exec_elf.h \
5791 sys/filio.h \
5792 sys/inotify.h \
5793 sys/ioctl.h \
5794 sys/ipc.h \
5795 sys/limits.h \
5796 sys/link.h \
5797 sys/mman.h \
5798 sys/modem.h \
5799 sys/msg.h \
5800 sys/mtio.h \
5801 sys/param.h \
5802 sys/poll.h \
5803 sys/prctl.h \
5804 sys/protosw.h \
5805 sys/ptrace.h \
5806 sys/resource.h \
5807 sys/scsiio.h \
5808 sys/shm.h \
5809 sys/signal.h \
5810 sys/socket.h \
5811 sys/socketvar.h \
5812 sys/sockio.h \
5813 sys/statvfs.h \
5814 sys/strtio.h \
5815 sys/syscall.h \
5816 sys/tihdr.h \
5817 sys/time.h \
5818 sys/timeout.h \
5819 sys/times.h \
5820 sys/uio.h \
5821 sys/un.h \
5822 sys/utsname.h \
5823 sys/vm86.h \
5824 sys/wait.h \
5825 syscall.h \
5826 termios.h \
5827 tiffio.h \
5828 unistd.h \
5829 utime.h \
5830 valgrind/memcheck.h \
5831 valgrind/valgrind.h \
5832 zlib.h
5834 do :
5835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5836 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5837 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5838 cat >>confdefs.h <<_ACEOF
5839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5840 _ACEOF
5844 done
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5847 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5848 if ${ac_cv_header_stat_broken+:} false; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853 #include <sys/types.h>
5854 #include <sys/stat.h>
5856 #if defined S_ISBLK && defined S_IFDIR
5857 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5858 #endif
5860 #if defined S_ISBLK && defined S_IFCHR
5861 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5862 #endif
5864 #if defined S_ISLNK && defined S_IFREG
5865 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5866 #endif
5868 #if defined S_ISSOCK && defined S_IFREG
5869 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5870 #endif
5872 _ACEOF
5873 if ac_fn_c_try_compile "$LINENO"; then :
5874 ac_cv_header_stat_broken=no
5875 else
5876 ac_cv_header_stat_broken=yes
5878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5881 $as_echo "$ac_cv_header_stat_broken" >&6; }
5882 if test $ac_cv_header_stat_broken = yes; then
5884 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5890 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5891 do :
5892 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5893 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5894 #ifdef HAVE_SYS_PARAM_H
5895 # include <sys/param.h>
5896 #endif
5898 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5899 cat >>confdefs.h <<_ACEOF
5900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5901 _ACEOF
5905 done
5908 for ac_header in \
5909 netinet/ip.h \
5910 net/if.h \
5911 net/if_arp.h \
5912 net/if_dl.h \
5913 net/if_types.h \
5914 net/route.h \
5915 netinet/if_ether.h \
5916 netinet/if_inarp.h \
5917 netinet/in_pcb.h \
5918 netinet/ip_icmp.h \
5919 netinet/ip_var.h \
5920 netinet/udp.h \
5921 netipx/ipx.h \
5923 do :
5924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5925 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5926 #ifdef HAVE_SYS_SOCKET_H
5927 # include <sys/socket.h>
5928 #endif
5929 #ifdef HAVE_SYS_SOCKETVAR_H
5930 # include <sys/socketvar.h>
5931 #endif
5932 #ifdef HAVE_NET_ROUTE_H
5933 # include <net/route.h>
5934 #endif
5935 #ifdef HAVE_NETINET_IN_H
5936 # include <netinet/in.h>
5937 #endif
5938 #ifdef HAVE_NETINET_IN_SYSTM_H
5939 # include <netinet/in_systm.h>
5940 #endif
5941 #ifdef HAVE_NET_IF_H
5942 # include <net/if.h>
5943 #endif
5944 #ifdef HAVE_NETINET_IP_H
5945 # include <netinet/ip.h>
5946 #endif
5948 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5949 cat >>confdefs.h <<_ACEOF
5950 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5951 _ACEOF
5955 done
5958 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
5959 do :
5960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5961 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5962 #ifdef HAVE_ALIAS_H
5963 # include <alias.h>
5964 #endif
5965 #ifdef HAVE_SYS_SOCKET_H
5966 # include <sys/socket.h>
5967 #endif
5968 #ifdef HAVE_SYS_SOCKETVAR_H
5969 # include <sys/socketvar.h>
5970 #endif
5971 #ifdef HAVE_SYS_TIMEOUT_H
5972 # include <sys/timeout.h>
5973 #endif
5974 #ifdef HAVE_NETINET_IN_H
5975 # include <netinet/in.h>
5976 #endif
5977 #ifdef HAVE_NETINET_IN_SYSTM_H
5978 # include <netinet/in_systm.h>
5979 #endif
5980 #ifdef HAVE_NETINET_IP_H
5981 # include <netinet/ip.h>
5982 #endif
5983 #ifdef HAVE_NETINET_IP_VAR_H
5984 # include <netinet/ip_var.h>
5985 #endif
5986 #ifdef HAVE_NETINET_IP_ICMP_H
5987 # include <netinet/ip_icmp.h>
5988 #endif
5989 #ifdef HAVE_NETINET_UDP_H
5990 # include <netinet/udp.h>
5991 #endif
5992 #ifdef HAVE_NETINET_TCP_H
5993 # include <netinet/tcp.h>
5994 #endif
5995 #ifdef HAVE_NETINET_TCP_TIMER_H
5996 #include <netinet/tcp_timer.h>
5997 #endif
5999 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6000 cat >>confdefs.h <<_ACEOF
6001 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6002 _ACEOF
6006 done
6009 for ac_header in linux/ipx.h linux/irda.h
6010 do :
6011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6012 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6013 #ifdef HAVE_ASM_TYPES_H
6014 # include <asm/types.h>
6015 #endif
6016 #ifdef HAVE_SYS_SOCKET_H
6017 # include <sys/socket.h>
6018 #endif
6019 #ifdef HAVE_LINUX_TYPES_H
6020 # include <linux/types.h>
6021 #endif
6023 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6024 cat >>confdefs.h <<_ACEOF
6025 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6026 _ACEOF
6030 done
6033 for ac_header in mach-o/dyld_images.h
6034 do :
6035 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6036 # include <stdbool.h>
6037 #endif
6038 #ifdef HAVE_STDINT_H
6039 # include <stdint.h>
6040 #endif
6042 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6043 cat >>confdefs.h <<_ACEOF
6044 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6045 _ACEOF
6049 done
6052 for ac_header in resolv.h
6053 do :
6054 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6055 #ifdef HAVE_SYS_SOCKET_H
6056 # include <sys/socket.h>
6057 #endif
6058 #ifdef HAVE_NETINET_IN_H
6059 # include <netinet/in.h>
6060 #endif
6061 #ifdef HAVE_ARPA_NAMESER_H
6062 # include <arpa/nameser.h>
6063 #endif
6065 if test "x$ac_cv_header_resolv_h" = xyes; then :
6066 cat >>confdefs.h <<_ACEOF
6067 #define HAVE_RESOLV_H 1
6068 _ACEOF
6072 done
6075 for ac_header in ifaddrs.h
6076 do :
6077 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6079 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6080 cat >>confdefs.h <<_ACEOF
6081 #define HAVE_IFADDRS_H 1
6082 _ACEOF
6086 done
6089 for ac_header in ucontext.h
6090 do :
6091 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6093 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6094 cat >>confdefs.h <<_ACEOF
6095 #define HAVE_UCONTEXT_H 1
6096 _ACEOF
6100 done
6103 for ac_header in sys/thr.h
6104 do :
6105 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6106 #ifdef HAVE_UCONTEXT_H
6107 #include <ucontext.h>
6108 #endif
6110 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6111 cat >>confdefs.h <<_ACEOF
6112 #define HAVE_SYS_THR_H 1
6113 _ACEOF
6117 done
6120 for ac_header in pthread_np.h
6121 do :
6122 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6123 #include <pthread.h>
6124 #endif
6126 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6127 cat >>confdefs.h <<_ACEOF
6128 #define HAVE_PTHREAD_NP_H 1
6129 _ACEOF
6133 done
6136 for ac_header in linux/videodev.h linux/videodev2.h
6137 do :
6138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6139 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6140 #include <sys/time.h>
6141 #endif
6142 #include <sys/types.h>
6143 #ifdef HAVE_ASM_TYPES_H
6144 #include <asm/types.h>
6145 #endif
6147 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6148 cat >>confdefs.h <<_ACEOF
6149 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6150 _ACEOF
6154 done
6157 for ac_header in linux/capi.h
6158 do :
6159 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6161 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6162 cat >>confdefs.h <<_ACEOF
6163 #define HAVE_LINUX_CAPI_H 1
6164 _ACEOF
6168 done
6172 DLLEXT=""
6174 DLLFLAGS="-D_REENTRANT"
6176 LDSHARED=""
6178 LDDLLFLAGS=""
6180 LIBEXT="so"
6182 IMPLIBEXT="def"
6184 LDRPATH_INSTALL=""
6186 LDRPATH_LOCAL=""
6188 STATIC_IMPLIBEXT="def.a"
6189 # Extract the first word of "ldd", so it can be a program name with args.
6190 set dummy ldd; ac_word=$2
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192 $as_echo_n "checking for $ac_word... " >&6; }
6193 if ${ac_cv_path_LDD+:} false; then :
6194 $as_echo_n "(cached) " >&6
6195 else
6196 case $LDD in
6197 [\\/]* | ?:[\\/]*)
6198 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 as_dummy="/sbin:/usr/sbin:$PATH"
6203 for as_dir in $as_dummy
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 break 2
6213 done
6214 done
6215 IFS=$as_save_IFS
6217 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6219 esac
6221 LDD=$ac_cv_path_LDD
6222 if test -n "$LDD"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6224 $as_echo "$LDD" >&6; }
6225 else
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6232 case $host_os in
6233 cygwin*|mingw32*)
6234 if test -n "$ac_tool_prefix"; then
6235 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6236 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if ${ac_cv_prog_DLLTOOL+:} false; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 if test -n "$DLLTOOL"; then
6243 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6256 done
6257 done
6258 IFS=$as_save_IFS
6262 DLLTOOL=$ac_cv_prog_DLLTOOL
6263 if test -n "$DLLTOOL"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6265 $as_echo "$DLLTOOL" >&6; }
6266 else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6273 if test -z "$ac_cv_prog_DLLTOOL"; then
6274 ac_ct_DLLTOOL=$DLLTOOL
6275 # Extract the first word of "dlltool", so it can be a program name with args.
6276 set dummy dlltool; ac_word=$2
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278 $as_echo_n "checking for $ac_word... " >&6; }
6279 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 if test -n "$ac_ct_DLLTOOL"; then
6283 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6284 else
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6292 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6296 done
6297 done
6298 IFS=$as_save_IFS
6302 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6303 if test -n "$ac_ct_DLLTOOL"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6305 $as_echo "$ac_ct_DLLTOOL" >&6; }
6306 else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308 $as_echo "no" >&6; }
6311 if test "x$ac_ct_DLLTOOL" = x; then
6312 DLLTOOL="false"
6313 else
6314 case $cross_compiling:$ac_tool_warned in
6315 yes:)
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6318 ac_tool_warned=yes ;;
6319 esac
6320 DLLTOOL=$ac_ct_DLLTOOL
6322 else
6323 DLLTOOL="$ac_cv_prog_DLLTOOL"
6326 if test -n "$ac_tool_prefix"; then
6327 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6328 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if ${ac_cv_prog_DLLWRAP+:} false; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 if test -n "$DLLWRAP"; then
6335 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6336 else
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6348 done
6349 done
6350 IFS=$as_save_IFS
6354 DLLWRAP=$ac_cv_prog_DLLWRAP
6355 if test -n "$DLLWRAP"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6357 $as_echo "$DLLWRAP" >&6; }
6358 else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6365 if test -z "$ac_cv_prog_DLLWRAP"; then
6366 ac_ct_DLLWRAP=$DLLWRAP
6367 # Extract the first word of "dllwrap", so it can be a program name with args.
6368 set dummy dllwrap; ac_word=$2
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370 $as_echo_n "checking for $ac_word... " >&6; }
6371 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 if test -n "$ac_ct_DLLWRAP"; then
6375 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6376 else
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 for as_dir in $PATH
6380 IFS=$as_save_IFS
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6384 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 break 2
6388 done
6389 done
6390 IFS=$as_save_IFS
6394 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6395 if test -n "$ac_ct_DLLWRAP"; then
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6397 $as_echo "$ac_ct_DLLWRAP" >&6; }
6398 else
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400 $as_echo "no" >&6; }
6403 if test "x$ac_ct_DLLWRAP" = x; then
6404 DLLWRAP="false"
6405 else
6406 case $cross_compiling:$ac_tool_warned in
6407 yes:)
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6410 ac_tool_warned=yes ;;
6411 esac
6412 DLLWRAP=$ac_ct_DLLWRAP
6414 else
6415 DLLWRAP="$ac_cv_prog_DLLWRAP"
6418 if test "$DLLWRAP" = "false"; then
6419 LIBEXT="a"
6420 else
6421 LIBEXT="dll"
6423 IMPLIBEXT="a"
6424 STATIC_IMPLIBEXT="a"
6425 enable_iphlpapi=${enable_iphlpapi:-no}
6426 enable_kernel32=${enable_kernel32:-no}
6427 enable_msvcrt=${enable_msvcrt:-no}
6428 enable_ntdll=${enable_ntdll:-no}
6429 enable_ws2_32=${enable_ws2_32:-no}
6430 enable_loader=${enable_loader:-no}
6431 enable_server=${enable_server:-no}
6432 with_x=${with_x:-no}
6433 with_pthread=${with_pthread:-no}
6435 darwin*|macosx*)
6436 DLLEXT=".so"
6437 LIBEXT="dylib"
6438 DLLFLAGS="$DLLFLAGS -fPIC"
6439 LDDLLFLAGS="-bundle -multiply_defined suppress"
6440 LIBWINE_LDFLAGS="-multiply_defined suppress"
6441 LDSHARED="\$(CC) -dynamiclib"
6442 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6443 COREFOUNDATIONLIB="-framework CoreFoundation"
6445 IOKITLIB="-framework IOKit -framework CoreFoundation"
6447 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6449 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6451 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6452 then
6453 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6456 if test "$ac_cv_header_Security_Security_h" = "yes"
6457 then
6458 SECURITYLIB="-framework Security -framework CoreFoundation"
6460 with_gnutls=${with_gnutls:-no}
6462 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6463 then
6464 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6465 then
6466 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6468 else
6469 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6472 ac_save_LIBS="$LIBS"
6473 LIBS="$LIBS $COREAUDIO"
6474 for ac_func in AUGraphAddNode
6475 do :
6476 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6477 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6478 cat >>confdefs.h <<_ACEOF
6479 #define HAVE_AUGRAPHADDNODE 1
6480 _ACEOF
6483 done
6485 LIBS="$ac_save_LIBS"
6487 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6488 then
6489 FRAMEWORK_OPENAL="-framework OpenAL"
6492 cat >>confdefs.h <<_ACEOF
6493 #define HAVE_OPENAL 1
6494 _ACEOF
6496 ac_cv_lib_openal=yes
6498 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6499 then
6500 LIBOPENCL="-framework OpenCL"
6502 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6504 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6505 then
6506 ac_save_LIBS="$LIBS"
6507 LIBS="$LIBS $IOKITLIB"
6508 for ac_func in IOHIDManagerCreate
6509 do :
6510 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6511 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6512 cat >>confdefs.h <<_ACEOF
6513 #define HAVE_IOHIDMANAGERCREATE 1
6514 _ACEOF
6517 done
6519 LIBS="$ac_save_LIBS"
6521 case $host_cpu in
6522 *powerpc*)
6523 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6524 esac
6525 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6526 then
6527 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6529 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6530 else
6531 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6533 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6534 then
6535 CARBONLIB="-framework Carbon"
6537 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6539 if test "x$enable_win16" = "xyes"
6540 then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6542 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6543 if test "$cross_compiling" = yes; then :
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6545 $as_echo "cross-compiling, assuming yes" >&6; }
6546 else
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6549 asm(".text\n"
6550 "bad:\tnop;nop\n"
6551 "good:\tnop;nop\n\t"
6552 ".globl _testfunc\n"
6553 "_testfunc:\tcallw good");
6554 extern void testfunc();
6556 main ()
6558 unsigned short *p = (unsigned short *)testfunc;
6559 return p[0] != 0xe866 || p[1] != 0xfffa
6561 return 0;
6563 _ACEOF
6564 if ac_fn_c_try_run "$LINENO"; then :
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6566 $as_echo "yes" >&6; }
6567 else
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 $as_echo "no" >&6; }
6570 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
6572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6573 conftest.$ac_objext conftest.beam conftest.$ac_ext
6579 DLLFLAGS="$DLLFLAGS -fPIC"
6580 DLLEXT=".so"
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6582 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6583 if ${ac_cv_c_dll_gnuelf+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 ac_wine_try_cflags_saved=$CFLAGS
6587 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590 void myfunc() {}
6591 _ACEOF
6592 if ac_fn_c_try_link "$LINENO"; then :
6593 ac_cv_c_dll_gnuelf="yes"
6594 else
6595 ac_cv_c_dll_gnuelf="no"
6597 rm -f core conftest.err conftest.$ac_objext \
6598 conftest$ac_exeext conftest.$ac_ext
6599 CFLAGS=$ac_wine_try_cflags_saved
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6602 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6603 if test "$ac_cv_c_dll_gnuelf" = "yes"
6604 then
6605 LDSHARED="\$(CC) -shared"
6606 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6608 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6609 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6610 $as_echo_n "(cached) " >&6
6611 else
6612 ac_wine_try_cflags_saved=$CFLAGS
6613 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615 /* end confdefs.h. */
6616 int main(int argc, char **argv) { return 0; }
6617 _ACEOF
6618 if ac_fn_c_try_link "$LINENO"; then :
6619 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6620 else
6621 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6623 rm -f core conftest.err conftest.$ac_objext \
6624 conftest$ac_exeext conftest.$ac_ext
6625 CFLAGS=$ac_wine_try_cflags_saved
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6628 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6629 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6630 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6631 else
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6633 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6634 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 ac_wine_try_cflags_saved=$CFLAGS
6638 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6641 int main(int argc, char **argv) { return 0; }
6642 _ACEOF
6643 if ac_fn_c_try_link "$LINENO"; then :
6644 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6645 else
6646 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6648 rm -f core conftest.err conftest.$ac_objext \
6649 conftest$ac_exeext conftest.$ac_ext
6650 CFLAGS=$ac_wine_try_cflags_saved
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6653 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6654 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6655 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6660 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6661 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6662 $as_echo_n "(cached) " >&6
6663 else
6664 ac_wine_try_cflags_saved=$CFLAGS
6665 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6668 int main(int argc, char **argv) { return 0; }
6669 _ACEOF
6670 if ac_fn_c_try_link "$LINENO"; then :
6671 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6672 else
6673 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6675 rm -f core conftest.err conftest.$ac_objext \
6676 conftest$ac_exeext conftest.$ac_ext
6677 CFLAGS=$ac_wine_try_cflags_saved
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6680 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6681 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6682 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6685 { $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
6686 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6687 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6688 $as_echo_n "(cached) " >&6
6689 else
6690 ac_wine_try_cflags_saved=$CFLAGS
6691 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 int main(int argc, char **argv) { return 0; }
6695 _ACEOF
6696 if ac_fn_c_try_link "$LINENO"; then :
6697 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6698 else
6699 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6701 rm -f core conftest.err conftest.$ac_objext \
6702 conftest$ac_exeext conftest.$ac_ext
6703 CFLAGS=$ac_wine_try_cflags_saved
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6706 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6707 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6708 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6711 echo '{ global: *; };' >conftest.map
6712 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6714 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6715 if eval \${$as_ac_var+:} false; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 ac_wine_try_cflags_saved=$CFLAGS
6719 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6722 int main(int argc, char **argv) { return 0; }
6723 _ACEOF
6724 if ac_fn_c_try_link "$LINENO"; then :
6725 eval "$as_ac_var=yes"
6726 else
6727 eval "$as_ac_var=no"
6729 rm -f core conftest.err conftest.$ac_objext \
6730 conftest$ac_exeext conftest.$ac_ext
6731 CFLAGS=$ac_wine_try_cflags_saved
6733 eval ac_res=\$$as_ac_var
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6735 $as_echo "$ac_res" >&6; }
6736 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6737 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6739 rm -f conftest.map
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6742 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6743 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 ac_wine_try_cflags_saved=$CFLAGS
6747 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 int main(int argc, char **argv) { return 0; }
6751 _ACEOF
6752 if ac_fn_c_try_link "$LINENO"; then :
6753 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6754 else
6755 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6757 rm -f core conftest.err conftest.$ac_objext \
6758 conftest$ac_exeext conftest.$ac_ext
6759 CFLAGS=$ac_wine_try_cflags_saved
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6762 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6763 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6764 LDEXECFLAGS="-Wl,--export-dynamic"
6768 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6770 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6771 if eval \${$as_ac_var+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 ac_wine_try_cflags_saved=$CFLAGS
6775 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 int main(int argc, char **argv) { return 0; }
6779 _ACEOF
6780 if ac_fn_c_try_link "$LINENO"; then :
6781 eval "$as_ac_var=yes"
6782 else
6783 eval "$as_ac_var=no"
6785 rm -f core conftest.err conftest.$ac_objext \
6786 conftest$ac_exeext conftest.$ac_ext
6787 CFLAGS=$ac_wine_try_cflags_saved
6789 eval ac_res=\$$as_ac_var
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6791 $as_echo "$ac_res" >&6; }
6792 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6793 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6794 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6795 else
6796 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6798 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6799 if eval \${$as_ac_var+:} false; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 ac_wine_try_cflags_saved=$CFLAGS
6803 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h. */
6806 int main(int argc, char **argv) { return 0; }
6807 _ACEOF
6808 if ac_fn_c_try_link "$LINENO"; then :
6809 eval "$as_ac_var=yes"
6810 else
6811 eval "$as_ac_var=no"
6813 rm -f core conftest.err conftest.$ac_objext \
6814 conftest$ac_exeext conftest.$ac_ext
6815 CFLAGS=$ac_wine_try_cflags_saved
6817 eval ac_res=\$$as_ac_var
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6819 $as_echo "$ac_res" >&6; }
6820 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6821 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6822 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6827 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6828 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 ac_wine_try_cflags_saved=$CFLAGS
6832 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835 int main(int argc, char **argv) { return 0; }
6836 _ACEOF
6837 if ac_fn_c_try_link "$LINENO"; then :
6838 ac_cv_cflags__Wl___enable_new_dtags=yes
6839 else
6840 ac_cv_cflags__Wl___enable_new_dtags=no
6842 rm -f core conftest.err conftest.$ac_objext \
6843 conftest$ac_exeext conftest.$ac_ext
6844 CFLAGS=$ac_wine_try_cflags_saved
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6847 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6848 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6849 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6852 case $host_cpu in
6853 *i[3456789]86* | x86_64)
6854 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6856 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6857 if eval \${$as_ac_var+:} false; then :
6858 $as_echo_n "(cached) " >&6
6859 else
6860 ac_wine_try_cflags_saved=$CFLAGS
6861 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6864 int main(int argc, char **argv) { return 0; }
6865 _ACEOF
6866 if ac_fn_c_try_link "$LINENO"; then :
6867 eval "$as_ac_var=yes"
6868 else
6869 eval "$as_ac_var=no"
6871 rm -f core conftest.err conftest.$ac_objext \
6872 conftest$ac_exeext conftest.$ac_ext
6873 CFLAGS=$ac_wine_try_cflags_saved
6875 eval ac_res=\$$as_ac_var
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6877 $as_echo "$ac_res" >&6; }
6878 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6879 case $host_os in
6880 freebsd*) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6881 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6882 esac
6885 # Extract the first word of "prelink", so it can be a program name with args.
6886 set dummy prelink; ac_word=$2
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if ${ac_cv_path_PRELINK+:} false; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 case $PRELINK in
6893 [\\/]* | ?:[\\/]*)
6894 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in /sbin /usr/sbin $PATH
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6904 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6908 done
6909 done
6910 IFS=$as_save_IFS
6912 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6914 esac
6916 PRELINK=$ac_cv_path_PRELINK
6917 if test -n "$PRELINK"; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6919 $as_echo "$PRELINK" >&6; }
6920 else
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 $as_echo "no" >&6; }
6926 if test "x$PRELINK" = xfalse
6927 then
6928 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6931 esac
6933 else
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6935 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6936 if ${ac_cv_c_dll_unixware+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 ac_wine_try_cflags_saved=$CFLAGS
6940 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6942 /* end confdefs.h. */
6943 void myfunc() {}
6944 _ACEOF
6945 if ac_fn_c_try_link "$LINENO"; then :
6946 ac_cv_c_dll_unixware="yes"
6947 else
6948 ac_cv_c_dll_unixware="no"
6950 rm -f core conftest.err conftest.$ac_objext \
6951 conftest$ac_exeext conftest.$ac_ext
6952 CFLAGS=$ac_wine_try_cflags_saved
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6955 $as_echo "$ac_cv_c_dll_unixware" >&6; }
6956 if test "$ac_cv_c_dll_unixware" = "yes"
6957 then
6958 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6959 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6961 else
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
6963 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
6964 if ${ac_cv_c_dll_hpux+:} false; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6967 ac_wine_try_cflags_saved=$CFLAGS
6968 CFLAGS="$CFLAGS -shared"
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6971 void myfunc() {}
6972 _ACEOF
6973 if ac_fn_c_try_link "$LINENO"; then :
6974 ac_cv_c_dll_hpux="yes"
6975 else
6976 ac_cv_c_dll_hpux="no"
6978 rm -f core conftest.err conftest.$ac_objext \
6979 conftest$ac_exeext conftest.$ac_ext
6980 CFLAGS=$ac_wine_try_cflags_saved
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
6983 $as_echo "$ac_cv_c_dll_hpux" >&6; }
6984 if test "$ac_cv_c_dll_hpux" = "yes"
6985 then
6986 LIBEXT="sl"
6987 DLLEXT=".sl"
6988 LDDLLFLAGS="-shared -fPIC"
6989 LDSHARED="\$(CC) -shared"
6994 esac
6996 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
6997 enable_winequartz_drv=${enable_winequartz_drv:-no}
6999 if test "$LIBEXT" = "a"; then
7000 as_fn_error $? "could not find a way to build shared libraries.
7001 It is currently not possible to build Wine without shared library
7002 (.so) support to allow transparent switch between .so and .dll files.
7003 If you are using Linux, you will need a newer binutils.
7004 " "$LINENO" 5
7007 CROSSTEST_DISABLE=\#
7009 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7010 then
7011 case "$host_cpu" in
7012 i[3456789]86*)
7013 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 " ;;
7014 x86_64)
7015 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 " ;;
7017 ac_prefix_list="" ;;
7018 esac
7019 for ac_prog in $ac_prefix_list
7021 # Extract the first word of "$ac_prog", so it can be a program name with args.
7022 set dummy $ac_prog; ac_word=$2
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024 $as_echo_n "checking for $ac_word... " >&6; }
7025 if ${ac_cv_prog_CROSSCC+:} false; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 if test -n "$CROSSCC"; then
7029 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7030 else
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038 ac_cv_prog_CROSSCC="$ac_prog"
7039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 break 2
7042 done
7043 done
7044 IFS=$as_save_IFS
7048 CROSSCC=$ac_cv_prog_CROSSCC
7049 if test -n "$CROSSCC"; then
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7051 $as_echo "$CROSSCC" >&6; }
7052 else
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054 $as_echo "no" >&6; }
7058 test -n "$CROSSCC" && break
7059 done
7060 test -n "$CROSSCC" || CROSSCC="false"
7062 if test "$CROSSCC" != "false"
7063 then
7064 ac_save_CC="$CC"
7065 CC="$CROSSCC"
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7067 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7072 main ()
7076 return 0;
7078 _ACEOF
7079 if ac_fn_c_try_compile "$LINENO"; then :
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7081 $as_echo "yes" >&6; }
7082 set x $CROSSCC
7083 shift
7084 target=""
7085 while test $# -ge 1
7087 case "$1" in
7088 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7089 esac
7090 shift
7091 done
7092 if test -n "$target"
7093 then
7094 CROSSTEST_DISABLE=""
7095 CROSSTARGET="$target"
7098 else
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103 CC="$ac_save_CC"
7108 if test "$ac_cv_header_pthread_h" = "yes"
7109 then
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7111 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7112 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 ac_check_lib_save_LIBS=$LIBS
7116 LIBS="-lpthread $LIBS"
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7120 /* Override any GCC internal prototype to avoid an error.
7121 Use char because int might match the return type of a GCC
7122 builtin and then its argument prototype would still apply. */
7123 #ifdef __cplusplus
7124 extern "C"
7125 #endif
7126 char pthread_create ();
7128 main ()
7130 return pthread_create ();
7132 return 0;
7134 _ACEOF
7135 if ac_fn_c_try_link "$LINENO"; then :
7136 ac_cv_lib_pthread_pthread_create=yes
7137 else
7138 ac_cv_lib_pthread_pthread_create=no
7140 rm -f core conftest.err conftest.$ac_objext \
7141 conftest$ac_exeext conftest.$ac_ext
7142 LIBS=$ac_check_lib_save_LIBS
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7145 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7146 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7147 LIBPTHREAD="-lpthread"
7152 if test "x$LIBPTHREAD" = "x"; then :
7153 case "x$with_pthread" in
7154 xno) ;;
7155 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7156 Wine cannot support threads without libpthread.
7157 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7158 esac
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7163 $as_echo_n "checking for X... " >&6; }
7166 # Check whether --with-x was given.
7167 if test "${with_x+set}" = set; then :
7168 withval=$with_x;
7171 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7172 if test "x$with_x" = xno; then
7173 # The user explicitly disabled X.
7174 have_x=disabled
7175 else
7176 case $x_includes,$x_libraries in #(
7177 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7178 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7179 $as_echo_n "(cached) " >&6
7180 else
7181 # One or both of the vars are not set, and there is no cached value.
7182 ac_x_includes=no ac_x_libraries=no
7183 rm -f -r conftest.dir
7184 if mkdir conftest.dir; then
7185 cd conftest.dir
7186 cat >Imakefile <<'_ACEOF'
7187 incroot:
7188 @echo incroot='${INCROOT}'
7189 usrlibdir:
7190 @echo usrlibdir='${USRLIBDIR}'
7191 libdir:
7192 @echo libdir='${LIBDIR}'
7193 _ACEOF
7194 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7195 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7196 for ac_var in incroot usrlibdir libdir; do
7197 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7198 done
7199 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7200 for ac_extension in a so sl dylib la dll; do
7201 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7202 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7203 ac_im_usrlibdir=$ac_im_libdir; break
7205 done
7206 # Screen out bogus values from the imake configuration. They are
7207 # bogus both because they are the default anyway, and because
7208 # using them would break gcc on systems where it needs fixed includes.
7209 case $ac_im_incroot in
7210 /usr/include) ac_x_includes= ;;
7211 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7212 esac
7213 case $ac_im_usrlibdir in
7214 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7215 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7216 esac
7218 cd ..
7219 rm -f -r conftest.dir
7222 # Standard set of common directories for X headers.
7223 # Check X11 before X11Rn because it is often a symlink to the current release.
7224 ac_x_header_dirs='
7225 /usr/X11/include
7226 /usr/X11R7/include
7227 /usr/X11R6/include
7228 /usr/X11R5/include
7229 /usr/X11R4/include
7231 /usr/include/X11
7232 /usr/include/X11R7
7233 /usr/include/X11R6
7234 /usr/include/X11R5
7235 /usr/include/X11R4
7237 /usr/local/X11/include
7238 /usr/local/X11R7/include
7239 /usr/local/X11R6/include
7240 /usr/local/X11R5/include
7241 /usr/local/X11R4/include
7243 /usr/local/include/X11
7244 /usr/local/include/X11R7
7245 /usr/local/include/X11R6
7246 /usr/local/include/X11R5
7247 /usr/local/include/X11R4
7249 /usr/X386/include
7250 /usr/x386/include
7251 /usr/XFree86/include/X11
7253 /usr/include
7254 /usr/local/include
7255 /usr/unsupported/include
7256 /usr/athena/include
7257 /usr/local/x11r5/include
7258 /usr/lpp/Xamples/include
7260 /usr/openwin/include
7261 /usr/openwin/share/include'
7263 if test "$ac_x_includes" = no; then
7264 # Guess where to find include files, by looking for Xlib.h.
7265 # First, try using that file with no special directory specified.
7266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267 /* end confdefs.h. */
7268 #include <X11/Xlib.h>
7269 _ACEOF
7270 if ac_fn_c_try_cpp "$LINENO"; then :
7271 # We can compile using X headers with no special include directory.
7272 ac_x_includes=
7273 else
7274 for ac_dir in $ac_x_header_dirs; do
7275 if test -r "$ac_dir/X11/Xlib.h"; then
7276 ac_x_includes=$ac_dir
7277 break
7279 done
7281 rm -f conftest.err conftest.i conftest.$ac_ext
7282 fi # $ac_x_includes = no
7284 if test "$ac_x_libraries" = no; then
7285 # Check for the libraries.
7286 # See if we find them without any special options.
7287 # Don't add to $LIBS permanently.
7288 ac_save_LIBS=$LIBS
7289 LIBS="-lX11 $LIBS"
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7292 #include <X11/Xlib.h>
7294 main ()
7296 XrmInitialize ()
7298 return 0;
7300 _ACEOF
7301 if ac_fn_c_try_link "$LINENO"; then :
7302 LIBS=$ac_save_LIBS
7303 # We can link X programs with no special library path.
7304 ac_x_libraries=
7305 else
7306 LIBS=$ac_save_LIBS
7307 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7309 # Don't even attempt the hair of trying to link an X program!
7310 for ac_extension in a so sl dylib la dll; do
7311 if test -r "$ac_dir/libX11.$ac_extension"; then
7312 ac_x_libraries=$ac_dir
7313 break 2
7315 done
7316 done
7318 rm -f core conftest.err conftest.$ac_objext \
7319 conftest$ac_exeext conftest.$ac_ext
7320 fi # $ac_x_libraries = no
7322 case $ac_x_includes,$ac_x_libraries in #(
7323 no,* | *,no | *\'*)
7324 # Didn't find X, or a directory has "'" in its name.
7325 ac_cv_have_x="have_x=no";; #(
7327 # Record where we found X for the cache.
7328 ac_cv_have_x="have_x=yes\
7329 ac_x_includes='$ac_x_includes'\
7330 ac_x_libraries='$ac_x_libraries'"
7331 esac
7333 ;; #(
7334 *) have_x=yes;;
7335 esac
7336 eval "$ac_cv_have_x"
7337 fi # $with_x != no
7339 if test "$have_x" != yes; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7341 $as_echo "$have_x" >&6; }
7342 no_x=yes
7343 else
7344 # If each of the values was on the command line, it overrides each guess.
7345 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7346 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7347 # Update the cache value to reflect the command line values.
7348 ac_cv_have_x="have_x=yes\
7349 ac_x_includes='$x_includes'\
7350 ac_x_libraries='$x_libraries'"
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7352 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7355 if test "$no_x" = yes; then
7356 # Not all programs may use this symbol, but it does not hurt to define it.
7358 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7360 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7361 else
7362 if test -n "$x_includes"; then
7363 X_CFLAGS="$X_CFLAGS -I$x_includes"
7366 # It would also be nice to do this for all -L options, not just this one.
7367 if test -n "$x_libraries"; then
7368 X_LIBS="$X_LIBS -L$x_libraries"
7369 # For Solaris; some versions of Sun CC require a space after -R and
7370 # others require no space. Words are not sufficient . . . .
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7372 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7373 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7374 ac_xsave_c_werror_flag=$ac_c_werror_flag
7375 ac_c_werror_flag=yes
7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h. */
7380 main ()
7384 return 0;
7386 _ACEOF
7387 if ac_fn_c_try_link "$LINENO"; then :
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7390 X_LIBS="$X_LIBS -R$x_libraries"
7391 else
7392 LIBS="$ac_xsave_LIBS -R $x_libraries"
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7397 main ()
7401 return 0;
7403 _ACEOF
7404 if ac_fn_c_try_link "$LINENO"; then :
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7406 $as_echo "yes" >&6; }
7407 X_LIBS="$X_LIBS -R $x_libraries"
7408 else
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7410 $as_echo "neither works" >&6; }
7412 rm -f core conftest.err conftest.$ac_objext \
7413 conftest$ac_exeext conftest.$ac_ext
7415 rm -f core conftest.err conftest.$ac_objext \
7416 conftest$ac_exeext conftest.$ac_ext
7417 ac_c_werror_flag=$ac_xsave_c_werror_flag
7418 LIBS=$ac_xsave_LIBS
7421 # Check for system-dependent libraries X programs must link with.
7422 # Do this before checking for the system-independent R6 libraries
7423 # (-lICE), since we may need -lsocket or whatever for X linking.
7425 if test "$ISC" = yes; then
7426 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7427 else
7428 # Martyn Johnson says this is needed for Ultrix, if the X
7429 # libraries were built with DECnet support. And Karl Berry says
7430 # the Alpha needs dnet_stub (dnet does not exist).
7431 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7435 /* Override any GCC internal prototype to avoid an error.
7436 Use char because int might match the return type of a GCC
7437 builtin and then its argument prototype would still apply. */
7438 #ifdef __cplusplus
7439 extern "C"
7440 #endif
7441 char XOpenDisplay ();
7443 main ()
7445 return XOpenDisplay ();
7447 return 0;
7449 _ACEOF
7450 if ac_fn_c_try_link "$LINENO"; then :
7452 else
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7454 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7455 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7456 $as_echo_n "(cached) " >&6
7457 else
7458 ac_check_lib_save_LIBS=$LIBS
7459 LIBS="-ldnet $LIBS"
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7463 /* Override any GCC internal prototype to avoid an error.
7464 Use char because int might match the return type of a GCC
7465 builtin and then its argument prototype would still apply. */
7466 #ifdef __cplusplus
7467 extern "C"
7468 #endif
7469 char dnet_ntoa ();
7471 main ()
7473 return dnet_ntoa ();
7475 return 0;
7477 _ACEOF
7478 if ac_fn_c_try_link "$LINENO"; then :
7479 ac_cv_lib_dnet_dnet_ntoa=yes
7480 else
7481 ac_cv_lib_dnet_dnet_ntoa=no
7483 rm -f core conftest.err conftest.$ac_objext \
7484 conftest$ac_exeext conftest.$ac_ext
7485 LIBS=$ac_check_lib_save_LIBS
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7488 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7489 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7490 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7493 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7495 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7496 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7497 $as_echo_n "(cached) " >&6
7498 else
7499 ac_check_lib_save_LIBS=$LIBS
7500 LIBS="-ldnet_stub $LIBS"
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7504 /* Override any GCC internal prototype to avoid an error.
7505 Use char because int might match the return type of a GCC
7506 builtin and then its argument prototype would still apply. */
7507 #ifdef __cplusplus
7508 extern "C"
7509 #endif
7510 char dnet_ntoa ();
7512 main ()
7514 return dnet_ntoa ();
7516 return 0;
7518 _ACEOF
7519 if ac_fn_c_try_link "$LINENO"; then :
7520 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7521 else
7522 ac_cv_lib_dnet_stub_dnet_ntoa=no
7524 rm -f core conftest.err conftest.$ac_objext \
7525 conftest$ac_exeext conftest.$ac_ext
7526 LIBS=$ac_check_lib_save_LIBS
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7529 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7530 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7531 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7536 rm -f core conftest.err conftest.$ac_objext \
7537 conftest$ac_exeext conftest.$ac_ext
7538 LIBS="$ac_xsave_LIBS"
7540 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7541 # to get the SysV transport functions.
7542 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7543 # needs -lnsl.
7544 # The nsl library prevents programs from opening the X display
7545 # on Irix 5.2, according to T.E. Dickey.
7546 # The functions gethostbyname, getservbyname, and inet_addr are
7547 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7548 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7549 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7553 if test $ac_cv_func_gethostbyname = no; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7555 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7556 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 ac_check_lib_save_LIBS=$LIBS
7560 LIBS="-lnsl $LIBS"
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7564 /* Override any GCC internal prototype to avoid an error.
7565 Use char because int might match the return type of a GCC
7566 builtin and then its argument prototype would still apply. */
7567 #ifdef __cplusplus
7568 extern "C"
7569 #endif
7570 char gethostbyname ();
7572 main ()
7574 return gethostbyname ();
7576 return 0;
7578 _ACEOF
7579 if ac_fn_c_try_link "$LINENO"; then :
7580 ac_cv_lib_nsl_gethostbyname=yes
7581 else
7582 ac_cv_lib_nsl_gethostbyname=no
7584 rm -f core conftest.err conftest.$ac_objext \
7585 conftest$ac_exeext conftest.$ac_ext
7586 LIBS=$ac_check_lib_save_LIBS
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7589 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7590 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7591 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7594 if test $ac_cv_lib_nsl_gethostbyname = no; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7596 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7597 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 ac_check_lib_save_LIBS=$LIBS
7601 LIBS="-lbsd $LIBS"
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7605 /* Override any GCC internal prototype to avoid an error.
7606 Use char because int might match the return type of a GCC
7607 builtin and then its argument prototype would still apply. */
7608 #ifdef __cplusplus
7609 extern "C"
7610 #endif
7611 char gethostbyname ();
7613 main ()
7615 return gethostbyname ();
7617 return 0;
7619 _ACEOF
7620 if ac_fn_c_try_link "$LINENO"; then :
7621 ac_cv_lib_bsd_gethostbyname=yes
7622 else
7623 ac_cv_lib_bsd_gethostbyname=no
7625 rm -f core conftest.err conftest.$ac_objext \
7626 conftest$ac_exeext conftest.$ac_ext
7627 LIBS=$ac_check_lib_save_LIBS
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7630 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7631 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7632 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7638 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7639 # socket/setsockopt and other routines are undefined under SCO ODT
7640 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7641 # on later versions), says Simon Leinen: it contains gethostby*
7642 # variants that don't use the name server (or something). -lsocket
7643 # must be given before -lnsl if both are needed. We assume that
7644 # if connect needs -lnsl, so does gethostbyname.
7645 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7646 if test "x$ac_cv_func_connect" = xyes; then :
7650 if test $ac_cv_func_connect = no; then
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7652 $as_echo_n "checking for connect in -lsocket... " >&6; }
7653 if ${ac_cv_lib_socket_connect+:} false; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 ac_check_lib_save_LIBS=$LIBS
7657 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7661 /* Override any GCC internal prototype to avoid an error.
7662 Use char because int might match the return type of a GCC
7663 builtin and then its argument prototype would still apply. */
7664 #ifdef __cplusplus
7665 extern "C"
7666 #endif
7667 char connect ();
7669 main ()
7671 return connect ();
7673 return 0;
7675 _ACEOF
7676 if ac_fn_c_try_link "$LINENO"; then :
7677 ac_cv_lib_socket_connect=yes
7678 else
7679 ac_cv_lib_socket_connect=no
7681 rm -f core conftest.err conftest.$ac_objext \
7682 conftest$ac_exeext conftest.$ac_ext
7683 LIBS=$ac_check_lib_save_LIBS
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7686 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7687 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7688 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7693 # Guillermo Gomez says -lposix is necessary on A/UX.
7694 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7695 if test "x$ac_cv_func_remove" = xyes; then :
7699 if test $ac_cv_func_remove = no; then
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7701 $as_echo_n "checking for remove in -lposix... " >&6; }
7702 if ${ac_cv_lib_posix_remove+:} false; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 ac_check_lib_save_LIBS=$LIBS
7706 LIBS="-lposix $LIBS"
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7710 /* Override any GCC internal prototype to avoid an error.
7711 Use char because int might match the return type of a GCC
7712 builtin and then its argument prototype would still apply. */
7713 #ifdef __cplusplus
7714 extern "C"
7715 #endif
7716 char remove ();
7718 main ()
7720 return remove ();
7722 return 0;
7724 _ACEOF
7725 if ac_fn_c_try_link "$LINENO"; then :
7726 ac_cv_lib_posix_remove=yes
7727 else
7728 ac_cv_lib_posix_remove=no
7730 rm -f core conftest.err conftest.$ac_objext \
7731 conftest$ac_exeext conftest.$ac_ext
7732 LIBS=$ac_check_lib_save_LIBS
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7735 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7736 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7737 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7742 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7743 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7744 if test "x$ac_cv_func_shmat" = xyes; then :
7748 if test $ac_cv_func_shmat = no; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7750 $as_echo_n "checking for shmat in -lipc... " >&6; }
7751 if ${ac_cv_lib_ipc_shmat+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 ac_check_lib_save_LIBS=$LIBS
7755 LIBS="-lipc $LIBS"
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7759 /* Override any GCC internal prototype to avoid an error.
7760 Use char because int might match the return type of a GCC
7761 builtin and then its argument prototype would still apply. */
7762 #ifdef __cplusplus
7763 extern "C"
7764 #endif
7765 char shmat ();
7767 main ()
7769 return shmat ();
7771 return 0;
7773 _ACEOF
7774 if ac_fn_c_try_link "$LINENO"; then :
7775 ac_cv_lib_ipc_shmat=yes
7776 else
7777 ac_cv_lib_ipc_shmat=no
7779 rm -f core conftest.err conftest.$ac_objext \
7780 conftest$ac_exeext conftest.$ac_ext
7781 LIBS=$ac_check_lib_save_LIBS
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7784 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7785 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7786 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7792 # Check for libraries that X11R6 Xt/Xaw programs need.
7793 ac_save_LDFLAGS=$LDFLAGS
7794 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7795 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7796 # check for ICE first), but we must link in the order -lSM -lICE or
7797 # we get undefined symbols. So assume we have SM if we have ICE.
7798 # These have to be linked with before -lX11, unlike the other
7799 # libraries we check for below, so use a different variable.
7800 # John Interrante, Karl Berry
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7802 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7803 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7804 $as_echo_n "(cached) " >&6
7805 else
7806 ac_check_lib_save_LIBS=$LIBS
7807 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7811 /* Override any GCC internal prototype to avoid an error.
7812 Use char because int might match the return type of a GCC
7813 builtin and then its argument prototype would still apply. */
7814 #ifdef __cplusplus
7815 extern "C"
7816 #endif
7817 char IceConnectionNumber ();
7819 main ()
7821 return IceConnectionNumber ();
7823 return 0;
7825 _ACEOF
7826 if ac_fn_c_try_link "$LINENO"; then :
7827 ac_cv_lib_ICE_IceConnectionNumber=yes
7828 else
7829 ac_cv_lib_ICE_IceConnectionNumber=no
7831 rm -f core conftest.err conftest.$ac_objext \
7832 conftest$ac_exeext conftest.$ac_ext
7833 LIBS=$ac_check_lib_save_LIBS
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7836 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7837 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7838 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7841 LDFLAGS=$ac_save_LDFLAGS
7846 if test "$have_x" = "yes"
7847 then
7848 XLIB="-lX11"
7849 ac_save_CPPFLAGS="$CPPFLAGS"
7850 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7853 $as_echo_n "checking for -lX11... " >&6; }
7854 if ${ac_cv_lib_soname_X11+:} false; then :
7855 $as_echo_n "(cached) " >&6
7856 else
7857 ac_check_soname_save_LIBS=$LIBS
7858 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h. */
7862 /* Override any GCC internal prototype to avoid an error.
7863 Use char because int might match the return type of a GCC
7864 builtin and then its argument prototype would still apply. */
7865 #ifdef __cplusplus
7866 extern "C"
7867 #endif
7868 char XCreateWindow ();
7870 main ()
7872 return XCreateWindow ();
7874 return 0;
7876 _ACEOF
7877 if ac_fn_c_try_link "$LINENO"; then :
7878 case "$LIBEXT" in
7879 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7880 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'` ;;
7881 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7882 esac
7884 rm -f core conftest.err conftest.$ac_objext \
7885 conftest$ac_exeext conftest.$ac_ext
7886 LIBS=$ac_check_soname_save_LIBS
7888 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7890 $as_echo "not found" >&6; }
7892 else
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7894 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7896 cat >>confdefs.h <<_ACEOF
7897 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7898 _ACEOF
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7903 $as_echo_n "checking for -lXext... " >&6; }
7904 if ${ac_cv_lib_soname_Xext+:} false; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 ac_check_soname_save_LIBS=$LIBS
7908 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910 /* end confdefs.h. */
7912 /* Override any GCC internal prototype to avoid an error.
7913 Use char because int might match the return type of a GCC
7914 builtin and then its argument prototype would still apply. */
7915 #ifdef __cplusplus
7916 extern "C"
7917 #endif
7918 char XextCreateExtension ();
7920 main ()
7922 return XextCreateExtension ();
7924 return 0;
7926 _ACEOF
7927 if ac_fn_c_try_link "$LINENO"; then :
7928 case "$LIBEXT" in
7929 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7930 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'` ;;
7931 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7932 esac
7934 rm -f core conftest.err conftest.$ac_objext \
7935 conftest$ac_exeext conftest.$ac_ext
7936 LIBS=$ac_check_soname_save_LIBS
7938 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7940 $as_echo "not found" >&6; }
7942 else
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7944 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7946 cat >>confdefs.h <<_ACEOF
7947 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7948 _ACEOF
7950 XLIB="-lXext $XLIB"
7953 for ac_header in X11/Xlib.h \
7954 X11/XKBlib.h \
7955 X11/Xutil.h \
7956 X11/Xcursor/Xcursor.h \
7957 X11/extensions/shape.h \
7958 X11/extensions/XInput.h \
7959 X11/extensions/XInput2.h \
7960 X11/extensions/XShm.h \
7961 X11/extensions/Xcomposite.h \
7962 X11/extensions/Xinerama.h \
7963 X11/extensions/Xrandr.h \
7964 X11/extensions/Xrender.h \
7965 X11/extensions/xf86vmode.h \
7966 X11/extensions/xf86vmproto.h
7967 do :
7968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7969 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
7970 # include <X11/Xlib.h>
7971 #endif
7972 #ifdef HAVE_X11_XUTIL_H
7973 # include <X11/Xutil.h>
7974 #endif
7976 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7977 cat >>confdefs.h <<_ACEOF
7978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7979 _ACEOF
7983 done
7986 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7987 then
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
7989 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
7990 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993 ac_check_lib_save_LIBS=$LIBS
7994 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7998 /* Override any GCC internal prototype to avoid an error.
7999 Use char because int might match the return type of a GCC
8000 builtin and then its argument prototype would still apply. */
8001 #ifdef __cplusplus
8002 extern "C"
8003 #endif
8004 char XkbQueryExtension ();
8006 main ()
8008 return XkbQueryExtension ();
8010 return 0;
8012 _ACEOF
8013 if ac_fn_c_try_link "$LINENO"; then :
8014 ac_cv_lib_X11_XkbQueryExtension=yes
8015 else
8016 ac_cv_lib_X11_XkbQueryExtension=no
8018 rm -f core conftest.err conftest.$ac_objext \
8019 conftest$ac_exeext conftest.$ac_ext
8020 LIBS=$ac_check_lib_save_LIBS
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8023 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8024 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8026 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8032 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8033 then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8035 $as_echo_n "checking for -lXcursor... " >&6; }
8036 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8037 $as_echo_n "(cached) " >&6
8038 else
8039 ac_check_soname_save_LIBS=$LIBS
8040 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8044 /* Override any GCC internal prototype to avoid an error.
8045 Use char because int might match the return type of a GCC
8046 builtin and then its argument prototype would still apply. */
8047 #ifdef __cplusplus
8048 extern "C"
8049 #endif
8050 char XcursorImageLoadCursor ();
8052 main ()
8054 return XcursorImageLoadCursor ();
8056 return 0;
8058 _ACEOF
8059 if ac_fn_c_try_link "$LINENO"; then :
8060 case "$LIBEXT" in
8061 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8062 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'` ;;
8063 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8064 esac
8066 rm -f core conftest.err conftest.$ac_objext \
8067 conftest$ac_exeext conftest.$ac_ext
8068 LIBS=$ac_check_soname_save_LIBS
8070 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8072 $as_echo "not found" >&6; }
8074 else
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8076 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8078 cat >>confdefs.h <<_ACEOF
8079 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8080 _ACEOF
8085 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8086 case "x$with_xcursor" in
8087 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8088 xno) ;;
8089 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8090 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8091 esac
8094 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8095 then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8097 $as_echo_n "checking for -lXi... " >&6; }
8098 if ${ac_cv_lib_soname_Xi+:} false; then :
8099 $as_echo_n "(cached) " >&6
8100 else
8101 ac_check_soname_save_LIBS=$LIBS
8102 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8106 /* Override any GCC internal prototype to avoid an error.
8107 Use char because int might match the return type of a GCC
8108 builtin and then its argument prototype would still apply. */
8109 #ifdef __cplusplus
8110 extern "C"
8111 #endif
8112 char XOpenDevice ();
8114 main ()
8116 return XOpenDevice ();
8118 return 0;
8120 _ACEOF
8121 if ac_fn_c_try_link "$LINENO"; then :
8122 case "$LIBEXT" in
8123 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8124 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'` ;;
8125 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8126 esac
8128 rm -f core conftest.err conftest.$ac_objext \
8129 conftest$ac_exeext conftest.$ac_ext
8130 LIBS=$ac_check_soname_save_LIBS
8132 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8134 $as_echo "not found" >&6; }
8136 else
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8138 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8140 cat >>confdefs.h <<_ACEOF
8141 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8142 _ACEOF
8147 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8148 case "x$with_xinput" in
8149 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8150 xno) ;;
8151 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8152 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8153 esac
8156 if test "x$ac_cv_lib_soname_Xi" != x
8157 then
8158 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8159 case "x$with_xinput2" in
8160 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8161 xno) ;;
8162 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8163 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8164 esac
8168 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8169 then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8171 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8172 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 ac_check_lib_save_LIBS=$LIBS
8176 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8180 /* Override any GCC internal prototype to avoid an error.
8181 Use char because int might match the return type of a GCC
8182 builtin and then its argument prototype would still apply. */
8183 #ifdef __cplusplus
8184 extern "C"
8185 #endif
8186 char XShmQueryExtension ();
8188 main ()
8190 return XShmQueryExtension ();
8192 return 0;
8194 _ACEOF
8195 if ac_fn_c_try_link "$LINENO"; then :
8196 ac_cv_lib_Xext_XShmQueryExtension=yes
8197 else
8198 ac_cv_lib_Xext_XShmQueryExtension=no
8200 rm -f core conftest.err conftest.$ac_objext \
8201 conftest$ac_exeext conftest.$ac_ext
8202 LIBS=$ac_check_lib_save_LIBS
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8205 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8206 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8208 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8213 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8214 case "x$with_xshm" in
8215 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8216 xno) ;;
8217 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8218 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8219 esac
8222 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8223 then
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8225 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8226 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 ac_check_lib_save_LIBS=$LIBS
8230 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8234 /* Override any GCC internal prototype to avoid an error.
8235 Use char because int might match the return type of a GCC
8236 builtin and then its argument prototype would still apply. */
8237 #ifdef __cplusplus
8238 extern "C"
8239 #endif
8240 char XShapeQueryExtension ();
8242 main ()
8244 return XShapeQueryExtension ();
8246 return 0;
8248 _ACEOF
8249 if ac_fn_c_try_link "$LINENO"; then :
8250 ac_cv_lib_Xext_XShapeQueryExtension=yes
8251 else
8252 ac_cv_lib_Xext_XShapeQueryExtension=no
8254 rm -f core conftest.err conftest.$ac_objext \
8255 conftest$ac_exeext conftest.$ac_ext
8256 LIBS=$ac_check_lib_save_LIBS
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8259 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8260 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8262 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8267 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8268 case "x$with_xshape" in
8269 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8270 xno) ;;
8271 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8272 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8273 esac
8276 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8277 then
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8279 $as_echo_n "checking for -lXxf86vm... " >&6; }
8280 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 ac_check_soname_save_LIBS=$LIBS
8284 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8288 /* Override any GCC internal prototype to avoid an error.
8289 Use char because int might match the return type of a GCC
8290 builtin and then its argument prototype would still apply. */
8291 #ifdef __cplusplus
8292 extern "C"
8293 #endif
8294 char XF86VidModeQueryExtension ();
8296 main ()
8298 return XF86VidModeQueryExtension ();
8300 return 0;
8302 _ACEOF
8303 if ac_fn_c_try_link "$LINENO"; then :
8304 case "$LIBEXT" in
8305 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8306 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'` ;;
8307 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8308 esac
8310 rm -f core conftest.err conftest.$ac_objext \
8311 conftest$ac_exeext conftest.$ac_ext
8312 LIBS=$ac_check_soname_save_LIBS
8314 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8316 $as_echo "not found" >&6; }
8318 else
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8320 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8322 cat >>confdefs.h <<_ACEOF
8323 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8324 _ACEOF
8329 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8330 case "x$with_xxf86vm" in
8331 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8332 xno) ;;
8333 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8334 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8335 esac
8338 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"
8339 then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8341 $as_echo_n "checking for -lXrender... " >&6; }
8342 if ${ac_cv_lib_soname_Xrender+:} false; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 ac_check_soname_save_LIBS=$LIBS
8346 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8350 /* Override any GCC internal prototype to avoid an error.
8351 Use char because int might match the return type of a GCC
8352 builtin and then its argument prototype would still apply. */
8353 #ifdef __cplusplus
8354 extern "C"
8355 #endif
8356 char XRenderQueryExtension ();
8358 main ()
8360 return XRenderQueryExtension ();
8362 return 0;
8364 _ACEOF
8365 if ac_fn_c_try_link "$LINENO"; then :
8366 case "$LIBEXT" in
8367 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8368 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'` ;;
8369 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8370 esac
8372 rm -f core conftest.err conftest.$ac_objext \
8373 conftest$ac_exeext conftest.$ac_ext
8374 LIBS=$ac_check_soname_save_LIBS
8376 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8378 $as_echo "not found" >&6; }
8380 else
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8382 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8384 cat >>confdefs.h <<_ACEOF
8385 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8386 _ACEOF
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8389 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8390 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 ac_check_lib_save_LIBS=$LIBS
8394 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8398 /* Override any GCC internal prototype to avoid an error.
8399 Use char because int might match the return type of a GCC
8400 builtin and then its argument prototype would still apply. */
8401 #ifdef __cplusplus
8402 extern "C"
8403 #endif
8404 char XRenderSetPictureTransform ();
8406 main ()
8408 return XRenderSetPictureTransform ();
8410 return 0;
8412 _ACEOF
8413 if ac_fn_c_try_link "$LINENO"; then :
8414 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8415 else
8416 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8418 rm -f core conftest.err conftest.$ac_objext \
8419 conftest$ac_exeext conftest.$ac_ext
8420 LIBS=$ac_check_lib_save_LIBS
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8423 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8424 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8426 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8433 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8434 case "x$with_xrender" in
8435 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8436 xno) ;;
8437 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8438 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8439 esac
8442 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8443 then
8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445 /* end confdefs.h. */
8446 #include <X11/Xlib.h>
8447 #include <X11/extensions/Xrandr.h>
8449 main ()
8451 static typeof(XRRSetScreenConfigAndRate) * func;
8453 return 0;
8455 _ACEOF
8456 if ac_fn_c_try_compile "$LINENO"; then :
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8458 $as_echo_n "checking for -lXrandr... " >&6; }
8459 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8460 $as_echo_n "(cached) " >&6
8461 else
8462 ac_check_soname_save_LIBS=$LIBS
8463 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8467 /* Override any GCC internal prototype to avoid an error.
8468 Use char because int might match the return type of a GCC
8469 builtin and then its argument prototype would still apply. */
8470 #ifdef __cplusplus
8471 extern "C"
8472 #endif
8473 char XRRQueryExtension ();
8475 main ()
8477 return XRRQueryExtension ();
8479 return 0;
8481 _ACEOF
8482 if ac_fn_c_try_link "$LINENO"; then :
8483 case "$LIBEXT" in
8484 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8485 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'` ;;
8486 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8487 esac
8489 rm -f core conftest.err conftest.$ac_objext \
8490 conftest$ac_exeext conftest.$ac_ext
8491 LIBS=$ac_check_soname_save_LIBS
8493 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8495 $as_echo "not found" >&6; }
8497 else
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8499 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8501 cat >>confdefs.h <<_ACEOF
8502 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8503 _ACEOF
8508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8510 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8511 case "x$with_xrandr" in
8512 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8513 xno) ;;
8514 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8515 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8516 esac
8519 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8520 then
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8523 #include <X11/Xlib.h>
8524 #include <X11/extensions/Xinerama.h>
8526 main ()
8528 static typeof(XineramaQueryScreens) * func;
8530 return 0;
8532 _ACEOF
8533 if ac_fn_c_try_compile "$LINENO"; then :
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8535 $as_echo_n "checking for -lXinerama... " >&6; }
8536 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539 ac_check_soname_save_LIBS=$LIBS
8540 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8544 /* Override any GCC internal prototype to avoid an error.
8545 Use char because int might match the return type of a GCC
8546 builtin and then its argument prototype would still apply. */
8547 #ifdef __cplusplus
8548 extern "C"
8549 #endif
8550 char XineramaQueryScreens ();
8552 main ()
8554 return XineramaQueryScreens ();
8556 return 0;
8558 _ACEOF
8559 if ac_fn_c_try_link "$LINENO"; then :
8560 case "$LIBEXT" in
8561 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8562 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'` ;;
8563 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8564 esac
8566 rm -f core conftest.err conftest.$ac_objext \
8567 conftest$ac_exeext conftest.$ac_ext
8568 LIBS=$ac_check_soname_save_LIBS
8570 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8572 $as_echo "not found" >&6; }
8574 else
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8576 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8578 cat >>confdefs.h <<_ACEOF
8579 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8580 _ACEOF
8585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8588 case "x$with_xinerama" in
8589 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8590 xno) ;;
8591 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8592 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8593 esac
8596 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8597 then
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8599 $as_echo_n "checking for -lXcomposite... " >&6; }
8600 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8601 $as_echo_n "(cached) " >&6
8602 else
8603 ac_check_soname_save_LIBS=$LIBS
8604 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606 /* end confdefs.h. */
8608 /* Override any GCC internal prototype to avoid an error.
8609 Use char because int might match the return type of a GCC
8610 builtin and then its argument prototype would still apply. */
8611 #ifdef __cplusplus
8612 extern "C"
8613 #endif
8614 char XCompositeRedirectWindow ();
8616 main ()
8618 return XCompositeRedirectWindow ();
8620 return 0;
8622 _ACEOF
8623 if ac_fn_c_try_link "$LINENO"; then :
8624 case "$LIBEXT" in
8625 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8626 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'` ;;
8627 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8628 esac
8630 rm -f core conftest.err conftest.$ac_objext \
8631 conftest$ac_exeext conftest.$ac_ext
8632 LIBS=$ac_check_soname_save_LIBS
8634 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8636 $as_echo "not found" >&6; }
8638 else
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8640 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8642 cat >>confdefs.h <<_ACEOF
8643 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8644 _ACEOF
8649 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8650 case "x$with_xcomposite" in
8651 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8652 xno) ;;
8653 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8654 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8655 esac
8658 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8659 #include <X11/Xlib.h>
8660 #endif
8662 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8664 cat >>confdefs.h <<_ACEOF
8665 #define HAVE_XICCALLBACK_CALLBACK 1
8666 _ACEOF
8670 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8671 #include <X11/Xlib.h>
8672 #endif
8674 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8676 cat >>confdefs.h <<_ACEOF
8677 #define HAVE_XEVENT_XCOOKIE 1
8678 _ACEOF
8685 opengl_msg=""
8686 if test "x$with_opengl" != "xno"
8687 then
8688 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8689 do :
8690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8691 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8692 # include <GL/glx.h>
8693 #endif
8695 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8696 cat >>confdefs.h <<_ACEOF
8697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8698 _ACEOF
8702 done
8704 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8705 then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8707 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8708 if ${wine_cv_opengl_header_version_OK+:} false; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8713 #include <GL/gl.h>
8715 main ()
8717 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8719 return 0;
8721 _ACEOF
8722 if ac_fn_c_try_compile "$LINENO"; then :
8723 wine_cv_opengl_header_version_OK="yes"
8724 else
8725 wine_cv_opengl_header_version_OK="no"
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8730 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8732 if test "$wine_cv_opengl_header_version_OK" = "yes"
8733 then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8735 $as_echo_n "checking for -lGL... " >&6; }
8736 if ${ac_cv_lib_soname_GL+:} false; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 ac_check_soname_save_LIBS=$LIBS
8740 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8744 /* Override any GCC internal prototype to avoid an error.
8745 Use char because int might match the return type of a GCC
8746 builtin and then its argument prototype would still apply. */
8747 #ifdef __cplusplus
8748 extern "C"
8749 #endif
8750 char glXCreateContext ();
8752 main ()
8754 return glXCreateContext ();
8756 return 0;
8758 _ACEOF
8759 if ac_fn_c_try_link "$LINENO"; then :
8760 case "$LIBEXT" in
8761 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8762 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'` ;;
8763 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8764 esac
8766 rm -f core conftest.err conftest.$ac_objext \
8767 conftest$ac_exeext conftest.$ac_ext
8768 LIBS=$ac_check_soname_save_LIBS
8770 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8772 $as_echo "not found" >&6; }
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8774 $as_echo_n "checking for -lGL... " >&6; }
8775 if ${ac_cv_lib_soname_GL+:} false; then :
8776 $as_echo_n "(cached) " >&6
8777 else
8778 ac_check_soname_save_LIBS=$LIBS
8779 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"
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h. */
8783 /* Override any GCC internal prototype to avoid an error.
8784 Use char because int might match the return type of a GCC
8785 builtin and then its argument prototype would still apply. */
8786 #ifdef __cplusplus
8787 extern "C"
8788 #endif
8789 char glXCreateContext ();
8791 main ()
8793 return glXCreateContext ();
8795 return 0;
8797 _ACEOF
8798 if ac_fn_c_try_link "$LINENO"; then :
8799 case "$LIBEXT" in
8800 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8801 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'` ;;
8802 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8803 esac
8805 rm -f core conftest.err conftest.$ac_objext \
8806 conftest$ac_exeext conftest.$ac_ext
8807 LIBS=$ac_check_soname_save_LIBS
8809 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8811 $as_echo "not found" >&6; }
8812 if test -f /usr/X11R6/lib/libGL.a
8813 then
8814 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8815 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8816 else
8817 opengl_msg="No OpenGL library found on this system."
8819 else
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8821 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8823 cat >>confdefs.h <<_ACEOF
8824 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8825 _ACEOF
8827 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"
8829 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8832 else
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8834 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8836 cat >>confdefs.h <<_ACEOF
8837 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8838 _ACEOF
8840 OPENGL_LIBS="-lGL"
8842 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8845 if test "$ac_cv_header_GL_glu_h" = "yes"
8846 then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8848 $as_echo_n "checking for -lGLU... " >&6; }
8849 if ${ac_cv_lib_soname_GLU+:} false; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 ac_check_soname_save_LIBS=$LIBS
8853 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855 /* end confdefs.h. */
8857 /* Override any GCC internal prototype to avoid an error.
8858 Use char because int might match the return type of a GCC
8859 builtin and then its argument prototype would still apply. */
8860 #ifdef __cplusplus
8861 extern "C"
8862 #endif
8863 char gluLookAt ();
8865 main ()
8867 return gluLookAt ();
8869 return 0;
8871 _ACEOF
8872 if ac_fn_c_try_link "$LINENO"; then :
8873 case "$LIBEXT" in
8874 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8875 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'` ;;
8876 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8877 esac
8879 rm -f core conftest.err conftest.$ac_objext \
8880 conftest$ac_exeext conftest.$ac_ext
8881 LIBS=$ac_check_soname_save_LIBS
8883 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8885 $as_echo "not found" >&6; }
8887 else
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8889 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8891 cat >>confdefs.h <<_ACEOF
8892 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8893 _ACEOF
8898 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8899 case "x$with_glu" in
8900 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8901 xno) ;;
8902 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8903 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8904 esac
8906 else
8907 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8909 else
8910 opengl_msg="OpenGL development headers not found."
8912 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8913 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8914 else
8915 enable_opengl32=${enable_opengl32:-no}
8916 enable_glu32=${enable_glu32:-no}
8918 if test -n "$opengl_msg"; then :
8919 case "x$with_opengl" in
8920 x) as_fn_append wine_warnings "|$opengl_msg
8921 OpenGL and Direct3D won't be supported." ;;
8922 xno) ;;
8923 *) as_fn_error $? "$opengl_msg
8924 OpenGL and Direct3D won't be supported.
8925 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8926 esac
8929 NASLIBS=""
8931 for ac_header in audio/audiolib.h
8932 do :
8933 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8934 if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
8935 cat >>confdefs.h <<_ACEOF
8936 #define HAVE_AUDIO_AUDIOLIB_H 1
8937 _ACEOF
8938 for ac_header in audio/soundlib.h
8939 do :
8940 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8942 if test "x$ac_cv_header_audio_soundlib_h" = xyes; then :
8943 cat >>confdefs.h <<_ACEOF
8944 #define HAVE_AUDIO_SOUNDLIB_H 1
8945 _ACEOF
8949 done
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8952 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8953 if ${ac_cv_lib_audio_AuCreateFlow+:} false; then :
8954 $as_echo_n "(cached) " >&6
8955 else
8956 ac_check_lib_save_LIBS=$LIBS
8957 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8961 /* Override any GCC internal prototype to avoid an error.
8962 Use char because int might match the return type of a GCC
8963 builtin and then its argument prototype would still apply. */
8964 #ifdef __cplusplus
8965 extern "C"
8966 #endif
8967 char AuCreateFlow ();
8969 main ()
8971 return AuCreateFlow ();
8973 return 0;
8975 _ACEOF
8976 if ac_fn_c_try_link "$LINENO"; then :
8977 ac_cv_lib_audio_AuCreateFlow=yes
8978 else
8979 ac_cv_lib_audio_AuCreateFlow=no
8981 rm -f core conftest.err conftest.$ac_objext \
8982 conftest$ac_exeext conftest.$ac_ext
8983 LIBS=$ac_check_lib_save_LIBS
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8986 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
8987 if test "x$ac_cv_lib_audio_AuCreateFlow" = xyes; then :
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
8989 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
8990 if ${ac_cv_lib_Xau_XauGetBestAuthByAddr+:} false; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 ac_check_lib_save_LIBS=$LIBS
8994 LIBS="-lXau $X_LIBS $LIBS"
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
8998 /* Override any GCC internal prototype to avoid an error.
8999 Use char because int might match the return type of a GCC
9000 builtin and then its argument prototype would still apply. */
9001 #ifdef __cplusplus
9002 extern "C"
9003 #endif
9004 char XauGetBestAuthByAddr ();
9006 main ()
9008 return XauGetBestAuthByAddr ();
9010 return 0;
9012 _ACEOF
9013 if ac_fn_c_try_link "$LINENO"; then :
9014 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9015 else
9016 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
9018 rm -f core conftest.err conftest.$ac_objext \
9019 conftest$ac_exeext conftest.$ac_ext
9020 LIBS=$ac_check_lib_save_LIBS
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
9023 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
9024 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = xyes; then :
9025 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9026 else
9027 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9035 done
9038 CPPFLAGS="$ac_save_CPPFLAGS"
9039 else
9040 XLIB=""
9041 X_CFLAGS=""
9042 X_LIBS=""
9043 enable_winex11_drv=${enable_winex11_drv:-no}
9044 enable_opengl32=${enable_opengl32:-no}
9045 enable_glu32=${enable_glu32:-no}
9047 if test "x$XLIB" = "x"; then :
9048 case "x$with_x" in
9049 xno) ;;
9050 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9051 without X support, which probably isn't what you want. You will need
9052 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9053 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9054 esac
9057 if test "$ac_cv_header_CL_cl_h" = "yes"
9058 then
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9060 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9061 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9062 $as_echo_n "(cached) " >&6
9063 else
9064 ac_check_lib_save_LIBS=$LIBS
9065 LIBS="-lOpenCL $LIBS"
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9069 /* Override any GCC internal prototype to avoid an error.
9070 Use char because int might match the return type of a GCC
9071 builtin and then its argument prototype would still apply. */
9072 #ifdef __cplusplus
9073 extern "C"
9074 #endif
9075 char clGetPlatformInfo ();
9077 main ()
9079 return clGetPlatformInfo ();
9081 return 0;
9083 _ACEOF
9084 if ac_fn_c_try_link "$LINENO"; then :
9085 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9086 else
9087 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9089 rm -f core conftest.err conftest.$ac_objext \
9090 conftest$ac_exeext conftest.$ac_ext
9091 LIBS=$ac_check_lib_save_LIBS
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9094 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9095 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9096 LIBOPENCL="-lOpenCL"
9101 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9102 case "x$with_opencl" in
9103 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9104 xno) ;;
9105 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9106 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9107 esac
9109 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9112 XML2LIBS=""
9114 XML2INCL=""
9116 XSLTINCL=""
9118 if test "x$with_xml" != "xno"
9119 then
9120 ac_save_CPPFLAGS="$CPPFLAGS"
9121 if test "$PKG_CONFIG" != "false"
9122 then
9123 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9124 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9125 else
9126 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9127 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9129 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9130 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9131 do :
9132 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9133 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9134 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9135 cat >>confdefs.h <<_ACEOF
9136 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9137 _ACEOF
9141 done
9143 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"
9144 then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9146 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9147 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 ac_check_lib_save_LIBS=$LIBS
9151 LIBS="-lxml2 $ac_xml_libs $LIBS"
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9155 /* Override any GCC internal prototype to avoid an error.
9156 Use char because int might match the return type of a GCC
9157 builtin and then its argument prototype would still apply. */
9158 #ifdef __cplusplus
9159 extern "C"
9160 #endif
9161 char xmlParseMemory ();
9163 main ()
9165 return xmlParseMemory ();
9167 return 0;
9169 _ACEOF
9170 if ac_fn_c_try_link "$LINENO"; then :
9171 ac_cv_lib_xml2_xmlParseMemory=yes
9172 else
9173 ac_cv_lib_xml2_xmlParseMemory=no
9175 rm -f core conftest.err conftest.$ac_objext \
9176 conftest$ac_exeext conftest.$ac_ext
9177 LIBS=$ac_check_lib_save_LIBS
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9180 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9181 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9183 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9185 XML2LIBS="$ac_xml_libs"
9186 XML2INCL="$ac_xml_cflags"
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9190 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9191 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9192 $as_echo_n "(cached) " >&6
9193 else
9194 ac_check_lib_save_LIBS=$LIBS
9195 LIBS="-lxml2 $ac_xml_libs $LIBS"
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9199 /* Override any GCC internal prototype to avoid an error.
9200 Use char because int might match the return type of a GCC
9201 builtin and then its argument prototype would still apply. */
9202 #ifdef __cplusplus
9203 extern "C"
9204 #endif
9205 char xmlReadMemory ();
9207 main ()
9209 return xmlReadMemory ();
9211 return 0;
9213 _ACEOF
9214 if ac_fn_c_try_link "$LINENO"; then :
9215 ac_cv_lib_xml2_xmlReadMemory=yes
9216 else
9217 ac_cv_lib_xml2_xmlReadMemory=no
9219 rm -f core conftest.err conftest.$ac_objext \
9220 conftest$ac_exeext conftest.$ac_ext
9221 LIBS=$ac_check_lib_save_LIBS
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9224 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9225 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9227 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9232 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9233 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9234 $as_echo_n "(cached) " >&6
9235 else
9236 ac_check_lib_save_LIBS=$LIBS
9237 LIBS="-lxml2 $ac_xml_libs $LIBS"
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9241 /* Override any GCC internal prototype to avoid an error.
9242 Use char because int might match the return type of a GCC
9243 builtin and then its argument prototype would still apply. */
9244 #ifdef __cplusplus
9245 extern "C"
9246 #endif
9247 char xmlNewDocPI ();
9249 main ()
9251 return xmlNewDocPI ();
9253 return 0;
9255 _ACEOF
9256 if ac_fn_c_try_link "$LINENO"; then :
9257 ac_cv_lib_xml2_xmlNewDocPI=yes
9258 else
9259 ac_cv_lib_xml2_xmlNewDocPI=no
9261 rm -f core conftest.err conftest.$ac_objext \
9262 conftest$ac_exeext conftest.$ac_ext
9263 LIBS=$ac_check_lib_save_LIBS
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9266 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9267 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9269 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9274 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9275 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9276 $as_echo_n "(cached) " >&6
9277 else
9278 ac_check_lib_save_LIBS=$LIBS
9279 LIBS="-lxml2 $ac_xml_libs $LIBS"
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9283 /* Override any GCC internal prototype to avoid an error.
9284 Use char because int might match the return type of a GCC
9285 builtin and then its argument prototype would still apply. */
9286 #ifdef __cplusplus
9287 extern "C"
9288 #endif
9289 char xmlSchemaSetParserStructuredErrors ();
9291 main ()
9293 return xmlSchemaSetParserStructuredErrors ();
9295 return 0;
9297 _ACEOF
9298 if ac_fn_c_try_link "$LINENO"; then :
9299 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9300 else
9301 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9303 rm -f core conftest.err conftest.$ac_objext \
9304 conftest$ac_exeext conftest.$ac_ext
9305 LIBS=$ac_check_lib_save_LIBS
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9308 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9309 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9311 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9316 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9317 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 ac_check_lib_save_LIBS=$LIBS
9321 LIBS="-lxml2 $ac_xml_libs $LIBS"
9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h. */
9325 /* Override any GCC internal prototype to avoid an error.
9326 Use char because int might match the return type of a GCC
9327 builtin and then its argument prototype would still apply. */
9328 #ifdef __cplusplus
9329 extern "C"
9330 #endif
9331 char xmlSchemaSetValidStructuredErrors ();
9333 main ()
9335 return xmlSchemaSetValidStructuredErrors ();
9337 return 0;
9339 _ACEOF
9340 if ac_fn_c_try_link "$LINENO"; then :
9341 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9342 else
9343 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9345 rm -f core conftest.err conftest.$ac_objext \
9346 conftest$ac_exeext conftest.$ac_ext
9347 LIBS=$ac_check_lib_save_LIBS
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9350 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9351 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9353 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9358 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9359 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9360 $as_echo_n "(cached) " >&6
9361 else
9362 ac_check_lib_save_LIBS=$LIBS
9363 LIBS="-lxml2 $ac_xml_libs $LIBS"
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9367 /* Override any GCC internal prototype to avoid an error.
9368 Use char because int might match the return type of a GCC
9369 builtin and then its argument prototype would still apply. */
9370 #ifdef __cplusplus
9371 extern "C"
9372 #endif
9373 char xmlFirstElementChild ();
9375 main ()
9377 return xmlFirstElementChild ();
9379 return 0;
9381 _ACEOF
9382 if ac_fn_c_try_link "$LINENO"; then :
9383 ac_cv_lib_xml2_xmlFirstElementChild=yes
9384 else
9385 ac_cv_lib_xml2_xmlFirstElementChild=no
9387 rm -f core conftest.err conftest.$ac_objext \
9388 conftest$ac_exeext conftest.$ac_ext
9389 LIBS=$ac_check_lib_save_LIBS
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9392 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9393 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9395 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9399 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9401 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9403 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9408 CPPFLAGS="$ac_save_CPPFLAGS"
9410 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9411 case "x$with_xml" in
9412 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9413 xno) ;;
9414 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9415 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9416 esac
9419 if test "x$with_xslt" != "xno"
9420 then
9421 if test "$PKG_CONFIG" != "false"
9422 then
9423 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9424 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9425 else
9426 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9427 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9429 ac_save_CPPFLAGS="$CPPFLAGS"
9430 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9431 for ac_header in libxslt/pattern.h libxslt/transform.h
9432 do :
9433 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9434 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9435 # include <libxslt/pattern.h>
9436 #endif
9438 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9439 cat >>confdefs.h <<_ACEOF
9440 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9441 _ACEOF
9445 done
9447 CPPFLAGS="$ac_save_CPPFLAGS"
9448 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9449 then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9451 $as_echo_n "checking for -lxslt... " >&6; }
9452 if ${ac_cv_lib_soname_xslt+:} false; then :
9453 $as_echo_n "(cached) " >&6
9454 else
9455 ac_check_soname_save_LIBS=$LIBS
9456 LIBS="-lxslt $ac_xslt_libs $LIBS"
9457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9458 /* end confdefs.h. */
9460 /* Override any GCC internal prototype to avoid an error.
9461 Use char because int might match the return type of a GCC
9462 builtin and then its argument prototype would still apply. */
9463 #ifdef __cplusplus
9464 extern "C"
9465 #endif
9466 char xsltCompilePattern ();
9468 main ()
9470 return xsltCompilePattern ();
9472 return 0;
9474 _ACEOF
9475 if ac_fn_c_try_link "$LINENO"; then :
9476 case "$LIBEXT" in
9477 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9478 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'` ;;
9479 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9480 esac
9482 rm -f core conftest.err conftest.$ac_objext \
9483 conftest$ac_exeext conftest.$ac_ext
9484 LIBS=$ac_check_soname_save_LIBS
9486 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9488 $as_echo "not found" >&6; }
9490 else
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9492 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9494 cat >>confdefs.h <<_ACEOF
9495 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9496 _ACEOF
9498 XSLTINCL="$ac_xslt_cflags"
9502 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9503 case "x$with_xslt" in
9504 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9505 xno) ;;
9506 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9507 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9508 esac
9511 HALINCL=""
9513 if test "x$with_hal" != "xno"
9514 then
9515 ac_save_CPPFLAGS="$CPPFLAGS"
9516 if test "$PKG_CONFIG" != "false"
9517 then
9518 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9519 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9520 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9522 for ac_header in dbus/dbus.h hal/libhal.h
9523 do :
9524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9525 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9526 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9527 cat >>confdefs.h <<_ACEOF
9528 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9529 _ACEOF
9533 done
9535 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9536 then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9538 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9539 if ${ac_cv_lib_dbus_1_dbus_connection_close+:} false; then :
9540 $as_echo_n "(cached) " >&6
9541 else
9542 ac_check_lib_save_LIBS=$LIBS
9543 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9547 /* Override any GCC internal prototype to avoid an error.
9548 Use char because int might match the return type of a GCC
9549 builtin and then its argument prototype would still apply. */
9550 #ifdef __cplusplus
9551 extern "C"
9552 #endif
9553 char dbus_connection_close ();
9555 main ()
9557 return dbus_connection_close ();
9559 return 0;
9561 _ACEOF
9562 if ac_fn_c_try_link "$LINENO"; then :
9563 ac_cv_lib_dbus_1_dbus_connection_close=yes
9564 else
9565 ac_cv_lib_dbus_1_dbus_connection_close=no
9567 rm -f core conftest.err conftest.$ac_objext \
9568 conftest$ac_exeext conftest.$ac_ext
9569 LIBS=$ac_check_lib_save_LIBS
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9572 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9573 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = xyes; then :
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9575 $as_echo_n "checking for -lhal... " >&6; }
9576 if ${ac_cv_lib_soname_hal+:} false; then :
9577 $as_echo_n "(cached) " >&6
9578 else
9579 ac_check_soname_save_LIBS=$LIBS
9580 LIBS="-lhal $ac_hal_libs $LIBS"
9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582 /* end confdefs.h. */
9584 /* Override any GCC internal prototype to avoid an error.
9585 Use char because int might match the return type of a GCC
9586 builtin and then its argument prototype would still apply. */
9587 #ifdef __cplusplus
9588 extern "C"
9589 #endif
9590 char libhal_ctx_new ();
9592 main ()
9594 return libhal_ctx_new ();
9596 return 0;
9598 _ACEOF
9599 if ac_fn_c_try_link "$LINENO"; then :
9600 case "$LIBEXT" in
9601 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9602 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'` ;;
9603 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9604 esac
9606 rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9608 LIBS=$ac_check_soname_save_LIBS
9610 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9612 $as_echo "not found" >&6; }
9614 else
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9616 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9618 cat >>confdefs.h <<_ACEOF
9619 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9620 _ACEOF
9622 HALINCL="$ac_hal_cflags"
9627 CPPFLAGS="$ac_save_CPPFLAGS"
9629 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9630 case "x$with_hal" in
9631 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9632 xno) ;;
9633 *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9634 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9635 esac
9638 if test "x$with_gnutls" != "xno"
9639 then
9640 ac_save_CPPFLAGS="$CPPFLAGS"
9641 if test "$PKG_CONFIG" != "false"
9642 then
9643 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9644 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9645 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9647 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9648 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9651 #include <gnutls/gnutls.h>
9653 main ()
9655 typeof(gnutls_mac_get_key_size) *pfunc;
9657 return 0;
9659 _ACEOF
9660 if ac_fn_c_try_compile "$LINENO"; then :
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9662 $as_echo_n "checking for -lgnutls... " >&6; }
9663 if ${ac_cv_lib_soname_gnutls+:} false; then :
9664 $as_echo_n "(cached) " >&6
9665 else
9666 ac_check_soname_save_LIBS=$LIBS
9667 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669 /* end confdefs.h. */
9671 /* Override any GCC internal prototype to avoid an error.
9672 Use char because int might match the return type of a GCC
9673 builtin and then its argument prototype would still apply. */
9674 #ifdef __cplusplus
9675 extern "C"
9676 #endif
9677 char gnutls_global_init ();
9679 main ()
9681 return gnutls_global_init ();
9683 return 0;
9685 _ACEOF
9686 if ac_fn_c_try_link "$LINENO"; then :
9687 case "$LIBEXT" in
9688 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9689 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'` ;;
9690 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9691 esac
9693 rm -f core conftest.err conftest.$ac_objext \
9694 conftest$ac_exeext conftest.$ac_ext
9695 LIBS=$ac_check_soname_save_LIBS
9697 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9699 $as_echo "not found" >&6; }
9701 else
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9703 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9705 cat >>confdefs.h <<_ACEOF
9706 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9707 _ACEOF
9709 GNUTLSINCL="$ac_gnutls_cflags"
9713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9717 CPPFLAGS="$ac_save_CPPFLAGS"
9719 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9720 case "x$with_gnutls" in
9721 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9722 xno) ;;
9723 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9724 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9725 esac
9728 CURSESLIBS=""
9729 if test "$ac_cv_header_ncurses_h" = "yes"
9730 then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9732 $as_echo_n "checking for -lncurses... " >&6; }
9733 if ${ac_cv_lib_soname_ncurses+:} false; then :
9734 $as_echo_n "(cached) " >&6
9735 else
9736 ac_check_soname_save_LIBS=$LIBS
9737 LIBS="-lncurses $LIBS"
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9741 /* Override any GCC internal prototype to avoid an error.
9742 Use char because int might match the return type of a GCC
9743 builtin and then its argument prototype would still apply. */
9744 #ifdef __cplusplus
9745 extern "C"
9746 #endif
9747 char waddch ();
9749 main ()
9751 return waddch ();
9753 return 0;
9755 _ACEOF
9756 if ac_fn_c_try_link "$LINENO"; then :
9757 case "$LIBEXT" in
9758 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9759 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'` ;;
9760 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9761 esac
9763 rm -f core conftest.err conftest.$ac_objext \
9764 conftest$ac_exeext conftest.$ac_ext
9765 LIBS=$ac_check_soname_save_LIBS
9767 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9769 $as_echo "not found" >&6; }
9771 else
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9773 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9775 cat >>confdefs.h <<_ACEOF
9776 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9777 _ACEOF
9779 CURSESLIBS="-lncurses"
9781 elif test "$ac_cv_header_curses_h" = "yes"
9782 then
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9784 $as_echo_n "checking for -lcurses... " >&6; }
9785 if ${ac_cv_lib_soname_curses+:} false; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 ac_check_soname_save_LIBS=$LIBS
9789 LIBS="-lcurses $LIBS"
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9793 /* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
9796 #ifdef __cplusplus
9797 extern "C"
9798 #endif
9799 char waddch ();
9801 main ()
9803 return waddch ();
9805 return 0;
9807 _ACEOF
9808 if ac_fn_c_try_link "$LINENO"; then :
9809 case "$LIBEXT" in
9810 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9811 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'` ;;
9812 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9813 esac
9815 rm -f core conftest.err conftest.$ac_objext \
9816 conftest$ac_exeext conftest.$ac_ext
9817 LIBS=$ac_check_soname_save_LIBS
9819 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9821 $as_echo "not found" >&6; }
9823 else
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9825 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9827 cat >>confdefs.h <<_ACEOF
9828 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9829 _ACEOF
9831 CURSESLIBS="-lcurses"
9834 ac_save_LIBS="$LIBS"
9835 LIBS="$LIBS $CURSESLIBS"
9836 for ac_func in mousemask
9837 do :
9838 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9839 if test "x$ac_cv_func_mousemask" = xyes; then :
9840 cat >>confdefs.h <<_ACEOF
9841 #define HAVE_MOUSEMASK 1
9842 _ACEOF
9845 done
9847 LIBS="$ac_save_LIBS"
9848 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9849 case "x$with_curses" in
9850 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9851 xno) ;;
9852 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9853 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9854 esac
9857 if test "x$with_sane" != "xno"
9858 then
9859 ac_save_CPPFLAGS="$CPPFLAGS"
9860 # Extract the first word of "sane-config", so it can be a program name with args.
9861 set dummy sane-config; ac_word=$2
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 $as_echo_n "checking for $ac_word... " >&6; }
9864 if ${ac_cv_prog_sane_devel+:} false; then :
9865 $as_echo_n "(cached) " >&6
9866 else
9867 if test -n "$sane_devel"; then
9868 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9869 else
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $PATH
9873 IFS=$as_save_IFS
9874 test -z "$as_dir" && as_dir=.
9875 for ac_exec_ext in '' $ac_executable_extensions; do
9876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9877 ac_cv_prog_sane_devel="sane-config"
9878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9879 break 2
9881 done
9882 done
9883 IFS=$as_save_IFS
9885 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9888 sane_devel=$ac_cv_prog_sane_devel
9889 if test -n "$sane_devel"; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9891 $as_echo "$sane_devel" >&6; }
9892 else
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894 $as_echo "no" >&6; }
9898 if test "$sane_devel" != "no"
9899 then
9900 ac_sane_incl="`$sane_devel --cflags`"
9901 ac_sane_libs="`$sane_devel --ldflags`"
9902 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9904 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9905 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9907 $as_echo_n "checking for -lsane... " >&6; }
9908 if ${ac_cv_lib_soname_sane+:} false; then :
9909 $as_echo_n "(cached) " >&6
9910 else
9911 ac_check_soname_save_LIBS=$LIBS
9912 LIBS="-lsane $ac_sane_libs $LIBS"
9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914 /* end confdefs.h. */
9916 /* Override any GCC internal prototype to avoid an error.
9917 Use char because int might match the return type of a GCC
9918 builtin and then its argument prototype would still apply. */
9919 #ifdef __cplusplus
9920 extern "C"
9921 #endif
9922 char sane_init ();
9924 main ()
9926 return sane_init ();
9928 return 0;
9930 _ACEOF
9931 if ac_fn_c_try_link "$LINENO"; then :
9932 case "$LIBEXT" in
9933 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9934 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'` ;;
9935 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9936 esac
9938 rm -f core conftest.err conftest.$ac_objext \
9939 conftest$ac_exeext conftest.$ac_ext
9940 LIBS=$ac_check_soname_save_LIBS
9942 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9944 $as_echo "not found" >&6; }
9946 else
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9948 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9950 cat >>confdefs.h <<_ACEOF
9951 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9952 _ACEOF
9954 SANEINCL="$ac_sane_incl"
9960 CPPFLAGS="$ac_save_CPPFLAGS"
9962 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9963 case "x$with_sane" in
9964 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9965 xno) ;;
9966 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9967 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9968 esac
9971 if test "x$with_v4l" != "xno"
9972 then
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9974 $as_echo_n "checking for -lv4l1... " >&6; }
9975 if ${ac_cv_lib_soname_v4l1+:} false; then :
9976 $as_echo_n "(cached) " >&6
9977 else
9978 ac_check_soname_save_LIBS=$LIBS
9979 LIBS="-lv4l1 $LIBS"
9980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9981 /* end confdefs.h. */
9983 /* Override any GCC internal prototype to avoid an error.
9984 Use char because int might match the return type of a GCC
9985 builtin and then its argument prototype would still apply. */
9986 #ifdef __cplusplus
9987 extern "C"
9988 #endif
9989 char v4l1_open ();
9991 main ()
9993 return v4l1_open ();
9995 return 0;
9997 _ACEOF
9998 if ac_fn_c_try_link "$LINENO"; then :
9999 case "$LIBEXT" in
10000 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10001 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'` ;;
10002 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10003 esac
10005 rm -f core conftest.err conftest.$ac_objext \
10006 conftest$ac_exeext conftest.$ac_ext
10007 LIBS=$ac_check_soname_save_LIBS
10009 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10011 $as_echo "not found" >&6; }
10013 else
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10015 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10017 cat >>confdefs.h <<_ACEOF
10018 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10019 _ACEOF
10024 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10025 case "x$with_v4l" in
10026 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10027 xno) ;;
10028 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10029 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10030 esac
10033 if test "x$with_gphoto" != "xno"
10034 then
10035 ac_save_CPPFLAGS="$CPPFLAGS"
10036 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10037 set dummy gphoto2-config; ac_word=$2
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10039 $as_echo_n "checking for $ac_word... " >&6; }
10040 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10041 $as_echo_n "(cached) " >&6
10042 else
10043 if test -n "$gphoto2_devel"; then
10044 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10045 else
10046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047 for as_dir in $PATH
10049 IFS=$as_save_IFS
10050 test -z "$as_dir" && as_dir=.
10051 for ac_exec_ext in '' $ac_executable_extensions; do
10052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10053 ac_cv_prog_gphoto2_devel="gphoto2-config"
10054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10055 break 2
10057 done
10058 done
10059 IFS=$as_save_IFS
10061 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10064 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10065 if test -n "$gphoto2_devel"; then
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10067 $as_echo "$gphoto2_devel" >&6; }
10068 else
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070 $as_echo "no" >&6; }
10074 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10075 set dummy gphoto2-port-config; ac_word=$2
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10077 $as_echo_n "checking for $ac_word... " >&6; }
10078 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10079 $as_echo_n "(cached) " >&6
10080 else
10081 if test -n "$gphoto2port_devel"; then
10082 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10083 else
10084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085 for as_dir in $PATH
10087 IFS=$as_save_IFS
10088 test -z "$as_dir" && as_dir=.
10089 for ac_exec_ext in '' $ac_executable_extensions; do
10090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10091 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10093 break 2
10095 done
10096 done
10097 IFS=$as_save_IFS
10099 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10102 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10103 if test -n "$gphoto2port_devel"; then
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10105 $as_echo "$gphoto2port_devel" >&6; }
10106 else
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10108 $as_echo "no" >&6; }
10112 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10113 then
10114 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10115 ac_gphoto2_libs=""
10116 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10118 case "$i" in
10119 -L/usr/lib|-L/usr/lib64) ;;
10120 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10121 esac
10122 done
10123 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10125 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10126 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10127 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10129 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10130 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10131 $as_echo_n "(cached) " >&6
10132 else
10133 ac_check_lib_save_LIBS=$LIBS
10134 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10136 /* end confdefs.h. */
10138 /* Override any GCC internal prototype to avoid an error.
10139 Use char because int might match the return type of a GCC
10140 builtin and then its argument prototype would still apply. */
10141 #ifdef __cplusplus
10142 extern "C"
10143 #endif
10144 char gp_camera_new ();
10146 main ()
10148 return gp_camera_new ();
10150 return 0;
10152 _ACEOF
10153 if ac_fn_c_try_link "$LINENO"; then :
10154 ac_cv_lib_gphoto2_gp_camera_new=yes
10155 else
10156 ac_cv_lib_gphoto2_gp_camera_new=no
10158 rm -f core conftest.err conftest.$ac_objext \
10159 conftest$ac_exeext conftest.$ac_ext
10160 LIBS=$ac_check_lib_save_LIBS
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10163 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10164 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10166 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10168 GPHOTO2LIBS="$ac_gphoto2_libs"
10170 GPHOTO2INCL="$ac_gphoto2_incl"
10177 CPPFLAGS="$ac_save_CPPFLAGS"
10179 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10180 case "x$with_gphoto" in
10181 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10182 xno) ;;
10183 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10184 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10185 esac
10189 if test "$ac_cv_header_resolv_h" = "yes"
10190 then
10191 ac_save_LIBS="$LIBS"
10192 for lib in '' -lresolv
10194 LIBS="$lib $ac_save_LIBS"
10195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h. */
10197 #ifdef HAVE_NETINET_IN_H
10198 #include <netinet/in.h>
10199 #endif
10200 #include <resolv.h>
10202 main ()
10204 res_query("foo",ns_c_in,0,0,0);
10206 return 0;
10208 _ACEOF
10209 if ac_fn_c_try_link "$LINENO"; then :
10211 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10213 RESOLVLIBS="$lib"
10216 rm -f core conftest.err conftest.$ac_objext \
10217 conftest$ac_exeext conftest.$ac_ext
10218 if test "${RESOLVLIBS+set}" = set; then
10219 break
10221 done
10222 LIBS="$ac_save_LIBS"
10225 LCMSLIBS=""
10227 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10228 then
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10230 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10231 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10232 $as_echo_n "(cached) " >&6
10233 else
10234 ac_check_lib_save_LIBS=$LIBS
10235 LIBS="-llcms $LIBS"
10236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237 /* end confdefs.h. */
10239 /* Override any GCC internal prototype to avoid an error.
10240 Use char because int might match the return type of a GCC
10241 builtin and then its argument prototype would still apply. */
10242 #ifdef __cplusplus
10243 extern "C"
10244 #endif
10245 char cmsOpenProfileFromFile ();
10247 main ()
10249 return cmsOpenProfileFromFile ();
10251 return 0;
10253 _ACEOF
10254 if ac_fn_c_try_link "$LINENO"; then :
10255 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10256 else
10257 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10259 rm -f core conftest.err conftest.$ac_objext \
10260 conftest$ac_exeext conftest.$ac_ext
10261 LIBS=$ac_check_lib_save_LIBS
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10264 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10265 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10267 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10269 LCMSLIBS="-llcms"
10273 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10274 case "x$with_cms" in
10275 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10276 xno) ;;
10277 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10278 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10279 esac
10282 if test "x$with_freetype" != "xno"
10283 then
10284 for ac_prog in freetype-config freetype2-config
10286 # Extract the first word of "$ac_prog", so it can be a program name with args.
10287 set dummy $ac_prog; ac_word=$2
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10289 $as_echo_n "checking for $ac_word... " >&6; }
10290 if ${ac_cv_prog_ft_devel+:} false; then :
10291 $as_echo_n "(cached) " >&6
10292 else
10293 if test -n "$ft_devel"; then
10294 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10295 else
10296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10297 for as_dir in $PATH
10299 IFS=$as_save_IFS
10300 test -z "$as_dir" && as_dir=.
10301 for ac_exec_ext in '' $ac_executable_extensions; do
10302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10303 ac_cv_prog_ft_devel="$ac_prog"
10304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10305 break 2
10307 done
10308 done
10309 IFS=$as_save_IFS
10313 ft_devel=$ac_cv_prog_ft_devel
10314 if test -n "$ft_devel"; then
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10316 $as_echo "$ft_devel" >&6; }
10317 else
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10319 $as_echo "no" >&6; }
10323 test -n "$ft_devel" && break
10324 done
10325 test -n "$ft_devel" || ft_devel="no"
10327 if test "$ft_devel" != "no"
10328 then
10329 ac_freetype_incl=`$ft_devel --cflags`
10330 ac_freetype_libs=`$ft_devel --libs`
10332 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10334 $as_echo_n "checking for -lfreetype... " >&6; }
10335 if ${ac_cv_lib_soname_freetype+:} false; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 ac_check_soname_save_LIBS=$LIBS
10339 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10341 /* end confdefs.h. */
10343 /* Override any GCC internal prototype to avoid an error.
10344 Use char because int might match the return type of a GCC
10345 builtin and then its argument prototype would still apply. */
10346 #ifdef __cplusplus
10347 extern "C"
10348 #endif
10349 char FT_Init_FreeType ();
10351 main ()
10353 return FT_Init_FreeType ();
10355 return 0;
10357 _ACEOF
10358 if ac_fn_c_try_link "$LINENO"; then :
10359 case "$LIBEXT" in
10360 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10361 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'` ;;
10362 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10363 esac
10365 rm -f core conftest.err conftest.$ac_objext \
10366 conftest$ac_exeext conftest.$ac_ext
10367 LIBS=$ac_check_soname_save_LIBS
10369 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10371 $as_echo "not found" >&6; }
10372 ft_lib=no
10373 else
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10375 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10377 cat >>confdefs.h <<_ACEOF
10378 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10379 _ACEOF
10381 ft_lib=yes
10383 if test "$ft_lib" = "yes"
10384 then
10385 ac_save_CPPFLAGS="$CPPFLAGS"
10386 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10387 for ac_header in ft2build.h \
10388 freetype/freetype.h \
10389 freetype/ftglyph.h \
10390 freetype/fttypes.h \
10391 freetype/tttables.h \
10392 freetype/ftsnames.h \
10393 freetype/ttnameid.h \
10394 freetype/ftoutln.h \
10395 freetype/ftwinfnt.h \
10396 freetype/ftmodapi.h \
10397 freetype/ftlcdfil.h \
10398 freetype/internal/sfnt.h
10399 do :
10400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10401 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10402 # include <ft2build.h>
10403 #endif
10405 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10406 cat >>confdefs.h <<_ACEOF
10407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10408 _ACEOF
10412 done
10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h. */
10416 #include <ft2build.h>
10417 #include <freetype/fttrigon.h>
10418 _ACEOF
10419 if ac_fn_c_try_cpp "$LINENO"; then :
10421 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10423 wine_cv_fttrigon=yes
10424 else
10425 wine_cv_fttrigon=no
10427 rm -f conftest.err conftest.i conftest.$ac_ext
10428 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10430 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10432 cat >>confdefs.h <<_ACEOF
10433 #define HAVE_FT_TRUETYPEENGINETYPE 1
10434 _ACEOF
10439 ac_save_CFLAGS="$CFLAGS"
10440 CFLAGS="$CFLAGS $ac_freetype_libs"
10441 for ac_func in FT_Load_Sfnt_Table
10442 do :
10443 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10444 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = xyes; then :
10445 cat >>confdefs.h <<_ACEOF
10446 #define HAVE_FT_LOAD_SFNT_TABLE 1
10447 _ACEOF
10450 done
10452 CFLAGS="$ac_save_CFLAGS"
10453 CPPFLAGS="$ac_save_CPPFLAGS"
10454 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10455 then
10457 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10459 FREETYPELIBS="$ac_freetype_libs"
10461 FREETYPEINCL="$ac_freetype_incl"
10466 if test "x$FREETYPELIBS" = "x"; then :
10467 case "x$with_freetype" in
10468 xno) ;;
10469 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10470 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10471 esac
10473 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10476 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10477 if ${ac_cv_c_ppdev+:} false; then :
10478 $as_echo_n "(cached) " >&6
10479 else
10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h. */
10482 #ifdef HAVE_SYS_IOCTL_H
10483 # include <sys/ioctl.h>
10484 #endif
10485 #include <linux/ppdev.h>
10487 main ()
10489 ioctl (1,PPCLAIM,0)
10491 return 0;
10493 _ACEOF
10494 if ac_fn_c_try_compile "$LINENO"; then :
10495 ac_cv_c_ppdev="yes"
10496 else
10497 ac_cv_c_ppdev="no"
10499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10502 $as_echo "$ac_cv_c_ppdev" >&6; }
10503 if test "$ac_cv_c_ppdev" = "yes"
10504 then
10506 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10510 ac_wine_check_funcs_save_LIBS="$LIBS"
10511 LIBS="$LIBS $LIBPTHREAD"
10512 for ac_func in \
10513 pthread_attr_get_np \
10514 pthread_getattr_np \
10515 pthread_get_stackaddr_np \
10516 pthread_get_stacksize_np
10517 do :
10518 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10519 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10520 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10521 cat >>confdefs.h <<_ACEOF
10522 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10523 _ACEOF
10526 done
10528 LIBS="$ac_wine_check_funcs_save_LIBS"
10530 if test "$ac_cv_header_zlib_h" = "yes"
10531 then
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10533 $as_echo_n "checking for inflate in -lz... " >&6; }
10534 if ${ac_cv_lib_z_inflate+:} false; then :
10535 $as_echo_n "(cached) " >&6
10536 else
10537 ac_check_lib_save_LIBS=$LIBS
10538 LIBS="-lz $LIBS"
10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540 /* end confdefs.h. */
10542 /* Override any GCC internal prototype to avoid an error.
10543 Use char because int might match the return type of a GCC
10544 builtin and then its argument prototype would still apply. */
10545 #ifdef __cplusplus
10546 extern "C"
10547 #endif
10548 char inflate ();
10550 main ()
10552 return inflate ();
10554 return 0;
10556 _ACEOF
10557 if ac_fn_c_try_link "$LINENO"; then :
10558 ac_cv_lib_z_inflate=yes
10559 else
10560 ac_cv_lib_z_inflate=no
10562 rm -f core conftest.err conftest.$ac_objext \
10563 conftest$ac_exeext conftest.$ac_ext
10564 LIBS=$ac_check_lib_save_LIBS
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10567 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10568 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10570 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10572 ZLIB="-lz"
10577 if test "x$ZLIB" = "x"; then :
10578 case "x$with_zlib" in
10579 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10580 xno) ;;
10581 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10582 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10583 esac
10586 if test "x$enable_tools" != xno
10587 then
10588 if test "$ac_cv_header_gettext_po_h" = "yes"
10589 then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10591 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10592 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10593 $as_echo_n "(cached) " >&6
10594 else
10595 ac_check_lib_save_LIBS=$LIBS
10596 LIBS="-lgettextpo $LIBS"
10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h. */
10600 /* Override any GCC internal prototype to avoid an error.
10601 Use char because int might match the return type of a GCC
10602 builtin and then its argument prototype would still apply. */
10603 #ifdef __cplusplus
10604 extern "C"
10605 #endif
10606 char po_message_msgctxt ();
10608 main ()
10610 return po_message_msgctxt ();
10612 return 0;
10614 _ACEOF
10615 if ac_fn_c_try_link "$LINENO"; then :
10616 ac_cv_lib_gettextpo_po_message_msgctxt=yes
10617 else
10618 ac_cv_lib_gettextpo_po_message_msgctxt=no
10620 rm -f core conftest.err conftest.$ac_objext \
10621 conftest$ac_exeext conftest.$ac_ext
10622 LIBS=$ac_check_lib_save_LIBS
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10625 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10626 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10628 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10630 LIBGETTEXTPO="-lgettextpo"
10635 if test "x$LIBGETTEXTPO" = "x"; then :
10636 case "x$with_gettextpo" in
10637 x) as_fn_append wine_warnings "|GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported." ;;
10638 xno) ;;
10639 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported.
10640 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10641 esac
10645 if test "x$with_esd" != xno
10646 then
10647 save_CFLAGS="$CFLAGS"
10648 # Extract the first word of "esd-config", so it can be a program name with args.
10649 set dummy esd-config; ac_word=$2
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10651 $as_echo_n "checking for $ac_word... " >&6; }
10652 if ${ac_cv_path_ESDCONFIG+:} false; then :
10653 $as_echo_n "(cached) " >&6
10654 else
10655 case $ESDCONFIG in
10656 [\\/]* | ?:[\\/]*)
10657 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661 for as_dir in $PATH
10663 IFS=$as_save_IFS
10664 test -z "$as_dir" && as_dir=.
10665 for ac_exec_ext in '' $ac_executable_extensions; do
10666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10667 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10669 break 2
10671 done
10672 done
10673 IFS=$as_save_IFS
10675 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10677 esac
10679 ESDCONFIG=$ac_cv_path_ESDCONFIG
10680 if test -n "$ESDCONFIG"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10682 $as_echo "$ESDCONFIG" >&6; }
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10689 if test "x$ESDCONFIG" != "xno"
10690 then
10691 ac_esd_incl=""
10692 for i in `$ESDCONFIG --cflags`
10694 case "$i" in
10695 -I*) ac_esd_incl="$ac_esd_incl $i";;
10696 esac
10697 done
10698 ac_esd_libs=`$ESDCONFIG --libs`
10699 CFLAGS="$CFLAGS $ac_esd_incl"
10701 ac_esd_libs=${ac_esd_libs:-"-lesd"}
10702 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10703 if test "x$ac_cv_header_esd_h" = xyes; then :
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10705 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10706 if ${ac_cv_lib_esd_esd_open_sound+:} false; then :
10707 $as_echo_n "(cached) " >&6
10708 else
10709 ac_check_lib_save_LIBS=$LIBS
10710 LIBS="-lesd $ac_esd_libs $LIBS"
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10714 /* Override any GCC internal prototype to avoid an error.
10715 Use char because int might match the return type of a GCC
10716 builtin and then its argument prototype would still apply. */
10717 #ifdef __cplusplus
10718 extern "C"
10719 #endif
10720 char esd_open_sound ();
10722 main ()
10724 return esd_open_sound ();
10726 return 0;
10728 _ACEOF
10729 if ac_fn_c_try_link "$LINENO"; then :
10730 ac_cv_lib_esd_esd_open_sound=yes
10731 else
10732 ac_cv_lib_esd_esd_open_sound=no
10734 rm -f core conftest.err conftest.$ac_objext \
10735 conftest$ac_exeext conftest.$ac_ext
10736 LIBS=$ac_check_lib_save_LIBS
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10739 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10740 if test "x$ac_cv_lib_esd_esd_open_sound" = xyes; then :
10741 ESDINCL="$ac_esd_incl"
10743 ESDLIBS="$ac_esd_libs"
10750 CFLAGS="$save_CFLAGS"
10753 if test "x$with_gstreamer" != "xno"
10754 then
10755 ac_save_CPPFLAGS="$CPPFLAGS"
10756 if test "$PKG_CONFIG" != "false"; then
10757 ac_gst_incl=""
10758 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10760 case "$i" in
10761 -I*) ac_gst_incl="$ac_gst_incl $i";;
10762 esac
10763 done
10764 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10765 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10766 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10767 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10768 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10769 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10771 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10772 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10773 $as_echo_n "(cached) " >&6
10774 else
10775 ac_check_lib_save_LIBS=$LIBS
10776 LIBS="-lgstreamer-0.10 $LIBS"
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10780 /* Override any GCC internal prototype to avoid an error.
10781 Use char because int might match the return type of a GCC
10782 builtin and then its argument prototype would still apply. */
10783 #ifdef __cplusplus
10784 extern "C"
10785 #endif
10786 char gst_pad_get_caps_reffed ();
10788 main ()
10790 return gst_pad_get_caps_reffed ();
10792 return 0;
10794 _ACEOF
10795 if ac_fn_c_try_link "$LINENO"; then :
10796 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10797 else
10798 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10800 rm -f core conftest.err conftest.$ac_objext \
10801 conftest$ac_exeext conftest.$ac_ext
10802 LIBS=$ac_check_lib_save_LIBS
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10805 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10806 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10808 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10809 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10812 ac_check_lib_save_LIBS=$LIBS
10813 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10817 /* Override any GCC internal prototype to avoid an error.
10818 Use char because int might match the return type of a GCC
10819 builtin and then its argument prototype would still apply. */
10820 #ifdef __cplusplus
10821 extern "C"
10822 #endif
10823 char gst_app_buffer_new ();
10825 main ()
10827 return gst_app_buffer_new ();
10829 return 0;
10831 _ACEOF
10832 if ac_fn_c_try_link "$LINENO"; then :
10833 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10834 else
10835 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10837 rm -f core conftest.err conftest.$ac_objext \
10838 conftest$ac_exeext conftest.$ac_ext
10839 LIBS=$ac_check_lib_save_LIBS
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10842 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10843 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10844 GSTREAMER_LIBS="$ac_gst_libs"
10846 GSTREAMER_INCL="$ac_gst_incl"
10859 CPPFLAGS="$ac_save_CPPFLAGS"
10861 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10862 case "x$with_gstreamer" in
10863 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10864 xno) ;;
10865 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10866 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10867 esac
10869 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10871 ALSALIBS=""
10873 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10874 then
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10876 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10877 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10878 $as_echo_n "(cached) " >&6
10879 else
10880 ac_check_lib_save_LIBS=$LIBS
10881 LIBS="-lasound $LIBS"
10882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883 /* end confdefs.h. */
10885 /* Override any GCC internal prototype to avoid an error.
10886 Use char because int might match the return type of a GCC
10887 builtin and then its argument prototype would still apply. */
10888 #ifdef __cplusplus
10889 extern "C"
10890 #endif
10891 char snd_pcm_hw_params_get_access_mask ();
10893 main ()
10895 return snd_pcm_hw_params_get_access_mask ();
10897 return 0;
10899 _ACEOF
10900 if ac_fn_c_try_link "$LINENO"; then :
10901 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10902 else
10903 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10905 rm -f core conftest.err conftest.$ac_objext \
10906 conftest$ac_exeext conftest.$ac_ext
10907 LIBS=$ac_check_lib_save_LIBS
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10910 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10911 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10914 #ifdef HAVE_ALSA_ASOUNDLIB_H
10915 #include <alsa/asoundlib.h>
10916 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10917 #include <sys/asoundlib.h>
10918 #endif
10920 main ()
10922 snd_pcm_hw_params_get_access_mask(NULL, NULL)
10924 return 0;
10926 _ACEOF
10927 if ac_fn_c_try_compile "$LINENO"; then :
10928 ALSALIBS="-lasound"
10930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10935 if test "x$with_oss" != xno
10936 then
10937 ac_save_CPPFLAGS="$CPPFLAGS"
10938 if test -f /etc/oss.conf
10939 then
10940 . /etc/oss.conf
10942 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10943 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10944 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10945 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10946 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
10948 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
10950 cat >>confdefs.h <<_ACEOF
10951 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
10952 _ACEOF
10954 OSS4INCL="$ac_oss_incl"
10961 CPPFLAGS="$ac_save_CPPFLAGS"
10962 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
10963 then
10964 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10969 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10970 then
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10972 $as_echo_n "checking for -lcapi20... " >&6; }
10973 if ${ac_cv_lib_soname_capi20+:} false; then :
10974 $as_echo_n "(cached) " >&6
10975 else
10976 ac_check_soname_save_LIBS=$LIBS
10977 LIBS="-lcapi20 $LIBS"
10978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h. */
10981 /* Override any GCC internal prototype to avoid an error.
10982 Use char because int might match the return type of a GCC
10983 builtin and then its argument prototype would still apply. */
10984 #ifdef __cplusplus
10985 extern "C"
10986 #endif
10987 char capi20_register ();
10989 main ()
10991 return capi20_register ();
10993 return 0;
10995 _ACEOF
10996 if ac_fn_c_try_link "$LINENO"; then :
10997 case "$LIBEXT" in
10998 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10999 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'` ;;
11000 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11001 esac
11003 rm -f core conftest.err conftest.$ac_objext \
11004 conftest$ac_exeext conftest.$ac_ext
11005 LIBS=$ac_check_soname_save_LIBS
11007 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11009 $as_echo "not found" >&6; }
11011 else
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11013 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11015 cat >>confdefs.h <<_ACEOF
11016 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11017 _ACEOF
11022 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11023 case "x$with_capi" in
11024 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11025 xno) ;;
11026 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11027 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11028 esac
11031 CUPSINCL=""
11033 if test "x$with_cups" != "xno"
11034 then
11035 ac_save_CPPFLAGS="$CPPFLAGS"
11036 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11037 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11038 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11039 for ac_header in cups/cups.h
11040 do :
11041 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11042 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11043 cat >>confdefs.h <<_ACEOF
11044 #define HAVE_CUPS_CUPS_H 1
11045 _ACEOF
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11047 $as_echo_n "checking for -lcups... " >&6; }
11048 if ${ac_cv_lib_soname_cups+:} false; then :
11049 $as_echo_n "(cached) " >&6
11050 else
11051 ac_check_soname_save_LIBS=$LIBS
11052 LIBS="-lcups $ac_cups_libs $LIBS"
11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11056 /* Override any GCC internal prototype to avoid an error.
11057 Use char because int might match the return type of a GCC
11058 builtin and then its argument prototype would still apply. */
11059 #ifdef __cplusplus
11060 extern "C"
11061 #endif
11062 char cupsGetDefault ();
11064 main ()
11066 return cupsGetDefault ();
11068 return 0;
11070 _ACEOF
11071 if ac_fn_c_try_link "$LINENO"; then :
11072 case "$LIBEXT" in
11073 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11074 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'` ;;
11075 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11076 esac
11078 rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11080 LIBS=$ac_check_soname_save_LIBS
11082 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11084 $as_echo "not found" >&6; }
11086 else
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11088 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11090 cat >>confdefs.h <<_ACEOF
11091 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11092 _ACEOF
11094 CUPSINCL="$ac_cups_cflags"
11098 done
11100 CPPFLAGS="$ac_save_CPPFLAGS"
11102 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11103 case "x$with_cups" in
11104 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11105 xno) ;;
11106 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11107 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11108 esac
11111 if test "$ac_cv_header_jack_jack_h" = "yes"
11112 then
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
11114 $as_echo_n "checking for -ljack... " >&6; }
11115 if ${ac_cv_lib_soname_jack+:} false; then :
11116 $as_echo_n "(cached) " >&6
11117 else
11118 ac_check_soname_save_LIBS=$LIBS
11119 LIBS="-ljack $LIBS"
11120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11123 /* Override any GCC internal prototype to avoid an error.
11124 Use char because int might match the return type of a GCC
11125 builtin and then its argument prototype would still apply. */
11126 #ifdef __cplusplus
11127 extern "C"
11128 #endif
11129 char jack_client_new ();
11131 main ()
11133 return jack_client_new ();
11135 return 0;
11137 _ACEOF
11138 if ac_fn_c_try_link "$LINENO"; then :
11139 case "$LIBEXT" in
11140 dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11141 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'` ;;
11142 *) 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'` ;;
11143 esac
11145 rm -f core conftest.err conftest.$ac_objext \
11146 conftest$ac_exeext conftest.$ac_ext
11147 LIBS=$ac_check_soname_save_LIBS
11149 if test "x$ac_cv_lib_soname_jack" = "x"; then :
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11151 $as_echo "not found" >&6; }
11153 else
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
11155 $as_echo "$ac_cv_lib_soname_jack" >&6; }
11157 cat >>confdefs.h <<_ACEOF
11158 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
11159 _ACEOF
11165 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11166 then
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11168 $as_echo_n "checking for -lfontconfig... " >&6; }
11169 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11170 $as_echo_n "(cached) " >&6
11171 else
11172 ac_check_soname_save_LIBS=$LIBS
11173 LIBS="-lfontconfig $LIBS"
11174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11177 /* Override any GCC internal prototype to avoid an error.
11178 Use char because int might match the return type of a GCC
11179 builtin and then its argument prototype would still apply. */
11180 #ifdef __cplusplus
11181 extern "C"
11182 #endif
11183 char FcInit ();
11185 main ()
11187 return FcInit ();
11189 return 0;
11191 _ACEOF
11192 if ac_fn_c_try_link "$LINENO"; then :
11193 case "$LIBEXT" in
11194 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11195 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'` ;;
11196 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11197 esac
11199 rm -f core conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11201 LIBS=$ac_check_soname_save_LIBS
11203 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11205 $as_echo "not found" >&6; }
11207 else
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11209 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11211 cat >>confdefs.h <<_ACEOF
11212 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11213 _ACEOF
11217 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11218 then
11219 ac_save_CPPFLAGS="$CPPFLAGS"
11220 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11221 $as_unset ac_cv_header_fontconfig_fontconfig_h
11222 for ac_header in fontconfig/fontconfig.h
11223 do :
11224 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11225 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11226 cat >>confdefs.h <<_ACEOF
11227 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11228 _ACEOF
11232 done
11234 CPPFLAGS="$ac_save_CPPFLAGS"
11235 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11236 then
11237 FONTCONFIGINCL="$X_CFLAGS"
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11240 $as_echo_n "checking for -lfontconfig... " >&6; }
11241 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11242 $as_echo_n "(cached) " >&6
11243 else
11244 ac_check_soname_save_LIBS=$LIBS
11245 LIBS="-lfontconfig $X_LIBS $LIBS"
11246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11249 /* Override any GCC internal prototype to avoid an error.
11250 Use char because int might match the return type of a GCC
11251 builtin and then its argument prototype would still apply. */
11252 #ifdef __cplusplus
11253 extern "C"
11254 #endif
11255 char FcInit ();
11257 main ()
11259 return FcInit ();
11261 return 0;
11263 _ACEOF
11264 if ac_fn_c_try_link "$LINENO"; then :
11265 case "$LIBEXT" in
11266 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11267 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'` ;;
11268 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11269 esac
11271 rm -f core conftest.err conftest.$ac_objext \
11272 conftest$ac_exeext conftest.$ac_ext
11273 LIBS=$ac_check_soname_save_LIBS
11275 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11277 $as_echo "not found" >&6; }
11279 else
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11281 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11283 cat >>confdefs.h <<_ACEOF
11284 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11285 _ACEOF
11291 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11292 case "x$with_fontconfig" in
11293 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11294 xno) ;;
11295 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11296 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11297 esac
11300 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11301 then
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11303 $as_echo_n "checking for -lssl... " >&6; }
11304 if ${ac_cv_lib_soname_ssl+:} false; then :
11305 $as_echo_n "(cached) " >&6
11306 else
11307 ac_check_soname_save_LIBS=$LIBS
11308 LIBS="-lssl $LIBS"
11309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h. */
11312 /* Override any GCC internal prototype to avoid an error.
11313 Use char because int might match the return type of a GCC
11314 builtin and then its argument prototype would still apply. */
11315 #ifdef __cplusplus
11316 extern "C"
11317 #endif
11318 char SSL_library_init ();
11320 main ()
11322 return SSL_library_init ();
11324 return 0;
11326 _ACEOF
11327 if ac_fn_c_try_link "$LINENO"; then :
11328 case "$LIBEXT" in
11329 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11330 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'` ;;
11331 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11332 esac
11334 rm -f core conftest.err conftest.$ac_objext \
11335 conftest$ac_exeext conftest.$ac_ext
11336 LIBS=$ac_check_soname_save_LIBS
11338 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11340 $as_echo "not found" >&6; }
11342 else
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11344 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11346 cat >>confdefs.h <<_ACEOF
11347 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11348 _ACEOF
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11353 $as_echo_n "checking for -lcrypto... " >&6; }
11354 if ${ac_cv_lib_soname_crypto+:} false; then :
11355 $as_echo_n "(cached) " >&6
11356 else
11357 ac_check_soname_save_LIBS=$LIBS
11358 LIBS="-lcrypto $LIBS"
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11362 /* Override any GCC internal prototype to avoid an error.
11363 Use char because int might match the return type of a GCC
11364 builtin and then its argument prototype would still apply. */
11365 #ifdef __cplusplus
11366 extern "C"
11367 #endif
11368 char BIO_new_socket ();
11370 main ()
11372 return BIO_new_socket ();
11374 return 0;
11376 _ACEOF
11377 if ac_fn_c_try_link "$LINENO"; then :
11378 case "$LIBEXT" in
11379 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11380 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'` ;;
11381 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11382 esac
11384 rm -f core conftest.err conftest.$ac_objext \
11385 conftest$ac_exeext conftest.$ac_ext
11386 LIBS=$ac_check_soname_save_LIBS
11388 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11390 $as_echo "not found" >&6; }
11392 else
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11394 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11396 cat >>confdefs.h <<_ACEOF
11397 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11398 _ACEOF
11403 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11404 case "x$with_openssl" in
11405 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11406 xno) ;;
11407 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11408 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11409 esac
11412 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11413 then
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11415 $as_echo_n "checking for -lgsm... " >&6; }
11416 if ${ac_cv_lib_soname_gsm+:} false; then :
11417 $as_echo_n "(cached) " >&6
11418 else
11419 ac_check_soname_save_LIBS=$LIBS
11420 LIBS="-lgsm $LIBS"
11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11424 /* Override any GCC internal prototype to avoid an error.
11425 Use char because int might match the return type of a GCC
11426 builtin and then its argument prototype would still apply. */
11427 #ifdef __cplusplus
11428 extern "C"
11429 #endif
11430 char gsm_create ();
11432 main ()
11434 return gsm_create ();
11436 return 0;
11438 _ACEOF
11439 if ac_fn_c_try_link "$LINENO"; then :
11440 case "$LIBEXT" in
11441 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11442 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'` ;;
11443 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11444 esac
11446 rm -f core conftest.err conftest.$ac_objext \
11447 conftest$ac_exeext conftest.$ac_ext
11448 LIBS=$ac_check_soname_save_LIBS
11450 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11452 $as_echo "not found" >&6; }
11454 else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11456 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11458 cat >>confdefs.h <<_ACEOF
11459 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11460 _ACEOF
11465 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11466 case "x$with_gsm" in
11467 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11468 xno) ;;
11469 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11470 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11471 esac
11474 if test "$ac_cv_header_jpeglib_h" = "yes"
11475 then
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11477 $as_echo_n "checking for -ljpeg... " >&6; }
11478 if ${ac_cv_lib_soname_jpeg+:} false; then :
11479 $as_echo_n "(cached) " >&6
11480 else
11481 ac_check_soname_save_LIBS=$LIBS
11482 LIBS="-ljpeg $LIBS"
11483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11484 /* end confdefs.h. */
11486 /* Override any GCC internal prototype to avoid an error.
11487 Use char because int might match the return type of a GCC
11488 builtin and then its argument prototype would still apply. */
11489 #ifdef __cplusplus
11490 extern "C"
11491 #endif
11492 char jpeg_start_decompress ();
11494 main ()
11496 return jpeg_start_decompress ();
11498 return 0;
11500 _ACEOF
11501 if ac_fn_c_try_link "$LINENO"; then :
11502 case "$LIBEXT" in
11503 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11504 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'` ;;
11505 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11506 esac
11508 rm -f core conftest.err conftest.$ac_objext \
11509 conftest$ac_exeext conftest.$ac_ext
11510 LIBS=$ac_check_soname_save_LIBS
11512 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11514 $as_echo "not found" >&6; }
11516 else
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11518 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11520 cat >>confdefs.h <<_ACEOF
11521 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11522 _ACEOF
11527 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11528 case "x$with_jpeg" in
11529 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11530 xno) ;;
11531 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11532 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11533 esac
11536 if test "$ac_cv_header_png_h" = "yes"
11537 then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11539 $as_echo_n "checking for -lpng... " >&6; }
11540 if ${ac_cv_lib_soname_png+:} false; then :
11541 $as_echo_n "(cached) " >&6
11542 else
11543 ac_check_soname_save_LIBS=$LIBS
11544 LIBS="-lpng -lm -lz $LIBS"
11545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11546 /* end confdefs.h. */
11548 /* Override any GCC internal prototype to avoid an error.
11549 Use char because int might match the return type of a GCC
11550 builtin and then its argument prototype would still apply. */
11551 #ifdef __cplusplus
11552 extern "C"
11553 #endif
11554 char png_create_read_struct ();
11556 main ()
11558 return png_create_read_struct ();
11560 return 0;
11562 _ACEOF
11563 if ac_fn_c_try_link "$LINENO"; then :
11564 case "$LIBEXT" in
11565 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11566 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'` ;;
11567 *) 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'` ;;
11568 esac
11570 rm -f core conftest.err conftest.$ac_objext \
11571 conftest$ac_exeext conftest.$ac_ext
11572 LIBS=$ac_check_soname_save_LIBS
11574 if test "x$ac_cv_lib_soname_png" = "x"; then :
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11576 $as_echo "not found" >&6; }
11578 else
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11580 $as_echo "$ac_cv_lib_soname_png" >&6; }
11582 cat >>confdefs.h <<_ACEOF
11583 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11584 _ACEOF
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11589 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11590 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11591 $as_echo_n "(cached) " >&6
11592 else
11593 ac_check_lib_save_LIBS=$LIBS
11594 LIBS="-lpng -lm -lz $LIBS"
11595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596 /* end confdefs.h. */
11598 /* Override any GCC internal prototype to avoid an error.
11599 Use char because int might match the return type of a GCC
11600 builtin and then its argument prototype would still apply. */
11601 #ifdef __cplusplus
11602 extern "C"
11603 #endif
11604 char png_set_expand_gray_1_2_4_to_8 ();
11606 main ()
11608 return png_set_expand_gray_1_2_4_to_8 ();
11610 return 0;
11612 _ACEOF
11613 if ac_fn_c_try_link "$LINENO"; then :
11614 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11615 else
11616 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11618 rm -f core conftest.err conftest.$ac_objext \
11619 conftest$ac_exeext conftest.$ac_ext
11620 LIBS=$ac_check_lib_save_LIBS
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11623 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11624 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11626 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11631 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11632 then
11633 ac_save_CPPFLAGS="$CPPFLAGS"
11634 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11635 $as_unset ac_cv_header_png_h
11636 for ac_header in png.h
11637 do :
11638 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11639 if test "x$ac_cv_header_png_h" = xyes; then :
11640 cat >>confdefs.h <<_ACEOF
11641 #define HAVE_PNG_H 1
11642 _ACEOF
11646 done
11648 CPPFLAGS="$ac_save_CPPFLAGS"
11649 if test "$ac_cv_header_png_h" = "yes"
11650 then
11651 PNGINCL="$X_CFLAGS"
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11654 $as_echo_n "checking for -lpng... " >&6; }
11655 if ${ac_cv_lib_soname_png+:} false; then :
11656 $as_echo_n "(cached) " >&6
11657 else
11658 ac_check_soname_save_LIBS=$LIBS
11659 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h. */
11663 /* Override any GCC internal prototype to avoid an error.
11664 Use char because int might match the return type of a GCC
11665 builtin and then its argument prototype would still apply. */
11666 #ifdef __cplusplus
11667 extern "C"
11668 #endif
11669 char png_create_read_struct ();
11671 main ()
11673 return png_create_read_struct ();
11675 return 0;
11677 _ACEOF
11678 if ac_fn_c_try_link "$LINENO"; then :
11679 case "$LIBEXT" in
11680 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11681 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'` ;;
11682 *) 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'` ;;
11683 esac
11685 rm -f core conftest.err conftest.$ac_objext \
11686 conftest$ac_exeext conftest.$ac_ext
11687 LIBS=$ac_check_soname_save_LIBS
11689 if test "x$ac_cv_lib_soname_png" = "x"; then :
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11691 $as_echo "not found" >&6; }
11693 else
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11695 $as_echo "$ac_cv_lib_soname_png" >&6; }
11697 cat >>confdefs.h <<_ACEOF
11698 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11699 _ACEOF
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11704 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11705 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11706 $as_echo_n "(cached) " >&6
11707 else
11708 ac_check_lib_save_LIBS=$LIBS
11709 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11713 /* Override any GCC internal prototype to avoid an error.
11714 Use char because int might match the return type of a GCC
11715 builtin and then its argument prototype would still apply. */
11716 #ifdef __cplusplus
11717 extern "C"
11718 #endif
11719 char png_set_expand_gray_1_2_4_to_8 ();
11721 main ()
11723 return png_set_expand_gray_1_2_4_to_8 ();
11725 return 0;
11727 _ACEOF
11728 if ac_fn_c_try_link "$LINENO"; then :
11729 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11730 else
11731 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11733 rm -f core conftest.err conftest.$ac_objext \
11734 conftest$ac_exeext conftest.$ac_ext
11735 LIBS=$ac_check_lib_save_LIBS
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11738 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11739 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11740 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11746 if test "x$ac_cv_lib_soname_png" = "x"; then :
11747 case "x$with_png" in
11748 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11749 xno) ;;
11750 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11751 This is an error since --with-png was requested." "$LINENO" 5 ;;
11752 esac
11755 if test "$ac_cv_header_tiffio_h" = "yes"
11756 then
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11758 $as_echo_n "checking for -ltiff... " >&6; }
11759 if ${ac_cv_lib_soname_tiff+:} false; then :
11760 $as_echo_n "(cached) " >&6
11761 else
11762 ac_check_soname_save_LIBS=$LIBS
11763 LIBS="-ltiff $LIBS"
11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h. */
11767 /* Override any GCC internal prototype to avoid an error.
11768 Use char because int might match the return type of a GCC
11769 builtin and then its argument prototype would still apply. */
11770 #ifdef __cplusplus
11771 extern "C"
11772 #endif
11773 char TIFFClientOpen ();
11775 main ()
11777 return TIFFClientOpen ();
11779 return 0;
11781 _ACEOF
11782 if ac_fn_c_try_link "$LINENO"; then :
11783 case "$LIBEXT" in
11784 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11785 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'` ;;
11786 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11787 esac
11789 rm -f core conftest.err conftest.$ac_objext \
11790 conftest$ac_exeext conftest.$ac_ext
11791 LIBS=$ac_check_soname_save_LIBS
11793 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11795 $as_echo "not found" >&6; }
11797 else
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11799 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11801 cat >>confdefs.h <<_ACEOF
11802 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11803 _ACEOF
11808 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11809 case "x$with_tiff" in
11810 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11811 xno) ;;
11812 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11813 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11814 esac
11817 if test "$ac_cv_header_mpg123_h" = "yes"
11818 then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11820 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11821 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11822 $as_echo_n "(cached) " >&6
11823 else
11824 ac_check_lib_save_LIBS=$LIBS
11825 LIBS="-lmpg123 $LIBS"
11826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827 /* end confdefs.h. */
11829 /* Override any GCC internal prototype to avoid an error.
11830 Use char because int might match the return type of a GCC
11831 builtin and then its argument prototype would still apply. */
11832 #ifdef __cplusplus
11833 extern "C"
11834 #endif
11835 char mpg123_feed ();
11837 main ()
11839 return mpg123_feed ();
11841 return 0;
11843 _ACEOF
11844 if ac_fn_c_try_link "$LINENO"; then :
11845 ac_cv_lib_mpg123_mpg123_feed=yes
11846 else
11847 ac_cv_lib_mpg123_mpg123_feed=no
11849 rm -f core conftest.err conftest.$ac_objext \
11850 conftest$ac_exeext conftest.$ac_ext
11851 LIBS=$ac_check_lib_save_LIBS
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11854 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11855 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11856 LIBMPG123="-lmpg123"
11861 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11862 case "x$with_mpg123" in
11863 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11864 xno) ;;
11865 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11866 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11867 esac
11869 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}
11871 if test "$ac_cv_header_AL_al_h" = "yes"
11872 then
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11874 $as_echo_n "checking for -lopenal... " >&6; }
11875 if ${ac_cv_lib_soname_openal+:} false; then :
11876 $as_echo_n "(cached) " >&6
11877 else
11878 ac_check_soname_save_LIBS=$LIBS
11879 LIBS="-lopenal $LIBS"
11880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h. */
11883 /* Override any GCC internal prototype to avoid an error.
11884 Use char because int might match the return type of a GCC
11885 builtin and then its argument prototype would still apply. */
11886 #ifdef __cplusplus
11887 extern "C"
11888 #endif
11889 char alGetSource3i ();
11891 main ()
11893 return alGetSource3i ();
11895 return 0;
11897 _ACEOF
11898 if ac_fn_c_try_link "$LINENO"; then :
11899 case "$LIBEXT" in
11900 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11901 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'` ;;
11902 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11903 esac
11905 rm -f core conftest.err conftest.$ac_objext \
11906 conftest$ac_exeext conftest.$ac_ext
11907 LIBS=$ac_check_soname_save_LIBS
11909 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11911 $as_echo "not found" >&6; }
11913 else
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11915 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11917 cat >>confdefs.h <<_ACEOF
11918 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11919 _ACEOF
11921 LIBOPENAL="-lopenal"
11923 ac_cv_lib_openal=yes
11925 cat >>confdefs.h <<_ACEOF
11926 #define HAVE_OPENAL 1
11927 _ACEOF
11931 if test "x$ac_cv_lib_openal" != xyes; then :
11932 case "x$with_openal" in
11933 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11934 xno) ;;
11935 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11936 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11937 esac
11939 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11941 if test "$ac_cv_header_kstat_h" = "yes"
11942 then
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11944 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11945 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
11946 $as_echo_n "(cached) " >&6
11947 else
11948 ac_check_lib_save_LIBS=$LIBS
11949 LIBS="-lkstat $LIBS"
11950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11951 /* end confdefs.h. */
11953 /* Override any GCC internal prototype to avoid an error.
11954 Use char because int might match the return type of a GCC
11955 builtin and then its argument prototype would still apply. */
11956 #ifdef __cplusplus
11957 extern "C"
11958 #endif
11959 char kstat_open ();
11961 main ()
11963 return kstat_open ();
11965 return 0;
11967 _ACEOF
11968 if ac_fn_c_try_link "$LINENO"; then :
11969 ac_cv_lib_kstat_kstat_open=yes
11970 else
11971 ac_cv_lib_kstat_kstat_open=no
11973 rm -f core conftest.err conftest.$ac_objext \
11974 conftest$ac_exeext conftest.$ac_ext
11975 LIBS=$ac_check_lib_save_LIBS
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11978 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11979 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
11981 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11983 LIBKSTAT="-lkstat"
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11990 $as_echo_n "checking for -lodbc... " >&6; }
11991 if ${ac_cv_lib_soname_odbc+:} false; then :
11992 $as_echo_n "(cached) " >&6
11993 else
11994 ac_check_soname_save_LIBS=$LIBS
11995 LIBS="-lodbc $LIBS"
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11999 /* Override any GCC internal prototype to avoid an error.
12000 Use char because int might match the return type of a GCC
12001 builtin and then its argument prototype would still apply. */
12002 #ifdef __cplusplus
12003 extern "C"
12004 #endif
12005 char SQLConnect ();
12007 main ()
12009 return SQLConnect ();
12011 return 0;
12013 _ACEOF
12014 if ac_fn_c_try_link "$LINENO"; then :
12015 case "$LIBEXT" in
12016 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12017 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'` ;;
12018 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
12019 esac
12021 rm -f core conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12023 LIBS=$ac_check_soname_save_LIBS
12025 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12027 $as_echo "not found" >&6; }
12028 cat >>confdefs.h <<_ACEOF
12029 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12030 _ACEOF
12032 else
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12034 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12036 cat >>confdefs.h <<_ACEOF
12037 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12038 _ACEOF
12043 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12044 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12045 test -n "$NASLIBS" || enable_winenas_drv=${enable_winenas_drv:-no}
12046 test -n "$ESDLIBS" || enable_wineesd_drv=${enable_wineesd_drv:-no}
12047 test -n "$ac_cv_lib_soname_jack" || enable_winejack_drv=${enable_winejack_drv:-no}
12048 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
12049 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12051 if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
12052 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
12053 "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono
12054 then
12055 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12059 EXTRACFLAGS=""
12061 if test "x${GCC}" = "xyes"
12062 then
12063 EXTRACFLAGS="-Wall -pipe"
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12066 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12067 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12068 $as_echo_n "(cached) " >&6
12069 else
12070 if test "$cross_compiling" = yes; then :
12071 ac_cv_c_gcc_strength_bug="yes"
12072 else
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12075 int L[4] = {0,1,2,3};
12077 main ()
12079 static int Array[3];
12080 unsigned int B = 3;
12081 int i;
12082 for(i=0; i<B; i++) Array[i] = i - 3;
12083 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12084 L[i] = 4;
12085 return (Array[1] != -2 || L[2] != 3)
12087 return 0;
12089 _ACEOF
12090 if ac_fn_c_try_run "$LINENO"; then :
12091 ac_cv_c_gcc_strength_bug="no"
12092 else
12093 ac_cv_c_gcc_strength_bug="yes"
12095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12096 conftest.$ac_objext conftest.beam conftest.$ac_ext
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12101 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12102 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12103 then
12104 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12108 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12109 if ${ac_cv_cflags__fno_builtin+:} false; then :
12110 $as_echo_n "(cached) " >&6
12111 else
12112 ac_wine_try_cflags_saved=$CFLAGS
12113 CFLAGS="$CFLAGS -fno-builtin"
12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115 /* end confdefs.h. */
12116 int main(int argc, char **argv) { return 0; }
12117 _ACEOF
12118 if ac_fn_c_try_link "$LINENO"; then :
12119 ac_cv_cflags__fno_builtin=yes
12120 else
12121 ac_cv_cflags__fno_builtin=no
12123 rm -f core conftest.err conftest.$ac_objext \
12124 conftest$ac_exeext conftest.$ac_ext
12125 CFLAGS=$ac_wine_try_cflags_saved
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12128 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12129 if test $ac_cv_cflags__fno_builtin = yes; then :
12130 BUILTINFLAG="-fno-builtin"
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12134 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12135 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12136 $as_echo_n "(cached) " >&6
12137 else
12138 ac_wine_try_cflags_saved=$CFLAGS
12139 CFLAGS="$CFLAGS -fno-strict-aliasing"
12140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141 /* end confdefs.h. */
12142 int main(int argc, char **argv) { return 0; }
12143 _ACEOF
12144 if ac_fn_c_try_link "$LINENO"; then :
12145 ac_cv_cflags__fno_strict_aliasing=yes
12146 else
12147 ac_cv_cflags__fno_strict_aliasing=no
12149 rm -f core conftest.err conftest.$ac_objext \
12150 conftest$ac_exeext conftest.$ac_ext
12151 CFLAGS=$ac_wine_try_cflags_saved
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12154 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12155 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12156 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12159 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12160 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12161 $as_echo_n "(cached) " >&6
12162 else
12163 ac_wine_try_cflags_saved=$CFLAGS
12164 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166 /* end confdefs.h. */
12167 int main(int argc, char **argv) { return 0; }
12168 _ACEOF
12169 if ac_fn_c_try_link "$LINENO"; then :
12170 ac_cv_cflags__Wdeclaration_after_statement=yes
12171 else
12172 ac_cv_cflags__Wdeclaration_after_statement=no
12174 rm -f core conftest.err conftest.$ac_objext \
12175 conftest$ac_exeext conftest.$ac_ext
12176 CFLAGS=$ac_wine_try_cflags_saved
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12179 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12180 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12181 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12184 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12185 if ${ac_cv_cflags__Wempty_body+:} false; then :
12186 $as_echo_n "(cached) " >&6
12187 else
12188 ac_wine_try_cflags_saved=$CFLAGS
12189 CFLAGS="$CFLAGS -Wempty-body"
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12192 int main(int argc, char **argv) { return 0; }
12193 _ACEOF
12194 if ac_fn_c_try_link "$LINENO"; then :
12195 ac_cv_cflags__Wempty_body=yes
12196 else
12197 ac_cv_cflags__Wempty_body=no
12199 rm -f core conftest.err conftest.$ac_objext \
12200 conftest$ac_exeext conftest.$ac_ext
12201 CFLAGS=$ac_wine_try_cflags_saved
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12204 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12205 if test $ac_cv_cflags__Wempty_body = yes; then :
12206 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12209 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12210 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12211 $as_echo_n "(cached) " >&6
12212 else
12213 ac_wine_try_cflags_saved=$CFLAGS
12214 CFLAGS="$CFLAGS -Wstrict-prototypes"
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12217 int main(int argc, char **argv) { return 0; }
12218 _ACEOF
12219 if ac_fn_c_try_link "$LINENO"; then :
12220 ac_cv_cflags__Wstrict_prototypes=yes
12221 else
12222 ac_cv_cflags__Wstrict_prototypes=no
12224 rm -f core conftest.err conftest.$ac_objext \
12225 conftest$ac_exeext conftest.$ac_ext
12226 CFLAGS=$ac_wine_try_cflags_saved
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12229 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12230 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12231 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12234 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12235 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 ac_wine_try_cflags_saved=$CFLAGS
12239 CFLAGS="$CFLAGS -Wtype-limits"
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12242 int main(int argc, char **argv) { return 0; }
12243 _ACEOF
12244 if ac_fn_c_try_link "$LINENO"; then :
12245 ac_cv_cflags__Wtype_limits=yes
12246 else
12247 ac_cv_cflags__Wtype_limits=no
12249 rm -f core conftest.err conftest.$ac_objext \
12250 conftest$ac_exeext conftest.$ac_ext
12251 CFLAGS=$ac_wine_try_cflags_saved
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12254 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12255 if test $ac_cv_cflags__Wtype_limits = yes; then :
12256 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12259 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12260 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 ac_wine_try_cflags_saved=$CFLAGS
12264 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12267 int main(int argc, char **argv) { return 0; }
12268 _ACEOF
12269 if ac_fn_c_try_link "$LINENO"; then :
12270 ac_cv_cflags__Wunused_but_set_parameter=yes
12271 else
12272 ac_cv_cflags__Wunused_but_set_parameter=no
12274 rm -f core conftest.err conftest.$ac_objext \
12275 conftest$ac_exeext conftest.$ac_ext
12276 CFLAGS=$ac_wine_try_cflags_saved
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12279 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12280 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12281 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12284 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12285 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12286 $as_echo_n "(cached) " >&6
12287 else
12288 ac_wine_try_cflags_saved=$CFLAGS
12289 CFLAGS="$CFLAGS -Wwrite-strings"
12290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291 /* end confdefs.h. */
12292 int main(int argc, char **argv) { return 0; }
12293 _ACEOF
12294 if ac_fn_c_try_link "$LINENO"; then :
12295 ac_cv_cflags__Wwrite_strings=yes
12296 else
12297 ac_cv_cflags__Wwrite_strings=no
12299 rm -f core conftest.err conftest.$ac_objext \
12300 conftest$ac_exeext conftest.$ac_ext
12301 CFLAGS=$ac_wine_try_cflags_saved
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12304 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12305 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12306 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12309 saved_CFLAGS="$CFLAGS"
12310 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12312 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12313 if ${ac_cv_c_string_h_warnings+:} false; then :
12314 $as_echo_n "(cached) " >&6
12315 else
12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12318 #include <string.h>
12320 main ()
12324 return 0;
12326 _ACEOF
12327 if ac_fn_c_try_compile "$LINENO"; then :
12328 ac_cv_c_string_h_warnings=no
12329 else
12330 ac_cv_c_string_h_warnings=yes
12332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12335 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12336 CFLAGS="$saved_CFLAGS"
12337 if test "$ac_cv_c_string_h_warnings" = "no"
12338 then
12339 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12342 saved_CFLAGS="$CFLAGS"
12343 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12345 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12346 if ${ac_cv_c_logicalop_noisy+:} false; then :
12347 $as_echo_n "(cached) " >&6
12348 else
12349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350 /* end confdefs.h. */
12351 #include <string.h>
12353 main ()
12355 char*f(const char *h,char n) {return strchr(h,n);}
12357 return 0;
12359 _ACEOF
12360 if ac_fn_c_try_compile "$LINENO"; then :
12361 ac_cv_c_logicalop_noisy=no
12362 else
12363 ac_cv_c_logicalop_noisy=yes
12365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12368 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12369 CFLAGS="$saved_CFLAGS"
12370 if test "$ac_cv_c_logicalop_noisy" = "no"
12371 then
12372 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12375 if test "x$enable_maintainer_mode" = "xyes"
12376 then
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12378 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12379 if ${ac_cv_cflags__Werror+:} false; then :
12380 $as_echo_n "(cached) " >&6
12381 else
12382 ac_wine_try_cflags_saved=$CFLAGS
12383 CFLAGS="$CFLAGS -Werror"
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__Werror=yes
12390 else
12391 ac_cv_cflags__Werror=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__Werror" >&5
12398 $as_echo "$ac_cv_cflags__Werror" >&6; }
12399 if test $ac_cv_cflags__Werror = yes; then :
12400 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12404 saved_CFLAGS="$CFLAGS"
12405 CFLAGS="$CFLAGS -Werror"
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12407 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12408 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12409 $as_echo_n "(cached) " >&6
12410 else
12411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12412 /* end confdefs.h. */
12413 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12415 main ()
12419 return 0;
12421 _ACEOF
12422 if ac_fn_c_try_compile "$LINENO"; then :
12423 ac_cv_have_ms_hook_prologue="yes"
12424 else
12425 ac_cv_have_ms_hook_prologue="no"
12427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12430 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12431 CFLAGS="$saved_CFLAGS"
12432 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12433 then
12435 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12437 else
12438 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12445 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12446 if ${ac_cv_c_fortify_enabled+:} false; then :
12447 $as_echo_n "(cached) " >&6
12448 else
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12451 #include <string.h>
12453 main ()
12455 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12456 #error Fortify enabled
12457 #endif
12459 return 0;
12461 _ACEOF
12462 if ac_fn_c_try_compile "$LINENO"; then :
12463 ac_cv_c_fortify_enabled=no
12464 else
12465 ac_cv_c_fortify_enabled=yes
12467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12470 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12471 if test "$ac_cv_c_fortify_enabled" = yes
12472 then
12473 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12478 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12479 if ${ac_cv_c_extern_prefix+:} false; then :
12480 $as_echo_n "(cached) " >&6
12481 else
12482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h. */
12484 extern int ac_test;
12486 main ()
12488 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12490 return 0;
12492 _ACEOF
12493 if ac_fn_c_try_link "$LINENO"; then :
12494 ac_cv_c_extern_prefix="yes"
12495 else
12496 ac_cv_c_extern_prefix="no"
12498 rm -f core conftest.err conftest.$ac_objext \
12499 conftest$ac_exeext conftest.$ac_ext
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12502 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12504 case $host_cpu in
12505 *i[3456789]86*)
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12507 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12508 if ${ac_cv_c_stdcall_suffix+:} false; then :
12509 $as_echo_n "(cached) " >&6
12510 else
12511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512 /* end confdefs.h. */
12513 #ifndef _MSC_VER
12514 #define __stdcall __attribute__((__stdcall__))
12515 #endif
12516 int __stdcall ac_test(int i) { return i; }
12518 main ()
12520 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12522 return 0;
12524 _ACEOF
12525 if ac_fn_c_try_link "$LINENO"; then :
12526 ac_cv_c_stdcall_suffix="yes"
12527 else
12528 ac_cv_c_stdcall_suffix="no"
12530 rm -f core conftest.err conftest.$ac_objext \
12531 conftest$ac_exeext conftest.$ac_ext
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12534 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12535 *) ac_cv_c_stdcall_suffix="no" ;;
12536 esac
12539 if test "$ac_cv_c_extern_prefix" = "yes"
12540 then
12541 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12543 asm_name_prefix="_"
12544 else
12545 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12547 asm_name_prefix=""
12551 if test "$ac_cv_c_stdcall_suffix" = "yes"
12552 then
12553 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12555 else
12556 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12562 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12563 if ${ac_cv_asm_func_def+:} false; then :
12564 $as_echo_n "(cached) " >&6
12565 else
12566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h. */
12570 main ()
12572 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12574 return 0;
12576 _ACEOF
12577 if ac_fn_c_try_link "$LINENO"; then :
12578 ac_cv_asm_func_def=".def"
12579 else
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12584 main ()
12586 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12588 return 0;
12590 _ACEOF
12591 if ac_fn_c_try_link "$LINENO"; then :
12592 ac_cv_asm_func_def=".type @function"
12593 else
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12598 main ()
12600 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12602 return 0;
12604 _ACEOF
12605 if ac_fn_c_try_link "$LINENO"; then :
12606 ac_cv_asm_func_def=".type 2"
12607 else
12608 ac_cv_asm_func_def="unknown"
12610 rm -f core conftest.err conftest.$ac_objext \
12611 conftest$ac_exeext conftest.$ac_ext
12613 rm -f core conftest.err conftest.$ac_objext \
12614 conftest$ac_exeext conftest.$ac_ext
12616 rm -f core conftest.err conftest.$ac_objext \
12617 conftest$ac_exeext conftest.$ac_ext
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12620 $as_echo "$ac_cv_asm_func_def" >&6; }
12623 case "$ac_cv_asm_func_def" in
12624 ".def")
12625 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12627 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12628 ".type @function")
12629 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12631 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12632 ".type 2")
12633 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12635 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12637 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12639 asm_func_header="" ;;
12640 esac
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12643 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12644 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12645 $as_echo_n "(cached) " >&6
12646 else
12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648 /* end confdefs.h. */
12649 asm(".text\n\t.long 0");
12651 main ()
12655 return 0;
12657 _ACEOF
12658 if ac_fn_c_try_compile "$LINENO"; then :
12659 ac_cv_c_asm_outside_funcs="yes"
12660 else
12661 ac_cv_c_asm_outside_funcs="no"
12663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12666 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12669 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12670 if ${ac_cv_c_dot_previous+:} false; then :
12671 $as_echo_n "(cached) " >&6
12672 else
12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h. */
12677 main ()
12679 asm(".text\nac_test:\t.long 0\n\t.previous");
12681 return 0;
12683 _ACEOF
12684 if ac_fn_c_try_link "$LINENO"; then :
12685 ac_cv_c_dot_previous="yes"
12686 else
12687 ac_cv_c_dot_previous="no"
12689 rm -f core conftest.err conftest.$ac_objext \
12690 conftest$ac_exeext conftest.$ac_ext
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12693 $as_echo "$ac_cv_c_dot_previous" >&6; }
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12696 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12697 if ${ac_cv_c_cfi_support+:} false; then :
12698 $as_echo_n "(cached) " >&6
12699 else
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h. */
12702 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12704 main ()
12708 return 0;
12710 _ACEOF
12711 if ac_fn_c_try_compile "$LINENO"; then :
12712 ac_cv_c_cfi_support="yes"
12713 else
12714 ac_cv_c_cfi_support="no"
12716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12719 $as_echo "$ac_cv_c_cfi_support" >&6; }
12721 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12722 asm_func_trailer=""
12723 if test "$ac_cv_c_dot_previous" = "yes"
12724 then
12725 asm_func_trailer="\\n\\t.previous"
12727 if test "$ac_cv_c_cfi_support" = "yes"
12728 then
12729 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12730 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12732 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12734 UNWINDFLAGS=-fasynchronous-unwind-tables
12736 else
12737 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12741 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12744 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12745 then
12746 cat >>confdefs.h <<_ACEOF
12747 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12748 _ACEOF
12750 else
12751 cat >>confdefs.h <<_ACEOF
12752 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12753 _ACEOF
12757 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12760 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12764 LDPATH=""
12766 case $build_os in
12767 cygwin*|mingw32*)
12768 TOOLSEXT=".exe"
12770 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12772 darwin*|macosx*)
12775 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12777 esac
12779 case $host_os in
12780 mingw32*)
12781 CRTLIBS="-lmsvcrt"
12783 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12786 esac
12788 MAIN_BINARY="wine"
12790 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12792 case $host_os in
12793 linux*)
12794 case $host_cpu in
12795 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12797 x86_64*) EXTRA_BINARIES="wine64-preloader"
12799 esac
12801 esac
12804 ac_save_CFLAGS="$CFLAGS"
12805 CFLAGS="$CFLAGS $BUILTINFLAG"
12806 for ac_func in \
12807 _finite \
12808 _isnan \
12809 _pclose \
12810 _popen \
12811 _snprintf \
12812 _spawnvp \
12813 _strdup \
12814 _stricmp \
12815 _strnicmp \
12816 _strtoi64 \
12817 _strtoui64 \
12818 _vsnprintf \
12819 asctime_r \
12820 chsize \
12821 dlopen \
12822 epoll_create \
12823 ffs \
12824 finite \
12825 fnmatch \
12826 fork \
12827 fpclass \
12828 fstatfs \
12829 fstatvfs \
12830 ftruncate \
12831 futimes \
12832 futimesat \
12833 getattrlist \
12834 getdirentries \
12835 getopt_long \
12836 getpagesize \
12837 getpwuid \
12838 gettimeofday \
12839 getuid \
12840 kqueue \
12841 lstat \
12842 memmove \
12843 mmap \
12844 pclose \
12845 pipe2 \
12846 poll \
12847 popen \
12848 port_create \
12849 prctl \
12850 pread \
12851 pwrite \
12852 readdir \
12853 readlink \
12854 sched_yield \
12855 select \
12856 setproctitle \
12857 setrlimit \
12858 settimeofday \
12859 sigaltstack \
12860 sigprocmask \
12861 snprintf \
12862 spawnvp \
12863 statfs \
12864 statvfs \
12865 strcasecmp \
12866 strdup \
12867 strerror \
12868 strncasecmp \
12869 strtold \
12870 strtoll \
12871 strtoull \
12872 symlink \
12873 tcgetattr \
12874 thr_kill2 \
12875 timegm \
12876 usleep \
12877 vsnprintf \
12878 wait4 \
12879 waitpid \
12881 do :
12882 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12883 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12884 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12885 cat >>confdefs.h <<_ACEOF
12886 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12887 _ACEOF
12890 done
12892 CFLAGS="$ac_save_CFLAGS"
12894 if test "$ac_cv_func_dlopen" = no
12895 then
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12897 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12898 if ${ac_cv_lib_dl_dlopen+:} false; then :
12899 $as_echo_n "(cached) " >&6
12900 else
12901 ac_check_lib_save_LIBS=$LIBS
12902 LIBS="-ldl $LIBS"
12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12904 /* end confdefs.h. */
12906 /* Override any GCC internal prototype to avoid an error.
12907 Use char because int might match the return type of a GCC
12908 builtin and then its argument prototype would still apply. */
12909 #ifdef __cplusplus
12910 extern "C"
12911 #endif
12912 char dlopen ();
12914 main ()
12916 return dlopen ();
12918 return 0;
12920 _ACEOF
12921 if ac_fn_c_try_link "$LINENO"; then :
12922 ac_cv_lib_dl_dlopen=yes
12923 else
12924 ac_cv_lib_dl_dlopen=no
12926 rm -f core conftest.err conftest.$ac_objext \
12927 conftest$ac_exeext conftest.$ac_ext
12928 LIBS=$ac_check_lib_save_LIBS
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12931 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12932 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12933 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12934 LIBDL="-ldl"
12939 ac_wine_check_funcs_save_LIBS="$LIBS"
12940 LIBS="$LIBS $LIBDL"
12941 for ac_func in dladdr
12942 do :
12943 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12944 if test "x$ac_cv_func_dladdr" = xyes; then :
12945 cat >>confdefs.h <<_ACEOF
12946 #define HAVE_DLADDR 1
12947 _ACEOF
12950 done
12952 LIBS="$ac_wine_check_funcs_save_LIBS"
12954 if test "$ac_cv_func_poll" = no
12955 then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12957 $as_echo_n "checking for poll in -lpoll... " >&6; }
12958 if ${ac_cv_lib_poll_poll+:} false; then :
12959 $as_echo_n "(cached) " >&6
12960 else
12961 ac_check_lib_save_LIBS=$LIBS
12962 LIBS="-lpoll $LIBS"
12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964 /* end confdefs.h. */
12966 /* Override any GCC internal prototype to avoid an error.
12967 Use char because int might match the return type of a GCC
12968 builtin and then its argument prototype would still apply. */
12969 #ifdef __cplusplus
12970 extern "C"
12971 #endif
12972 char poll ();
12974 main ()
12976 return poll ();
12978 return 0;
12980 _ACEOF
12981 if ac_fn_c_try_link "$LINENO"; then :
12982 ac_cv_lib_poll_poll=yes
12983 else
12984 ac_cv_lib_poll_poll=no
12986 rm -f core conftest.err conftest.$ac_objext \
12987 conftest$ac_exeext conftest.$ac_ext
12988 LIBS=$ac_check_lib_save_LIBS
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12991 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12992 if test "x$ac_cv_lib_poll_poll" = xyes; then :
12993 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12994 LIBPOLL="-lpoll"
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13001 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13002 if ${ac_cv_search_gethostbyname+:} false; then :
13003 $as_echo_n "(cached) " >&6
13004 else
13005 ac_func_search_save_LIBS=$LIBS
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13009 /* Override any GCC internal prototype to avoid an error.
13010 Use char because int might match the return type of a GCC
13011 builtin and then its argument prototype would still apply. */
13012 #ifdef __cplusplus
13013 extern "C"
13014 #endif
13015 char gethostbyname ();
13017 main ()
13019 return gethostbyname ();
13021 return 0;
13023 _ACEOF
13024 for ac_lib in '' nsl; do
13025 if test -z "$ac_lib"; then
13026 ac_res="none required"
13027 else
13028 ac_res=-l$ac_lib
13029 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13031 if ac_fn_c_try_link "$LINENO"; then :
13032 ac_cv_search_gethostbyname=$ac_res
13034 rm -f core conftest.err conftest.$ac_objext \
13035 conftest$ac_exeext
13036 if ${ac_cv_search_gethostbyname+:} false; then :
13037 break
13039 done
13040 if ${ac_cv_search_gethostbyname+:} false; then :
13042 else
13043 ac_cv_search_gethostbyname=no
13045 rm conftest.$ac_ext
13046 LIBS=$ac_func_search_save_LIBS
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13049 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13050 ac_res=$ac_cv_search_gethostbyname
13051 if test "$ac_res" != no; then :
13052 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13058 $as_echo_n "checking for library containing connect... " >&6; }
13059 if ${ac_cv_search_connect+:} false; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 ac_func_search_save_LIBS=$LIBS
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13066 /* Override any GCC internal prototype to avoid an error.
13067 Use char because int might match the return type of a GCC
13068 builtin and then its argument prototype would still apply. */
13069 #ifdef __cplusplus
13070 extern "C"
13071 #endif
13072 char connect ();
13074 main ()
13076 return connect ();
13078 return 0;
13080 _ACEOF
13081 for ac_lib in '' socket; do
13082 if test -z "$ac_lib"; then
13083 ac_res="none required"
13084 else
13085 ac_res=-l$ac_lib
13086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13088 if ac_fn_c_try_link "$LINENO"; then :
13089 ac_cv_search_connect=$ac_res
13091 rm -f core conftest.err conftest.$ac_objext \
13092 conftest$ac_exeext
13093 if ${ac_cv_search_connect+:} false; then :
13094 break
13096 done
13097 if ${ac_cv_search_connect+:} false; then :
13099 else
13100 ac_cv_search_connect=no
13102 rm conftest.$ac_ext
13103 LIBS=$ac_func_search_save_LIBS
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13106 $as_echo "$ac_cv_search_connect" >&6; }
13107 ac_res=$ac_cv_search_connect
13108 if test "$ac_res" != no; then :
13109 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13115 $as_echo_n "checking for library containing inet_aton... " >&6; }
13116 if ${ac_cv_search_inet_aton+:} false; then :
13117 $as_echo_n "(cached) " >&6
13118 else
13119 ac_func_search_save_LIBS=$LIBS
13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h. */
13123 /* Override any GCC internal prototype to avoid an error.
13124 Use char because int might match the return type of a GCC
13125 builtin and then its argument prototype would still apply. */
13126 #ifdef __cplusplus
13127 extern "C"
13128 #endif
13129 char inet_aton ();
13131 main ()
13133 return inet_aton ();
13135 return 0;
13137 _ACEOF
13138 for ac_lib in '' resolv; do
13139 if test -z "$ac_lib"; then
13140 ac_res="none required"
13141 else
13142 ac_res=-l$ac_lib
13143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13145 if ac_fn_c_try_link "$LINENO"; then :
13146 ac_cv_search_inet_aton=$ac_res
13148 rm -f core conftest.err conftest.$ac_objext \
13149 conftest$ac_exeext
13150 if ${ac_cv_search_inet_aton+:} false; then :
13151 break
13153 done
13154 if ${ac_cv_search_inet_aton+:} false; then :
13156 else
13157 ac_cv_search_inet_aton=no
13159 rm conftest.$ac_ext
13160 LIBS=$ac_func_search_save_LIBS
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13163 $as_echo "$ac_cv_search_inet_aton" >&6; }
13164 ac_res=$ac_cv_search_inet_aton
13165 if test "$ac_res" != no; then :
13166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13171 for ac_func in \
13172 getaddrinfo \
13173 getnameinfo \
13174 getnetbyname \
13175 getprotobyname \
13176 getprotobynumber \
13177 getservbyport \
13178 inet_network \
13179 inet_ntop \
13180 inet_pton \
13181 sendmsg \
13182 socketpair \
13184 do :
13185 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13186 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13187 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13188 cat >>confdefs.h <<_ACEOF
13189 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13190 _ACEOF
13193 done
13196 LDAPLIBS=""
13198 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13199 then
13200 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13202 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13204 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13205 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13206 $as_echo_n "(cached) " >&6
13207 else
13208 ac_check_lib_save_LIBS=$LIBS
13209 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211 /* end confdefs.h. */
13213 /* Override any GCC internal prototype to avoid an error.
13214 Use char because int might match the return type of a GCC
13215 builtin and then its argument prototype would still apply. */
13216 #ifdef __cplusplus
13217 extern "C"
13218 #endif
13219 char ldap_initialize ();
13221 main ()
13223 return ldap_initialize ();
13225 return 0;
13227 _ACEOF
13228 if ac_fn_c_try_link "$LINENO"; then :
13229 ac_cv_lib_ldap_r_ldap_initialize=yes
13230 else
13231 ac_cv_lib_ldap_r_ldap_initialize=no
13233 rm -f core conftest.err conftest.$ac_objext \
13234 conftest$ac_exeext conftest.$ac_ext
13235 LIBS=$ac_check_lib_save_LIBS
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13238 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13239 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13241 $as_echo_n "checking for ber_init in -llber... " >&6; }
13242 if ${ac_cv_lib_lber_ber_init+:} false; then :
13243 $as_echo_n "(cached) " >&6
13244 else
13245 ac_check_lib_save_LIBS=$LIBS
13246 LIBS="-llber $LIBPTHREAD $LIBS"
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13250 /* Override any GCC internal prototype to avoid an error.
13251 Use char because int might match the return type of a GCC
13252 builtin and then its argument prototype would still apply. */
13253 #ifdef __cplusplus
13254 extern "C"
13255 #endif
13256 char ber_init ();
13258 main ()
13260 return ber_init ();
13262 return 0;
13264 _ACEOF
13265 if ac_fn_c_try_link "$LINENO"; then :
13266 ac_cv_lib_lber_ber_init=yes
13267 else
13268 ac_cv_lib_lber_ber_init=no
13270 rm -f core conftest.err conftest.$ac_objext \
13271 conftest$ac_exeext conftest.$ac_ext
13272 LIBS=$ac_check_lib_save_LIBS
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13275 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13276 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13278 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13280 LDAPLIBS="-lldap_r -llber"
13287 ac_wine_check_funcs_save_LIBS="$LIBS"
13288 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13289 for ac_func in \
13290 ldap_count_references \
13291 ldap_first_reference \
13292 ldap_next_reference \
13293 ldap_parse_reference \
13294 ldap_parse_sort_control \
13295 ldap_parse_sortresponse_control \
13296 ldap_parse_vlv_control \
13297 ldap_parse_vlvresponse_control
13298 do :
13299 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13300 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13301 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13302 cat >>confdefs.h <<_ACEOF
13303 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13304 _ACEOF
13307 done
13309 LIBS="$ac_wine_check_funcs_save_LIBS"
13311 if test "x$LDAPLIBS" = "x"; then :
13312 case "x$with_ldap" in
13313 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13314 xno) ;;
13315 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13316 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13317 esac
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13321 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13322 if ${wine_cv_one_arg_mkdir+:} false; then :
13323 $as_echo_n "(cached) " >&6
13324 else
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13327 #include <sys/stat.h>
13329 main ()
13331 mkdir("foo");
13333 return 0;
13335 _ACEOF
13336 if ac_fn_c_try_compile "$LINENO"; then :
13337 wine_cv_one_arg_mkdir=yes
13338 else
13339 wine_cv_one_arg_mkdir=no
13341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13344 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13345 if test "$wine_cv_one_arg_mkdir" = "yes"
13346 then
13348 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13353 $as_echo_n "checking for sched_setaffinity... " >&6; }
13354 if ${wine_cv_have_sched_setaffinity+:} false; then :
13355 $as_echo_n "(cached) " >&6
13356 else
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13359 #define _GNU_SOURCE
13360 #include <sched.h>
13362 main ()
13364 sched_setaffinity(0, 0, 0);
13366 return 0;
13368 _ACEOF
13369 if ac_fn_c_try_link "$LINENO"; then :
13370 wine_cv_have_sched_setaffinity=yes
13371 else
13372 wine_cv_have_sched_setaffinity=no
13374 rm -f core conftest.err conftest.$ac_objext \
13375 conftest$ac_exeext conftest.$ac_ext
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13378 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13379 if test "$wine_cv_have_sched_setaffinity" = "yes"
13380 then
13382 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13388 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13389 if ${ac_cv_c_const+:} false; then :
13390 $as_echo_n "(cached) " >&6
13391 else
13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13396 main ()
13398 /* FIXME: Include the comments suggested by Paul. */
13399 #ifndef __cplusplus
13400 /* Ultrix mips cc rejects this. */
13401 typedef int charset[2];
13402 const charset cs;
13403 /* SunOS 4.1.1 cc rejects this. */
13404 char const *const *pcpcc;
13405 char **ppc;
13406 /* NEC SVR4.0.2 mips cc rejects this. */
13407 struct point {int x, y;};
13408 static struct point const zero = {0,0};
13409 /* AIX XL C 1.02.0.0 rejects this.
13410 It does not let you subtract one const X* pointer from another in
13411 an arm of an if-expression whose if-part is not a constant
13412 expression */
13413 const char *g = "string";
13414 pcpcc = &g + (g ? g-g : 0);
13415 /* HPUX 7.0 cc rejects these. */
13416 ++pcpcc;
13417 ppc = (char**) pcpcc;
13418 pcpcc = (char const *const *) ppc;
13419 { /* SCO 3.2v4 cc rejects this. */
13420 char *t;
13421 char const *s = 0 ? (char *) 0 : (char const *) 0;
13423 *t++ = 0;
13424 if (s) return 0;
13426 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13427 int x[] = {25, 17};
13428 const int *foo = &x[0];
13429 ++foo;
13431 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13432 typedef const int *iptr;
13433 iptr p = 0;
13434 ++p;
13436 { /* AIX XL C 1.02.0.0 rejects this saying
13437 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13438 struct s { int j; const int *ap[3]; };
13439 struct s *b; b->j = 5;
13441 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13442 const int foo = 10;
13443 if (!foo) return 0;
13445 return !cs[0] && !zero.x;
13446 #endif
13449 return 0;
13451 _ACEOF
13452 if ac_fn_c_try_compile "$LINENO"; then :
13453 ac_cv_c_const=yes
13454 else
13455 ac_cv_c_const=no
13457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13460 $as_echo "$ac_cv_c_const" >&6; }
13461 if test $ac_cv_c_const = no; then
13463 $as_echo "#define const /**/" >>confdefs.h
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13468 $as_echo_n "checking for inline... " >&6; }
13469 if ${ac_cv_c_inline+:} false; then :
13470 $as_echo_n "(cached) " >&6
13471 else
13472 ac_cv_c_inline=no
13473 for ac_kw in inline __inline__ __inline; do
13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h. */
13476 #ifndef __cplusplus
13477 typedef int foo_t;
13478 static $ac_kw foo_t static_foo () {return 0; }
13479 $ac_kw foo_t foo () {return 0; }
13480 #endif
13482 _ACEOF
13483 if ac_fn_c_try_compile "$LINENO"; then :
13484 ac_cv_c_inline=$ac_kw
13486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13487 test "$ac_cv_c_inline" != no && break
13488 done
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13492 $as_echo "$ac_cv_c_inline" >&6; }
13494 case $ac_cv_c_inline in
13495 inline | yes) ;;
13497 case $ac_cv_c_inline in
13498 no) ac_val=;;
13499 *) ac_val=$ac_cv_c_inline;;
13500 esac
13501 cat >>confdefs.h <<_ACEOF
13502 #ifndef __cplusplus
13503 #define inline $ac_val
13504 #endif
13505 _ACEOF
13507 esac
13509 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13510 if test "x$ac_cv_type_mode_t" = xyes; then :
13512 cat >>confdefs.h <<_ACEOF
13513 #define HAVE_MODE_T 1
13514 _ACEOF
13518 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13519 if test "x$ac_cv_type_off_t" = xyes; then :
13521 cat >>confdefs.h <<_ACEOF
13522 #define HAVE_OFF_T 1
13523 _ACEOF
13527 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13528 if test "x$ac_cv_type_pid_t" = xyes; then :
13530 cat >>confdefs.h <<_ACEOF
13531 #define HAVE_PID_T 1
13532 _ACEOF
13536 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13537 if test "x$ac_cv_type_size_t" = xyes; then :
13539 cat >>confdefs.h <<_ACEOF
13540 #define HAVE_SIZE_T 1
13541 _ACEOF
13545 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13546 if test "x$ac_cv_type_ssize_t" = xyes; then :
13548 cat >>confdefs.h <<_ACEOF
13549 #define HAVE_SSIZE_T 1
13550 _ACEOF
13554 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13555 if test "x$ac_cv_type_long_long" = xyes; then :
13557 cat >>confdefs.h <<_ACEOF
13558 #define HAVE_LONG_LONG 1
13559 _ACEOF
13563 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13564 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13566 cat >>confdefs.h <<_ACEOF
13567 #define HAVE_FSBLKCNT_T 1
13568 _ACEOF
13572 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13573 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13575 cat >>confdefs.h <<_ACEOF
13576 #define HAVE_FSFILCNT_T 1
13577 _ACEOF
13582 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13583 #include <signal.h>
13585 if test "x$ac_cv_type_sigset_t" = xyes; then :
13587 cat >>confdefs.h <<_ACEOF
13588 #define HAVE_SIGSET_T 1
13589 _ACEOF
13594 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13596 if test "x$ac_cv_type_request_sense" = xyes; then :
13598 cat >>confdefs.h <<_ACEOF
13599 #define HAVE_REQUEST_SENSE 1
13600 _ACEOF
13606 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13607 #ifdef HAVE_SYS_SOCKET_H
13608 #include <sys/socket.h>
13609 #endif
13610 #ifdef HAVE_SYS_SOCKETVAR_H
13611 #include <sys/socketvar.h>
13612 #endif
13613 #ifdef HAVE_NET_ROUTE_H
13614 #include <net/route.h>
13615 #endif
13616 #ifdef HAVE_NETINET_IN_H
13617 #include <netinet/in.h>
13618 #endif
13619 #ifdef HAVE_NETINET_IN_SYSTM_H
13620 #include <netinet/in_systm.h>
13621 #endif
13622 #ifdef HAVE_NETINET_IP_H
13623 #include <netinet/ip.h>
13624 #endif
13625 #ifdef HAVE_NETINET_IN_PCB_H
13626 #include <netinet/in_pcb.h>
13627 #endif
13629 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13631 cat >>confdefs.h <<_ACEOF
13632 #define HAVE_STRUCT_XINPGEN 1
13633 _ACEOF
13639 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13640 #include <linux/input.h>
13641 #endif
13643 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13645 cat >>confdefs.h <<_ACEOF
13646 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13647 _ACEOF
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13654 $as_echo_n "checking for sigaddset... " >&6; }
13655 if ${wine_cv_have_sigaddset+:} false; then :
13656 $as_echo_n "(cached) " >&6
13657 else
13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h. */
13660 #include <signal.h>
13662 main ()
13664 sigset_t set; sigaddset(&set,SIGTERM);
13666 return 0;
13668 _ACEOF
13669 if ac_fn_c_try_link "$LINENO"; then :
13670 wine_cv_have_sigaddset=yes
13671 else
13672 wine_cv_have_sigaddset=no
13674 rm -f core conftest.err conftest.$ac_objext \
13675 conftest$ac_exeext conftest.$ac_ext
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13678 $as_echo "$wine_cv_have_sigaddset" >&6; }
13679 if test "$wine_cv_have_sigaddset" = "yes"
13680 then
13682 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13688 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13689 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13690 $as_echo_n "(cached) " >&6
13691 else
13692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13694 #include <netdb.h>
13696 main ()
13699 char *name=0;
13700 struct hostent he;
13701 struct hostent *result;
13702 char *buf=0;
13703 int bufsize=0;
13704 int errnr;
13705 char *addr=0;
13706 int addrlen=0;
13707 int addrtype=0;
13708 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13709 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13712 return 0;
13714 _ACEOF
13715 if ac_fn_c_try_link "$LINENO"; then :
13716 wine_cv_linux_gethostbyname_r_6=yes
13717 else
13718 wine_cv_linux_gethostbyname_r_6=no
13721 rm -f core conftest.err conftest.$ac_objext \
13722 conftest$ac_exeext conftest.$ac_ext
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13726 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13727 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13728 then
13730 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13734 if test "$ac_cv_header_linux_joystick_h" = "yes"
13735 then
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13737 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13738 if ${wine_cv_linux_joystick_22_api+:} false; then :
13739 $as_echo_n "(cached) " >&6
13740 else
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13744 #include <sys/ioctl.h>
13745 #include <sys/types.h>
13746 #include <linux/joystick.h>
13748 struct js_event blub;
13749 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13750 #error "no 2.2 header"
13751 #endif
13754 main ()
13756 /*empty*/
13758 return 0;
13760 _ACEOF
13761 if ac_fn_c_try_compile "$LINENO"; then :
13762 wine_cv_linux_joystick_22_api=yes
13763 else
13764 wine_cv_linux_joystick_22_api=no
13766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13770 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13771 if test "$wine_cv_linux_joystick_22_api" = "yes"
13772 then
13774 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13780 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13781 #ifdef HAVE_SYS_PARAM_H
13782 # include <sys/param.h>
13783 #endif
13784 #ifdef HAVE_SYS_MOUNT_H
13785 # include <sys/mount.h>
13786 #endif
13787 #ifdef HAVE_SYS_VFS_H
13788 # include <sys/vfs.h>
13789 #endif
13790 #ifdef HAVE_SYS_STATFS_H
13791 # include <sys/statfs.h>
13792 #endif
13794 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13796 cat >>confdefs.h <<_ACEOF
13797 #define HAVE_STRUCT_STATFS_F_BFREE 1
13798 _ACEOF
13802 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13803 #ifdef HAVE_SYS_PARAM_H
13804 # include <sys/param.h>
13805 #endif
13806 #ifdef HAVE_SYS_MOUNT_H
13807 # include <sys/mount.h>
13808 #endif
13809 #ifdef HAVE_SYS_VFS_H
13810 # include <sys/vfs.h>
13811 #endif
13812 #ifdef HAVE_SYS_STATFS_H
13813 # include <sys/statfs.h>
13814 #endif
13816 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13818 cat >>confdefs.h <<_ACEOF
13819 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13820 _ACEOF
13824 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13825 #ifdef HAVE_SYS_PARAM_H
13826 # include <sys/param.h>
13827 #endif
13828 #ifdef HAVE_SYS_MOUNT_H
13829 # include <sys/mount.h>
13830 #endif
13831 #ifdef HAVE_SYS_VFS_H
13832 # include <sys/vfs.h>
13833 #endif
13834 #ifdef HAVE_SYS_STATFS_H
13835 # include <sys/statfs.h>
13836 #endif
13838 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13840 cat >>confdefs.h <<_ACEOF
13841 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13842 _ACEOF
13846 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13847 #ifdef HAVE_SYS_PARAM_H
13848 # include <sys/param.h>
13849 #endif
13850 #ifdef HAVE_SYS_MOUNT_H
13851 # include <sys/mount.h>
13852 #endif
13853 #ifdef HAVE_SYS_VFS_H
13854 # include <sys/vfs.h>
13855 #endif
13856 #ifdef HAVE_SYS_STATFS_H
13857 # include <sys/statfs.h>
13858 #endif
13860 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13862 cat >>confdefs.h <<_ACEOF
13863 #define HAVE_STRUCT_STATFS_F_FFREE 1
13864 _ACEOF
13868 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13869 #ifdef HAVE_SYS_PARAM_H
13870 # include <sys/param.h>
13871 #endif
13872 #ifdef HAVE_SYS_MOUNT_H
13873 # include <sys/mount.h>
13874 #endif
13875 #ifdef HAVE_SYS_VFS_H
13876 # include <sys/vfs.h>
13877 #endif
13878 #ifdef HAVE_SYS_STATFS_H
13879 # include <sys/statfs.h>
13880 #endif
13882 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13884 cat >>confdefs.h <<_ACEOF
13885 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13886 _ACEOF
13890 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13891 #ifdef HAVE_SYS_PARAM_H
13892 # include <sys/param.h>
13893 #endif
13894 #ifdef HAVE_SYS_MOUNT_H
13895 # include <sys/mount.h>
13896 #endif
13897 #ifdef HAVE_SYS_VFS_H
13898 # include <sys/vfs.h>
13899 #endif
13900 #ifdef HAVE_SYS_STATFS_H
13901 # include <sys/statfs.h>
13902 #endif
13904 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13906 cat >>confdefs.h <<_ACEOF
13907 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13908 _ACEOF
13914 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13915 #include <sys/statvfs.h>
13916 #endif
13918 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
13920 cat >>confdefs.h <<_ACEOF
13921 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13922 _ACEOF
13928 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13929 #ifdef HAVE_SYS_SOCKET_H
13930 # include <sys/socket.h>
13931 #endif
13932 #ifdef HAVE_SYS_UN_H
13933 # include <sys/un.h>
13934 #endif
13936 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
13938 cat >>confdefs.h <<_ACEOF
13939 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13940 _ACEOF
13944 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13945 #ifdef HAVE_SYS_SOCKET_H
13946 # include <sys/socket.h>
13947 #endif
13948 #ifdef HAVE_SYS_UN_H
13949 # include <sys/un.h>
13950 #endif
13952 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13954 cat >>confdefs.h <<_ACEOF
13955 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13956 _ACEOF
13960 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13961 #ifdef HAVE_SYS_SOCKET_H
13962 # include <sys/socket.h>
13963 #endif
13964 #ifdef HAVE_SYS_UN_H
13965 # include <sys/un.h>
13966 #endif
13968 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
13970 cat >>confdefs.h <<_ACEOF
13971 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13972 _ACEOF
13978 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13979 #ifdef HAVE_SCSI_SG_H
13980 #include <scsi/sg.h>
13981 #endif
13983 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
13985 cat >>confdefs.h <<_ACEOF
13986 #define HAVE_SCSIREQ_T_CMD 1
13987 _ACEOF
13991 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>
13992 #ifdef HAVE_SCSI_SG_H
13993 #include <scsi/sg.h>
13994 #endif
13996 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
13998 cat >>confdefs.h <<_ACEOF
13999 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
14000 _ACEOF
14006 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14008 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
14010 cat >>confdefs.h <<_ACEOF
14011 #define HAVE_SIGINFO_T_SI_FD 1
14012 _ACEOF
14018 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14019 #ifdef HAVE_SYS_MTIO_H
14020 #include <sys/mtio.h>
14021 #endif
14023 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14025 cat >>confdefs.h <<_ACEOF
14026 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14027 _ACEOF
14031 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14032 #ifdef HAVE_SYS_MTIO_H
14033 #include <sys/mtio.h>
14034 #endif
14036 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14038 cat >>confdefs.h <<_ACEOF
14039 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14040 _ACEOF
14044 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14045 #ifdef HAVE_SYS_MTIO_H
14046 #include <sys/mtio.h>
14047 #endif
14049 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14051 cat >>confdefs.h <<_ACEOF
14052 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14053 _ACEOF
14059 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14060 #include <getopt.h>
14061 #endif
14063 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14065 cat >>confdefs.h <<_ACEOF
14066 #define HAVE_STRUCT_OPTION_NAME 1
14067 _ACEOF
14073 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14074 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14076 cat >>confdefs.h <<_ACEOF
14077 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14078 _ACEOF
14082 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14083 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14085 cat >>confdefs.h <<_ACEOF
14086 #define HAVE_STRUCT_STAT_ST_MTIM 1
14087 _ACEOF
14091 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14092 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14094 cat >>confdefs.h <<_ACEOF
14095 #define HAVE_STRUCT_STAT_ST_CTIM 1
14096 _ACEOF
14100 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14101 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14103 cat >>confdefs.h <<_ACEOF
14104 #define HAVE_STRUCT_STAT_ST_ATIM 1
14105 _ACEOF
14111 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
14112 #include <sys/types.h>
14113 #endif
14114 #ifdef HAVE_NETINET_IN_H
14115 #include <netinet/in.h>
14116 #endif
14118 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14120 cat >>confdefs.h <<_ACEOF
14121 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14122 _ACEOF
14128 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14129 #include <sys/types.h>
14130 #endif
14131 #ifdef HAVE_NETINET_IN_H
14132 # include <netinet/in.h>
14133 #endif
14134 #ifdef HAVE_ARPA_NAMESER_H
14135 # include <arpa/nameser.h>
14136 #endif
14138 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14140 cat >>confdefs.h <<_ACEOF
14141 #define HAVE_NS_MSG__MSG_PTR 1
14142 _ACEOF
14148 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14149 #include <sys/types.h>
14150 #endif
14151 #ifdef HAVE_ALIAS_H
14152 #include <alias.h>
14153 #endif
14154 #ifdef HAVE_SYS_SOCKET_H
14155 #include <sys/socket.h>
14156 #endif
14157 #ifdef HAVE_SYS_SOCKETVAR_H
14158 #include <sys/socketvar.h>
14159 #endif
14160 #ifdef HAVE_SYS_TIMEOUT_H
14161 #include <sys/timeout.h>
14162 #endif
14163 #ifdef HAVE_NETINET_IN_H
14164 #include <netinet/in.h>
14165 #endif
14166 #ifdef HAVE_NETINET_IN_SYSTM_H
14167 #include <netinet/in_systm.h>
14168 #endif
14169 #ifdef HAVE_NETINET_IP_H
14170 #include <netinet/ip.h>
14171 #endif
14172 #ifdef HAVE_NETINET_IP_VAR_H
14173 #include <netinet/ip_var.h>
14174 #endif
14175 #ifdef HAVE_NETINET_IP_ICMP_H
14176 #include <netinet/ip_icmp.h>
14177 #endif
14178 #ifdef HAVE_NETINET_ICMP_VAR
14179 #include <netinet/icmp_var.h>
14180 #endif
14182 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14184 cat >>confdefs.h <<_ACEOF
14185 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14186 _ACEOF
14192 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14193 #include <sys/types.h>
14194 #endif
14195 #ifdef HAVE_NET_IF_H
14196 # include <net/if.h>
14197 #endif
14199 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14201 cat >>confdefs.h <<_ACEOF
14202 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14203 _ACEOF
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14210 $as_echo_n "checking for timezone variable... " >&6; }
14211 if ${ac_cv_have_timezone+:} false; then :
14212 $as_echo_n "(cached) " >&6
14213 else
14214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14215 /* end confdefs.h. */
14216 #include <time.h>
14218 main ()
14220 timezone = 1
14222 return 0;
14224 _ACEOF
14225 if ac_fn_c_try_link "$LINENO"; then :
14226 ac_cv_have_timezone="yes"
14227 else
14228 ac_cv_have_timezone="no"
14230 rm -f core conftest.err conftest.$ac_objext \
14231 conftest$ac_exeext conftest.$ac_ext
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14234 $as_echo "$ac_cv_have_timezone" >&6; }
14235 if test "$ac_cv_have_timezone" = "yes"
14236 then
14238 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14242 $as_echo_n "checking for daylight variable... " >&6; }
14243 if ${ac_cv_have_daylight+:} false; then :
14244 $as_echo_n "(cached) " >&6
14245 else
14246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14247 /* end confdefs.h. */
14248 #include <time.h>
14250 main ()
14252 daylight = 1
14254 return 0;
14256 _ACEOF
14257 if ac_fn_c_try_link "$LINENO"; then :
14258 ac_cv_have_daylight="yes"
14259 else
14260 ac_cv_have_daylight="no"
14262 rm -f core conftest.err conftest.$ac_objext \
14263 conftest$ac_exeext conftest.$ac_ext
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14266 $as_echo "$ac_cv_have_daylight" >&6; }
14267 if test "$ac_cv_have_daylight" = "yes"
14268 then
14270 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14274 ac_save_LIBS="$LIBS"
14275 LIBS="$LIBS -lm"
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14277 $as_echo_n "checking for isinf... " >&6; }
14278 if ${ac_cv_have_isinf+:} false; then :
14279 $as_echo_n "(cached) " >&6
14280 else
14281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h. */
14283 #include <math.h>
14285 main ()
14287 float f = 0.0; return isinf(f)
14289 return 0;
14291 _ACEOF
14292 if ac_fn_c_try_link "$LINENO"; then :
14293 ac_cv_have_isinf="yes"
14294 else
14295 ac_cv_have_isinf="no"
14297 rm -f core conftest.err conftest.$ac_objext \
14298 conftest$ac_exeext conftest.$ac_ext
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14301 $as_echo "$ac_cv_have_isinf" >&6; }
14302 if test "$ac_cv_have_isinf" = "yes"
14303 then
14305 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14310 $as_echo_n "checking for isnan... " >&6; }
14311 if ${ac_cv_have_isnan+:} false; then :
14312 $as_echo_n "(cached) " >&6
14313 else
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14316 #include <math.h>
14318 main ()
14320 float f = 0.0; return isnan(f)
14322 return 0;
14324 _ACEOF
14325 if ac_fn_c_try_link "$LINENO"; then :
14326 ac_cv_have_isnan="yes"
14327 else
14328 ac_cv_have_isnan="no"
14330 rm -f core conftest.err conftest.$ac_objext \
14331 conftest$ac_exeext conftest.$ac_ext
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14334 $as_echo "$ac_cv_have_isnan" >&6; }
14335 if test "$ac_cv_have_isnan" = "yes"
14336 then
14338 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14341 LIBS="$ac_save_LIBS"
14344 case $host_cpu in
14345 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14346 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14347 if ${ac_cv_cpp_def___i386__+:} false; then :
14348 $as_echo_n "(cached) " >&6
14349 else
14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h. */
14352 #ifndef __i386__
14354 #endif
14355 _ACEOF
14356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14357 $EGREP "yes" >/dev/null 2>&1; then :
14358 ac_cv_cpp_def___i386__=yes
14359 else
14360 ac_cv_cpp_def___i386__=no
14362 rm -f conftest*
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14366 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14367 if test $ac_cv_cpp_def___i386__ = yes; then :
14368 CFLAGS="$CFLAGS -D__i386__"
14369 LINTFLAGS="$LINTFLAGS -D__i386__"
14370 fi ;;
14371 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14372 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14373 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14374 $as_echo_n "(cached) " >&6
14375 else
14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h. */
14378 #ifndef __x86_64__
14380 #endif
14381 _ACEOF
14382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14383 $EGREP "yes" >/dev/null 2>&1; then :
14384 ac_cv_cpp_def___x86_64__=yes
14385 else
14386 ac_cv_cpp_def___x86_64__=no
14388 rm -f conftest*
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14392 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14393 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14394 CFLAGS="$CFLAGS -D__x86_64__"
14395 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14396 fi ;;
14397 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14398 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14399 if ${ac_cv_cpp_def___sparc__+:} false; then :
14400 $as_echo_n "(cached) " >&6
14401 else
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403 /* end confdefs.h. */
14404 #ifndef __sparc__
14406 #endif
14407 _ACEOF
14408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14409 $EGREP "yes" >/dev/null 2>&1; then :
14410 ac_cv_cpp_def___sparc__=yes
14411 else
14412 ac_cv_cpp_def___sparc__=no
14414 rm -f conftest*
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14418 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14419 if test $ac_cv_cpp_def___sparc__ = yes; then :
14420 CFLAGS="$CFLAGS -D__sparc__"
14421 LINTFLAGS="$LINTFLAGS -D__sparc__"
14422 fi ;;
14423 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14424 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14425 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14426 $as_echo_n "(cached) " >&6
14427 else
14428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h. */
14430 #ifndef __powerpc__
14432 #endif
14433 _ACEOF
14434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14435 $EGREP "yes" >/dev/null 2>&1; then :
14436 ac_cv_cpp_def___powerpc__=yes
14437 else
14438 ac_cv_cpp_def___powerpc__=no
14440 rm -f conftest*
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14444 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14445 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14446 CFLAGS="$CFLAGS -D__powerpc__"
14447 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14448 fi ;;
14449 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14450 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14451 if ${ac_cv_cpp_def___arm__+:} false; then :
14452 $as_echo_n "(cached) " >&6
14453 else
14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455 /* end confdefs.h. */
14456 #ifndef __arm__
14458 #endif
14459 _ACEOF
14460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14461 $EGREP "yes" >/dev/null 2>&1; then :
14462 ac_cv_cpp_def___arm__=yes
14463 else
14464 ac_cv_cpp_def___arm__=no
14466 rm -f conftest*
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14470 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14471 if test $ac_cv_cpp_def___arm__ = yes; then :
14472 CFLAGS="$CFLAGS -D__arm__"
14473 LINTFLAGS="$LINTFLAGS -D__arm__"
14474 fi ;;
14475 esac
14477 case $host_vendor in
14478 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14479 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14480 if ${ac_cv_cpp_def___sun__+:} false; then :
14481 $as_echo_n "(cached) " >&6
14482 else
14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484 /* end confdefs.h. */
14485 #ifndef __sun__
14487 #endif
14488 _ACEOF
14489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14490 $EGREP "yes" >/dev/null 2>&1; then :
14491 ac_cv_cpp_def___sun__=yes
14492 else
14493 ac_cv_cpp_def___sun__=no
14495 rm -f conftest*
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14499 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14500 if test $ac_cv_cpp_def___sun__ = yes; then :
14501 CFLAGS="$CFLAGS -D__sun__"
14502 LINTFLAGS="$LINTFLAGS -D__sun__"
14503 fi ;;
14504 esac
14510 ac_config_commands="$ac_config_commands include/stamp-h"
14513 ALL_MAKEFILE_DEPENDS="
14514 # Rules automatically generated by configure
14516 .INIT: Makefile
14517 .MAKEFILEDEPS:
14518 all: Makefile
14519 Makefile: Makefile.in Make.vars.in Make.rules config.status
14520 @./config.status Make.tmp Makefile"
14522 ALL_POT_FILES=""
14523 ALL_TEST_RESOURCES=""
14526 wine_fn_append_file ()
14528 as_fn_append $1 " \\$as_nl $2"
14531 wine_fn_append_rule ()
14533 as_fn_append $1 "$as_nl$2"
14536 wine_fn_has_flag ()
14538 expr ",$2," : ".*,$1,.*" >/dev/null
14541 wine_fn_all_dir_rules ()
14543 ac_dir=$1
14544 ac_alldeps=$2
14545 ac_makedep="\$(MAKEDEP)"
14546 ac_input=Make.vars.in:$ac_dir/Makefile.in
14547 if test $ac_dir != tools
14548 then
14549 ac_alldeps="$2 $ac_makedep"
14551 case $2 in
14552 *.in) ac_input=$ac_input:$2 ;;
14553 *) ac_makedep="$2 $ac_makedep" ;;
14554 esac
14556 wine_fn_append_file ALL_DIRS $ac_dir
14557 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14558 "__clean__: $ac_dir/__clean__
14559 .PHONY: $ac_dir/__clean__
14560 $ac_dir/__clean__: $ac_dir/Makefile
14561 @cd $ac_dir && \$(MAKE) clean
14562 \$(RM) $ac_dir/Makefile
14563 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14564 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14565 depend: $ac_dir/__depend__
14566 .PHONY: $ac_dir/__depend__
14567 $ac_dir/__depend__: $ac_makedep dummy
14568 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14571 wine_fn_config_makefile ()
14573 ac_dir=$1
14574 ac_enable=$2
14575 ac_flags=$3
14576 ac_rules=$4
14577 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14578 return 0
14581 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
14582 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14583 "all: $ac_dir
14584 .PHONY: $ac_dir
14585 $ac_dir: $ac_dir/Makefile dummy
14586 @cd $ac_dir && \$(MAKE)"
14588 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14590 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14591 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14592 $ac_dir/__install__:: $ac_dir
14593 @cd $ac_dir && \$(MAKE) install
14594 $ac_dir/__uninstall__:: $ac_dir/Makefile
14595 @cd $ac_dir && \$(MAKE) uninstall
14596 install:: $ac_dir/__install__
14597 __uninstall__: $ac_dir/__uninstall__"
14599 if wine_fn_has_flag install-lib $ac_flags
14600 then
14601 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14602 ".PHONY: $ac_dir/__install-lib__
14603 $ac_dir/__install-lib__:: $ac_dir
14604 @cd $ac_dir && \$(MAKE) install-lib
14605 install-lib:: $ac_dir/__install-lib__"
14608 if wine_fn_has_flag install-dev $ac_flags
14609 then
14610 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14611 ".PHONY: $ac_dir/__install-dev
14612 $ac_dir/__install-dev__:: $ac_dir
14613 @cd $ac_dir && \$(MAKE) install-dev
14614 install-dev:: $ac_dir/__install-dev__"
14618 wine_fn_config_lib ()
14620 ac_name=$1
14621 ac_flags=$2
14622 ac_dir=dlls/$ac_name
14623 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14625 if wine_fn_has_flag install-dev $ac_flags
14626 then :
14627 else
14628 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14629 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14630 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14631 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14632 $ac_dir/__uninstall__::
14633 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14634 install install-dev:: $ac_dir/__install__
14635 __uninstall__: $ac_dir/__uninstall__"
14638 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14639 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
14642 wine_fn_config_dll ()
14644 ac_name=$1
14645 ac_dir=dlls/$ac_name
14646 ac_enable=$2
14647 ac_flags=$3
14648 ac_implib=${4:-$ac_name}
14649 ac_file=$ac_dir/lib$ac_implib
14650 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14651 ac_implibflags=""
14653 case $ac_name in
14654 *16) ac_implibflags=" -m16" ;;
14655 esac
14657 wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14659 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14660 test "$ac_enable" != enable_win16 || return 0
14661 else
14662 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14663 "all: $ac_dir
14664 .PHONY: $ac_dir $ac_dir/__install__ $ac_dir/__install-lib__ $ac_dir/__uninstall__
14665 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14666 @cd $ac_dir && \$(MAKE)
14667 $ac_dir/__install__:: $ac_dir/Makefile __builddeps__
14668 @cd $ac_dir && \$(MAKE) install
14669 $ac_dir/__install-lib__:: $ac_dir/Makefile __builddeps__
14670 @cd $ac_dir && \$(MAKE) install-lib
14671 $ac_dir/__uninstall__:: $ac_dir/Makefile
14672 @cd $ac_dir && \$(MAKE) uninstall
14673 install:: $ac_dir/__install__
14674 install-lib:: $ac_dir/__install-lib__
14675 __uninstall__: $ac_dir/__uninstall__
14676 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14677 @cd $ac_dir && \$(MAKE) \$@"
14679 if test "x$enable_maintainer_mode" = xyes
14680 then
14681 if wine_fn_has_flag mc $ac_flags
14682 then
14683 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14684 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14685 "$ac_dir/msg.pot: $ac_dir"
14687 if wine_fn_has_flag po $ac_flags
14688 then
14689 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14690 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14691 "$ac_dir/rsrc.pot: $ac_dir"
14696 if wine_fn_has_flag staticimplib $ac_flags
14697 then
14698 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14699 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14700 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14701 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14702 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14703 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14704 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14705 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14706 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14707 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14708 $ac_dir/__uninstall__::
14709 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14710 install install-dev:: $ac_dir/__install-dev__
14711 __uninstall__: $ac_dir/__uninstall__"
14713 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14714 then
14715 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14716 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14717 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14718 $ac_dir/__uninstall__::
14719 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14722 if test "x$CROSSTEST_DISABLE" = x
14723 then
14724 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14725 "__builddeps__: $ac_file.cross.a
14726 $ac_file.cross.a: $ac_dir/Makefile dummy
14727 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14730 elif wine_fn_has_flag implib $ac_flags
14731 then
14732 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14733 "__builddeps__: $ac_file.$IMPLIBEXT
14734 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14735 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14736 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14737 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14738 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14739 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14740 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14741 $ac_dir/__uninstall__::
14742 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14743 install install-dev:: $ac_dir/__install-dev__
14744 __uninstall__: $ac_dir/__uninstall__"
14745 if test "x$CROSSTEST_DISABLE" = x
14746 then
14747 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14748 "__builddeps__: $ac_file.cross.a
14749 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14750 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14753 if test "$ac_name" != "$ac_implib"
14754 then
14755 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14756 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14757 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14758 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14759 clean::
14760 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14761 if test "x$CROSSTEST_DISABLE" = x
14762 then
14763 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14764 "__builddeps__: dlls/lib$ac_implib.cross.a
14765 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14766 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14772 wine_fn_config_program ()
14774 ac_name=$1
14775 ac_dir=programs/$ac_name
14776 ac_enable=$2
14777 ac_flags=$3
14778 wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules
14780 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14782 else
14783 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14784 "all: $ac_dir
14785 .PHONY: $ac_dir
14786 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14787 @cd $ac_dir && \$(MAKE)"
14789 if test "x$enable_maintainer_mode" = xyes
14790 then
14791 if wine_fn_has_flag mc $ac_flags
14792 then
14793 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14794 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14795 "$ac_dir/msg.pot: $ac_dir"
14797 if wine_fn_has_flag po $ac_flags
14798 then
14799 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14800 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14801 "$ac_dir/rsrc.pot: $ac_dir"
14805 wine_fn_has_flag install $ac_flags || return
14806 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14807 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14808 $ac_dir/__install__:: $ac_dir/Makefile __builddeps__
14809 @cd $ac_dir && \$(MAKE) install
14810 $ac_dir/__uninstall__:: $ac_dir/Makefile
14811 @cd $ac_dir && \$(MAKE) uninstall
14812 install install-lib:: $ac_dir/__install__
14813 __uninstall__: $ac_dir/__uninstall__"
14814 if test -n "$DLLEXT" -a "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14815 then
14816 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14817 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
14818 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14819 $ac_dir/__uninstall__::
14820 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14825 wine_fn_config_test ()
14827 ac_dir=$1
14828 ac_name=$2
14829 ac_flags=$3
14830 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
14831 wine_fn_all_dir_rules $ac_dir Maketest.rules
14833 if test "x$enable_tests" = xno; then :
14835 else
14836 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14837 "all: $ac_dir
14838 .PHONY: $ac_dir
14839 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
14840 @cd $ac_dir && \$(MAKE)
14841 programs/winetest: $ac_dir
14842 check test: $ac_dir/__test__
14843 .PHONY: $ac_dir/__test__
14844 $ac_dir/__test__: dummy
14845 @cd $ac_dir && \$(MAKE) test
14846 testclean::
14847 \$(RM) $ac_dir/*.ok"
14849 if test "x$CROSSTEST_DISABLE" = x
14850 then
14851 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14852 "crosstest: $ac_dir/__crosstest__
14853 .PHONY: $ac_dir/__crosstest__
14854 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14855 @cd $ac_dir && \$(MAKE) crosstest"
14860 wine_fn_config_tool ()
14862 ac_dir=$1
14863 ac_flags=$2
14864 if test "x$enable_tools" = xno; then :
14865 return 0
14868 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
14870 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14871 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
14872 case $ac_dir in
14873 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14874 esac
14877 wine_fn_config_makerules ()
14879 ac_rules=$1
14880 ac_deps=$2
14881 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14882 "$ac_rules: $ac_rules.in $ac_deps config.status
14883 @./config.status $ac_rules
14884 distclean::
14885 \$(RM) $ac_rules"
14888 wine_fn_config_symlink ()
14890 ac_link=$1
14891 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14892 "$ac_link:
14893 @./config.status $ac_link
14894 distclean::
14895 \$(RM) $ac_link"
14898 if test "x$CROSSTEST_DISABLE" != x
14899 then
14900 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14901 "crosstest:
14902 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14904 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14905 wine_fn_config_symlink dlls/shell32/AUTHORS
14906 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14907 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14908 if test "x$enable_fonts" != xno; then
14909 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14910 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14912 if test "x$enable_fonts" != xno; then
14913 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14914 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14916 if test "x$enable_fonts" != xno; then
14917 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14918 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14920 if test "x$enable_fonts" != xno; then
14921 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14922 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14924 if test "x$enable_tools" != xno; then
14925 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14926 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14928 ac_config_links="$ac_config_links wine:tools/winewrapper"
14929 wine_fn_config_symlink wine
14930 if test "x$enable_win64" != xno; then
14931 ac_config_links="$ac_config_links wine64:tools/winewrapper"
14932 wine_fn_config_symlink wine64
14935 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14937 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14939 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14941 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14943 ac_config_commands="$ac_config_commands dlls/user32/resources"
14945 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14947 ac_config_commands="$ac_config_commands include/wine"
14950 wine_fn_config_makerules Make.rules
14951 MAKE_RULES=Make.rules
14952 ac_config_files="$ac_config_files Make.rules"
14954 wine_fn_config_makerules Maketest.rules Make.rules
14955 MAKE_TEST_RULES=Maketest.rules
14956 ac_config_files="$ac_config_files Maketest.rules"
14958 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14959 MAKE_DLL_RULES=dlls/Makedll.rules
14960 ac_config_files="$ac_config_files dlls/Makedll.rules"
14962 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14963 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14964 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14966 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14967 MAKE_PROG_RULES=programs/Makeprog.rules
14968 ac_config_files="$ac_config_files programs/Makeprog.rules"
14971 wine_fn_config_dll acledit enable_acledit
14972 wine_fn_config_dll aclui enable_aclui implib
14973 wine_fn_config_dll activeds enable_activeds implib
14974 wine_fn_config_dll actxprxy enable_actxprxy
14975 wine_fn_config_lib adsiid
14976 wine_fn_config_dll advapi32 enable_advapi32 implib
14977 wine_fn_config_test dlls/advapi32/tests advapi32_test
14978 wine_fn_config_dll advpack enable_advpack implib
14979 wine_fn_config_test dlls/advpack/tests advpack_test
14980 wine_fn_config_dll amstream enable_amstream
14981 wine_fn_config_test dlls/amstream/tests amstream_test
14982 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14983 wine_fn_config_dll atl enable_atl implib
14984 wine_fn_config_test dlls/atl/tests atl_test
14985 wine_fn_config_dll authz enable_authz
14986 wine_fn_config_dll avicap32 enable_avicap32 implib
14987 wine_fn_config_dll avifil32 enable_avifil32 implib,po
14988 wine_fn_config_test dlls/avifil32/tests avifil32_test
14989 wine_fn_config_dll avifile.dll16 enable_win16
14990 wine_fn_config_dll avrt enable_avrt implib
14991 wine_fn_config_dll bcrypt enable_bcrypt
14992 wine_fn_config_dll browseui enable_browseui po
14993 wine_fn_config_test dlls/browseui/tests browseui_test
14994 wine_fn_config_dll cabinet enable_cabinet implib
14995 wine_fn_config_test dlls/cabinet/tests cabinet_test
14996 wine_fn_config_dll capi2032 enable_capi2032 implib
14997 wine_fn_config_dll cards enable_cards implib
14998 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14999 wine_fn_config_dll clusapi enable_clusapi implib
15000 wine_fn_config_dll comcat enable_comcat
15001 wine_fn_config_test dlls/comcat/tests comcat_test
15002 wine_fn_config_dll comctl32 enable_comctl32 implib,po
15003 wine_fn_config_test dlls/comctl32/tests comctl32_test
15004 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
15005 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
15006 wine_fn_config_dll comm.drv16 enable_win16
15007 wine_fn_config_dll commdlg.dll16 enable_win16
15008 wine_fn_config_dll compobj.dll16 enable_win16
15009 wine_fn_config_dll compstui enable_compstui implib
15010 wine_fn_config_dll credui enable_credui implib,po
15011 wine_fn_config_test dlls/credui/tests credui_test
15012 wine_fn_config_dll crtdll enable_crtdll implib
15013 wine_fn_config_dll crypt32 enable_crypt32 implib,po
15014 wine_fn_config_test dlls/crypt32/tests crypt32_test
15015 wine_fn_config_dll cryptdlg enable_cryptdlg po
15016 wine_fn_config_dll cryptdll enable_cryptdll implib
15017 wine_fn_config_dll cryptnet enable_cryptnet implib
15018 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
15019 wine_fn_config_dll cryptui enable_cryptui implib,po
15020 wine_fn_config_test dlls/cryptui/tests cryptui_test
15021 wine_fn_config_dll ctapi32 enable_ctapi32
15022 wine_fn_config_dll ctl3d.dll16 enable_win16
15023 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
15024 wine_fn_config_dll ctl3dv2.dll16 enable_win16
15025 wine_fn_config_dll d3d10 enable_d3d10 implib
15026 wine_fn_config_test dlls/d3d10/tests d3d10_test
15027 wine_fn_config_dll d3d10core enable_d3d10core implib
15028 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
15029 wine_fn_config_dll d3d8 enable_d3d8 implib
15030 wine_fn_config_test dlls/d3d8/tests d3d8_test
15031 wine_fn_config_dll d3d9 enable_d3d9 implib
15032 wine_fn_config_test dlls/d3d9/tests d3d9_test
15033 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
15034 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
15035 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
15036 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
15037 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
15038 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
15039 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
15040 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
15041 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
15042 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
15043 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
15044 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
15045 wine_fn_config_dll d3dim enable_d3dim implib
15046 wine_fn_config_dll d3drm enable_d3drm implib
15047 wine_fn_config_test dlls/d3drm/tests d3drm_test
15048 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15049 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15050 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15051 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15052 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15053 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15054 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15055 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15056 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15057 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15058 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15059 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15060 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15061 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15062 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15063 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15064 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15065 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15066 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15067 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15068 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15069 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15070 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15071 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15072 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15073 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15074 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15075 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15076 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15077 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15078 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15079 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15080 wine_fn_config_dll d3dxof enable_d3dxof implib
15081 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15082 wine_fn_config_dll dbgeng enable_dbgeng implib
15083 wine_fn_config_dll dbghelp enable_dbghelp implib
15084 wine_fn_config_dll dciman32 enable_dciman32 implib
15085 wine_fn_config_dll ddeml.dll16 enable_win16
15086 wine_fn_config_dll ddraw enable_ddraw implib
15087 wine_fn_config_test dlls/ddraw/tests ddraw_test
15088 wine_fn_config_dll ddrawex enable_ddrawex
15089 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15090 wine_fn_config_dll devenum enable_devenum po
15091 wine_fn_config_dll dinput enable_dinput implib,staticimplib
15092 wine_fn_config_test dlls/dinput/tests dinput_test
15093 wine_fn_config_dll dinput8 enable_dinput8 implib
15094 wine_fn_config_test dlls/dinput8/tests dinput8_test
15095 wine_fn_config_dll dispdib.dll16 enable_win16
15096 wine_fn_config_dll dispex enable_dispex
15097 wine_fn_config_test dlls/dispex/tests dispex_test
15098 wine_fn_config_dll display.drv16 enable_win16
15099 wine_fn_config_dll dmband enable_dmband
15100 wine_fn_config_dll dmcompos enable_dmcompos
15101 wine_fn_config_dll dmime enable_dmime
15102 wine_fn_config_test dlls/dmime/tests dmime_test
15103 wine_fn_config_dll dmloader enable_dmloader
15104 wine_fn_config_test dlls/dmloader/tests dmloader_test
15105 wine_fn_config_dll dmscript enable_dmscript
15106 wine_fn_config_dll dmstyle enable_dmstyle
15107 wine_fn_config_dll dmsynth enable_dmsynth
15108 wine_fn_config_dll dmusic enable_dmusic
15109 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15110 wine_fn_config_dll dnsapi enable_dnsapi implib
15111 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15112 wine_fn_config_dll dplay enable_dplay implib
15113 wine_fn_config_dll dplayx enable_dplayx implib
15114 wine_fn_config_test dlls/dplayx/tests dplayx_test
15115 wine_fn_config_dll dpnaddr enable_dpnaddr
15116 wine_fn_config_dll dpnet enable_dpnet implib
15117 wine_fn_config_dll dpnhpast enable_dpnhpast
15118 wine_fn_config_dll dpnlobby enable_dpnlobby
15119 wine_fn_config_dll dpwsockx enable_dpwsockx
15120 wine_fn_config_dll drmclien enable_drmclien
15121 wine_fn_config_dll dsound enable_dsound implib
15122 wine_fn_config_test dlls/dsound/tests dsound_test
15123 wine_fn_config_dll dssenh enable_dssenh
15124 wine_fn_config_dll dswave enable_dswave
15125 wine_fn_config_dll dwmapi enable_dwmapi implib
15126 wine_fn_config_dll dxdiagn enable_dxdiagn po
15127 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15128 wine_fn_config_lib dxerr8
15129 wine_fn_config_lib dxerr9
15130 wine_fn_config_dll dxgi enable_dxgi implib
15131 wine_fn_config_test dlls/dxgi/tests dxgi_test
15132 wine_fn_config_lib dxguid
15133 wine_fn_config_dll explorerframe enable_explorerframe
15134 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15135 wine_fn_config_dll faultrep enable_faultrep implib
15136 wine_fn_config_test dlls/faultrep/tests faultrep_test
15137 wine_fn_config_dll fltlib enable_fltlib
15138 wine_fn_config_dll fusion enable_fusion
15139 wine_fn_config_test dlls/fusion/tests fusion_test
15140 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15141 wine_fn_config_dll gameux enable_gameux
15142 wine_fn_config_test dlls/gameux/tests gameux_test
15143 wine_fn_config_dll gdi.exe16 enable_win16
15144 wine_fn_config_dll gdi32 enable_gdi32 implib
15145 wine_fn_config_test dlls/gdi32/tests gdi32_test
15146 wine_fn_config_dll gdiplus enable_gdiplus implib
15147 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15148 wine_fn_config_dll glu32 enable_glu32 implib
15149 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
15150 wine_fn_config_dll gpkcsp enable_gpkcsp
15151 wine_fn_config_dll hal enable_hal
15152 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15153 wine_fn_config_dll hid enable_hid implib
15154 wine_fn_config_dll hlink enable_hlink implib
15155 wine_fn_config_test dlls/hlink/tests hlink_test
15156 wine_fn_config_dll hnetcfg enable_hnetcfg
15157 wine_fn_config_dll httpapi enable_httpapi
15158 wine_fn_config_dll iccvid enable_iccvid po
15159 wine_fn_config_dll icmp enable_icmp
15160 wine_fn_config_dll ifsmgr.vxd enable_win16
15161 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15162 wine_fn_config_dll imagehlp enable_imagehlp implib
15163 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15164 wine_fn_config_dll imm.dll16 enable_win16
15165 wine_fn_config_dll imm32 enable_imm32 implib
15166 wine_fn_config_test dlls/imm32/tests imm32_test
15167 wine_fn_config_dll inetcomm enable_inetcomm implib
15168 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15169 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15170 wine_fn_config_dll inetmib1 enable_inetmib1
15171 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15172 wine_fn_config_dll infosoft enable_infosoft
15173 wine_fn_config_test dlls/infosoft/tests infosoft_test
15174 wine_fn_config_dll initpki enable_initpki
15175 wine_fn_config_dll inkobj enable_inkobj
15176 wine_fn_config_dll inseng enable_inseng
15177 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15178 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15179 wine_fn_config_dll itircl enable_itircl
15180 wine_fn_config_dll itss enable_itss
15181 wine_fn_config_test dlls/itss/tests itss_test
15182 wine_fn_config_dll jscript enable_jscript po
15183 wine_fn_config_test dlls/jscript/tests jscript_test
15184 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15185 wine_fn_config_test dlls/kernel32/tests kernel32_test
15186 wine_fn_config_dll keyboard.drv16 enable_win16
15187 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15188 wine_fn_config_dll ktmw32 enable_ktmw32
15189 wine_fn_config_dll loadperf enable_loadperf implib
15190 wine_fn_config_dll localspl enable_localspl po
15191 wine_fn_config_test dlls/localspl/tests localspl_test
15192 wine_fn_config_dll localui enable_localui po
15193 wine_fn_config_test dlls/localui/tests localui_test
15194 wine_fn_config_dll lz32 enable_lz32 implib
15195 wine_fn_config_test dlls/lz32/tests lz32_test
15196 wine_fn_config_dll lzexpand.dll16 enable_win16
15197 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15198 wine_fn_config_test dlls/mapi32/tests mapi32_test
15199 wine_fn_config_dll mapistub enable_mapistub
15200 wine_fn_config_dll mciavi32 enable_mciavi32
15201 wine_fn_config_dll mcicda enable_mcicda
15202 wine_fn_config_dll mciqtz32 enable_mciqtz32
15203 wine_fn_config_dll mciseq enable_mciseq
15204 wine_fn_config_dll mciwave enable_mciwave
15205 wine_fn_config_dll midimap enable_midimap
15206 wine_fn_config_dll mlang enable_mlang implib
15207 wine_fn_config_test dlls/mlang/tests mlang_test
15208 wine_fn_config_dll mmdevapi enable_mmdevapi
15209 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15210 wine_fn_config_dll mmdevldr.vxd enable_win16
15211 wine_fn_config_dll mmsystem.dll16 enable_win16
15212 wine_fn_config_dll monodebg.vxd enable_win16
15213 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15214 wine_fn_config_dll mouse.drv16 enable_win16
15215 wine_fn_config_dll mpr enable_mpr implib,po
15216 wine_fn_config_dll mprapi enable_mprapi implib
15217 wine_fn_config_dll msacm.dll16 enable_win16
15218 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15219 wine_fn_config_dll msacm32 enable_msacm32 implib
15220 wine_fn_config_test dlls/msacm32/tests msacm32_test
15221 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15222 wine_fn_config_dll mscat32 enable_mscat32
15223 wine_fn_config_dll mscms enable_mscms implib
15224 wine_fn_config_test dlls/mscms/tests mscms_test
15225 wine_fn_config_dll mscoree enable_mscoree
15226 wine_fn_config_test dlls/mscoree/tests mscoree_test
15227 wine_fn_config_dll msctf enable_msctf
15228 wine_fn_config_test dlls/msctf/tests msctf_test
15229 wine_fn_config_dll msdaps enable_msdaps
15230 wine_fn_config_dll msdmo enable_msdmo implib
15231 wine_fn_config_dll msftedit enable_msftedit
15232 wine_fn_config_dll msg711.acm enable_msg711_acm
15233 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15234 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15235 wine_fn_config_dll mshtml enable_mshtml implib,po
15236 wine_fn_config_test dlls/mshtml/tests mshtml_test
15237 wine_fn_config_dll msi enable_msi implib,po
15238 wine_fn_config_test dlls/msi/tests msi_test
15239 wine_fn_config_dll msimg32 enable_msimg32 implib
15240 wine_fn_config_dll msimsg enable_msimsg
15241 wine_fn_config_dll msimtf enable_msimtf
15242 wine_fn_config_dll msisip enable_msisip
15243 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15244 wine_fn_config_dll msnet32 enable_msnet32
15245 wine_fn_config_dll mspatcha enable_mspatcha
15246 wine_fn_config_dll msrle32 enable_msrle32 po
15247 wine_fn_config_dll mssign32 enable_mssign32
15248 wine_fn_config_dll mssip32 enable_mssip32
15249 wine_fn_config_dll mstask enable_mstask
15250 wine_fn_config_test dlls/mstask/tests mstask_test
15251 wine_fn_config_dll msvcirt enable_msvcirt
15252 wine_fn_config_dll msvcp100 enable_msvcp100
15253 wine_fn_config_dll msvcp60 enable_msvcp60
15254 wine_fn_config_dll msvcp70 enable_msvcp70
15255 wine_fn_config_dll msvcp71 enable_msvcp71
15256 wine_fn_config_dll msvcp80 enable_msvcp80
15257 wine_fn_config_dll msvcp90 enable_msvcp90
15258 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15259 wine_fn_config_dll msvcr100 enable_msvcr100
15260 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15261 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15262 wine_fn_config_dll msvcr80 enable_msvcr80
15263 wine_fn_config_dll msvcr90 enable_msvcr90
15264 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15265 wine_fn_config_dll msvcrt enable_msvcrt implib
15266 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15267 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15268 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15269 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15270 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15271 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
15272 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15273 wine_fn_config_dll msvidc32 enable_msvidc32 po
15274 wine_fn_config_dll msvideo.dll16 enable_win16
15275 wine_fn_config_dll mswsock enable_mswsock implib
15276 wine_fn_config_dll msxml enable_msxml
15277 wine_fn_config_dll msxml2 enable_msxml2
15278 wine_fn_config_dll msxml3 enable_msxml3
15279 wine_fn_config_test dlls/msxml3/tests msxml3_test
15280 wine_fn_config_dll msxml4 enable_msxml4
15281 wine_fn_config_dll msxml6 enable_msxml6
15282 wine_fn_config_dll nddeapi enable_nddeapi implib
15283 wine_fn_config_dll netapi32 enable_netapi32 implib
15284 wine_fn_config_test dlls/netapi32/tests netapi32_test
15285 wine_fn_config_dll newdev enable_newdev implib
15286 wine_fn_config_dll normaliz enable_normaliz implib
15287 wine_fn_config_dll npmshtml enable_npmshtml
15288 wine_fn_config_dll ntdll enable_ntdll implib
15289 wine_fn_config_test dlls/ntdll/tests ntdll_test
15290 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15291 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15292 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15293 wine_fn_config_dll ntprint enable_ntprint
15294 wine_fn_config_test dlls/ntprint/tests ntprint_test
15295 wine_fn_config_dll objsel enable_objsel
15296 wine_fn_config_dll odbc32 enable_odbc32 implib
15297 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15298 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15299 wine_fn_config_dll ole2.dll16 enable_win16
15300 wine_fn_config_dll ole2conv.dll16 enable_win16
15301 wine_fn_config_dll ole2disp.dll16 enable_win16
15302 wine_fn_config_dll ole2nls.dll16 enable_win16
15303 wine_fn_config_dll ole2prox.dll16 enable_win16
15304 wine_fn_config_dll ole2thk.dll16 enable_win16
15305 wine_fn_config_dll ole32 enable_ole32 implib
15306 wine_fn_config_test dlls/ole32/tests ole32_test
15307 wine_fn_config_dll oleacc enable_oleacc implib,po
15308 wine_fn_config_test dlls/oleacc/tests oleacc_test
15309 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
15310 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15311 wine_fn_config_dll olecli.dll16 enable_win16
15312 wine_fn_config_dll olecli32 enable_olecli32 implib
15313 wine_fn_config_dll oledb32 enable_oledb32
15314 wine_fn_config_test dlls/oledb32/tests oledb32_test
15315 wine_fn_config_dll oledlg enable_oledlg implib,po
15316 wine_fn_config_dll olepro32 enable_olepro32 implib
15317 wine_fn_config_dll olesvr.dll16 enable_win16
15318 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15319 wine_fn_config_dll olethk32 enable_olethk32
15320 wine_fn_config_dll openal32 enable_openal32
15321 wine_fn_config_dll opencl enable_opencl
15322 wine_fn_config_dll opengl32 enable_opengl32 implib
15323 wine_fn_config_test dlls/opengl32/tests opengl32_test
15324 wine_fn_config_dll pdh enable_pdh implib
15325 wine_fn_config_test dlls/pdh/tests pdh_test
15326 wine_fn_config_dll pidgen enable_pidgen
15327 wine_fn_config_dll powrprof enable_powrprof implib
15328 wine_fn_config_dll printui enable_printui
15329 wine_fn_config_dll propsys enable_propsys implib
15330 wine_fn_config_test dlls/propsys/tests propsys_test
15331 wine_fn_config_dll psapi enable_psapi implib
15332 wine_fn_config_test dlls/psapi/tests psapi_test
15333 wine_fn_config_dll pstorec enable_pstorec
15334 wine_fn_config_dll qcap enable_qcap
15335 wine_fn_config_dll qedit enable_qedit
15336 wine_fn_config_test dlls/qedit/tests qedit_test
15337 wine_fn_config_dll qmgr enable_qmgr
15338 wine_fn_config_test dlls/qmgr/tests qmgr_test
15339 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15340 wine_fn_config_dll quartz enable_quartz implib
15341 wine_fn_config_test dlls/quartz/tests quartz_test
15342 wine_fn_config_dll query enable_query
15343 wine_fn_config_dll rasapi16.dll16 enable_win16
15344 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15345 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15346 wine_fn_config_dll rasdlg enable_rasdlg implib
15347 wine_fn_config_dll regapi enable_regapi
15348 wine_fn_config_dll resutils enable_resutils implib
15349 wine_fn_config_dll riched20 enable_riched20 implib
15350 wine_fn_config_test dlls/riched20/tests riched20_test
15351 wine_fn_config_dll riched32 enable_riched32
15352 wine_fn_config_test dlls/riched32/tests riched32_test
15353 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15354 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15355 wine_fn_config_dll rsabase enable_rsabase
15356 wine_fn_config_dll rsaenh enable_rsaenh implib
15357 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15358 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15359 wine_fn_config_dll rtutils enable_rtutils implib
15360 wine_fn_config_dll samlib enable_samlib
15361 wine_fn_config_dll sane.ds enable_sane_ds po
15362 wine_fn_config_dll scarddlg enable_scarddlg
15363 wine_fn_config_dll sccbase enable_sccbase
15364 wine_fn_config_dll schannel enable_schannel
15365 wine_fn_config_test dlls/schannel/tests schannel_test
15366 wine_fn_config_dll secur32 enable_secur32 implib
15367 wine_fn_config_test dlls/secur32/tests secur32_test
15368 wine_fn_config_dll security enable_security
15369 wine_fn_config_dll sensapi enable_sensapi implib
15370 wine_fn_config_dll serialui enable_serialui implib
15371 wine_fn_config_test dlls/serialui/tests serialui_test
15372 wine_fn_config_dll setupapi enable_setupapi implib,po
15373 wine_fn_config_test dlls/setupapi/tests setupapi_test
15374 wine_fn_config_dll setupx.dll16 enable_win16
15375 wine_fn_config_dll sfc enable_sfc implib
15376 wine_fn_config_dll sfc_os enable_sfc_os implib
15377 wine_fn_config_dll shdoclc enable_shdoclc po
15378 wine_fn_config_dll shdocvw enable_shdocvw implib,po
15379 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15380 wine_fn_config_dll shell.dll16 enable_win16
15381 wine_fn_config_dll shell32 enable_shell32 implib,po
15382 wine_fn_config_test dlls/shell32/tests shell32_test
15383 wine_fn_config_dll shfolder enable_shfolder implib
15384 wine_fn_config_dll shlwapi enable_shlwapi implib,po
15385 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15386 wine_fn_config_dll slbcsp enable_slbcsp
15387 wine_fn_config_dll slc enable_slc implib
15388 wine_fn_config_dll snmpapi enable_snmpapi implib
15389 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15390 wine_fn_config_dll softpub enable_softpub
15391 wine_fn_config_dll sound.drv16 enable_win16
15392 wine_fn_config_dll spoolss enable_spoolss implib
15393 wine_fn_config_test dlls/spoolss/tests spoolss_test
15394 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15395 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15396 wine_fn_config_dll sti enable_sti implib
15397 wine_fn_config_test dlls/sti/tests sti_test
15398 wine_fn_config_dll storage.dll16 enable_win16
15399 wine_fn_config_dll stress.dll16 enable_win16
15400 wine_fn_config_lib strmbase
15401 wine_fn_config_lib strmiids
15402 wine_fn_config_dll svrapi enable_svrapi
15403 wine_fn_config_dll sxs enable_sxs
15404 wine_fn_config_dll system.drv16 enable_win16
15405 wine_fn_config_dll t2embed enable_t2embed
15406 wine_fn_config_dll tapi32 enable_tapi32 implib
15407 wine_fn_config_dll toolhelp.dll16 enable_win16
15408 wine_fn_config_dll traffic enable_traffic
15409 wine_fn_config_dll twain.dll16 enable_win16
15410 wine_fn_config_dll twain_32 enable_twain_32
15411 wine_fn_config_test dlls/twain_32/tests twain_32_test
15412 wine_fn_config_dll typelib.dll16 enable_win16
15413 wine_fn_config_dll unicows enable_unicows implib
15414 wine_fn_config_dll updspapi enable_updspapi
15415 wine_fn_config_dll url enable_url implib
15416 wine_fn_config_dll urlmon enable_urlmon implib
15417 wine_fn_config_test dlls/urlmon/tests urlmon_test
15418 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15419 wine_fn_config_dll user.exe16 enable_win16
15420 wine_fn_config_dll user32 enable_user32 implib,po
15421 wine_fn_config_test dlls/user32/tests user32_test
15422 wine_fn_config_dll userenv enable_userenv implib
15423 wine_fn_config_test dlls/userenv/tests userenv_test
15424 wine_fn_config_dll usp10 enable_usp10 implib
15425 wine_fn_config_test dlls/usp10/tests usp10_test
15426 wine_fn_config_lib uuid
15427 wine_fn_config_dll uxtheme enable_uxtheme implib
15428 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15429 wine_fn_config_dll vbscript enable_vbscript
15430 wine_fn_config_dll vcomp enable_vcomp
15431 wine_fn_config_dll vdhcp.vxd enable_win16
15432 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15433 wine_fn_config_dll ver.dll16 enable_win16
15434 wine_fn_config_dll version enable_version implib
15435 wine_fn_config_test dlls/version/tests version_test
15436 wine_fn_config_dll vmm.vxd enable_win16
15437 wine_fn_config_dll vnbt.vxd enable_win16
15438 wine_fn_config_dll vnetbios.vxd enable_win16
15439 wine_fn_config_dll vtdapi.vxd enable_win16
15440 wine_fn_config_dll vwin32.vxd enable_win16
15441 wine_fn_config_dll w32skrnl enable_win16
15442 wine_fn_config_dll w32sys.dll16 enable_win16
15443 wine_fn_config_dll wbemprox enable_wbemprox
15444 wine_fn_config_dll wer enable_wer implib
15445 wine_fn_config_test dlls/wer/tests wer_test
15446 wine_fn_config_dll wiaservc enable_wiaservc
15447 wine_fn_config_dll win32s16.dll16 enable_win16
15448 wine_fn_config_dll win87em.dll16 enable_win16
15449 wine_fn_config_dll winaspi.dll16 enable_win16
15450 wine_fn_config_dll windebug.dll16 enable_win16
15451 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15452 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15453 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15454 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15455 wine_fn_config_lib winecrt0
15456 wine_fn_config_dll wined3d enable_wined3d implib
15457 wine_fn_config_dll wineesd.drv enable_wineesd_drv
15458 wine_fn_config_dll winegstreamer enable_winegstreamer
15459 wine_fn_config_dll winejack.drv enable_winejack_drv
15460 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15461 wine_fn_config_dll winemapi enable_winemapi
15462 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15463 wine_fn_config_dll winenas.drv enable_winenas_drv
15464 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15465 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib
15466 wine_fn_config_dll wineps16.drv16 enable_win16
15467 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15468 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15469 wine_fn_config_dll winex11.drv enable_winex11_drv
15470 wine_fn_config_dll wing.dll16 enable_win16
15471 wine_fn_config_dll wing32 enable_wing32
15472 wine_fn_config_dll winhttp enable_winhttp implib
15473 wine_fn_config_test dlls/winhttp/tests winhttp_test
15474 wine_fn_config_dll wininet enable_wininet implib,po
15475 wine_fn_config_test dlls/wininet/tests wininet_test
15476 wine_fn_config_dll winmm enable_winmm implib,po
15477 wine_fn_config_test dlls/winmm/tests winmm_test
15478 wine_fn_config_dll winnls.dll16 enable_win16
15479 wine_fn_config_dll winnls32 enable_winnls32 implib
15480 wine_fn_config_dll winscard enable_winscard implib
15481 wine_fn_config_dll winsock.dll16 enable_win16
15482 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
15483 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15484 wine_fn_config_dll winsta enable_winsta
15485 wine_fn_config_dll wintab.dll16 enable_win16
15486 wine_fn_config_dll wintab32 enable_wintab32 implib
15487 wine_fn_config_test dlls/wintab32/tests wintab32_test
15488 wine_fn_config_dll wintrust enable_wintrust implib
15489 wine_fn_config_test dlls/wintrust/tests wintrust_test
15490 wine_fn_config_dll wlanapi enable_wlanapi
15491 wine_fn_config_dll wldap32 enable_wldap32 implib,po
15492 wine_fn_config_test dlls/wldap32/tests wldap32_test
15493 wine_fn_config_dll wmi enable_wmi
15494 wine_fn_config_dll wmiutils enable_wmiutils
15495 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15496 wine_fn_config_dll wow32 enable_win16 implib
15497 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15498 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15499 wine_fn_config_dll wsock32 enable_wsock32 implib
15500 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15501 wine_fn_config_dll wuapi enable_wuapi
15502 wine_fn_config_dll wuaueng enable_wuaueng
15503 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15504 wine_fn_config_dll xinput1_1 enable_xinput1_1
15505 wine_fn_config_dll xinput1_2 enable_xinput1_2
15506 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15507 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15508 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15509 wine_fn_config_dll xmllite enable_xmllite
15510 wine_fn_config_test dlls/xmllite/tests xmllite_test
15511 wine_fn_config_makefile documentation enable_documentation
15512 wine_fn_config_makefile fonts enable_fonts install-lib
15513 wine_fn_config_makefile include enable_include install-dev
15514 wine_fn_config_makefile libs/port enable_libs_port
15515 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
15516 wine_fn_config_makefile libs/wpp enable_libs_wpp
15517 wine_fn_config_makefile loader enable_loader install-lib
15518 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15519 wine_fn_config_program attrib enable_attrib install
15520 wine_fn_config_program cabarc enable_cabarc install
15521 wine_fn_config_program cacls enable_cacls install
15522 wine_fn_config_program clock enable_clock install,po
15523 wine_fn_config_program cmd enable_cmd install,po
15524 wine_fn_config_test programs/cmd/tests cmd.exe_test
15525 wine_fn_config_program cmdlgtst enable_cmdlgtst
15526 wine_fn_config_program control enable_control install
15527 wine_fn_config_program dxdiag enable_dxdiag install,po
15528 wine_fn_config_program eject enable_eject install
15529 wine_fn_config_program expand enable_expand install
15530 wine_fn_config_program explorer enable_explorer install,po
15531 wine_fn_config_program extrac32 enable_extrac32 install
15532 wine_fn_config_program hh enable_hh install
15533 wine_fn_config_program hostname enable_hostname install,po
15534 wine_fn_config_program icinfo enable_icinfo install
15535 wine_fn_config_program iexplore enable_iexplore install
15536 wine_fn_config_program ipconfig enable_ipconfig install,po
15537 wine_fn_config_program lodctr enable_lodctr install
15538 wine_fn_config_program mofcomp enable_mofcomp install
15539 wine_fn_config_program mshta enable_mshta install
15540 wine_fn_config_program msiexec enable_msiexec install,installbin
15541 wine_fn_config_program net enable_net install,po
15542 wine_fn_config_program netsh enable_netsh install
15543 wine_fn_config_program ngen enable_ngen install
15544 wine_fn_config_program notepad enable_notepad install,installbin,po
15545 wine_fn_config_program oleview enable_oleview install,po
15546 wine_fn_config_program ping enable_ping install
15547 wine_fn_config_program plugplay enable_plugplay install
15548 wine_fn_config_program progman enable_progman install,po
15549 wine_fn_config_program reg enable_reg install,po
15550 wine_fn_config_program regedit enable_regedit install,installbin,po
15551 wine_fn_config_test programs/regedit/tests regedit.exe_test
15552 wine_fn_config_program regsvcs enable_regsvcs install
15553 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin
15554 wine_fn_config_program rpcss enable_rpcss install
15555 wine_fn_config_program rundll.exe16 enable_win16 install
15556 wine_fn_config_program rundll32 enable_rundll32 install
15557 wine_fn_config_program sc enable_sc install
15558 wine_fn_config_program secedit enable_secedit install
15559 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15560 wine_fn_config_program services enable_services install
15561 wine_fn_config_program spoolsv enable_spoolsv install
15562 wine_fn_config_program start enable_start install,po
15563 wine_fn_config_program svchost enable_svchost install
15564 wine_fn_config_program taskkill enable_taskkill install,po
15565 wine_fn_config_program taskmgr enable_taskmgr install,po
15566 wine_fn_config_program termsv enable_termsv install
15567 wine_fn_config_program uninstaller enable_uninstaller install,po
15568 wine_fn_config_program unlodctr enable_unlodctr install
15569 wine_fn_config_program view enable_view po
15570 wine_fn_config_program wineboot enable_wineboot install,installbin
15571 wine_fn_config_program winebrowser enable_winebrowser install
15572 wine_fn_config_program winecfg enable_winecfg install,installbin,po
15573 wine_fn_config_program wineconsole enable_wineconsole install,installbin,po
15574 wine_fn_config_program winedbg enable_winedbg install,installbin,po
15575 wine_fn_config_program winedevice enable_winedevice install
15576 wine_fn_config_program winefile enable_winefile install,installbin,po
15577 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15578 wine_fn_config_program winemine enable_winemine install,installbin,po
15579 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15580 wine_fn_config_program winepath enable_winepath install,installbin
15581 wine_fn_config_program winetest enable_winetest
15582 wine_fn_config_program winevdm enable_win16 install
15583 wine_fn_config_program winhelp.exe16 enable_win16 install
15584 wine_fn_config_program winhlp32 enable_winhlp32 install,po
15585 wine_fn_config_program winoldap.mod16 enable_win16 install
15586 wine_fn_config_program winver enable_winver install
15587 wine_fn_config_program wmic enable_wmic install
15588 wine_fn_config_program wordpad enable_wordpad install,po
15589 wine_fn_config_program write enable_write install,po
15590 wine_fn_config_program wscript enable_wscript install
15591 wine_fn_config_test programs/wscript/tests wscript.exe_test
15592 wine_fn_config_program xcopy enable_xcopy install,po
15593 wine_fn_config_makefile server enable_server install-lib
15594 wine_fn_config_tool tools install-dev,install-lib
15595 wine_fn_config_tool tools/widl install-dev
15596 wine_fn_config_tool tools/winebuild install-dev
15597 wine_fn_config_tool tools/winedump install-dev
15598 wine_fn_config_tool tools/winegcc install-dev
15599 wine_fn_config_tool tools/wmc install-dev
15600 wine_fn_config_tool tools/wrc install-dev
15602 LINGUAS="\
15603 ar \
15604 bg \
15605 ca \
15606 cs \
15607 da \
15608 de \
15609 el \
15610 en \
15611 en_US \
15612 eo \
15613 es \
15614 fa \
15615 fi \
15616 fr \
15617 he \
15618 hi \
15619 hu \
15620 it \
15621 ja \
15622 ko \
15623 lt \
15624 ml \
15625 nb_NO \
15626 nl \
15627 or \
15628 pa \
15629 pl \
15630 pt_BR \
15631 pt_PT \
15632 rm \
15633 ro \
15634 ru \
15635 sk \
15636 sl \
15637 sr_RS@cyrillic \
15638 sr_RS@latin \
15639 sv \
15640 te \
15641 th \
15642 tr \
15643 uk \
15644 wa \
15645 zh_CN \
15646 zh_TW"
15650 ac_config_commands="$ac_config_commands Makefile"
15653 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15657 if test "x$enable_maintainer_mode" = xyes
15658 then
15659 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15660 cd \$(srcdir) && autoconf --warnings=all
15661 \$(srcdir)/include/config.h.in: include/stamp-h.in
15662 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15663 cd \$(srcdir) && autoheader --warnings=all
15664 @echo timestamp > \$@
15666 ALL_POT_FILES =$ALL_POT_FILES
15667 all: \$(ALL_PO_FILES)
15668 \$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
15669 msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15670 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15671 msgcat -o \$@ \$(ALL_POT_FILES)"
15674 if test "x$enable_tools" != xno
15675 then
15676 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15677 clean:: __clean__
15678 \$(RM) tools/makedep\$(EXEEXT)"
15681 if test -n "$with_wine64"
15682 then
15683 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15684 fonts server tools:
15685 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15686 $with_wine64/loader/wine:
15687 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15688 $with_wine64/loader/wine-preloader:
15689 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15690 clean::
15691 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15694 cat >confcache <<\_ACEOF
15695 # This file is a shell script that caches the results of configure
15696 # tests run on this system so they can be shared between configure
15697 # scripts and configure runs, see configure's option --config-cache.
15698 # It is not useful on other systems. If it contains results you don't
15699 # want to keep, you may remove or edit it.
15701 # config.status only pays attention to the cache file if you give it
15702 # the --recheck option to rerun configure.
15704 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15705 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15706 # following values.
15708 _ACEOF
15710 # The following way of writing the cache mishandles newlines in values,
15711 # but we know of no workaround that is simple, portable, and efficient.
15712 # So, we kill variables containing newlines.
15713 # Ultrix sh set writes to stderr and can't be redirected directly,
15714 # and sets the high bit in the cache file unless we assign to the vars.
15716 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15717 eval ac_val=\$$ac_var
15718 case $ac_val in #(
15719 *${as_nl}*)
15720 case $ac_var in #(
15721 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15722 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15723 esac
15724 case $ac_var in #(
15725 _ | IFS | as_nl) ;; #(
15726 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15727 *) { eval $ac_var=; unset $ac_var;} ;;
15728 esac ;;
15729 esac
15730 done
15732 (set) 2>&1 |
15733 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15734 *${as_nl}ac_space=\ *)
15735 # `set' does not quote correctly, so add quotes: double-quote
15736 # substitution turns \\\\ into \\, and sed turns \\ into \.
15737 sed -n \
15738 "s/'/'\\\\''/g;
15739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15740 ;; #(
15742 # `set' quotes correctly as required by POSIX, so do not add quotes.
15743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15745 esac |
15746 sort
15748 sed '
15749 /^ac_cv_env_/b end
15750 t clear
15751 :clear
15752 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15753 t end
15754 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15755 :end' >>confcache
15756 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15757 if test -w "$cache_file"; then
15758 if test "x$cache_file" != "x/dev/null"; then
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15760 $as_echo "$as_me: updating cache $cache_file" >&6;}
15761 if test ! -f "$cache_file" || test -h "$cache_file"; then
15762 cat confcache >"$cache_file"
15763 else
15764 case $cache_file in #(
15765 */* | ?:*)
15766 mv -f confcache "$cache_file"$$ &&
15767 mv -f "$cache_file"$$ "$cache_file" ;; #(
15769 mv -f confcache "$cache_file" ;;
15770 esac
15773 else
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15775 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15778 rm -f confcache
15780 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15781 # Let make expand exec_prefix.
15782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15784 DEFS=-DHAVE_CONFIG_H
15786 ac_libobjs=
15787 ac_ltlibobjs=
15789 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15790 # 1. Remove the extension, and $U if already installed.
15791 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15792 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15793 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15794 # will be set to the directory where LIBOBJS objects are built.
15795 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15796 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15797 done
15798 LIBOBJS=$ac_libobjs
15800 LTLIBOBJS=$ac_ltlibobjs
15804 : "${CONFIG_STATUS=./config.status}"
15805 ac_write_fail=0
15806 ac_clean_files_save=$ac_clean_files
15807 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15809 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15810 as_write_fail=0
15811 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15812 #! $SHELL
15813 # Generated by $as_me.
15814 # Run this file to recreate the current configuration.
15815 # Compiler output produced by configure, useful for debugging
15816 # configure, is in config.log if it exists.
15818 debug=false
15819 ac_cs_recheck=false
15820 ac_cs_silent=false
15822 SHELL=\${CONFIG_SHELL-$SHELL}
15823 export SHELL
15824 _ASEOF
15825 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15826 ## -------------------- ##
15827 ## M4sh Initialization. ##
15828 ## -------------------- ##
15830 # Be more Bourne compatible
15831 DUALCASE=1; export DUALCASE # for MKS sh
15832 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15833 emulate sh
15834 NULLCMD=:
15835 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15836 # is contrary to our usage. Disable this feature.
15837 alias -g '${1+"$@"}'='"$@"'
15838 setopt NO_GLOB_SUBST
15839 else
15840 case `(set -o) 2>/dev/null` in #(
15841 *posix*) :
15842 set -o posix ;; #(
15843 *) :
15845 esac
15849 as_nl='
15851 export as_nl
15852 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15853 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15854 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15855 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15856 # Prefer a ksh shell builtin over an external printf program on Solaris,
15857 # but without wasting forks for bash or zsh.
15858 if test -z "$BASH_VERSION$ZSH_VERSION" \
15859 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15860 as_echo='print -r --'
15861 as_echo_n='print -rn --'
15862 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15863 as_echo='printf %s\n'
15864 as_echo_n='printf %s'
15865 else
15866 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15867 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15868 as_echo_n='/usr/ucb/echo -n'
15869 else
15870 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15871 as_echo_n_body='eval
15872 arg=$1;
15873 case $arg in #(
15874 *"$as_nl"*)
15875 expr "X$arg" : "X\\(.*\\)$as_nl";
15876 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15877 esac;
15878 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15880 export as_echo_n_body
15881 as_echo_n='sh -c $as_echo_n_body as_echo'
15883 export as_echo_body
15884 as_echo='sh -c $as_echo_body as_echo'
15887 # The user is always right.
15888 if test "${PATH_SEPARATOR+set}" != set; then
15889 PATH_SEPARATOR=:
15890 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15891 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15892 PATH_SEPARATOR=';'
15897 # IFS
15898 # We need space, tab and new line, in precisely that order. Quoting is
15899 # there to prevent editors from complaining about space-tab.
15900 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15901 # splitting by setting IFS to empty value.)
15902 IFS=" "" $as_nl"
15904 # Find who we are. Look in the path if we contain no directory separator.
15905 as_myself=
15906 case $0 in #((
15907 *[\\/]* ) as_myself=$0 ;;
15908 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15909 for as_dir in $PATH
15911 IFS=$as_save_IFS
15912 test -z "$as_dir" && as_dir=.
15913 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15914 done
15915 IFS=$as_save_IFS
15918 esac
15919 # We did not find ourselves, most probably we were run as `sh COMMAND'
15920 # in which case we are not to be found in the path.
15921 if test "x$as_myself" = x; then
15922 as_myself=$0
15924 if test ! -f "$as_myself"; then
15925 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15926 exit 1
15929 # Unset variables that we do not need and which cause bugs (e.g. in
15930 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15931 # suppresses any "Segmentation fault" message there. '((' could
15932 # trigger a bug in pdksh 5.2.14.
15933 for as_var in BASH_ENV ENV MAIL MAILPATH
15934 do eval test x\${$as_var+set} = xset \
15935 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15936 done
15937 PS1='$ '
15938 PS2='> '
15939 PS4='+ '
15941 # NLS nuisances.
15942 LC_ALL=C
15943 export LC_ALL
15944 LANGUAGE=C
15945 export LANGUAGE
15947 # CDPATH.
15948 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15951 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15952 # ----------------------------------------
15953 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15954 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15955 # script with STATUS, using 1 if that was 0.
15956 as_fn_error ()
15958 as_status=$1; test $as_status -eq 0 && as_status=1
15959 if test "$4"; then
15960 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15961 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15963 $as_echo "$as_me: error: $2" >&2
15964 as_fn_exit $as_status
15965 } # as_fn_error
15968 # as_fn_set_status STATUS
15969 # -----------------------
15970 # Set $? to STATUS, without forking.
15971 as_fn_set_status ()
15973 return $1
15974 } # as_fn_set_status
15976 # as_fn_exit STATUS
15977 # -----------------
15978 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15979 as_fn_exit ()
15981 set +e
15982 as_fn_set_status $1
15983 exit $1
15984 } # as_fn_exit
15986 # as_fn_unset VAR
15987 # ---------------
15988 # Portably unset VAR.
15989 as_fn_unset ()
15991 { eval $1=; unset $1;}
15993 as_unset=as_fn_unset
15994 # as_fn_append VAR VALUE
15995 # ----------------------
15996 # Append the text in VALUE to the end of the definition contained in VAR. Take
15997 # advantage of any shell optimizations that allow amortized linear growth over
15998 # repeated appends, instead of the typical quadratic growth present in naive
15999 # implementations.
16000 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16001 eval 'as_fn_append ()
16003 eval $1+=\$2
16005 else
16006 as_fn_append ()
16008 eval $1=\$$1\$2
16010 fi # as_fn_append
16012 # as_fn_arith ARG...
16013 # ------------------
16014 # Perform arithmetic evaluation on the ARGs, and store the result in the
16015 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16016 # must be portable across $(()) and expr.
16017 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16018 eval 'as_fn_arith ()
16020 as_val=$(( $* ))
16022 else
16023 as_fn_arith ()
16025 as_val=`expr "$@" || test $? -eq 1`
16027 fi # as_fn_arith
16030 if expr a : '\(a\)' >/dev/null 2>&1 &&
16031 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16032 as_expr=expr
16033 else
16034 as_expr=false
16037 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16038 as_basename=basename
16039 else
16040 as_basename=false
16043 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16044 as_dirname=dirname
16045 else
16046 as_dirname=false
16049 as_me=`$as_basename -- "$0" ||
16050 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16051 X"$0" : 'X\(//\)$' \| \
16052 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16053 $as_echo X/"$0" |
16054 sed '/^.*\/\([^/][^/]*\)\/*$/{
16055 s//\1/
16058 /^X\/\(\/\/\)$/{
16059 s//\1/
16062 /^X\/\(\/\).*/{
16063 s//\1/
16066 s/.*/./; q'`
16068 # Avoid depending upon Character Ranges.
16069 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16070 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16071 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16072 as_cr_digits='0123456789'
16073 as_cr_alnum=$as_cr_Letters$as_cr_digits
16075 ECHO_C= ECHO_N= ECHO_T=
16076 case `echo -n x` in #(((((
16077 -n*)
16078 case `echo 'xy\c'` in
16079 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16080 xy) ECHO_C='\c';;
16081 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16082 ECHO_T=' ';;
16083 esac;;
16085 ECHO_N='-n';;
16086 esac
16088 rm -f conf$$ conf$$.exe conf$$.file
16089 if test -d conf$$.dir; then
16090 rm -f conf$$.dir/conf$$.file
16091 else
16092 rm -f conf$$.dir
16093 mkdir conf$$.dir 2>/dev/null
16095 if (echo >conf$$.file) 2>/dev/null; then
16096 if ln -s conf$$.file conf$$ 2>/dev/null; then
16097 as_ln_s='ln -s'
16098 # ... but there are two gotchas:
16099 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16100 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16101 # In both cases, we have to default to `cp -p'.
16102 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16103 as_ln_s='cp -p'
16104 elif ln conf$$.file conf$$ 2>/dev/null; then
16105 as_ln_s=ln
16106 else
16107 as_ln_s='cp -p'
16109 else
16110 as_ln_s='cp -p'
16112 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16113 rmdir conf$$.dir 2>/dev/null
16116 # as_fn_mkdir_p
16117 # -------------
16118 # Create "$as_dir" as a directory, including parents if necessary.
16119 as_fn_mkdir_p ()
16122 case $as_dir in #(
16123 -*) as_dir=./$as_dir;;
16124 esac
16125 test -d "$as_dir" || eval $as_mkdir_p || {
16126 as_dirs=
16127 while :; do
16128 case $as_dir in #(
16129 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16130 *) as_qdir=$as_dir;;
16131 esac
16132 as_dirs="'$as_qdir' $as_dirs"
16133 as_dir=`$as_dirname -- "$as_dir" ||
16134 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16135 X"$as_dir" : 'X\(//\)[^/]' \| \
16136 X"$as_dir" : 'X\(//\)$' \| \
16137 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16138 $as_echo X"$as_dir" |
16139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16140 s//\1/
16143 /^X\(\/\/\)[^/].*/{
16144 s//\1/
16147 /^X\(\/\/\)$/{
16148 s//\1/
16151 /^X\(\/\).*/{
16152 s//\1/
16155 s/.*/./; q'`
16156 test -d "$as_dir" && break
16157 done
16158 test -z "$as_dirs" || eval "mkdir $as_dirs"
16159 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16162 } # as_fn_mkdir_p
16163 if mkdir -p . 2>/dev/null; then
16164 as_mkdir_p='mkdir -p "$as_dir"'
16165 else
16166 test -d ./-p && rmdir ./-p
16167 as_mkdir_p=false
16170 if test -x / >/dev/null 2>&1; then
16171 as_test_x='test -x'
16172 else
16173 if ls -dL / >/dev/null 2>&1; then
16174 as_ls_L_option=L
16175 else
16176 as_ls_L_option=
16178 as_test_x='
16179 eval sh -c '\''
16180 if test -d "$1"; then
16181 test -d "$1/.";
16182 else
16183 case $1 in #(
16184 -*)set "./$1";;
16185 esac;
16186 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16187 ???[sx]*):;;*)false;;esac;fi
16188 '\'' sh
16191 as_executable_p=$as_test_x
16193 # Sed expression to map a string onto a valid CPP name.
16194 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16196 # Sed expression to map a string onto a valid variable name.
16197 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16200 exec 6>&1
16201 ## ----------------------------------- ##
16202 ## Main body of $CONFIG_STATUS script. ##
16203 ## ----------------------------------- ##
16204 _ASEOF
16205 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16208 # Save the log message, to keep $0 and so on meaningful, and to
16209 # report actual input values of CONFIG_FILES etc. instead of their
16210 # values after options handling.
16211 ac_log="
16212 This file was extended by Wine $as_me 1.3.24, which was
16213 generated by GNU Autoconf 2.68. Invocation command line was
16215 CONFIG_FILES = $CONFIG_FILES
16216 CONFIG_HEADERS = $CONFIG_HEADERS
16217 CONFIG_LINKS = $CONFIG_LINKS
16218 CONFIG_COMMANDS = $CONFIG_COMMANDS
16219 $ $0 $@
16221 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16224 _ACEOF
16226 case $ac_config_files in *"
16227 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16228 esac
16230 case $ac_config_headers in *"
16231 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16232 esac
16235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16236 # Files that config.status was made for.
16237 config_files="$ac_config_files"
16238 config_headers="$ac_config_headers"
16239 config_links="$ac_config_links"
16240 config_commands="$ac_config_commands"
16242 _ACEOF
16244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16245 ac_cs_usage="\
16246 \`$as_me' instantiates files and other configuration actions
16247 from templates according to the current configuration. Unless the files
16248 and actions are specified as TAGs, all are instantiated by default.
16250 Usage: $0 [OPTION]... [TAG]...
16252 -h, --help print this help, then exit
16253 -V, --version print version number and configuration settings, then exit
16254 --config print configuration, then exit
16255 -q, --quiet, --silent
16256 do not print progress messages
16257 -d, --debug don't remove temporary files
16258 --recheck update $as_me by reconfiguring in the same conditions
16259 --file=FILE[:TEMPLATE]
16260 instantiate the configuration file FILE
16261 --header=FILE[:TEMPLATE]
16262 instantiate the configuration header FILE
16264 Configuration files:
16265 $config_files
16267 Configuration headers:
16268 $config_headers
16270 Configuration links:
16271 $config_links
16273 Configuration commands:
16274 $config_commands
16276 Report bugs to <wine-devel@winehq.org>.
16277 Wine home page: <http://www.winehq.org>."
16279 _ACEOF
16280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16281 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16282 ac_cs_version="\\
16283 Wine config.status 1.3.24
16284 configured by $0, generated by GNU Autoconf 2.68,
16285 with options \\"\$ac_cs_config\\"
16287 Copyright (C) 2010 Free Software Foundation, Inc.
16288 This config.status script is free software; the Free Software Foundation
16289 gives unlimited permission to copy, distribute and modify it."
16291 ac_pwd='$ac_pwd'
16292 srcdir='$srcdir'
16293 INSTALL='$INSTALL'
16294 test -n "\$AWK" || AWK=awk
16295 _ACEOF
16297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16298 # The default lists apply if the user does not specify any file.
16299 ac_need_defaults=:
16300 while test $# != 0
16302 case $1 in
16303 --*=?*)
16304 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16305 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16306 ac_shift=:
16308 --*=)
16309 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16310 ac_optarg=
16311 ac_shift=:
16314 ac_option=$1
16315 ac_optarg=$2
16316 ac_shift=shift
16318 esac
16320 case $ac_option in
16321 # Handling of the options.
16322 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16323 ac_cs_recheck=: ;;
16324 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16325 $as_echo "$ac_cs_version"; exit ;;
16326 --config | --confi | --conf | --con | --co | --c )
16327 $as_echo "$ac_cs_config"; exit ;;
16328 --debug | --debu | --deb | --de | --d | -d )
16329 debug=: ;;
16330 --file | --fil | --fi | --f )
16331 $ac_shift
16332 case $ac_optarg in
16333 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16334 '') as_fn_error $? "missing file argument" ;;
16335 esac
16336 as_fn_append CONFIG_FILES " '$ac_optarg'"
16337 ac_need_defaults=false;;
16338 --header | --heade | --head | --hea )
16339 $ac_shift
16340 case $ac_optarg in
16341 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16342 esac
16343 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16344 ac_need_defaults=false;;
16345 --he | --h)
16346 # Conflict between --help and --header
16347 as_fn_error $? "ambiguous option: \`$1'
16348 Try \`$0 --help' for more information.";;
16349 --help | --hel | -h )
16350 $as_echo "$ac_cs_usage"; exit ;;
16351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16352 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16353 ac_cs_silent=: ;;
16355 # This is an error.
16356 -*) as_fn_error $? "unrecognized option: \`$1'
16357 Try \`$0 --help' for more information." ;;
16359 *) as_fn_append ac_config_targets " $1"
16360 ac_need_defaults=false ;;
16362 esac
16363 shift
16364 done
16366 ac_configure_extra_args=
16368 if $ac_cs_silent; then
16369 exec 6>/dev/null
16370 ac_configure_extra_args="$ac_configure_extra_args --silent"
16373 _ACEOF
16374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16375 if \$ac_cs_recheck; then
16376 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16377 shift
16378 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16379 CONFIG_SHELL='$SHELL'
16380 export CONFIG_SHELL
16381 exec "\$@"
16384 _ACEOF
16385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16386 exec 5>>config.log
16388 echo
16389 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16390 ## Running $as_me. ##
16391 _ASBOX
16392 $as_echo "$ac_log"
16393 } >&5
16395 _ACEOF
16396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16398 # INIT-COMMANDS
16400 wine_fn_output_makefile ()
16402 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16403 $ALL_MAKEFILE_DEPENDS
16404 _WINE_EOF
16405 as_fn_error $? "could not create Makefile" "$LINENO" 5
16408 _ACEOF
16410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16412 # Handling of arguments.
16413 for ac_config_target in $ac_config_targets
16415 case $ac_config_target in
16416 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16417 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16418 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16419 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16420 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16421 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16422 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16423 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16424 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16425 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16426 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
16427 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16428 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16429 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16430 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16431 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16432 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16433 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16434 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16435 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16436 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16437 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16438 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16439 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16440 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16442 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16443 esac
16444 done
16447 # If the user did not use the arguments to specify the items to instantiate,
16448 # then the envvar interface is used. Set only those that are not.
16449 # We use the long form for the default assignment because of an extremely
16450 # bizarre bug on SunOS 4.1.3.
16451 if $ac_need_defaults; then
16452 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16453 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16454 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16455 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16458 # Have a temporary directory for convenience. Make it in the build tree
16459 # simply because there is no reason against having it here, and in addition,
16460 # creating and moving files from /tmp can sometimes cause problems.
16461 # Hook for its removal unless debugging.
16462 # Note that there is a small window in which the directory will not be cleaned:
16463 # after its creation but before its name has been assigned to `$tmp'.
16464 $debug ||
16466 tmp= ac_tmp=
16467 trap 'exit_status=$?
16468 : "${ac_tmp:=$tmp}"
16469 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16471 trap 'as_fn_exit 1' 1 2 13 15
16473 # Create a (secure) tmp directory for tmp files.
16476 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16477 test -d "$tmp"
16478 } ||
16480 tmp=./conf$$-$RANDOM
16481 (umask 077 && mkdir "$tmp")
16482 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16483 ac_tmp=$tmp
16485 # Set up the scripts for CONFIG_FILES section.
16486 # No need to generate them if there are no CONFIG_FILES.
16487 # This happens for instance with `./config.status config.h'.
16488 if test -n "$CONFIG_FILES"; then
16490 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16491 ac_cs_awk_getline=:
16492 ac_cs_awk_pipe_init=
16493 ac_cs_awk_read_file='
16494 while ((getline aline < (F[key])) > 0)
16495 print(aline)
16496 close(F[key])'
16497 ac_cs_awk_pipe_fini=
16498 else
16499 ac_cs_awk_getline=false
16500 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16501 ac_cs_awk_read_file='
16502 print "|#_!!_#|"
16503 print "cat " F[key] " &&"
16504 '$ac_cs_awk_pipe_init
16505 # The final `:' finishes the AND list.
16506 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16508 ac_cr=`echo X | tr X '\015'`
16509 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16510 # But we know of no other shell where ac_cr would be empty at this
16511 # point, so we can use a bashism as a fallback.
16512 if test "x$ac_cr" = x; then
16513 eval ac_cr=\$\'\\r\'
16515 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16516 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16517 ac_cs_awk_cr='\\r'
16518 else
16519 ac_cs_awk_cr=$ac_cr
16522 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16523 _ACEOF
16525 # Create commands to substitute file output variables.
16527 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16528 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16529 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16530 echo "_ACAWK" &&
16531 echo "_ACEOF"
16532 } >conf$$files.sh &&
16533 . ./conf$$files.sh ||
16534 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16535 rm -f conf$$files.sh
16538 echo "cat >conf$$subs.awk <<_ACEOF" &&
16539 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16540 echo "_ACEOF"
16541 } >conf$$subs.sh ||
16542 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16543 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16544 ac_delim='%!_!# '
16545 for ac_last_try in false false false false false :; do
16546 . ./conf$$subs.sh ||
16547 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16549 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16550 if test $ac_delim_n = $ac_delim_num; then
16551 break
16552 elif $ac_last_try; then
16553 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16554 else
16555 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16557 done
16558 rm -f conf$$subs.sh
16560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16561 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16562 _ACEOF
16563 sed -n '
16565 s/^/S["/; s/!.*/"]=/
16568 s/^[^!]*!//
16569 :repl
16570 t repl
16571 s/'"$ac_delim"'$//
16572 t delim
16575 s/\(.\{148\}\)..*/\1/
16576 t more1
16577 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16580 b repl
16581 :more1
16582 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16585 s/.\{148\}//
16586 t nl
16587 :delim
16589 s/\(.\{148\}\)..*/\1/
16590 t more2
16591 s/["\\]/\\&/g; s/^/"/; s/$/"/
16594 :more2
16595 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16598 s/.\{148\}//
16599 t delim
16600 ' <conf$$subs.awk | sed '
16601 /^[^""]/{
16603 s/\n//
16605 ' >>$CONFIG_STATUS || ac_write_fail=1
16606 rm -f conf$$subs.awk
16607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16608 _ACAWK
16609 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16610 for (key in S) S_is_set[key] = 1
16611 FS = "\a"
16612 \$ac_cs_awk_pipe_init
16615 line = $ 0
16616 nfields = split(line, field, "@")
16617 substed = 0
16618 len = length(field[1])
16619 for (i = 2; i < nfields; i++) {
16620 key = field[i]
16621 keylen = length(key)
16622 if (S_is_set[key]) {
16623 value = S[key]
16624 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16625 len += length(value) + length(field[++i])
16626 substed = 1
16627 } else
16628 len += 1 + keylen
16630 if (nfields == 3 && !substed) {
16631 key = field[2]
16632 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16633 \$ac_cs_awk_read_file
16634 next
16637 print line
16639 \$ac_cs_awk_pipe_fini
16640 _ACAWK
16641 _ACEOF
16642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16643 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16644 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16645 else
16647 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16648 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16649 _ACEOF
16651 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16652 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16653 # trailing colons and then remove the whole line if VPATH becomes empty
16654 # (actually we leave an empty line to preserve line numbers).
16655 if test "x$srcdir" = x.; then
16656 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16658 s///
16659 s/^/:/
16660 s/[ ]*$/:/
16661 s/:\$(srcdir):/:/g
16662 s/:\${srcdir}:/:/g
16663 s/:@srcdir@:/:/g
16664 s/^:*//
16665 s/:*$//
16667 s/\(=[ ]*\).*/\1/
16669 s/\n//
16670 s/^[^=]*=[ ]*$//
16674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16675 fi # test -n "$CONFIG_FILES"
16677 # Set up the scripts for CONFIG_HEADERS section.
16678 # No need to generate them if there are no CONFIG_HEADERS.
16679 # This happens for instance with `./config.status Makefile'.
16680 if test -n "$CONFIG_HEADERS"; then
16681 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16682 BEGIN {
16683 _ACEOF
16685 # Transform confdefs.h into an awk script `defines.awk', embedded as
16686 # here-document in config.status, that substitutes the proper values into
16687 # config.h.in to produce config.h.
16689 # Create a delimiter string that does not exist in confdefs.h, to ease
16690 # handling of long lines.
16691 ac_delim='%!_!# '
16692 for ac_last_try in false false :; do
16693 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16694 if test -z "$ac_tt"; then
16695 break
16696 elif $ac_last_try; then
16697 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16698 else
16699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16701 done
16703 # For the awk script, D is an array of macro values keyed by name,
16704 # likewise P contains macro parameters if any. Preserve backslash
16705 # newline sequences.
16707 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16708 sed -n '
16709 s/.\{148\}/&'"$ac_delim"'/g
16710 t rset
16711 :rset
16712 s/^[ ]*#[ ]*define[ ][ ]*/ /
16713 t def
16715 :def
16716 s/\\$//
16717 t bsnl
16718 s/["\\]/\\&/g
16719 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16720 D["\1"]=" \3"/p
16721 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16723 :bsnl
16724 s/["\\]/\\&/g
16725 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16726 D["\1"]=" \3\\\\\\n"\\/p
16727 t cont
16728 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16729 t cont
16731 :cont
16733 s/.\{148\}/&'"$ac_delim"'/g
16734 t clear
16735 :clear
16736 s/\\$//
16737 t bsnlc
16738 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16740 :bsnlc
16741 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16742 b cont
16743 ' <confdefs.h | sed '
16744 s/'"$ac_delim"'/"\\\
16745 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16748 for (key in D) D_is_set[key] = 1
16749 FS = "\a"
16751 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16752 line = \$ 0
16753 split(line, arg, " ")
16754 if (arg[1] == "#") {
16755 defundef = arg[2]
16756 mac1 = arg[3]
16757 } else {
16758 defundef = substr(arg[1], 2)
16759 mac1 = arg[2]
16761 split(mac1, mac2, "(") #)
16762 macro = mac2[1]
16763 prefix = substr(line, 1, index(line, defundef) - 1)
16764 if (D_is_set[macro]) {
16765 # Preserve the white space surrounding the "#".
16766 print prefix "define", macro P[macro] D[macro]
16767 next
16768 } else {
16769 # Replace #undef with comments. This is necessary, for example,
16770 # in the case of _POSIX_SOURCE, which is predefined and required
16771 # on some systems where configure will not decide to define it.
16772 if (defundef == "undef") {
16773 print "/*", prefix defundef, macro, "*/"
16774 next
16778 { print }
16779 _ACAWK
16780 _ACEOF
16781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16782 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16783 fi # test -n "$CONFIG_HEADERS"
16786 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16787 shift
16788 for ac_tag
16790 case $ac_tag in
16791 :[FHLC]) ac_mode=$ac_tag; continue;;
16792 esac
16793 case $ac_mode$ac_tag in
16794 :[FHL]*:*);;
16795 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16796 :[FH]-) ac_tag=-:-;;
16797 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16798 esac
16799 ac_save_IFS=$IFS
16800 IFS=:
16801 set x $ac_tag
16802 IFS=$ac_save_IFS
16803 shift
16804 ac_file=$1
16805 shift
16807 case $ac_mode in
16808 :L) ac_source=$1;;
16809 :[FH])
16810 ac_file_inputs=
16811 for ac_f
16813 case $ac_f in
16814 -) ac_f="$ac_tmp/stdin";;
16815 *) # Look for the file first in the build tree, then in the source tree
16816 # (if the path is not absolute). The absolute path cannot be DOS-style,
16817 # because $ac_f cannot contain `:'.
16818 test -f "$ac_f" ||
16819 case $ac_f in
16820 [\\/$]*) false;;
16821 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16822 esac ||
16823 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16824 esac
16825 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16826 as_fn_append ac_file_inputs " '$ac_f'"
16827 done
16829 # Let's still pretend it is `configure' which instantiates (i.e., don't
16830 # use $as_me), people would be surprised to read:
16831 # /* config.h. Generated by config.status. */
16832 configure_input='Generated from '`
16833 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16834 `' by configure.'
16835 if test x"$ac_file" != x-; then
16836 configure_input="$ac_file. $configure_input"
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16838 $as_echo "$as_me: creating $ac_file" >&6;}
16840 # Neutralize special characters interpreted by sed in replacement strings.
16841 case $configure_input in #(
16842 *\&* | *\|* | *\\* )
16843 ac_sed_conf_input=`$as_echo "$configure_input" |
16844 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16845 *) ac_sed_conf_input=$configure_input;;
16846 esac
16848 case $ac_tag in
16849 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16850 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16851 esac
16853 esac
16855 ac_dir=`$as_dirname -- "$ac_file" ||
16856 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16857 X"$ac_file" : 'X\(//\)[^/]' \| \
16858 X"$ac_file" : 'X\(//\)$' \| \
16859 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16860 $as_echo X"$ac_file" |
16861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16862 s//\1/
16865 /^X\(\/\/\)[^/].*/{
16866 s//\1/
16869 /^X\(\/\/\)$/{
16870 s//\1/
16873 /^X\(\/\).*/{
16874 s//\1/
16877 s/.*/./; q'`
16878 as_dir="$ac_dir"; as_fn_mkdir_p
16879 ac_builddir=.
16881 case "$ac_dir" in
16882 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16884 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16885 # A ".." for each directory in $ac_dir_suffix.
16886 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16887 case $ac_top_builddir_sub in
16888 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16889 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16890 esac ;;
16891 esac
16892 ac_abs_top_builddir=$ac_pwd
16893 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16894 # for backward compatibility:
16895 ac_top_builddir=$ac_top_build_prefix
16897 case $srcdir in
16898 .) # We are building in place.
16899 ac_srcdir=.
16900 ac_top_srcdir=$ac_top_builddir_sub
16901 ac_abs_top_srcdir=$ac_pwd ;;
16902 [\\/]* | ?:[\\/]* ) # Absolute name.
16903 ac_srcdir=$srcdir$ac_dir_suffix;
16904 ac_top_srcdir=$srcdir
16905 ac_abs_top_srcdir=$srcdir ;;
16906 *) # Relative name.
16907 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16908 ac_top_srcdir=$ac_top_build_prefix$srcdir
16909 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16910 esac
16911 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16914 case $ac_mode in
16917 # CONFIG_FILE
16920 case $INSTALL in
16921 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16922 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16923 esac
16924 _ACEOF
16926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16927 # If the template does not know about datarootdir, expand it.
16928 # FIXME: This hack should be removed a few years after 2.60.
16929 ac_datarootdir_hack=; ac_datarootdir_seen=
16930 ac_sed_dataroot='
16931 /datarootdir/ {
16935 /@datadir@/p
16936 /@docdir@/p
16937 /@infodir@/p
16938 /@localedir@/p
16939 /@mandir@/p'
16940 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16941 *datarootdir*) ac_datarootdir_seen=yes;;
16942 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16944 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16945 _ACEOF
16946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16947 ac_datarootdir_hack='
16948 s&@datadir@&$datadir&g
16949 s&@docdir@&$docdir&g
16950 s&@infodir@&$infodir&g
16951 s&@localedir@&$localedir&g
16952 s&@mandir@&$mandir&g
16953 s&\\\${datarootdir}&$datarootdir&g' ;;
16954 esac
16955 _ACEOF
16957 # Neutralize VPATH when `$srcdir' = `.'.
16958 # Shell code in configure.ac might set extrasub.
16959 # FIXME: do we really want to maintain this feature?
16960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16961 ac_sed_extra="$ac_vpsub
16962 $extrasub
16963 _ACEOF
16964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16967 s|@configure_input@|$ac_sed_conf_input|;t t
16968 s&@top_builddir@&$ac_top_builddir_sub&;t t
16969 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16970 s&@srcdir@&$ac_srcdir&;t t
16971 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16972 s&@top_srcdir@&$ac_top_srcdir&;t t
16973 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16974 s&@builddir@&$ac_builddir&;t t
16975 s&@abs_builddir@&$ac_abs_builddir&;t t
16976 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16977 s&@INSTALL@&$ac_INSTALL&;t t
16978 $ac_datarootdir_hack
16980 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16981 if $ac_cs_awk_getline; then
16982 $AWK -f "$ac_tmp/subs.awk"
16983 else
16984 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16985 fi \
16986 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16988 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16989 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16990 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16991 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16993 which seems to be undefined. Please make sure it is defined" >&5
16994 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16995 which seems to be undefined. Please make sure it is defined" >&2;}
16997 rm -f "$ac_tmp/stdin"
16998 case $ac_file in
16999 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17000 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17001 esac \
17002 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17006 # CONFIG_HEADER
17008 if test x"$ac_file" != x-; then
17010 $as_echo "/* $configure_input */" \
17011 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17012 } >"$ac_tmp/config.h" \
17013 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17014 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17016 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17017 else
17018 rm -f "$ac_file"
17019 mv "$ac_tmp/config.h" "$ac_file" \
17020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17022 else
17023 $as_echo "/* $configure_input */" \
17024 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17025 || as_fn_error $? "could not create -" "$LINENO" 5
17030 # CONFIG_LINK
17033 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17035 else
17036 # Prefer the file from the source tree if names are identical.
17037 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17038 ac_source=$srcdir/$ac_source
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17042 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17044 if test ! -r "$ac_source"; then
17045 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17047 rm -f "$ac_file"
17049 # Try a relative symlink, then a hard link, then a copy.
17050 case $ac_source in
17051 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17052 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17053 esac
17054 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17055 ln "$ac_source" "$ac_file" 2>/dev/null ||
17056 cp -p "$ac_source" "$ac_file" ||
17057 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17060 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17061 $as_echo "$as_me: executing $ac_file commands" >&6;}
17063 esac
17066 case $ac_file$ac_mode in
17067 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17068 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17069 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17070 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17071 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17072 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17073 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17074 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17075 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17076 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17077 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17078 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17079 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17080 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17081 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17082 "Makefile":C) wine_fn_output_makefile Makefile ;;
17084 esac
17085 done # for ac_tag
17088 as_fn_exit 0
17089 _ACEOF
17090 ac_clean_files=$ac_clean_files_save
17092 test $ac_write_fail = 0 ||
17093 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17096 # configure is writing to config.log, and then calls config.status.
17097 # config.status does its own redirection, appending to config.log.
17098 # Unfortunately, on DOS this fails, as config.log is still kept open
17099 # by configure, so config.status won't be able to write to it; its
17100 # output is simply discarded. So we exec the FD to /dev/null,
17101 # effectively closing config.log, so it can be properly (re)opened and
17102 # appended to by config.status. When coming back to configure, we
17103 # need to make the FD available again.
17104 if test "$no_create" != yes; then
17105 ac_cs_success=:
17106 ac_config_status_args=
17107 test "$silent" = yes &&
17108 ac_config_status_args="$ac_config_status_args --quiet"
17109 exec 5>/dev/null
17110 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17111 exec 5>>config.log
17112 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17113 # would make configure fail if this is the last instruction.
17114 $ac_cs_success || as_fn_exit 1
17116 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17118 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17122 if test "$no_create" = "yes"
17123 then
17124 exit 0
17127 ac_save_IFS="$IFS"
17128 if test "x$wine_notices != "x; then
17129 echo >&6
17130 IFS="|"
17131 for msg in $wine_notices; do
17132 IFS="$ac_save_IFS"
17133 if test -n "$msg"; then
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17135 $as_echo "$as_me: $msg" >&6;}
17137 done
17139 IFS="|"
17140 for msg in $wine_warnings; do
17141 IFS="$ac_save_IFS"
17142 if test -n "$msg"; then
17143 echo >&2
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17145 $as_echo "$as_me: WARNING: $msg" >&2;}
17147 done
17148 IFS="$ac_save_IFS"
17150 echo "
17151 $as_me: Finished. Do '${ac_make}' to compile Wine.
17152 " >&6