comctl32/tests: Removed sign comparison warning in status tests.
[wine/multimedia.git] / configure
blob46c9e4e65f66b37844a160d1706ccc95259be580
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Wine 1.3.21.
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.21'
564 PACKAGE_STRING='Wine 1.3.21'
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.21 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.21:";;
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.21
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.21, 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
6137 do :
6138 ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6139 #include <sys/time.h>
6140 #endif
6141 #include <sys/types.h>
6142 #ifdef HAVE_ASM_TYPES_H
6143 #include <asm/types.h>
6144 #endif
6146 if test "x$ac_cv_header_linux_videodev_h" = xyes; then :
6147 cat >>confdefs.h <<_ACEOF
6148 #define HAVE_LINUX_VIDEODEV_H 1
6149 _ACEOF
6153 done
6156 for ac_header in linux/capi.h
6157 do :
6158 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6160 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6161 cat >>confdefs.h <<_ACEOF
6162 #define HAVE_LINUX_CAPI_H 1
6163 _ACEOF
6167 done
6171 DLLEXT=""
6173 DLLFLAGS="-D_REENTRANT"
6175 LDSHARED=""
6177 LDDLLFLAGS=""
6179 LIBEXT="so"
6181 IMPLIBEXT="def"
6183 LDRPATH_INSTALL=""
6185 LDRPATH_LOCAL=""
6187 STATIC_IMPLIBEXT="def.a"
6188 # Extract the first word of "ldd", so it can be a program name with args.
6189 set dummy ldd; ac_word=$2
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191 $as_echo_n "checking for $ac_word... " >&6; }
6192 if ${ac_cv_path_LDD+:} false; then :
6193 $as_echo_n "(cached) " >&6
6194 else
6195 case $LDD in
6196 [\\/]* | ?:[\\/]*)
6197 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 as_dummy="/sbin:/usr/sbin:$PATH"
6202 for as_dir in $as_dummy
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 break 2
6212 done
6213 done
6214 IFS=$as_save_IFS
6216 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6218 esac
6220 LDD=$ac_cv_path_LDD
6221 if test -n "$LDD"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6223 $as_echo "$LDD" >&6; }
6224 else
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6231 case $host_os in
6232 cygwin*|mingw32*)
6233 if test -n "$ac_tool_prefix"; then
6234 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6235 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237 $as_echo_n "checking for $ac_word... " >&6; }
6238 if ${ac_cv_prog_DLLTOOL+:} false; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 if test -n "$DLLTOOL"; then
6242 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6243 else
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6247 IFS=$as_save_IFS
6248 test -z "$as_dir" && as_dir=.
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6251 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 break 2
6255 done
6256 done
6257 IFS=$as_save_IFS
6261 DLLTOOL=$ac_cv_prog_DLLTOOL
6262 if test -n "$DLLTOOL"; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6264 $as_echo "$DLLTOOL" >&6; }
6265 else
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6272 if test -z "$ac_cv_prog_DLLTOOL"; then
6273 ac_ct_DLLTOOL=$DLLTOOL
6274 # Extract the first word of "dlltool", so it can be a program name with args.
6275 set dummy dlltool; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 if test -n "$ac_ct_DLLTOOL"; then
6282 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6283 else
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 break 2
6295 done
6296 done
6297 IFS=$as_save_IFS
6301 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6302 if test -n "$ac_ct_DLLTOOL"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6304 $as_echo "$ac_ct_DLLTOOL" >&6; }
6305 else
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6310 if test "x$ac_ct_DLLTOOL" = x; then
6311 DLLTOOL="false"
6312 else
6313 case $cross_compiling:$ac_tool_warned in
6314 yes:)
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6317 ac_tool_warned=yes ;;
6318 esac
6319 DLLTOOL=$ac_ct_DLLTOOL
6321 else
6322 DLLTOOL="$ac_cv_prog_DLLTOOL"
6325 if test -n "$ac_tool_prefix"; then
6326 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6327 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329 $as_echo_n "checking for $ac_word... " >&6; }
6330 if ${ac_cv_prog_DLLWRAP+:} false; then :
6331 $as_echo_n "(cached) " >&6
6332 else
6333 if test -n "$DLLWRAP"; then
6334 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6335 else
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 for as_dir in $PATH
6339 IFS=$as_save_IFS
6340 test -z "$as_dir" && as_dir=.
6341 for ac_exec_ext in '' $ac_executable_extensions; do
6342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6343 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 break 2
6347 done
6348 done
6349 IFS=$as_save_IFS
6353 DLLWRAP=$ac_cv_prog_DLLWRAP
6354 if test -n "$DLLWRAP"; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6356 $as_echo "$DLLWRAP" >&6; }
6357 else
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359 $as_echo "no" >&6; }
6364 if test -z "$ac_cv_prog_DLLWRAP"; then
6365 ac_ct_DLLWRAP=$DLLWRAP
6366 # Extract the first word of "dllwrap", so it can be a program name with args.
6367 set dummy dllwrap; ac_word=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6371 $as_echo_n "(cached) " >&6
6372 else
6373 if test -n "$ac_ct_DLLWRAP"; then
6374 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6375 else
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH
6379 IFS=$as_save_IFS
6380 test -z "$as_dir" && as_dir=.
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6383 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 break 2
6387 done
6388 done
6389 IFS=$as_save_IFS
6393 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6394 if test -n "$ac_ct_DLLWRAP"; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6396 $as_echo "$ac_ct_DLLWRAP" >&6; }
6397 else
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6402 if test "x$ac_ct_DLLWRAP" = x; then
6403 DLLWRAP="false"
6404 else
6405 case $cross_compiling:$ac_tool_warned in
6406 yes:)
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6409 ac_tool_warned=yes ;;
6410 esac
6411 DLLWRAP=$ac_ct_DLLWRAP
6413 else
6414 DLLWRAP="$ac_cv_prog_DLLWRAP"
6417 if test "$DLLWRAP" = "false"; then
6418 LIBEXT="a"
6419 else
6420 LIBEXT="dll"
6422 IMPLIBEXT="a"
6423 STATIC_IMPLIBEXT="a"
6424 enable_iphlpapi=${enable_iphlpapi:-no}
6425 enable_kernel32=${enable_kernel32:-no}
6426 enable_msvcrt=${enable_msvcrt:-no}
6427 enable_ntdll=${enable_ntdll:-no}
6428 enable_ws2_32=${enable_ws2_32:-no}
6429 enable_loader=${enable_loader:-no}
6430 enable_server=${enable_server:-no}
6431 with_x=${with_x:-no}
6432 with_pthread=${with_pthread:-no}
6434 darwin*|macosx*)
6435 DLLEXT=".so"
6436 LIBEXT="dylib"
6437 DLLFLAGS="$DLLFLAGS -fPIC"
6438 LDDLLFLAGS="-bundle -multiply_defined suppress"
6439 LIBWINE_LDFLAGS="-multiply_defined suppress"
6440 LDSHARED="\$(CC) -dynamiclib"
6441 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6442 COREFOUNDATIONLIB="-framework CoreFoundation"
6444 IOKITLIB="-framework IOKit -framework CoreFoundation"
6446 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6448 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6450 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6451 then
6452 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6455 if test "$ac_cv_header_Security_Security_h" = "yes"
6456 then
6457 SECURITYLIB="-framework Security -framework CoreFoundation"
6459 with_gnutls=${with_gnutls:-no}
6461 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6462 then
6463 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6464 then
6465 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6467 else
6468 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6471 ac_save_LIBS="$LIBS"
6472 LIBS="$LIBS $COREAUDIO"
6473 for ac_func in AUGraphAddNode
6474 do :
6475 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6476 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6477 cat >>confdefs.h <<_ACEOF
6478 #define HAVE_AUGRAPHADDNODE 1
6479 _ACEOF
6482 done
6484 LIBS="$ac_save_LIBS"
6486 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6487 then
6488 FRAMEWORK_OPENAL="-framework OpenAL"
6491 cat >>confdefs.h <<_ACEOF
6492 #define HAVE_OPENAL 1
6493 _ACEOF
6495 ac_cv_lib_openal=yes
6497 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6498 then
6499 LIBOPENCL="-framework OpenCL"
6501 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6503 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6504 then
6505 ac_save_LIBS="$LIBS"
6506 LIBS="$LIBS $IOKITLIB"
6507 for ac_func in IOHIDManagerCreate
6508 do :
6509 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6510 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6511 cat >>confdefs.h <<_ACEOF
6512 #define HAVE_IOHIDMANAGERCREATE 1
6513 _ACEOF
6516 done
6518 LIBS="$ac_save_LIBS"
6520 case $host_cpu in
6521 *powerpc*)
6522 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6523 esac
6524 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6525 then
6526 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6528 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6529 else
6530 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6532 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6533 then
6534 CARBONLIB="-framework Carbon"
6536 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6538 if test "x$enable_win16" = "xyes"
6539 then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6541 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6542 if test "$cross_compiling" = yes; then :
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6544 $as_echo "cross-compiling, assuming yes" >&6; }
6545 else
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6548 asm(".text\n"
6549 "bad:\tnop;nop\n"
6550 "good:\tnop;nop\n\t"
6551 ".globl _testfunc\n"
6552 "_testfunc:\tcallw good");
6553 extern void testfunc();
6555 main ()
6557 unsigned short *p = (unsigned short *)testfunc;
6558 return p[0] != 0xe866 || p[1] != 0xfffa
6560 return 0;
6562 _ACEOF
6563 if ac_fn_c_try_run "$LINENO"; then :
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6565 $as_echo "yes" >&6; }
6566 else
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6569 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
6571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6572 conftest.$ac_objext conftest.beam conftest.$ac_ext
6578 DLLFLAGS="$DLLFLAGS -fPIC"
6579 DLLEXT=".so"
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6581 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6582 if ${ac_cv_c_dll_gnuelf+:} false; then :
6583 $as_echo_n "(cached) " >&6
6584 else
6585 ac_wine_try_cflags_saved=$CFLAGS
6586 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6589 void myfunc() {}
6590 _ACEOF
6591 if ac_fn_c_try_link "$LINENO"; then :
6592 ac_cv_c_dll_gnuelf="yes"
6593 else
6594 ac_cv_c_dll_gnuelf="no"
6596 rm -f core conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext conftest.$ac_ext
6598 CFLAGS=$ac_wine_try_cflags_saved
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6601 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6602 if test "$ac_cv_c_dll_gnuelf" = "yes"
6603 then
6604 LDSHARED="\$(CC) -shared"
6605 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6607 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6608 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6609 $as_echo_n "(cached) " >&6
6610 else
6611 ac_wine_try_cflags_saved=$CFLAGS
6612 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6615 int main(int argc, char **argv) { return 0; }
6616 _ACEOF
6617 if ac_fn_c_try_link "$LINENO"; then :
6618 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6619 else
6620 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6622 rm -f core conftest.err conftest.$ac_objext \
6623 conftest$ac_exeext conftest.$ac_ext
6624 CFLAGS=$ac_wine_try_cflags_saved
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6627 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6628 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6629 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6630 else
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6632 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6633 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 ac_wine_try_cflags_saved=$CFLAGS
6637 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639 /* end confdefs.h. */
6640 int main(int argc, char **argv) { return 0; }
6641 _ACEOF
6642 if ac_fn_c_try_link "$LINENO"; then :
6643 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6644 else
6645 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6647 rm -f core conftest.err conftest.$ac_objext \
6648 conftest$ac_exeext conftest.$ac_ext
6649 CFLAGS=$ac_wine_try_cflags_saved
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6652 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6653 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6654 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6659 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6660 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 ac_wine_try_cflags_saved=$CFLAGS
6664 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6667 int main(int argc, char **argv) { return 0; }
6668 _ACEOF
6669 if ac_fn_c_try_link "$LINENO"; then :
6670 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6671 else
6672 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6674 rm -f core conftest.err conftest.$ac_objext \
6675 conftest$ac_exeext conftest.$ac_ext
6676 CFLAGS=$ac_wine_try_cflags_saved
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6679 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6680 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6681 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6684 { $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
6685 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6686 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6687 $as_echo_n "(cached) " >&6
6688 else
6689 ac_wine_try_cflags_saved=$CFLAGS
6690 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692 /* end confdefs.h. */
6693 int main(int argc, char **argv) { return 0; }
6694 _ACEOF
6695 if ac_fn_c_try_link "$LINENO"; then :
6696 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6697 else
6698 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6700 rm -f core conftest.err conftest.$ac_objext \
6701 conftest$ac_exeext conftest.$ac_ext
6702 CFLAGS=$ac_wine_try_cflags_saved
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6705 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6706 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6707 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6710 echo '{ global: *; };' >conftest.map
6711 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6713 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6714 if eval \${$as_ac_var+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 ac_wine_try_cflags_saved=$CFLAGS
6718 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721 int main(int argc, char **argv) { return 0; }
6722 _ACEOF
6723 if ac_fn_c_try_link "$LINENO"; then :
6724 eval "$as_ac_var=yes"
6725 else
6726 eval "$as_ac_var=no"
6728 rm -f core conftest.err conftest.$ac_objext \
6729 conftest$ac_exeext conftest.$ac_ext
6730 CFLAGS=$ac_wine_try_cflags_saved
6732 eval ac_res=\$$as_ac_var
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6734 $as_echo "$ac_res" >&6; }
6735 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6736 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6738 rm -f conftest.map
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6741 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6742 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6743 $as_echo_n "(cached) " >&6
6744 else
6745 ac_wine_try_cflags_saved=$CFLAGS
6746 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 int main(int argc, char **argv) { return 0; }
6750 _ACEOF
6751 if ac_fn_c_try_link "$LINENO"; then :
6752 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6753 else
6754 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6756 rm -f core conftest.err conftest.$ac_objext \
6757 conftest$ac_exeext conftest.$ac_ext
6758 CFLAGS=$ac_wine_try_cflags_saved
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6761 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6762 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6763 LDEXECFLAGS="-Wl,--export-dynamic"
6767 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6769 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6770 if eval \${$as_ac_var+:} false; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 ac_wine_try_cflags_saved=$CFLAGS
6774 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 int main(int argc, char **argv) { return 0; }
6778 _ACEOF
6779 if ac_fn_c_try_link "$LINENO"; then :
6780 eval "$as_ac_var=yes"
6781 else
6782 eval "$as_ac_var=no"
6784 rm -f core conftest.err conftest.$ac_objext \
6785 conftest$ac_exeext conftest.$ac_ext
6786 CFLAGS=$ac_wine_try_cflags_saved
6788 eval ac_res=\$$as_ac_var
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6790 $as_echo "$ac_res" >&6; }
6791 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6792 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6793 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6794 else
6795 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6797 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6798 if eval \${$as_ac_var+:} false; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 ac_wine_try_cflags_saved=$CFLAGS
6802 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804 /* end confdefs.h. */
6805 int main(int argc, char **argv) { return 0; }
6806 _ACEOF
6807 if ac_fn_c_try_link "$LINENO"; then :
6808 eval "$as_ac_var=yes"
6809 else
6810 eval "$as_ac_var=no"
6812 rm -f core conftest.err conftest.$ac_objext \
6813 conftest$ac_exeext conftest.$ac_ext
6814 CFLAGS=$ac_wine_try_cflags_saved
6816 eval ac_res=\$$as_ac_var
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6818 $as_echo "$ac_res" >&6; }
6819 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6820 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6821 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6826 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6827 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 ac_wine_try_cflags_saved=$CFLAGS
6831 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 int main(int argc, char **argv) { return 0; }
6835 _ACEOF
6836 if ac_fn_c_try_link "$LINENO"; then :
6837 ac_cv_cflags__Wl___enable_new_dtags=yes
6838 else
6839 ac_cv_cflags__Wl___enable_new_dtags=no
6841 rm -f core conftest.err conftest.$ac_objext \
6842 conftest$ac_exeext conftest.$ac_ext
6843 CFLAGS=$ac_wine_try_cflags_saved
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6846 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6847 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6848 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6851 case $host_cpu in
6852 *i[3456789]86* | x86_64)
6853 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6855 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6856 if eval \${$as_ac_var+:} false; then :
6857 $as_echo_n "(cached) " >&6
6858 else
6859 ac_wine_try_cflags_saved=$CFLAGS
6860 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6863 int main(int argc, char **argv) { return 0; }
6864 _ACEOF
6865 if ac_fn_c_try_link "$LINENO"; then :
6866 eval "$as_ac_var=yes"
6867 else
6868 eval "$as_ac_var=no"
6870 rm -f core conftest.err conftest.$ac_objext \
6871 conftest$ac_exeext conftest.$ac_ext
6872 CFLAGS=$ac_wine_try_cflags_saved
6874 eval ac_res=\$$as_ac_var
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6876 $as_echo "$ac_res" >&6; }
6877 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6878 case $host_os in
6879 freebsd*) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6880 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6881 esac
6884 # Extract the first word of "prelink", so it can be a program name with args.
6885 set dummy prelink; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if ${ac_cv_path_PRELINK+:} false; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 case $PRELINK in
6892 [\\/]* | ?:[\\/]*)
6893 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in /sbin /usr/sbin $PATH
6899 IFS=$as_save_IFS
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6903 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 break 2
6907 done
6908 done
6909 IFS=$as_save_IFS
6911 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6913 esac
6915 PRELINK=$ac_cv_path_PRELINK
6916 if test -n "$PRELINK"; then
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6918 $as_echo "$PRELINK" >&6; }
6919 else
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921 $as_echo "no" >&6; }
6925 if test "x$PRELINK" = xfalse
6926 then
6927 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6930 esac
6932 else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6934 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6935 if ${ac_cv_c_dll_unixware+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 ac_wine_try_cflags_saved=$CFLAGS
6939 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6942 void myfunc() {}
6943 _ACEOF
6944 if ac_fn_c_try_link "$LINENO"; then :
6945 ac_cv_c_dll_unixware="yes"
6946 else
6947 ac_cv_c_dll_unixware="no"
6949 rm -f core conftest.err conftest.$ac_objext \
6950 conftest$ac_exeext conftest.$ac_ext
6951 CFLAGS=$ac_wine_try_cflags_saved
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6954 $as_echo "$ac_cv_c_dll_unixware" >&6; }
6955 if test "$ac_cv_c_dll_unixware" = "yes"
6956 then
6957 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6958 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6960 else
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
6962 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
6963 if ${ac_cv_c_dll_hpux+:} false; then :
6964 $as_echo_n "(cached) " >&6
6965 else
6966 ac_wine_try_cflags_saved=$CFLAGS
6967 CFLAGS="$CFLAGS -shared"
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6970 void myfunc() {}
6971 _ACEOF
6972 if ac_fn_c_try_link "$LINENO"; then :
6973 ac_cv_c_dll_hpux="yes"
6974 else
6975 ac_cv_c_dll_hpux="no"
6977 rm -f core conftest.err conftest.$ac_objext \
6978 conftest$ac_exeext conftest.$ac_ext
6979 CFLAGS=$ac_wine_try_cflags_saved
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
6982 $as_echo "$ac_cv_c_dll_hpux" >&6; }
6983 if test "$ac_cv_c_dll_hpux" = "yes"
6984 then
6985 LIBEXT="sl"
6986 DLLEXT=".sl"
6987 LDDLLFLAGS="-shared -fPIC"
6988 LDSHARED="\$(CC) -shared"
6993 esac
6995 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
6996 enable_winequartz_drv=${enable_winequartz_drv:-no}
6998 if test "$LIBEXT" = "a"; then
6999 as_fn_error $? "could not find a way to build shared libraries.
7000 It is currently not possible to build Wine without shared library
7001 (.so) support to allow transparent switch between .so and .dll files.
7002 If you are using Linux, you will need a newer binutils.
7003 " "$LINENO" 5
7006 CROSSTEST_DISABLE=\#
7008 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7009 then
7010 case "$host_cpu" in
7011 i[3456789]86*)
7012 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 " ;;
7013 x86_64)
7014 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 " ;;
7016 ac_prefix_list="" ;;
7017 esac
7018 for ac_prog in $ac_prefix_list
7020 # Extract the first word of "$ac_prog", so it can be a program name with args.
7021 set dummy $ac_prog; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if ${ac_cv_prog_CROSSCC+:} false; then :
7025 $as_echo_n "(cached) " >&6
7026 else
7027 if test -n "$CROSSCC"; then
7028 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7029 else
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037 ac_cv_prog_CROSSCC="$ac_prog"
7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 break 2
7041 done
7042 done
7043 IFS=$as_save_IFS
7047 CROSSCC=$ac_cv_prog_CROSSCC
7048 if test -n "$CROSSCC"; then
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7050 $as_echo "$CROSSCC" >&6; }
7051 else
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7057 test -n "$CROSSCC" && break
7058 done
7059 test -n "$CROSSCC" || CROSSCC="false"
7061 if test "$CROSSCC" != "false"
7062 then
7063 ac_save_CC="$CC"
7064 CC="$CROSSCC"
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7066 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7071 main ()
7075 return 0;
7077 _ACEOF
7078 if ac_fn_c_try_compile "$LINENO"; then :
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7080 $as_echo "yes" >&6; }
7081 set x $CROSSCC
7082 shift
7083 target=""
7084 while test $# -ge 1
7086 case "$1" in
7087 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7088 esac
7089 shift
7090 done
7091 if test -n "$target"
7092 then
7093 CROSSTEST_DISABLE=""
7094 CROSSTARGET="$target"
7097 else
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102 CC="$ac_save_CC"
7107 if test "$ac_cv_header_pthread_h" = "yes"
7108 then
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7110 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7111 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7112 $as_echo_n "(cached) " >&6
7113 else
7114 ac_check_lib_save_LIBS=$LIBS
7115 LIBS="-lpthread $LIBS"
7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h. */
7119 /* Override any GCC internal prototype to avoid an error.
7120 Use char because int might match the return type of a GCC
7121 builtin and then its argument prototype would still apply. */
7122 #ifdef __cplusplus
7123 extern "C"
7124 #endif
7125 char pthread_create ();
7127 main ()
7129 return pthread_create ();
7131 return 0;
7133 _ACEOF
7134 if ac_fn_c_try_link "$LINENO"; then :
7135 ac_cv_lib_pthread_pthread_create=yes
7136 else
7137 ac_cv_lib_pthread_pthread_create=no
7139 rm -f core conftest.err conftest.$ac_objext \
7140 conftest$ac_exeext conftest.$ac_ext
7141 LIBS=$ac_check_lib_save_LIBS
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7144 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7145 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7146 LIBPTHREAD="-lpthread"
7151 if test "x$LIBPTHREAD" = "x"; then :
7152 case "x$with_pthread" in
7153 xno) ;;
7154 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7155 Wine cannot support threads without libpthread.
7156 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7157 esac
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7162 $as_echo_n "checking for X... " >&6; }
7165 # Check whether --with-x was given.
7166 if test "${with_x+set}" = set; then :
7167 withval=$with_x;
7170 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7171 if test "x$with_x" = xno; then
7172 # The user explicitly disabled X.
7173 have_x=disabled
7174 else
7175 case $x_includes,$x_libraries in #(
7176 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7177 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7180 # One or both of the vars are not set, and there is no cached value.
7181 ac_x_includes=no ac_x_libraries=no
7182 rm -f -r conftest.dir
7183 if mkdir conftest.dir; then
7184 cd conftest.dir
7185 cat >Imakefile <<'_ACEOF'
7186 incroot:
7187 @echo incroot='${INCROOT}'
7188 usrlibdir:
7189 @echo usrlibdir='${USRLIBDIR}'
7190 libdir:
7191 @echo libdir='${LIBDIR}'
7192 _ACEOF
7193 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7194 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7195 for ac_var in incroot usrlibdir libdir; do
7196 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7197 done
7198 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7199 for ac_extension in a so sl dylib la dll; do
7200 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7201 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7202 ac_im_usrlibdir=$ac_im_libdir; break
7204 done
7205 # Screen out bogus values from the imake configuration. They are
7206 # bogus both because they are the default anyway, and because
7207 # using them would break gcc on systems where it needs fixed includes.
7208 case $ac_im_incroot in
7209 /usr/include) ac_x_includes= ;;
7210 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7211 esac
7212 case $ac_im_usrlibdir in
7213 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7214 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7215 esac
7217 cd ..
7218 rm -f -r conftest.dir
7221 # Standard set of common directories for X headers.
7222 # Check X11 before X11Rn because it is often a symlink to the current release.
7223 ac_x_header_dirs='
7224 /usr/X11/include
7225 /usr/X11R7/include
7226 /usr/X11R6/include
7227 /usr/X11R5/include
7228 /usr/X11R4/include
7230 /usr/include/X11
7231 /usr/include/X11R7
7232 /usr/include/X11R6
7233 /usr/include/X11R5
7234 /usr/include/X11R4
7236 /usr/local/X11/include
7237 /usr/local/X11R7/include
7238 /usr/local/X11R6/include
7239 /usr/local/X11R5/include
7240 /usr/local/X11R4/include
7242 /usr/local/include/X11
7243 /usr/local/include/X11R7
7244 /usr/local/include/X11R6
7245 /usr/local/include/X11R5
7246 /usr/local/include/X11R4
7248 /usr/X386/include
7249 /usr/x386/include
7250 /usr/XFree86/include/X11
7252 /usr/include
7253 /usr/local/include
7254 /usr/unsupported/include
7255 /usr/athena/include
7256 /usr/local/x11r5/include
7257 /usr/lpp/Xamples/include
7259 /usr/openwin/include
7260 /usr/openwin/share/include'
7262 if test "$ac_x_includes" = no; then
7263 # Guess where to find include files, by looking for Xlib.h.
7264 # First, try using that file with no special directory specified.
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267 #include <X11/Xlib.h>
7268 _ACEOF
7269 if ac_fn_c_try_cpp "$LINENO"; then :
7270 # We can compile using X headers with no special include directory.
7271 ac_x_includes=
7272 else
7273 for ac_dir in $ac_x_header_dirs; do
7274 if test -r "$ac_dir/X11/Xlib.h"; then
7275 ac_x_includes=$ac_dir
7276 break
7278 done
7280 rm -f conftest.err conftest.i conftest.$ac_ext
7281 fi # $ac_x_includes = no
7283 if test "$ac_x_libraries" = no; then
7284 # Check for the libraries.
7285 # See if we find them without any special options.
7286 # Don't add to $LIBS permanently.
7287 ac_save_LIBS=$LIBS
7288 LIBS="-lX11 $LIBS"
7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h. */
7291 #include <X11/Xlib.h>
7293 main ()
7295 XrmInitialize ()
7297 return 0;
7299 _ACEOF
7300 if ac_fn_c_try_link "$LINENO"; then :
7301 LIBS=$ac_save_LIBS
7302 # We can link X programs with no special library path.
7303 ac_x_libraries=
7304 else
7305 LIBS=$ac_save_LIBS
7306 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7308 # Don't even attempt the hair of trying to link an X program!
7309 for ac_extension in a so sl dylib la dll; do
7310 if test -r "$ac_dir/libX11.$ac_extension"; then
7311 ac_x_libraries=$ac_dir
7312 break 2
7314 done
7315 done
7317 rm -f core conftest.err conftest.$ac_objext \
7318 conftest$ac_exeext conftest.$ac_ext
7319 fi # $ac_x_libraries = no
7321 case $ac_x_includes,$ac_x_libraries in #(
7322 no,* | *,no | *\'*)
7323 # Didn't find X, or a directory has "'" in its name.
7324 ac_cv_have_x="have_x=no";; #(
7326 # Record where we found X for the cache.
7327 ac_cv_have_x="have_x=yes\
7328 ac_x_includes='$ac_x_includes'\
7329 ac_x_libraries='$ac_x_libraries'"
7330 esac
7332 ;; #(
7333 *) have_x=yes;;
7334 esac
7335 eval "$ac_cv_have_x"
7336 fi # $with_x != no
7338 if test "$have_x" != yes; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7340 $as_echo "$have_x" >&6; }
7341 no_x=yes
7342 else
7343 # If each of the values was on the command line, it overrides each guess.
7344 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7345 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7346 # Update the cache value to reflect the command line values.
7347 ac_cv_have_x="have_x=yes\
7348 ac_x_includes='$x_includes'\
7349 ac_x_libraries='$x_libraries'"
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7351 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7354 if test "$no_x" = yes; then
7355 # Not all programs may use this symbol, but it does not hurt to define it.
7357 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7359 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7360 else
7361 if test -n "$x_includes"; then
7362 X_CFLAGS="$X_CFLAGS -I$x_includes"
7365 # It would also be nice to do this for all -L options, not just this one.
7366 if test -n "$x_libraries"; then
7367 X_LIBS="$X_LIBS -L$x_libraries"
7368 # For Solaris; some versions of Sun CC require a space after -R and
7369 # others require no space. Words are not sufficient . . . .
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7371 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7372 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7373 ac_xsave_c_werror_flag=$ac_c_werror_flag
7374 ac_c_werror_flag=yes
7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7379 main ()
7383 return 0;
7385 _ACEOF
7386 if ac_fn_c_try_link "$LINENO"; then :
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389 X_LIBS="$X_LIBS -R$x_libraries"
7390 else
7391 LIBS="$ac_xsave_LIBS -R $x_libraries"
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7396 main ()
7400 return 0;
7402 _ACEOF
7403 if ac_fn_c_try_link "$LINENO"; then :
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7405 $as_echo "yes" >&6; }
7406 X_LIBS="$X_LIBS -R $x_libraries"
7407 else
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7409 $as_echo "neither works" >&6; }
7411 rm -f core conftest.err conftest.$ac_objext \
7412 conftest$ac_exeext conftest.$ac_ext
7414 rm -f core conftest.err conftest.$ac_objext \
7415 conftest$ac_exeext conftest.$ac_ext
7416 ac_c_werror_flag=$ac_xsave_c_werror_flag
7417 LIBS=$ac_xsave_LIBS
7420 # Check for system-dependent libraries X programs must link with.
7421 # Do this before checking for the system-independent R6 libraries
7422 # (-lICE), since we may need -lsocket or whatever for X linking.
7424 if test "$ISC" = yes; then
7425 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7426 else
7427 # Martyn Johnson says this is needed for Ultrix, if the X
7428 # libraries were built with DECnet support. And Karl Berry says
7429 # the Alpha needs dnet_stub (dnet does not exist).
7430 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7434 /* Override any GCC internal prototype to avoid an error.
7435 Use char because int might match the return type of a GCC
7436 builtin and then its argument prototype would still apply. */
7437 #ifdef __cplusplus
7438 extern "C"
7439 #endif
7440 char XOpenDisplay ();
7442 main ()
7444 return XOpenDisplay ();
7446 return 0;
7448 _ACEOF
7449 if ac_fn_c_try_link "$LINENO"; then :
7451 else
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7453 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7454 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7455 $as_echo_n "(cached) " >&6
7456 else
7457 ac_check_lib_save_LIBS=$LIBS
7458 LIBS="-ldnet $LIBS"
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7462 /* Override any GCC internal prototype to avoid an error.
7463 Use char because int might match the return type of a GCC
7464 builtin and then its argument prototype would still apply. */
7465 #ifdef __cplusplus
7466 extern "C"
7467 #endif
7468 char dnet_ntoa ();
7470 main ()
7472 return dnet_ntoa ();
7474 return 0;
7476 _ACEOF
7477 if ac_fn_c_try_link "$LINENO"; then :
7478 ac_cv_lib_dnet_dnet_ntoa=yes
7479 else
7480 ac_cv_lib_dnet_dnet_ntoa=no
7482 rm -f core conftest.err conftest.$ac_objext \
7483 conftest$ac_exeext conftest.$ac_ext
7484 LIBS=$ac_check_lib_save_LIBS
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7487 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7488 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7489 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7492 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7494 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7495 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7496 $as_echo_n "(cached) " >&6
7497 else
7498 ac_check_lib_save_LIBS=$LIBS
7499 LIBS="-ldnet_stub $LIBS"
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7503 /* Override any GCC internal prototype to avoid an error.
7504 Use char because int might match the return type of a GCC
7505 builtin and then its argument prototype would still apply. */
7506 #ifdef __cplusplus
7507 extern "C"
7508 #endif
7509 char dnet_ntoa ();
7511 main ()
7513 return dnet_ntoa ();
7515 return 0;
7517 _ACEOF
7518 if ac_fn_c_try_link "$LINENO"; then :
7519 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7520 else
7521 ac_cv_lib_dnet_stub_dnet_ntoa=no
7523 rm -f core conftest.err conftest.$ac_objext \
7524 conftest$ac_exeext conftest.$ac_ext
7525 LIBS=$ac_check_lib_save_LIBS
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7528 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7529 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7530 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7535 rm -f core conftest.err conftest.$ac_objext \
7536 conftest$ac_exeext conftest.$ac_ext
7537 LIBS="$ac_xsave_LIBS"
7539 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7540 # to get the SysV transport functions.
7541 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7542 # needs -lnsl.
7543 # The nsl library prevents programs from opening the X display
7544 # on Irix 5.2, according to T.E. Dickey.
7545 # The functions gethostbyname, getservbyname, and inet_addr are
7546 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7547 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7548 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7552 if test $ac_cv_func_gethostbyname = no; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7554 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7555 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558 ac_check_lib_save_LIBS=$LIBS
7559 LIBS="-lnsl $LIBS"
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h. */
7563 /* Override any GCC internal prototype to avoid an error.
7564 Use char because int might match the return type of a GCC
7565 builtin and then its argument prototype would still apply. */
7566 #ifdef __cplusplus
7567 extern "C"
7568 #endif
7569 char gethostbyname ();
7571 main ()
7573 return gethostbyname ();
7575 return 0;
7577 _ACEOF
7578 if ac_fn_c_try_link "$LINENO"; then :
7579 ac_cv_lib_nsl_gethostbyname=yes
7580 else
7581 ac_cv_lib_nsl_gethostbyname=no
7583 rm -f core conftest.err conftest.$ac_objext \
7584 conftest$ac_exeext conftest.$ac_ext
7585 LIBS=$ac_check_lib_save_LIBS
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7588 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7589 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7590 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7593 if test $ac_cv_lib_nsl_gethostbyname = no; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7595 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7596 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7597 $as_echo_n "(cached) " >&6
7598 else
7599 ac_check_lib_save_LIBS=$LIBS
7600 LIBS="-lbsd $LIBS"
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7604 /* Override any GCC internal prototype to avoid an error.
7605 Use char because int might match the return type of a GCC
7606 builtin and then its argument prototype would still apply. */
7607 #ifdef __cplusplus
7608 extern "C"
7609 #endif
7610 char gethostbyname ();
7612 main ()
7614 return gethostbyname ();
7616 return 0;
7618 _ACEOF
7619 if ac_fn_c_try_link "$LINENO"; then :
7620 ac_cv_lib_bsd_gethostbyname=yes
7621 else
7622 ac_cv_lib_bsd_gethostbyname=no
7624 rm -f core conftest.err conftest.$ac_objext \
7625 conftest$ac_exeext conftest.$ac_ext
7626 LIBS=$ac_check_lib_save_LIBS
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7629 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7630 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7631 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7637 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7638 # socket/setsockopt and other routines are undefined under SCO ODT
7639 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7640 # on later versions), says Simon Leinen: it contains gethostby*
7641 # variants that don't use the name server (or something). -lsocket
7642 # must be given before -lnsl if both are needed. We assume that
7643 # if connect needs -lnsl, so does gethostbyname.
7644 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7645 if test "x$ac_cv_func_connect" = xyes; then :
7649 if test $ac_cv_func_connect = no; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7651 $as_echo_n "checking for connect in -lsocket... " >&6; }
7652 if ${ac_cv_lib_socket_connect+:} false; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 ac_check_lib_save_LIBS=$LIBS
7656 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 /* end confdefs.h. */
7660 /* Override any GCC internal prototype to avoid an error.
7661 Use char because int might match the return type of a GCC
7662 builtin and then its argument prototype would still apply. */
7663 #ifdef __cplusplus
7664 extern "C"
7665 #endif
7666 char connect ();
7668 main ()
7670 return connect ();
7672 return 0;
7674 _ACEOF
7675 if ac_fn_c_try_link "$LINENO"; then :
7676 ac_cv_lib_socket_connect=yes
7677 else
7678 ac_cv_lib_socket_connect=no
7680 rm -f core conftest.err conftest.$ac_objext \
7681 conftest$ac_exeext conftest.$ac_ext
7682 LIBS=$ac_check_lib_save_LIBS
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7685 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7686 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7687 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7692 # Guillermo Gomez says -lposix is necessary on A/UX.
7693 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7694 if test "x$ac_cv_func_remove" = xyes; then :
7698 if test $ac_cv_func_remove = no; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7700 $as_echo_n "checking for remove in -lposix... " >&6; }
7701 if ${ac_cv_lib_posix_remove+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 ac_check_lib_save_LIBS=$LIBS
7705 LIBS="-lposix $LIBS"
7706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707 /* end confdefs.h. */
7709 /* Override any GCC internal prototype to avoid an error.
7710 Use char because int might match the return type of a GCC
7711 builtin and then its argument prototype would still apply. */
7712 #ifdef __cplusplus
7713 extern "C"
7714 #endif
7715 char remove ();
7717 main ()
7719 return remove ();
7721 return 0;
7723 _ACEOF
7724 if ac_fn_c_try_link "$LINENO"; then :
7725 ac_cv_lib_posix_remove=yes
7726 else
7727 ac_cv_lib_posix_remove=no
7729 rm -f core conftest.err conftest.$ac_objext \
7730 conftest$ac_exeext conftest.$ac_ext
7731 LIBS=$ac_check_lib_save_LIBS
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7734 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7735 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7736 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7741 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7742 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7743 if test "x$ac_cv_func_shmat" = xyes; then :
7747 if test $ac_cv_func_shmat = no; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7749 $as_echo_n "checking for shmat in -lipc... " >&6; }
7750 if ${ac_cv_lib_ipc_shmat+:} false; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 ac_check_lib_save_LIBS=$LIBS
7754 LIBS="-lipc $LIBS"
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7758 /* Override any GCC internal prototype to avoid an error.
7759 Use char because int might match the return type of a GCC
7760 builtin and then its argument prototype would still apply. */
7761 #ifdef __cplusplus
7762 extern "C"
7763 #endif
7764 char shmat ();
7766 main ()
7768 return shmat ();
7770 return 0;
7772 _ACEOF
7773 if ac_fn_c_try_link "$LINENO"; then :
7774 ac_cv_lib_ipc_shmat=yes
7775 else
7776 ac_cv_lib_ipc_shmat=no
7778 rm -f core conftest.err conftest.$ac_objext \
7779 conftest$ac_exeext conftest.$ac_ext
7780 LIBS=$ac_check_lib_save_LIBS
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7783 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7784 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7785 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7791 # Check for libraries that X11R6 Xt/Xaw programs need.
7792 ac_save_LDFLAGS=$LDFLAGS
7793 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7794 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7795 # check for ICE first), but we must link in the order -lSM -lICE or
7796 # we get undefined symbols. So assume we have SM if we have ICE.
7797 # These have to be linked with before -lX11, unlike the other
7798 # libraries we check for below, so use a different variable.
7799 # John Interrante, Karl Berry
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7801 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7802 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7803 $as_echo_n "(cached) " >&6
7804 else
7805 ac_check_lib_save_LIBS=$LIBS
7806 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7810 /* Override any GCC internal prototype to avoid an error.
7811 Use char because int might match the return type of a GCC
7812 builtin and then its argument prototype would still apply. */
7813 #ifdef __cplusplus
7814 extern "C"
7815 #endif
7816 char IceConnectionNumber ();
7818 main ()
7820 return IceConnectionNumber ();
7822 return 0;
7824 _ACEOF
7825 if ac_fn_c_try_link "$LINENO"; then :
7826 ac_cv_lib_ICE_IceConnectionNumber=yes
7827 else
7828 ac_cv_lib_ICE_IceConnectionNumber=no
7830 rm -f core conftest.err conftest.$ac_objext \
7831 conftest$ac_exeext conftest.$ac_ext
7832 LIBS=$ac_check_lib_save_LIBS
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7835 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7836 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7837 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7840 LDFLAGS=$ac_save_LDFLAGS
7845 if test "$have_x" = "yes"
7846 then
7847 XLIB="-lX11"
7848 ac_save_CPPFLAGS="$CPPFLAGS"
7849 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7852 $as_echo_n "checking for -lX11... " >&6; }
7853 if ${ac_cv_lib_soname_X11+:} false; then :
7854 $as_echo_n "(cached) " >&6
7855 else
7856 ac_check_soname_save_LIBS=$LIBS
7857 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7861 /* Override any GCC internal prototype to avoid an error.
7862 Use char because int might match the return type of a GCC
7863 builtin and then its argument prototype would still apply. */
7864 #ifdef __cplusplus
7865 extern "C"
7866 #endif
7867 char XCreateWindow ();
7869 main ()
7871 return XCreateWindow ();
7873 return 0;
7875 _ACEOF
7876 if ac_fn_c_try_link "$LINENO"; then :
7877 case "$LIBEXT" in
7878 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7879 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'` ;;
7880 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7881 esac
7883 rm -f core conftest.err conftest.$ac_objext \
7884 conftest$ac_exeext conftest.$ac_ext
7885 LIBS=$ac_check_soname_save_LIBS
7887 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7889 $as_echo "not found" >&6; }
7891 else
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7893 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7895 cat >>confdefs.h <<_ACEOF
7896 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7897 _ACEOF
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7902 $as_echo_n "checking for -lXext... " >&6; }
7903 if ${ac_cv_lib_soname_Xext+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 ac_check_soname_save_LIBS=$LIBS
7907 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7911 /* Override any GCC internal prototype to avoid an error.
7912 Use char because int might match the return type of a GCC
7913 builtin and then its argument prototype would still apply. */
7914 #ifdef __cplusplus
7915 extern "C"
7916 #endif
7917 char XextCreateExtension ();
7919 main ()
7921 return XextCreateExtension ();
7923 return 0;
7925 _ACEOF
7926 if ac_fn_c_try_link "$LINENO"; then :
7927 case "$LIBEXT" in
7928 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7929 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'` ;;
7930 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7931 esac
7933 rm -f core conftest.err conftest.$ac_objext \
7934 conftest$ac_exeext conftest.$ac_ext
7935 LIBS=$ac_check_soname_save_LIBS
7937 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7939 $as_echo "not found" >&6; }
7941 else
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7943 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7945 cat >>confdefs.h <<_ACEOF
7946 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7947 _ACEOF
7949 XLIB="-lXext $XLIB"
7952 for ac_header in X11/Xlib.h \
7953 X11/XKBlib.h \
7954 X11/Xutil.h \
7955 X11/Xcursor/Xcursor.h \
7956 X11/extensions/shape.h \
7957 X11/extensions/XInput.h \
7958 X11/extensions/XInput2.h \
7959 X11/extensions/XShm.h \
7960 X11/extensions/Xcomposite.h \
7961 X11/extensions/Xinerama.h \
7962 X11/extensions/Xrandr.h \
7963 X11/extensions/Xrender.h \
7964 X11/extensions/xf86vmode.h \
7965 X11/extensions/xf86vmproto.h
7966 do :
7967 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7968 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
7969 # include <X11/Xlib.h>
7970 #endif
7971 #ifdef HAVE_X11_XUTIL_H
7972 # include <X11/Xutil.h>
7973 #endif
7975 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7976 cat >>confdefs.h <<_ACEOF
7977 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7978 _ACEOF
7982 done
7985 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7986 then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
7988 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
7989 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 ac_check_lib_save_LIBS=$LIBS
7993 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7997 /* Override any GCC internal prototype to avoid an error.
7998 Use char because int might match the return type of a GCC
7999 builtin and then its argument prototype would still apply. */
8000 #ifdef __cplusplus
8001 extern "C"
8002 #endif
8003 char XkbQueryExtension ();
8005 main ()
8007 return XkbQueryExtension ();
8009 return 0;
8011 _ACEOF
8012 if ac_fn_c_try_link "$LINENO"; then :
8013 ac_cv_lib_X11_XkbQueryExtension=yes
8014 else
8015 ac_cv_lib_X11_XkbQueryExtension=no
8017 rm -f core conftest.err conftest.$ac_objext \
8018 conftest$ac_exeext conftest.$ac_ext
8019 LIBS=$ac_check_lib_save_LIBS
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8022 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8023 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8025 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8031 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8032 then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8034 $as_echo_n "checking for -lXcursor... " >&6; }
8035 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 ac_check_soname_save_LIBS=$LIBS
8039 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041 /* end confdefs.h. */
8043 /* Override any GCC internal prototype to avoid an error.
8044 Use char because int might match the return type of a GCC
8045 builtin and then its argument prototype would still apply. */
8046 #ifdef __cplusplus
8047 extern "C"
8048 #endif
8049 char XcursorImageLoadCursor ();
8051 main ()
8053 return XcursorImageLoadCursor ();
8055 return 0;
8057 _ACEOF
8058 if ac_fn_c_try_link "$LINENO"; then :
8059 case "$LIBEXT" in
8060 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8061 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'` ;;
8062 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8063 esac
8065 rm -f core conftest.err conftest.$ac_objext \
8066 conftest$ac_exeext conftest.$ac_ext
8067 LIBS=$ac_check_soname_save_LIBS
8069 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8071 $as_echo "not found" >&6; }
8073 else
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8075 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8077 cat >>confdefs.h <<_ACEOF
8078 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8079 _ACEOF
8084 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8085 case "x$with_xcursor" in
8086 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8087 xno) ;;
8088 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8089 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8090 esac
8093 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8094 then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8096 $as_echo_n "checking for -lXi... " >&6; }
8097 if ${ac_cv_lib_soname_Xi+:} false; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100 ac_check_soname_save_LIBS=$LIBS
8101 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8105 /* Override any GCC internal prototype to avoid an error.
8106 Use char because int might match the return type of a GCC
8107 builtin and then its argument prototype would still apply. */
8108 #ifdef __cplusplus
8109 extern "C"
8110 #endif
8111 char XOpenDevice ();
8113 main ()
8115 return XOpenDevice ();
8117 return 0;
8119 _ACEOF
8120 if ac_fn_c_try_link "$LINENO"; then :
8121 case "$LIBEXT" in
8122 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8123 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'` ;;
8124 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8125 esac
8127 rm -f core conftest.err conftest.$ac_objext \
8128 conftest$ac_exeext conftest.$ac_ext
8129 LIBS=$ac_check_soname_save_LIBS
8131 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8133 $as_echo "not found" >&6; }
8135 else
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8137 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8139 cat >>confdefs.h <<_ACEOF
8140 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8141 _ACEOF
8146 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8147 case "x$with_xinput" in
8148 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8149 xno) ;;
8150 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8151 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8152 esac
8155 if test "x$ac_cv_lib_soname_Xi" != x
8156 then
8157 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8158 case "x$with_xinput2" in
8159 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8160 xno) ;;
8161 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8162 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8163 esac
8167 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8168 then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8170 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8171 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 ac_check_lib_save_LIBS=$LIBS
8175 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177 /* end confdefs.h. */
8179 /* Override any GCC internal prototype to avoid an error.
8180 Use char because int might match the return type of a GCC
8181 builtin and then its argument prototype would still apply. */
8182 #ifdef __cplusplus
8183 extern "C"
8184 #endif
8185 char XShmQueryExtension ();
8187 main ()
8189 return XShmQueryExtension ();
8191 return 0;
8193 _ACEOF
8194 if ac_fn_c_try_link "$LINENO"; then :
8195 ac_cv_lib_Xext_XShmQueryExtension=yes
8196 else
8197 ac_cv_lib_Xext_XShmQueryExtension=no
8199 rm -f core conftest.err conftest.$ac_objext \
8200 conftest$ac_exeext conftest.$ac_ext
8201 LIBS=$ac_check_lib_save_LIBS
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8204 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8205 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8207 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8212 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8213 case "x$with_xshm" in
8214 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8215 xno) ;;
8216 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8217 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8218 esac
8221 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8222 then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8224 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8225 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 ac_check_lib_save_LIBS=$LIBS
8229 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h. */
8233 /* Override any GCC internal prototype to avoid an error.
8234 Use char because int might match the return type of a GCC
8235 builtin and then its argument prototype would still apply. */
8236 #ifdef __cplusplus
8237 extern "C"
8238 #endif
8239 char XShapeQueryExtension ();
8241 main ()
8243 return XShapeQueryExtension ();
8245 return 0;
8247 _ACEOF
8248 if ac_fn_c_try_link "$LINENO"; then :
8249 ac_cv_lib_Xext_XShapeQueryExtension=yes
8250 else
8251 ac_cv_lib_Xext_XShapeQueryExtension=no
8253 rm -f core conftest.err conftest.$ac_objext \
8254 conftest$ac_exeext conftest.$ac_ext
8255 LIBS=$ac_check_lib_save_LIBS
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8258 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8259 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8261 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8266 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8267 case "x$with_xshape" in
8268 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8269 xno) ;;
8270 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8271 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8272 esac
8275 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8276 then
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8278 $as_echo_n "checking for -lXxf86vm... " >&6; }
8279 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8280 $as_echo_n "(cached) " >&6
8281 else
8282 ac_check_soname_save_LIBS=$LIBS
8283 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8287 /* Override any GCC internal prototype to avoid an error.
8288 Use char because int might match the return type of a GCC
8289 builtin and then its argument prototype would still apply. */
8290 #ifdef __cplusplus
8291 extern "C"
8292 #endif
8293 char XF86VidModeQueryExtension ();
8295 main ()
8297 return XF86VidModeQueryExtension ();
8299 return 0;
8301 _ACEOF
8302 if ac_fn_c_try_link "$LINENO"; then :
8303 case "$LIBEXT" in
8304 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8305 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'` ;;
8306 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8307 esac
8309 rm -f core conftest.err conftest.$ac_objext \
8310 conftest$ac_exeext conftest.$ac_ext
8311 LIBS=$ac_check_soname_save_LIBS
8313 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8315 $as_echo "not found" >&6; }
8317 else
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8319 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8321 cat >>confdefs.h <<_ACEOF
8322 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8323 _ACEOF
8328 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8329 case "x$with_xxf86vm" in
8330 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8331 xno) ;;
8332 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8333 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8334 esac
8337 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"
8338 then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8340 $as_echo_n "checking for -lXrender... " >&6; }
8341 if ${ac_cv_lib_soname_Xrender+:} false; then :
8342 $as_echo_n "(cached) " >&6
8343 else
8344 ac_check_soname_save_LIBS=$LIBS
8345 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8349 /* Override any GCC internal prototype to avoid an error.
8350 Use char because int might match the return type of a GCC
8351 builtin and then its argument prototype would still apply. */
8352 #ifdef __cplusplus
8353 extern "C"
8354 #endif
8355 char XRenderQueryExtension ();
8357 main ()
8359 return XRenderQueryExtension ();
8361 return 0;
8363 _ACEOF
8364 if ac_fn_c_try_link "$LINENO"; then :
8365 case "$LIBEXT" in
8366 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8367 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'` ;;
8368 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8369 esac
8371 rm -f core conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
8373 LIBS=$ac_check_soname_save_LIBS
8375 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8377 $as_echo "not found" >&6; }
8379 else
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8381 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8383 cat >>confdefs.h <<_ACEOF
8384 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8385 _ACEOF
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8388 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8389 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8390 $as_echo_n "(cached) " >&6
8391 else
8392 ac_check_lib_save_LIBS=$LIBS
8393 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h. */
8397 /* Override any GCC internal prototype to avoid an error.
8398 Use char because int might match the return type of a GCC
8399 builtin and then its argument prototype would still apply. */
8400 #ifdef __cplusplus
8401 extern "C"
8402 #endif
8403 char XRenderSetPictureTransform ();
8405 main ()
8407 return XRenderSetPictureTransform ();
8409 return 0;
8411 _ACEOF
8412 if ac_fn_c_try_link "$LINENO"; then :
8413 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8414 else
8415 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8417 rm -f core conftest.err conftest.$ac_objext \
8418 conftest$ac_exeext conftest.$ac_ext
8419 LIBS=$ac_check_lib_save_LIBS
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8422 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8423 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8425 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8432 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8433 case "x$with_xrender" in
8434 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8435 xno) ;;
8436 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8437 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8438 esac
8441 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8442 then
8443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8445 #include <X11/Xlib.h>
8446 #include <X11/extensions/Xrandr.h>
8448 main ()
8450 static typeof(XRRSetScreenConfigAndRate) * func;
8452 return 0;
8454 _ACEOF
8455 if ac_fn_c_try_compile "$LINENO"; then :
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8457 $as_echo_n "checking for -lXrandr... " >&6; }
8458 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8459 $as_echo_n "(cached) " >&6
8460 else
8461 ac_check_soname_save_LIBS=$LIBS
8462 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h. */
8466 /* Override any GCC internal prototype to avoid an error.
8467 Use char because int might match the return type of a GCC
8468 builtin and then its argument prototype would still apply. */
8469 #ifdef __cplusplus
8470 extern "C"
8471 #endif
8472 char XRRQueryExtension ();
8474 main ()
8476 return XRRQueryExtension ();
8478 return 0;
8480 _ACEOF
8481 if ac_fn_c_try_link "$LINENO"; then :
8482 case "$LIBEXT" in
8483 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8484 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'` ;;
8485 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8486 esac
8488 rm -f core conftest.err conftest.$ac_objext \
8489 conftest$ac_exeext conftest.$ac_ext
8490 LIBS=$ac_check_soname_save_LIBS
8492 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8494 $as_echo "not found" >&6; }
8496 else
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8498 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8500 cat >>confdefs.h <<_ACEOF
8501 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8502 _ACEOF
8507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8509 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8510 case "x$with_xrandr" in
8511 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8512 xno) ;;
8513 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8514 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8515 esac
8518 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8519 then
8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h. */
8522 #include <X11/Xlib.h>
8523 #include <X11/extensions/Xinerama.h>
8525 main ()
8527 static typeof(XineramaQueryScreens) * func;
8529 return 0;
8531 _ACEOF
8532 if ac_fn_c_try_compile "$LINENO"; then :
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8534 $as_echo_n "checking for -lXinerama... " >&6; }
8535 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8536 $as_echo_n "(cached) " >&6
8537 else
8538 ac_check_soname_save_LIBS=$LIBS
8539 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8543 /* Override any GCC internal prototype to avoid an error.
8544 Use char because int might match the return type of a GCC
8545 builtin and then its argument prototype would still apply. */
8546 #ifdef __cplusplus
8547 extern "C"
8548 #endif
8549 char XineramaQueryScreens ();
8551 main ()
8553 return XineramaQueryScreens ();
8555 return 0;
8557 _ACEOF
8558 if ac_fn_c_try_link "$LINENO"; then :
8559 case "$LIBEXT" in
8560 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8561 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'` ;;
8562 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8563 esac
8565 rm -f core conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
8567 LIBS=$ac_check_soname_save_LIBS
8569 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8571 $as_echo "not found" >&6; }
8573 else
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8575 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8577 cat >>confdefs.h <<_ACEOF
8578 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8579 _ACEOF
8584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8586 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8587 case "x$with_xinerama" in
8588 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8589 xno) ;;
8590 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8591 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8592 esac
8595 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8596 then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8598 $as_echo_n "checking for -lXcomposite... " >&6; }
8599 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8600 $as_echo_n "(cached) " >&6
8601 else
8602 ac_check_soname_save_LIBS=$LIBS
8603 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8607 /* Override any GCC internal prototype to avoid an error.
8608 Use char because int might match the return type of a GCC
8609 builtin and then its argument prototype would still apply. */
8610 #ifdef __cplusplus
8611 extern "C"
8612 #endif
8613 char XCompositeRedirectWindow ();
8615 main ()
8617 return XCompositeRedirectWindow ();
8619 return 0;
8621 _ACEOF
8622 if ac_fn_c_try_link "$LINENO"; then :
8623 case "$LIBEXT" in
8624 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8625 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'` ;;
8626 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8627 esac
8629 rm -f core conftest.err conftest.$ac_objext \
8630 conftest$ac_exeext conftest.$ac_ext
8631 LIBS=$ac_check_soname_save_LIBS
8633 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8635 $as_echo "not found" >&6; }
8637 else
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8639 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8641 cat >>confdefs.h <<_ACEOF
8642 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8643 _ACEOF
8648 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8649 case "x$with_xcomposite" in
8650 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8651 xno) ;;
8652 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8653 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8654 esac
8657 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8658 #include <X11/Xlib.h>
8659 #endif
8661 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8663 cat >>confdefs.h <<_ACEOF
8664 #define HAVE_XICCALLBACK_CALLBACK 1
8665 _ACEOF
8669 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8670 #include <X11/Xlib.h>
8671 #endif
8673 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8675 cat >>confdefs.h <<_ACEOF
8676 #define HAVE_XEVENT_XCOOKIE 1
8677 _ACEOF
8684 opengl_msg=""
8685 if test "x$with_opengl" != "xno"
8686 then
8687 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8688 do :
8689 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8690 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8691 # include <GL/glx.h>
8692 #endif
8694 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8695 cat >>confdefs.h <<_ACEOF
8696 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8697 _ACEOF
8701 done
8703 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8704 then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8706 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8707 if ${wine_cv_opengl_header_version_OK+:} false; then :
8708 $as_echo_n "(cached) " >&6
8709 else
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711 /* end confdefs.h. */
8712 #include <GL/gl.h>
8714 main ()
8716 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8718 return 0;
8720 _ACEOF
8721 if ac_fn_c_try_compile "$LINENO"; then :
8722 wine_cv_opengl_header_version_OK="yes"
8723 else
8724 wine_cv_opengl_header_version_OK="no"
8726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8729 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8731 if test "$wine_cv_opengl_header_version_OK" = "yes"
8732 then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8734 $as_echo_n "checking for -lGL... " >&6; }
8735 if ${ac_cv_lib_soname_GL+:} false; then :
8736 $as_echo_n "(cached) " >&6
8737 else
8738 ac_check_soname_save_LIBS=$LIBS
8739 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741 /* end confdefs.h. */
8743 /* Override any GCC internal prototype to avoid an error.
8744 Use char because int might match the return type of a GCC
8745 builtin and then its argument prototype would still apply. */
8746 #ifdef __cplusplus
8747 extern "C"
8748 #endif
8749 char glXCreateContext ();
8751 main ()
8753 return glXCreateContext ();
8755 return 0;
8757 _ACEOF
8758 if ac_fn_c_try_link "$LINENO"; then :
8759 case "$LIBEXT" in
8760 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8761 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'` ;;
8762 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8763 esac
8765 rm -f core conftest.err conftest.$ac_objext \
8766 conftest$ac_exeext conftest.$ac_ext
8767 LIBS=$ac_check_soname_save_LIBS
8769 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8771 $as_echo "not found" >&6; }
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8773 $as_echo_n "checking for -lGL... " >&6; }
8774 if ${ac_cv_lib_soname_GL+:} false; then :
8775 $as_echo_n "(cached) " >&6
8776 else
8777 ac_check_soname_save_LIBS=$LIBS
8778 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"
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8782 /* Override any GCC internal prototype to avoid an error.
8783 Use char because int might match the return type of a GCC
8784 builtin and then its argument prototype would still apply. */
8785 #ifdef __cplusplus
8786 extern "C"
8787 #endif
8788 char glXCreateContext ();
8790 main ()
8792 return glXCreateContext ();
8794 return 0;
8796 _ACEOF
8797 if ac_fn_c_try_link "$LINENO"; then :
8798 case "$LIBEXT" in
8799 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8800 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'` ;;
8801 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8802 esac
8804 rm -f core conftest.err conftest.$ac_objext \
8805 conftest$ac_exeext conftest.$ac_ext
8806 LIBS=$ac_check_soname_save_LIBS
8808 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8810 $as_echo "not found" >&6; }
8811 if test -f /usr/X11R6/lib/libGL.a
8812 then
8813 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8814 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8815 else
8816 opengl_msg="No OpenGL library found on this system."
8818 else
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8820 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8822 cat >>confdefs.h <<_ACEOF
8823 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8824 _ACEOF
8826 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"
8828 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8831 else
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8833 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8835 cat >>confdefs.h <<_ACEOF
8836 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8837 _ACEOF
8839 OPENGL_LIBS="-lGL"
8841 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8844 if test "$ac_cv_header_GL_glu_h" = "yes"
8845 then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8847 $as_echo_n "checking for -lGLU... " >&6; }
8848 if ${ac_cv_lib_soname_GLU+:} false; then :
8849 $as_echo_n "(cached) " >&6
8850 else
8851 ac_check_soname_save_LIBS=$LIBS
8852 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8854 /* end confdefs.h. */
8856 /* Override any GCC internal prototype to avoid an error.
8857 Use char because int might match the return type of a GCC
8858 builtin and then its argument prototype would still apply. */
8859 #ifdef __cplusplus
8860 extern "C"
8861 #endif
8862 char gluLookAt ();
8864 main ()
8866 return gluLookAt ();
8868 return 0;
8870 _ACEOF
8871 if ac_fn_c_try_link "$LINENO"; then :
8872 case "$LIBEXT" in
8873 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8874 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'` ;;
8875 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8876 esac
8878 rm -f core conftest.err conftest.$ac_objext \
8879 conftest$ac_exeext conftest.$ac_ext
8880 LIBS=$ac_check_soname_save_LIBS
8882 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8884 $as_echo "not found" >&6; }
8886 else
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8888 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8890 cat >>confdefs.h <<_ACEOF
8891 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8892 _ACEOF
8897 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8898 case "x$with_glu" in
8899 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8900 xno) ;;
8901 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8902 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8903 esac
8905 else
8906 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8908 else
8909 opengl_msg="OpenGL development headers not found."
8911 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8912 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8913 else
8914 enable_opengl32=${enable_opengl32:-no}
8915 enable_glu32=${enable_glu32:-no}
8917 if test -n "$opengl_msg"; then :
8918 case "x$with_opengl" in
8919 x) as_fn_append wine_warnings "|$opengl_msg
8920 OpenGL and Direct3D won't be supported." ;;
8921 xno) ;;
8922 *) as_fn_error $? "$opengl_msg
8923 OpenGL and Direct3D won't be supported.
8924 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8925 esac
8928 NASLIBS=""
8930 for ac_header in audio/audiolib.h
8931 do :
8932 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8933 if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
8934 cat >>confdefs.h <<_ACEOF
8935 #define HAVE_AUDIO_AUDIOLIB_H 1
8936 _ACEOF
8937 for ac_header in audio/soundlib.h
8938 do :
8939 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8941 if test "x$ac_cv_header_audio_soundlib_h" = xyes; then :
8942 cat >>confdefs.h <<_ACEOF
8943 #define HAVE_AUDIO_SOUNDLIB_H 1
8944 _ACEOF
8948 done
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8951 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8952 if ${ac_cv_lib_audio_AuCreateFlow+:} false; then :
8953 $as_echo_n "(cached) " >&6
8954 else
8955 ac_check_lib_save_LIBS=$LIBS
8956 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8960 /* Override any GCC internal prototype to avoid an error.
8961 Use char because int might match the return type of a GCC
8962 builtin and then its argument prototype would still apply. */
8963 #ifdef __cplusplus
8964 extern "C"
8965 #endif
8966 char AuCreateFlow ();
8968 main ()
8970 return AuCreateFlow ();
8972 return 0;
8974 _ACEOF
8975 if ac_fn_c_try_link "$LINENO"; then :
8976 ac_cv_lib_audio_AuCreateFlow=yes
8977 else
8978 ac_cv_lib_audio_AuCreateFlow=no
8980 rm -f core conftest.err conftest.$ac_objext \
8981 conftest$ac_exeext conftest.$ac_ext
8982 LIBS=$ac_check_lib_save_LIBS
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8985 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
8986 if test "x$ac_cv_lib_audio_AuCreateFlow" = xyes; then :
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
8988 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
8989 if ${ac_cv_lib_Xau_XauGetBestAuthByAddr+:} false; then :
8990 $as_echo_n "(cached) " >&6
8991 else
8992 ac_check_lib_save_LIBS=$LIBS
8993 LIBS="-lXau $X_LIBS $LIBS"
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8997 /* Override any GCC internal prototype to avoid an error.
8998 Use char because int might match the return type of a GCC
8999 builtin and then its argument prototype would still apply. */
9000 #ifdef __cplusplus
9001 extern "C"
9002 #endif
9003 char XauGetBestAuthByAddr ();
9005 main ()
9007 return XauGetBestAuthByAddr ();
9009 return 0;
9011 _ACEOF
9012 if ac_fn_c_try_link "$LINENO"; then :
9013 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9014 else
9015 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
9017 rm -f core conftest.err conftest.$ac_objext \
9018 conftest$ac_exeext conftest.$ac_ext
9019 LIBS=$ac_check_lib_save_LIBS
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
9022 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
9023 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = xyes; then :
9024 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9025 else
9026 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9034 done
9037 CPPFLAGS="$ac_save_CPPFLAGS"
9038 else
9039 XLIB=""
9040 X_CFLAGS=""
9041 X_LIBS=""
9042 enable_winex11_drv=${enable_winex11_drv:-no}
9043 enable_opengl32=${enable_opengl32:-no}
9044 enable_glu32=${enable_glu32:-no}
9046 if test "x$XLIB" = "x"; then :
9047 case "x$with_x" in
9048 xno) ;;
9049 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9050 without X support, which probably isn't what you want. You will need
9051 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9052 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9053 esac
9056 if test "$ac_cv_header_CL_cl_h" = "yes"
9057 then
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9059 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9060 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9063 ac_check_lib_save_LIBS=$LIBS
9064 LIBS="-lOpenCL $LIBS"
9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h. */
9068 /* Override any GCC internal prototype to avoid an error.
9069 Use char because int might match the return type of a GCC
9070 builtin and then its argument prototype would still apply. */
9071 #ifdef __cplusplus
9072 extern "C"
9073 #endif
9074 char clGetPlatformInfo ();
9076 main ()
9078 return clGetPlatformInfo ();
9080 return 0;
9082 _ACEOF
9083 if ac_fn_c_try_link "$LINENO"; then :
9084 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9085 else
9086 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9088 rm -f core conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9090 LIBS=$ac_check_lib_save_LIBS
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9093 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9094 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9095 LIBOPENCL="-lOpenCL"
9100 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9101 case "x$with_opencl" in
9102 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9103 xno) ;;
9104 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9105 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9106 esac
9108 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9111 XML2LIBS=""
9113 XML2INCL=""
9115 XSLTINCL=""
9117 if test "x$with_xml" != "xno"
9118 then
9119 ac_save_CPPFLAGS="$CPPFLAGS"
9120 if test "$PKG_CONFIG" != "false"
9121 then
9122 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9123 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9124 else
9125 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9126 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9128 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9129 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9130 do :
9131 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9132 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9133 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9134 cat >>confdefs.h <<_ACEOF
9135 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9136 _ACEOF
9140 done
9142 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"
9143 then
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9145 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9146 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9147 $as_echo_n "(cached) " >&6
9148 else
9149 ac_check_lib_save_LIBS=$LIBS
9150 LIBS="-lxml2 $ac_xml_libs $LIBS"
9151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152 /* end confdefs.h. */
9154 /* Override any GCC internal prototype to avoid an error.
9155 Use char because int might match the return type of a GCC
9156 builtin and then its argument prototype would still apply. */
9157 #ifdef __cplusplus
9158 extern "C"
9159 #endif
9160 char xmlParseMemory ();
9162 main ()
9164 return xmlParseMemory ();
9166 return 0;
9168 _ACEOF
9169 if ac_fn_c_try_link "$LINENO"; then :
9170 ac_cv_lib_xml2_xmlParseMemory=yes
9171 else
9172 ac_cv_lib_xml2_xmlParseMemory=no
9174 rm -f core conftest.err conftest.$ac_objext \
9175 conftest$ac_exeext conftest.$ac_ext
9176 LIBS=$ac_check_lib_save_LIBS
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9179 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9180 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9182 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9184 XML2LIBS="$ac_xml_libs"
9185 XML2INCL="$ac_xml_cflags"
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9189 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9190 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9191 $as_echo_n "(cached) " >&6
9192 else
9193 ac_check_lib_save_LIBS=$LIBS
9194 LIBS="-lxml2 $ac_xml_libs $LIBS"
9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9198 /* Override any GCC internal prototype to avoid an error.
9199 Use char because int might match the return type of a GCC
9200 builtin and then its argument prototype would still apply. */
9201 #ifdef __cplusplus
9202 extern "C"
9203 #endif
9204 char xmlReadMemory ();
9206 main ()
9208 return xmlReadMemory ();
9210 return 0;
9212 _ACEOF
9213 if ac_fn_c_try_link "$LINENO"; then :
9214 ac_cv_lib_xml2_xmlReadMemory=yes
9215 else
9216 ac_cv_lib_xml2_xmlReadMemory=no
9218 rm -f core conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext conftest.$ac_ext
9220 LIBS=$ac_check_lib_save_LIBS
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9223 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9224 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9226 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9231 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9232 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9233 $as_echo_n "(cached) " >&6
9234 else
9235 ac_check_lib_save_LIBS=$LIBS
9236 LIBS="-lxml2 $ac_xml_libs $LIBS"
9237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9238 /* end confdefs.h. */
9240 /* Override any GCC internal prototype to avoid an error.
9241 Use char because int might match the return type of a GCC
9242 builtin and then its argument prototype would still apply. */
9243 #ifdef __cplusplus
9244 extern "C"
9245 #endif
9246 char xmlNewDocPI ();
9248 main ()
9250 return xmlNewDocPI ();
9252 return 0;
9254 _ACEOF
9255 if ac_fn_c_try_link "$LINENO"; then :
9256 ac_cv_lib_xml2_xmlNewDocPI=yes
9257 else
9258 ac_cv_lib_xml2_xmlNewDocPI=no
9260 rm -f core conftest.err conftest.$ac_objext \
9261 conftest$ac_exeext conftest.$ac_ext
9262 LIBS=$ac_check_lib_save_LIBS
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9265 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9266 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9268 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9273 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9274 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9275 $as_echo_n "(cached) " >&6
9276 else
9277 ac_check_lib_save_LIBS=$LIBS
9278 LIBS="-lxml2 $ac_xml_libs $LIBS"
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9282 /* Override any GCC internal prototype to avoid an error.
9283 Use char because int might match the return type of a GCC
9284 builtin and then its argument prototype would still apply. */
9285 #ifdef __cplusplus
9286 extern "C"
9287 #endif
9288 char xmlSchemaSetParserStructuredErrors ();
9290 main ()
9292 return xmlSchemaSetParserStructuredErrors ();
9294 return 0;
9296 _ACEOF
9297 if ac_fn_c_try_link "$LINENO"; then :
9298 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9299 else
9300 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9302 rm -f core conftest.err conftest.$ac_objext \
9303 conftest$ac_exeext conftest.$ac_ext
9304 LIBS=$ac_check_lib_save_LIBS
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9307 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9308 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9310 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9315 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9316 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 ac_check_lib_save_LIBS=$LIBS
9320 LIBS="-lxml2 $ac_xml_libs $LIBS"
9321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322 /* end confdefs.h. */
9324 /* Override any GCC internal prototype to avoid an error.
9325 Use char because int might match the return type of a GCC
9326 builtin and then its argument prototype would still apply. */
9327 #ifdef __cplusplus
9328 extern "C"
9329 #endif
9330 char xmlSchemaSetValidStructuredErrors ();
9332 main ()
9334 return xmlSchemaSetValidStructuredErrors ();
9336 return 0;
9338 _ACEOF
9339 if ac_fn_c_try_link "$LINENO"; then :
9340 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9341 else
9342 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9344 rm -f core conftest.err conftest.$ac_objext \
9345 conftest$ac_exeext conftest.$ac_ext
9346 LIBS=$ac_check_lib_save_LIBS
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9349 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9350 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9352 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9357 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9358 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9359 $as_echo_n "(cached) " >&6
9360 else
9361 ac_check_lib_save_LIBS=$LIBS
9362 LIBS="-lxml2 $ac_xml_libs $LIBS"
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9366 /* Override any GCC internal prototype to avoid an error.
9367 Use char because int might match the return type of a GCC
9368 builtin and then its argument prototype would still apply. */
9369 #ifdef __cplusplus
9370 extern "C"
9371 #endif
9372 char xmlFirstElementChild ();
9374 main ()
9376 return xmlFirstElementChild ();
9378 return 0;
9380 _ACEOF
9381 if ac_fn_c_try_link "$LINENO"; then :
9382 ac_cv_lib_xml2_xmlFirstElementChild=yes
9383 else
9384 ac_cv_lib_xml2_xmlFirstElementChild=no
9386 rm -f core conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
9388 LIBS=$ac_check_lib_save_LIBS
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9391 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9392 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9394 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9398 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9400 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9402 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9407 CPPFLAGS="$ac_save_CPPFLAGS"
9409 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9410 case "x$with_xml" in
9411 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9412 xno) ;;
9413 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9414 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9415 esac
9418 if test "x$with_xslt" != "xno"
9419 then
9420 if test "$PKG_CONFIG" != "false"
9421 then
9422 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9423 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9424 else
9425 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9426 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9428 ac_save_CPPFLAGS="$CPPFLAGS"
9429 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9430 for ac_header in libxslt/pattern.h libxslt/transform.h
9431 do :
9432 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9433 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9434 # include <libxslt/pattern.h>
9435 #endif
9437 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9438 cat >>confdefs.h <<_ACEOF
9439 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9440 _ACEOF
9444 done
9446 CPPFLAGS="$ac_save_CPPFLAGS"
9447 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9448 then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9450 $as_echo_n "checking for -lxslt... " >&6; }
9451 if ${ac_cv_lib_soname_xslt+:} false; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 ac_check_soname_save_LIBS=$LIBS
9455 LIBS="-lxslt $ac_xslt_libs $LIBS"
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9459 /* Override any GCC internal prototype to avoid an error.
9460 Use char because int might match the return type of a GCC
9461 builtin and then its argument prototype would still apply. */
9462 #ifdef __cplusplus
9463 extern "C"
9464 #endif
9465 char xsltCompilePattern ();
9467 main ()
9469 return xsltCompilePattern ();
9471 return 0;
9473 _ACEOF
9474 if ac_fn_c_try_link "$LINENO"; then :
9475 case "$LIBEXT" in
9476 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9477 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'` ;;
9478 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9479 esac
9481 rm -f core conftest.err conftest.$ac_objext \
9482 conftest$ac_exeext conftest.$ac_ext
9483 LIBS=$ac_check_soname_save_LIBS
9485 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9487 $as_echo "not found" >&6; }
9489 else
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9491 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9493 cat >>confdefs.h <<_ACEOF
9494 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9495 _ACEOF
9497 XSLTINCL="$ac_xslt_cflags"
9501 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9502 case "x$with_xslt" in
9503 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9504 xno) ;;
9505 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9506 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9507 esac
9510 HALINCL=""
9512 if test "x$with_hal" != "xno"
9513 then
9514 ac_save_CPPFLAGS="$CPPFLAGS"
9515 if test "$PKG_CONFIG" != "false"
9516 then
9517 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9518 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9519 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9521 for ac_header in dbus/dbus.h hal/libhal.h
9522 do :
9523 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9524 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9525 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9526 cat >>confdefs.h <<_ACEOF
9527 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9528 _ACEOF
9532 done
9534 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9535 then
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9537 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9538 if ${ac_cv_lib_dbus_1_dbus_connection_close+:} false; then :
9539 $as_echo_n "(cached) " >&6
9540 else
9541 ac_check_lib_save_LIBS=$LIBS
9542 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h. */
9546 /* Override any GCC internal prototype to avoid an error.
9547 Use char because int might match the return type of a GCC
9548 builtin and then its argument prototype would still apply. */
9549 #ifdef __cplusplus
9550 extern "C"
9551 #endif
9552 char dbus_connection_close ();
9554 main ()
9556 return dbus_connection_close ();
9558 return 0;
9560 _ACEOF
9561 if ac_fn_c_try_link "$LINENO"; then :
9562 ac_cv_lib_dbus_1_dbus_connection_close=yes
9563 else
9564 ac_cv_lib_dbus_1_dbus_connection_close=no
9566 rm -f core conftest.err conftest.$ac_objext \
9567 conftest$ac_exeext conftest.$ac_ext
9568 LIBS=$ac_check_lib_save_LIBS
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9571 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9572 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = xyes; then :
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9574 $as_echo_n "checking for -lhal... " >&6; }
9575 if ${ac_cv_lib_soname_hal+:} false; then :
9576 $as_echo_n "(cached) " >&6
9577 else
9578 ac_check_soname_save_LIBS=$LIBS
9579 LIBS="-lhal $ac_hal_libs $LIBS"
9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9583 /* Override any GCC internal prototype to avoid an error.
9584 Use char because int might match the return type of a GCC
9585 builtin and then its argument prototype would still apply. */
9586 #ifdef __cplusplus
9587 extern "C"
9588 #endif
9589 char libhal_ctx_new ();
9591 main ()
9593 return libhal_ctx_new ();
9595 return 0;
9597 _ACEOF
9598 if ac_fn_c_try_link "$LINENO"; then :
9599 case "$LIBEXT" in
9600 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9601 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'` ;;
9602 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9603 esac
9605 rm -f core conftest.err conftest.$ac_objext \
9606 conftest$ac_exeext conftest.$ac_ext
9607 LIBS=$ac_check_soname_save_LIBS
9609 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9611 $as_echo "not found" >&6; }
9613 else
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9615 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9617 cat >>confdefs.h <<_ACEOF
9618 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9619 _ACEOF
9621 HALINCL="$ac_hal_cflags"
9626 CPPFLAGS="$ac_save_CPPFLAGS"
9628 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9629 case "x$with_hal" in
9630 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9631 xno) ;;
9632 *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9633 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9634 esac
9637 if test "x$with_gnutls" != "xno"
9638 then
9639 ac_save_CPPFLAGS="$CPPFLAGS"
9640 if test "$PKG_CONFIG" != "false"
9641 then
9642 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9643 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9644 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9646 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9647 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9650 #include <gnutls/gnutls.h>
9652 main ()
9654 typeof(gnutls_mac_get_key_size) *pfunc;
9656 return 0;
9658 _ACEOF
9659 if ac_fn_c_try_compile "$LINENO"; then :
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9661 $as_echo_n "checking for -lgnutls... " >&6; }
9662 if ${ac_cv_lib_soname_gnutls+:} false; then :
9663 $as_echo_n "(cached) " >&6
9664 else
9665 ac_check_soname_save_LIBS=$LIBS
9666 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h. */
9670 /* Override any GCC internal prototype to avoid an error.
9671 Use char because int might match the return type of a GCC
9672 builtin and then its argument prototype would still apply. */
9673 #ifdef __cplusplus
9674 extern "C"
9675 #endif
9676 char gnutls_global_init ();
9678 main ()
9680 return gnutls_global_init ();
9682 return 0;
9684 _ACEOF
9685 if ac_fn_c_try_link "$LINENO"; then :
9686 case "$LIBEXT" in
9687 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9688 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'` ;;
9689 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9690 esac
9692 rm -f core conftest.err conftest.$ac_objext \
9693 conftest$ac_exeext conftest.$ac_ext
9694 LIBS=$ac_check_soname_save_LIBS
9696 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9698 $as_echo "not found" >&6; }
9700 else
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9702 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9704 cat >>confdefs.h <<_ACEOF
9705 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9706 _ACEOF
9708 GNUTLSINCL="$ac_gnutls_cflags"
9712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9716 CPPFLAGS="$ac_save_CPPFLAGS"
9718 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9719 case "x$with_gnutls" in
9720 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9721 xno) ;;
9722 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9723 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9724 esac
9727 CURSESLIBS=""
9728 if test "$ac_cv_header_ncurses_h" = "yes"
9729 then
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9731 $as_echo_n "checking for -lncurses... " >&6; }
9732 if ${ac_cv_lib_soname_ncurses+:} false; then :
9733 $as_echo_n "(cached) " >&6
9734 else
9735 ac_check_soname_save_LIBS=$LIBS
9736 LIBS="-lncurses $LIBS"
9737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9738 /* end confdefs.h. */
9740 /* Override any GCC internal prototype to avoid an error.
9741 Use char because int might match the return type of a GCC
9742 builtin and then its argument prototype would still apply. */
9743 #ifdef __cplusplus
9744 extern "C"
9745 #endif
9746 char waddch ();
9748 main ()
9750 return waddch ();
9752 return 0;
9754 _ACEOF
9755 if ac_fn_c_try_link "$LINENO"; then :
9756 case "$LIBEXT" in
9757 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9758 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'` ;;
9759 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9760 esac
9762 rm -f core conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9764 LIBS=$ac_check_soname_save_LIBS
9766 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9768 $as_echo "not found" >&6; }
9770 else
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9772 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9774 cat >>confdefs.h <<_ACEOF
9775 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9776 _ACEOF
9778 CURSESLIBS="-lncurses"
9780 elif test "$ac_cv_header_curses_h" = "yes"
9781 then
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9783 $as_echo_n "checking for -lcurses... " >&6; }
9784 if ${ac_cv_lib_soname_curses+:} false; then :
9785 $as_echo_n "(cached) " >&6
9786 else
9787 ac_check_soname_save_LIBS=$LIBS
9788 LIBS="-lcurses $LIBS"
9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790 /* end confdefs.h. */
9792 /* Override any GCC internal prototype to avoid an error.
9793 Use char because int might match the return type of a GCC
9794 builtin and then its argument prototype would still apply. */
9795 #ifdef __cplusplus
9796 extern "C"
9797 #endif
9798 char waddch ();
9800 main ()
9802 return waddch ();
9804 return 0;
9806 _ACEOF
9807 if ac_fn_c_try_link "$LINENO"; then :
9808 case "$LIBEXT" in
9809 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9810 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'` ;;
9811 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9812 esac
9814 rm -f core conftest.err conftest.$ac_objext \
9815 conftest$ac_exeext conftest.$ac_ext
9816 LIBS=$ac_check_soname_save_LIBS
9818 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9820 $as_echo "not found" >&6; }
9822 else
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9824 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9826 cat >>confdefs.h <<_ACEOF
9827 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9828 _ACEOF
9830 CURSESLIBS="-lcurses"
9833 ac_save_LIBS="$LIBS"
9834 LIBS="$LIBS $CURSESLIBS"
9835 for ac_func in mousemask
9836 do :
9837 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9838 if test "x$ac_cv_func_mousemask" = xyes; then :
9839 cat >>confdefs.h <<_ACEOF
9840 #define HAVE_MOUSEMASK 1
9841 _ACEOF
9844 done
9846 LIBS="$ac_save_LIBS"
9847 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9848 case "x$with_curses" in
9849 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9850 xno) ;;
9851 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9852 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9853 esac
9856 if test "x$with_sane" != "xno"
9857 then
9858 ac_save_CPPFLAGS="$CPPFLAGS"
9859 # Extract the first word of "sane-config", so it can be a program name with args.
9860 set dummy sane-config; ac_word=$2
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9862 $as_echo_n "checking for $ac_word... " >&6; }
9863 if ${ac_cv_prog_sane_devel+:} false; then :
9864 $as_echo_n "(cached) " >&6
9865 else
9866 if test -n "$sane_devel"; then
9867 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9868 else
9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870 for as_dir in $PATH
9872 IFS=$as_save_IFS
9873 test -z "$as_dir" && as_dir=.
9874 for ac_exec_ext in '' $ac_executable_extensions; do
9875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9876 ac_cv_prog_sane_devel="sane-config"
9877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9878 break 2
9880 done
9881 done
9882 IFS=$as_save_IFS
9884 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9887 sane_devel=$ac_cv_prog_sane_devel
9888 if test -n "$sane_devel"; then
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9890 $as_echo "$sane_devel" >&6; }
9891 else
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893 $as_echo "no" >&6; }
9897 if test "$sane_devel" != "no"
9898 then
9899 ac_sane_incl="`$sane_devel --cflags`"
9900 ac_sane_libs="`$sane_devel --ldflags`"
9901 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9903 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9904 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9906 $as_echo_n "checking for -lsane... " >&6; }
9907 if ${ac_cv_lib_soname_sane+:} false; then :
9908 $as_echo_n "(cached) " >&6
9909 else
9910 ac_check_soname_save_LIBS=$LIBS
9911 LIBS="-lsane $ac_sane_libs $LIBS"
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9915 /* Override any GCC internal prototype to avoid an error.
9916 Use char because int might match the return type of a GCC
9917 builtin and then its argument prototype would still apply. */
9918 #ifdef __cplusplus
9919 extern "C"
9920 #endif
9921 char sane_init ();
9923 main ()
9925 return sane_init ();
9927 return 0;
9929 _ACEOF
9930 if ac_fn_c_try_link "$LINENO"; then :
9931 case "$LIBEXT" in
9932 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9933 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'` ;;
9934 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9935 esac
9937 rm -f core conftest.err conftest.$ac_objext \
9938 conftest$ac_exeext conftest.$ac_ext
9939 LIBS=$ac_check_soname_save_LIBS
9941 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9943 $as_echo "not found" >&6; }
9945 else
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9947 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9949 cat >>confdefs.h <<_ACEOF
9950 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9951 _ACEOF
9953 SANEINCL="$ac_sane_incl"
9959 CPPFLAGS="$ac_save_CPPFLAGS"
9961 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9962 case "x$with_sane" in
9963 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9964 xno) ;;
9965 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9966 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9967 esac
9970 if test "x$with_v4l" != "xno"
9971 then
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9973 $as_echo_n "checking for -lv4l1... " >&6; }
9974 if ${ac_cv_lib_soname_v4l1+:} false; then :
9975 $as_echo_n "(cached) " >&6
9976 else
9977 ac_check_soname_save_LIBS=$LIBS
9978 LIBS="-lv4l1 $LIBS"
9979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980 /* end confdefs.h. */
9982 /* Override any GCC internal prototype to avoid an error.
9983 Use char because int might match the return type of a GCC
9984 builtin and then its argument prototype would still apply. */
9985 #ifdef __cplusplus
9986 extern "C"
9987 #endif
9988 char v4l1_open ();
9990 main ()
9992 return v4l1_open ();
9994 return 0;
9996 _ACEOF
9997 if ac_fn_c_try_link "$LINENO"; then :
9998 case "$LIBEXT" in
9999 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10000 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'` ;;
10001 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10002 esac
10004 rm -f core conftest.err conftest.$ac_objext \
10005 conftest$ac_exeext conftest.$ac_ext
10006 LIBS=$ac_check_soname_save_LIBS
10008 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10010 $as_echo "not found" >&6; }
10012 else
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10014 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10016 cat >>confdefs.h <<_ACEOF
10017 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10018 _ACEOF
10023 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10024 case "x$with_v4l" in
10025 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10026 xno) ;;
10027 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10028 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10029 esac
10032 if test "x$with_gphoto" != "xno"
10033 then
10034 ac_save_CPPFLAGS="$CPPFLAGS"
10035 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10036 set dummy gphoto2-config; ac_word=$2
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10038 $as_echo_n "checking for $ac_word... " >&6; }
10039 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10040 $as_echo_n "(cached) " >&6
10041 else
10042 if test -n "$gphoto2_devel"; then
10043 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10044 else
10045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046 for as_dir in $PATH
10048 IFS=$as_save_IFS
10049 test -z "$as_dir" && as_dir=.
10050 for ac_exec_ext in '' $ac_executable_extensions; do
10051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10052 ac_cv_prog_gphoto2_devel="gphoto2-config"
10053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10054 break 2
10056 done
10057 done
10058 IFS=$as_save_IFS
10060 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10063 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10064 if test -n "$gphoto2_devel"; then
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10066 $as_echo "$gphoto2_devel" >&6; }
10067 else
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069 $as_echo "no" >&6; }
10073 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10074 set dummy gphoto2-port-config; ac_word=$2
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076 $as_echo_n "checking for $ac_word... " >&6; }
10077 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 if test -n "$gphoto2port_devel"; then
10081 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10082 else
10083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084 for as_dir in $PATH
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10090 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10092 break 2
10094 done
10095 done
10096 IFS=$as_save_IFS
10098 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10101 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10102 if test -n "$gphoto2port_devel"; then
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10104 $as_echo "$gphoto2port_devel" >&6; }
10105 else
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10107 $as_echo "no" >&6; }
10111 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10112 then
10113 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10114 ac_gphoto2_libs=""
10115 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10117 case "$i" in
10118 -L/usr/lib|-L/usr/lib64) ;;
10119 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10120 esac
10121 done
10122 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10124 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10125 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10126 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10128 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10129 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10130 $as_echo_n "(cached) " >&6
10131 else
10132 ac_check_lib_save_LIBS=$LIBS
10133 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10137 /* Override any GCC internal prototype to avoid an error.
10138 Use char because int might match the return type of a GCC
10139 builtin and then its argument prototype would still apply. */
10140 #ifdef __cplusplus
10141 extern "C"
10142 #endif
10143 char gp_camera_new ();
10145 main ()
10147 return gp_camera_new ();
10149 return 0;
10151 _ACEOF
10152 if ac_fn_c_try_link "$LINENO"; then :
10153 ac_cv_lib_gphoto2_gp_camera_new=yes
10154 else
10155 ac_cv_lib_gphoto2_gp_camera_new=no
10157 rm -f core conftest.err conftest.$ac_objext \
10158 conftest$ac_exeext conftest.$ac_ext
10159 LIBS=$ac_check_lib_save_LIBS
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10162 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10163 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10165 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10167 GPHOTO2LIBS="$ac_gphoto2_libs"
10169 GPHOTO2INCL="$ac_gphoto2_incl"
10176 CPPFLAGS="$ac_save_CPPFLAGS"
10178 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10179 case "x$with_gphoto" in
10180 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10181 xno) ;;
10182 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10183 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10184 esac
10188 if test "$ac_cv_header_resolv_h" = "yes"
10189 then
10190 ac_save_LIBS="$LIBS"
10191 for lib in '' -lresolv
10193 LIBS="$lib $ac_save_LIBS"
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h. */
10196 #ifdef HAVE_NETINET_IN_H
10197 #include <netinet/in.h>
10198 #endif
10199 #include <resolv.h>
10201 main ()
10203 res_query("foo",ns_c_in,0,0,0);
10205 return 0;
10207 _ACEOF
10208 if ac_fn_c_try_link "$LINENO"; then :
10210 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10212 RESOLVLIBS="$lib"
10215 rm -f core conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10217 if test "${RESOLVLIBS+set}" = set; then
10218 break
10220 done
10221 LIBS="$ac_save_LIBS"
10224 LCMSLIBS=""
10226 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10227 then
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10229 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10230 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10231 $as_echo_n "(cached) " >&6
10232 else
10233 ac_check_lib_save_LIBS=$LIBS
10234 LIBS="-llcms $LIBS"
10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236 /* end confdefs.h. */
10238 /* Override any GCC internal prototype to avoid an error.
10239 Use char because int might match the return type of a GCC
10240 builtin and then its argument prototype would still apply. */
10241 #ifdef __cplusplus
10242 extern "C"
10243 #endif
10244 char cmsOpenProfileFromFile ();
10246 main ()
10248 return cmsOpenProfileFromFile ();
10250 return 0;
10252 _ACEOF
10253 if ac_fn_c_try_link "$LINENO"; then :
10254 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10255 else
10256 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10258 rm -f core conftest.err conftest.$ac_objext \
10259 conftest$ac_exeext conftest.$ac_ext
10260 LIBS=$ac_check_lib_save_LIBS
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10263 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10264 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10266 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10268 LCMSLIBS="-llcms"
10272 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10273 case "x$with_cms" in
10274 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10275 xno) ;;
10276 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10277 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10278 esac
10281 if test "x$with_freetype" != "xno"
10282 then
10283 for ac_prog in freetype-config freetype2-config
10285 # Extract the first word of "$ac_prog", so it can be a program name with args.
10286 set dummy $ac_prog; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if ${ac_cv_prog_ft_devel+:} false; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292 if test -n "$ft_devel"; then
10293 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10294 else
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10298 IFS=$as_save_IFS
10299 test -z "$as_dir" && as_dir=.
10300 for ac_exec_ext in '' $ac_executable_extensions; do
10301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10302 ac_cv_prog_ft_devel="$ac_prog"
10303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304 break 2
10306 done
10307 done
10308 IFS=$as_save_IFS
10312 ft_devel=$ac_cv_prog_ft_devel
10313 if test -n "$ft_devel"; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10315 $as_echo "$ft_devel" >&6; }
10316 else
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10322 test -n "$ft_devel" && break
10323 done
10324 test -n "$ft_devel" || ft_devel="no"
10326 if test "$ft_devel" != "no"
10327 then
10328 ac_freetype_incl=`$ft_devel --cflags`
10329 ac_freetype_libs=`$ft_devel --libs`
10331 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10333 $as_echo_n "checking for -lfreetype... " >&6; }
10334 if ${ac_cv_lib_soname_freetype+:} false; then :
10335 $as_echo_n "(cached) " >&6
10336 else
10337 ac_check_soname_save_LIBS=$LIBS
10338 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10340 /* end confdefs.h. */
10342 /* Override any GCC internal prototype to avoid an error.
10343 Use char because int might match the return type of a GCC
10344 builtin and then its argument prototype would still apply. */
10345 #ifdef __cplusplus
10346 extern "C"
10347 #endif
10348 char FT_Init_FreeType ();
10350 main ()
10352 return FT_Init_FreeType ();
10354 return 0;
10356 _ACEOF
10357 if ac_fn_c_try_link "$LINENO"; then :
10358 case "$LIBEXT" in
10359 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10360 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'` ;;
10361 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10362 esac
10364 rm -f core conftest.err conftest.$ac_objext \
10365 conftest$ac_exeext conftest.$ac_ext
10366 LIBS=$ac_check_soname_save_LIBS
10368 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10370 $as_echo "not found" >&6; }
10371 ft_lib=no
10372 else
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10374 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10376 cat >>confdefs.h <<_ACEOF
10377 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10378 _ACEOF
10380 ft_lib=yes
10382 if test "$ft_lib" = "yes"
10383 then
10384 ac_save_CPPFLAGS="$CPPFLAGS"
10385 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10386 for ac_header in ft2build.h \
10387 freetype/freetype.h \
10388 freetype/ftglyph.h \
10389 freetype/fttypes.h \
10390 freetype/tttables.h \
10391 freetype/ftsnames.h \
10392 freetype/ttnameid.h \
10393 freetype/ftoutln.h \
10394 freetype/ftwinfnt.h \
10395 freetype/ftmodapi.h \
10396 freetype/ftlcdfil.h \
10397 freetype/internal/sfnt.h
10398 do :
10399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10400 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10401 # include <ft2build.h>
10402 #endif
10404 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10405 cat >>confdefs.h <<_ACEOF
10406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10407 _ACEOF
10411 done
10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414 /* end confdefs.h. */
10415 #include <ft2build.h>
10416 #include <freetype/fttrigon.h>
10417 _ACEOF
10418 if ac_fn_c_try_cpp "$LINENO"; then :
10420 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10422 wine_cv_fttrigon=yes
10423 else
10424 wine_cv_fttrigon=no
10426 rm -f conftest.err conftest.i conftest.$ac_ext
10427 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10429 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10431 cat >>confdefs.h <<_ACEOF
10432 #define HAVE_FT_TRUETYPEENGINETYPE 1
10433 _ACEOF
10438 ac_save_CFLAGS="$CFLAGS"
10439 CFLAGS="$CFLAGS $ac_freetype_libs"
10440 for ac_func in FT_Load_Sfnt_Table
10441 do :
10442 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10443 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = xyes; then :
10444 cat >>confdefs.h <<_ACEOF
10445 #define HAVE_FT_LOAD_SFNT_TABLE 1
10446 _ACEOF
10449 done
10451 CFLAGS="$ac_save_CFLAGS"
10452 CPPFLAGS="$ac_save_CPPFLAGS"
10453 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10454 then
10456 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10458 FREETYPELIBS="$ac_freetype_libs"
10460 FREETYPEINCL="$ac_freetype_incl"
10465 if test "x$FREETYPELIBS" = "x"; then :
10466 case "x$with_freetype" in
10467 xno) ;;
10468 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10469 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10470 esac
10472 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10475 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10476 if ${ac_cv_c_ppdev+:} false; then :
10477 $as_echo_n "(cached) " >&6
10478 else
10479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480 /* end confdefs.h. */
10481 #ifdef HAVE_SYS_IOCTL_H
10482 # include <sys/ioctl.h>
10483 #endif
10484 #include <linux/ppdev.h>
10486 main ()
10488 ioctl (1,PPCLAIM,0)
10490 return 0;
10492 _ACEOF
10493 if ac_fn_c_try_compile "$LINENO"; then :
10494 ac_cv_c_ppdev="yes"
10495 else
10496 ac_cv_c_ppdev="no"
10498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10501 $as_echo "$ac_cv_c_ppdev" >&6; }
10502 if test "$ac_cv_c_ppdev" = "yes"
10503 then
10505 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10509 ac_wine_check_funcs_save_LIBS="$LIBS"
10510 LIBS="$LIBS $LIBPTHREAD"
10511 for ac_func in \
10512 pthread_attr_get_np \
10513 pthread_getattr_np \
10514 pthread_get_stackaddr_np \
10515 pthread_get_stacksize_np
10516 do :
10517 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10518 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10519 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10520 cat >>confdefs.h <<_ACEOF
10521 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10522 _ACEOF
10525 done
10527 LIBS="$ac_wine_check_funcs_save_LIBS"
10529 if test "$ac_cv_header_zlib_h" = "yes"
10530 then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10532 $as_echo_n "checking for inflate in -lz... " >&6; }
10533 if ${ac_cv_lib_z_inflate+:} false; then :
10534 $as_echo_n "(cached) " >&6
10535 else
10536 ac_check_lib_save_LIBS=$LIBS
10537 LIBS="-lz $LIBS"
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10541 /* Override any GCC internal prototype to avoid an error.
10542 Use char because int might match the return type of a GCC
10543 builtin and then its argument prototype would still apply. */
10544 #ifdef __cplusplus
10545 extern "C"
10546 #endif
10547 char inflate ();
10549 main ()
10551 return inflate ();
10553 return 0;
10555 _ACEOF
10556 if ac_fn_c_try_link "$LINENO"; then :
10557 ac_cv_lib_z_inflate=yes
10558 else
10559 ac_cv_lib_z_inflate=no
10561 rm -f core conftest.err conftest.$ac_objext \
10562 conftest$ac_exeext conftest.$ac_ext
10563 LIBS=$ac_check_lib_save_LIBS
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10566 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10567 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10569 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10571 ZLIB="-lz"
10576 if test "x$ZLIB" = "x"; then :
10577 case "x$with_zlib" in
10578 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10579 xno) ;;
10580 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10581 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10582 esac
10585 if test "x$enable_tools" != xno
10586 then
10587 if test "$ac_cv_header_gettext_po_h" = "yes"
10588 then
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10590 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10591 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10592 $as_echo_n "(cached) " >&6
10593 else
10594 ac_check_lib_save_LIBS=$LIBS
10595 LIBS="-lgettextpo $LIBS"
10596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10597 /* end confdefs.h. */
10599 /* Override any GCC internal prototype to avoid an error.
10600 Use char because int might match the return type of a GCC
10601 builtin and then its argument prototype would still apply. */
10602 #ifdef __cplusplus
10603 extern "C"
10604 #endif
10605 char po_message_msgctxt ();
10607 main ()
10609 return po_message_msgctxt ();
10611 return 0;
10613 _ACEOF
10614 if ac_fn_c_try_link "$LINENO"; then :
10615 ac_cv_lib_gettextpo_po_message_msgctxt=yes
10616 else
10617 ac_cv_lib_gettextpo_po_message_msgctxt=no
10619 rm -f core conftest.err conftest.$ac_objext \
10620 conftest$ac_exeext conftest.$ac_ext
10621 LIBS=$ac_check_lib_save_LIBS
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10624 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10625 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10627 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10629 LIBGETTEXTPO="-lgettextpo"
10634 if test "x$LIBGETTEXTPO" = "x"; then :
10635 case "x$with_gettextpo" in
10636 x) as_fn_append wine_warnings "|GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported." ;;
10637 xno) ;;
10638 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported.
10639 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10640 esac
10644 if test "x$with_esd" != xno
10645 then
10646 save_CFLAGS="$CFLAGS"
10647 # Extract the first word of "esd-config", so it can be a program name with args.
10648 set dummy esd-config; ac_word=$2
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10650 $as_echo_n "checking for $ac_word... " >&6; }
10651 if ${ac_cv_path_ESDCONFIG+:} false; then :
10652 $as_echo_n "(cached) " >&6
10653 else
10654 case $ESDCONFIG in
10655 [\\/]* | ?:[\\/]*)
10656 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10660 for as_dir in $PATH
10662 IFS=$as_save_IFS
10663 test -z "$as_dir" && as_dir=.
10664 for ac_exec_ext in '' $ac_executable_extensions; do
10665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10666 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10668 break 2
10670 done
10671 done
10672 IFS=$as_save_IFS
10674 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10676 esac
10678 ESDCONFIG=$ac_cv_path_ESDCONFIG
10679 if test -n "$ESDCONFIG"; then
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10681 $as_echo "$ESDCONFIG" >&6; }
10682 else
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10684 $as_echo "no" >&6; }
10688 if test "x$ESDCONFIG" != "xno"
10689 then
10690 ac_esd_incl=""
10691 for i in `$ESDCONFIG --cflags`
10693 case "$i" in
10694 -I*) ac_esd_incl="$ac_esd_incl $i";;
10695 esac
10696 done
10697 ac_esd_libs=`$ESDCONFIG --libs`
10698 CFLAGS="$CFLAGS $ac_esd_incl"
10700 ac_esd_libs=${ac_esd_libs:-"-lesd"}
10701 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10702 if test "x$ac_cv_header_esd_h" = xyes; then :
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10704 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10705 if ${ac_cv_lib_esd_esd_open_sound+:} false; then :
10706 $as_echo_n "(cached) " >&6
10707 else
10708 ac_check_lib_save_LIBS=$LIBS
10709 LIBS="-lesd $ac_esd_libs $LIBS"
10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10713 /* Override any GCC internal prototype to avoid an error.
10714 Use char because int might match the return type of a GCC
10715 builtin and then its argument prototype would still apply. */
10716 #ifdef __cplusplus
10717 extern "C"
10718 #endif
10719 char esd_open_sound ();
10721 main ()
10723 return esd_open_sound ();
10725 return 0;
10727 _ACEOF
10728 if ac_fn_c_try_link "$LINENO"; then :
10729 ac_cv_lib_esd_esd_open_sound=yes
10730 else
10731 ac_cv_lib_esd_esd_open_sound=no
10733 rm -f core conftest.err conftest.$ac_objext \
10734 conftest$ac_exeext conftest.$ac_ext
10735 LIBS=$ac_check_lib_save_LIBS
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10738 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10739 if test "x$ac_cv_lib_esd_esd_open_sound" = xyes; then :
10740 ESDINCL="$ac_esd_incl"
10742 ESDLIBS="$ac_esd_libs"
10749 CFLAGS="$save_CFLAGS"
10752 if test "x$with_gstreamer" != "xno"
10753 then
10754 ac_save_CPPFLAGS="$CPPFLAGS"
10755 if test "$PKG_CONFIG" != "false"; then
10756 ac_gst_incl=""
10757 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10759 case "$i" in
10760 -I*) ac_gst_incl="$ac_gst_incl $i";;
10761 esac
10762 done
10763 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10764 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10765 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10766 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10767 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10768 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10770 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10771 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10772 $as_echo_n "(cached) " >&6
10773 else
10774 ac_check_lib_save_LIBS=$LIBS
10775 LIBS="-lgstreamer-0.10 $LIBS"
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10779 /* Override any GCC internal prototype to avoid an error.
10780 Use char because int might match the return type of a GCC
10781 builtin and then its argument prototype would still apply. */
10782 #ifdef __cplusplus
10783 extern "C"
10784 #endif
10785 char gst_pad_get_caps_reffed ();
10787 main ()
10789 return gst_pad_get_caps_reffed ();
10791 return 0;
10793 _ACEOF
10794 if ac_fn_c_try_link "$LINENO"; then :
10795 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10796 else
10797 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10799 rm -f core conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10801 LIBS=$ac_check_lib_save_LIBS
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10804 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10805 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10807 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10808 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 ac_check_lib_save_LIBS=$LIBS
10812 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10816 /* Override any GCC internal prototype to avoid an error.
10817 Use char because int might match the return type of a GCC
10818 builtin and then its argument prototype would still apply. */
10819 #ifdef __cplusplus
10820 extern "C"
10821 #endif
10822 char gst_app_buffer_new ();
10824 main ()
10826 return gst_app_buffer_new ();
10828 return 0;
10830 _ACEOF
10831 if ac_fn_c_try_link "$LINENO"; then :
10832 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10833 else
10834 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10836 rm -f core conftest.err conftest.$ac_objext \
10837 conftest$ac_exeext conftest.$ac_ext
10838 LIBS=$ac_check_lib_save_LIBS
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10841 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10842 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10843 GSTREAMER_LIBS="$ac_gst_libs"
10845 GSTREAMER_INCL="$ac_gst_incl"
10858 CPPFLAGS="$ac_save_CPPFLAGS"
10860 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10861 case "x$with_gstreamer" in
10862 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10863 xno) ;;
10864 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10865 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10866 esac
10868 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10870 ALSALIBS=""
10872 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10873 then
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10875 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10876 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10877 $as_echo_n "(cached) " >&6
10878 else
10879 ac_check_lib_save_LIBS=$LIBS
10880 LIBS="-lasound $LIBS"
10881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h. */
10884 /* Override any GCC internal prototype to avoid an error.
10885 Use char because int might match the return type of a GCC
10886 builtin and then its argument prototype would still apply. */
10887 #ifdef __cplusplus
10888 extern "C"
10889 #endif
10890 char snd_pcm_hw_params_get_access_mask ();
10892 main ()
10894 return snd_pcm_hw_params_get_access_mask ();
10896 return 0;
10898 _ACEOF
10899 if ac_fn_c_try_link "$LINENO"; then :
10900 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10901 else
10902 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10904 rm -f core conftest.err conftest.$ac_objext \
10905 conftest$ac_exeext conftest.$ac_ext
10906 LIBS=$ac_check_lib_save_LIBS
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10909 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10910 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
10911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10912 /* end confdefs.h. */
10913 #ifdef HAVE_ALSA_ASOUNDLIB_H
10914 #include <alsa/asoundlib.h>
10915 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10916 #include <sys/asoundlib.h>
10917 #endif
10919 main ()
10921 int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL)
10923 return 0;
10925 _ACEOF
10926 if ac_fn_c_try_compile "$LINENO"; then :
10927 ALSALIBS="-lasound"
10929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10934 if test "x$with_oss" != xno
10935 then
10936 ac_save_CPPFLAGS="$CPPFLAGS"
10937 if test -f /etc/oss.conf
10938 then
10939 . /etc/oss.conf
10941 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10942 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10943 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10944 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10945 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
10947 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
10949 cat >>confdefs.h <<_ACEOF
10950 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
10951 _ACEOF
10953 OSS4INCL="$ac_oss_incl"
10960 CPPFLAGS="$ac_save_CPPFLAGS"
10961 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
10962 then
10963 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10968 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10969 then
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10971 $as_echo_n "checking for -lcapi20... " >&6; }
10972 if ${ac_cv_lib_soname_capi20+:} false; then :
10973 $as_echo_n "(cached) " >&6
10974 else
10975 ac_check_soname_save_LIBS=$LIBS
10976 LIBS="-lcapi20 $LIBS"
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
10980 /* Override any GCC internal prototype to avoid an error.
10981 Use char because int might match the return type of a GCC
10982 builtin and then its argument prototype would still apply. */
10983 #ifdef __cplusplus
10984 extern "C"
10985 #endif
10986 char capi20_register ();
10988 main ()
10990 return capi20_register ();
10992 return 0;
10994 _ACEOF
10995 if ac_fn_c_try_link "$LINENO"; then :
10996 case "$LIBEXT" in
10997 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10998 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'` ;;
10999 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11000 esac
11002 rm -f core conftest.err conftest.$ac_objext \
11003 conftest$ac_exeext conftest.$ac_ext
11004 LIBS=$ac_check_soname_save_LIBS
11006 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11008 $as_echo "not found" >&6; }
11010 else
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11012 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11014 cat >>confdefs.h <<_ACEOF
11015 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11016 _ACEOF
11021 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11022 case "x$with_capi" in
11023 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11024 xno) ;;
11025 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11026 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11027 esac
11030 CUPSINCL=""
11032 if test "x$with_cups" != "xno"
11033 then
11034 ac_save_CPPFLAGS="$CPPFLAGS"
11035 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11036 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11037 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11038 for ac_header in cups/cups.h
11039 do :
11040 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11041 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11042 cat >>confdefs.h <<_ACEOF
11043 #define HAVE_CUPS_CUPS_H 1
11044 _ACEOF
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11046 $as_echo_n "checking for -lcups... " >&6; }
11047 if ${ac_cv_lib_soname_cups+:} false; then :
11048 $as_echo_n "(cached) " >&6
11049 else
11050 ac_check_soname_save_LIBS=$LIBS
11051 LIBS="-lcups $ac_cups_libs $LIBS"
11052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053 /* end confdefs.h. */
11055 /* Override any GCC internal prototype to avoid an error.
11056 Use char because int might match the return type of a GCC
11057 builtin and then its argument prototype would still apply. */
11058 #ifdef __cplusplus
11059 extern "C"
11060 #endif
11061 char cupsGetDefault ();
11063 main ()
11065 return cupsGetDefault ();
11067 return 0;
11069 _ACEOF
11070 if ac_fn_c_try_link "$LINENO"; then :
11071 case "$LIBEXT" in
11072 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11073 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'` ;;
11074 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11075 esac
11077 rm -f core conftest.err conftest.$ac_objext \
11078 conftest$ac_exeext conftest.$ac_ext
11079 LIBS=$ac_check_soname_save_LIBS
11081 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11083 $as_echo "not found" >&6; }
11085 else
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11087 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11089 cat >>confdefs.h <<_ACEOF
11090 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11091 _ACEOF
11093 CUPSINCL="$ac_cups_cflags"
11097 done
11099 CPPFLAGS="$ac_save_CPPFLAGS"
11101 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11102 case "x$with_cups" in
11103 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11104 xno) ;;
11105 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11106 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11107 esac
11110 if test "$ac_cv_header_jack_jack_h" = "yes"
11111 then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
11113 $as_echo_n "checking for -ljack... " >&6; }
11114 if ${ac_cv_lib_soname_jack+:} false; then :
11115 $as_echo_n "(cached) " >&6
11116 else
11117 ac_check_soname_save_LIBS=$LIBS
11118 LIBS="-ljack $LIBS"
11119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h. */
11122 /* Override any GCC internal prototype to avoid an error.
11123 Use char because int might match the return type of a GCC
11124 builtin and then its argument prototype would still apply. */
11125 #ifdef __cplusplus
11126 extern "C"
11127 #endif
11128 char jack_client_new ();
11130 main ()
11132 return jack_client_new ();
11134 return 0;
11136 _ACEOF
11137 if ac_fn_c_try_link "$LINENO"; then :
11138 case "$LIBEXT" in
11139 dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11140 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'` ;;
11141 *) 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'` ;;
11142 esac
11144 rm -f core conftest.err conftest.$ac_objext \
11145 conftest$ac_exeext conftest.$ac_ext
11146 LIBS=$ac_check_soname_save_LIBS
11148 if test "x$ac_cv_lib_soname_jack" = "x"; then :
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11150 $as_echo "not found" >&6; }
11152 else
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
11154 $as_echo "$ac_cv_lib_soname_jack" >&6; }
11156 cat >>confdefs.h <<_ACEOF
11157 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
11158 _ACEOF
11164 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11165 then
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11167 $as_echo_n "checking for -lfontconfig... " >&6; }
11168 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11169 $as_echo_n "(cached) " >&6
11170 else
11171 ac_check_soname_save_LIBS=$LIBS
11172 LIBS="-lfontconfig $LIBS"
11173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h. */
11176 /* Override any GCC internal prototype to avoid an error.
11177 Use char because int might match the return type of a GCC
11178 builtin and then its argument prototype would still apply. */
11179 #ifdef __cplusplus
11180 extern "C"
11181 #endif
11182 char FcInit ();
11184 main ()
11186 return FcInit ();
11188 return 0;
11190 _ACEOF
11191 if ac_fn_c_try_link "$LINENO"; then :
11192 case "$LIBEXT" in
11193 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11194 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'` ;;
11195 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11196 esac
11198 rm -f core conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext conftest.$ac_ext
11200 LIBS=$ac_check_soname_save_LIBS
11202 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11204 $as_echo "not found" >&6; }
11206 else
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11208 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11210 cat >>confdefs.h <<_ACEOF
11211 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11212 _ACEOF
11216 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11217 then
11218 ac_save_CPPFLAGS="$CPPFLAGS"
11219 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11220 $as_unset ac_cv_header_fontconfig_fontconfig_h
11221 for ac_header in fontconfig/fontconfig.h
11222 do :
11223 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11224 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11225 cat >>confdefs.h <<_ACEOF
11226 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11227 _ACEOF
11231 done
11233 CPPFLAGS="$ac_save_CPPFLAGS"
11234 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11235 then
11236 FONTCONFIGINCL="$X_CFLAGS"
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11239 $as_echo_n "checking for -lfontconfig... " >&6; }
11240 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11241 $as_echo_n "(cached) " >&6
11242 else
11243 ac_check_soname_save_LIBS=$LIBS
11244 LIBS="-lfontconfig $X_LIBS $LIBS"
11245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11246 /* end confdefs.h. */
11248 /* Override any GCC internal prototype to avoid an error.
11249 Use char because int might match the return type of a GCC
11250 builtin and then its argument prototype would still apply. */
11251 #ifdef __cplusplus
11252 extern "C"
11253 #endif
11254 char FcInit ();
11256 main ()
11258 return FcInit ();
11260 return 0;
11262 _ACEOF
11263 if ac_fn_c_try_link "$LINENO"; then :
11264 case "$LIBEXT" in
11265 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11266 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'` ;;
11267 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11268 esac
11270 rm -f core conftest.err conftest.$ac_objext \
11271 conftest$ac_exeext conftest.$ac_ext
11272 LIBS=$ac_check_soname_save_LIBS
11274 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11276 $as_echo "not found" >&6; }
11278 else
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11280 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11282 cat >>confdefs.h <<_ACEOF
11283 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11284 _ACEOF
11290 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11291 case "x$with_fontconfig" in
11292 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11293 xno) ;;
11294 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11295 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11296 esac
11299 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11300 then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11302 $as_echo_n "checking for -lssl... " >&6; }
11303 if ${ac_cv_lib_soname_ssl+:} false; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11306 ac_check_soname_save_LIBS=$LIBS
11307 LIBS="-lssl $LIBS"
11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309 /* end confdefs.h. */
11311 /* Override any GCC internal prototype to avoid an error.
11312 Use char because int might match the return type of a GCC
11313 builtin and then its argument prototype would still apply. */
11314 #ifdef __cplusplus
11315 extern "C"
11316 #endif
11317 char SSL_library_init ();
11319 main ()
11321 return SSL_library_init ();
11323 return 0;
11325 _ACEOF
11326 if ac_fn_c_try_link "$LINENO"; then :
11327 case "$LIBEXT" in
11328 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11329 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'` ;;
11330 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11331 esac
11333 rm -f core conftest.err conftest.$ac_objext \
11334 conftest$ac_exeext conftest.$ac_ext
11335 LIBS=$ac_check_soname_save_LIBS
11337 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11339 $as_echo "not found" >&6; }
11341 else
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11343 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11345 cat >>confdefs.h <<_ACEOF
11346 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11347 _ACEOF
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11352 $as_echo_n "checking for -lcrypto... " >&6; }
11353 if ${ac_cv_lib_soname_crypto+:} false; then :
11354 $as_echo_n "(cached) " >&6
11355 else
11356 ac_check_soname_save_LIBS=$LIBS
11357 LIBS="-lcrypto $LIBS"
11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359 /* end confdefs.h. */
11361 /* Override any GCC internal prototype to avoid an error.
11362 Use char because int might match the return type of a GCC
11363 builtin and then its argument prototype would still apply. */
11364 #ifdef __cplusplus
11365 extern "C"
11366 #endif
11367 char BIO_new_socket ();
11369 main ()
11371 return BIO_new_socket ();
11373 return 0;
11375 _ACEOF
11376 if ac_fn_c_try_link "$LINENO"; then :
11377 case "$LIBEXT" in
11378 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11379 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'` ;;
11380 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11381 esac
11383 rm -f core conftest.err conftest.$ac_objext \
11384 conftest$ac_exeext conftest.$ac_ext
11385 LIBS=$ac_check_soname_save_LIBS
11387 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11389 $as_echo "not found" >&6; }
11391 else
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11393 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11395 cat >>confdefs.h <<_ACEOF
11396 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11397 _ACEOF
11402 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11403 case "x$with_openssl" in
11404 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11405 xno) ;;
11406 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11407 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11408 esac
11411 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11412 then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11414 $as_echo_n "checking for -lgsm... " >&6; }
11415 if ${ac_cv_lib_soname_gsm+:} false; then :
11416 $as_echo_n "(cached) " >&6
11417 else
11418 ac_check_soname_save_LIBS=$LIBS
11419 LIBS="-lgsm $LIBS"
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11423 /* Override any GCC internal prototype to avoid an error.
11424 Use char because int might match the return type of a GCC
11425 builtin and then its argument prototype would still apply. */
11426 #ifdef __cplusplus
11427 extern "C"
11428 #endif
11429 char gsm_create ();
11431 main ()
11433 return gsm_create ();
11435 return 0;
11437 _ACEOF
11438 if ac_fn_c_try_link "$LINENO"; then :
11439 case "$LIBEXT" in
11440 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11441 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'` ;;
11442 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11443 esac
11445 rm -f core conftest.err conftest.$ac_objext \
11446 conftest$ac_exeext conftest.$ac_ext
11447 LIBS=$ac_check_soname_save_LIBS
11449 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11451 $as_echo "not found" >&6; }
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11455 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11457 cat >>confdefs.h <<_ACEOF
11458 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11459 _ACEOF
11464 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11465 case "x$with_gsm" in
11466 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11467 xno) ;;
11468 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11469 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11470 esac
11473 if test "$ac_cv_header_jpeglib_h" = "yes"
11474 then
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11476 $as_echo_n "checking for -ljpeg... " >&6; }
11477 if ${ac_cv_lib_soname_jpeg+:} false; then :
11478 $as_echo_n "(cached) " >&6
11479 else
11480 ac_check_soname_save_LIBS=$LIBS
11481 LIBS="-ljpeg $LIBS"
11482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11483 /* end confdefs.h. */
11485 /* Override any GCC internal prototype to avoid an error.
11486 Use char because int might match the return type of a GCC
11487 builtin and then its argument prototype would still apply. */
11488 #ifdef __cplusplus
11489 extern "C"
11490 #endif
11491 char jpeg_start_decompress ();
11493 main ()
11495 return jpeg_start_decompress ();
11497 return 0;
11499 _ACEOF
11500 if ac_fn_c_try_link "$LINENO"; then :
11501 case "$LIBEXT" in
11502 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11503 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'` ;;
11504 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11505 esac
11507 rm -f core conftest.err conftest.$ac_objext \
11508 conftest$ac_exeext conftest.$ac_ext
11509 LIBS=$ac_check_soname_save_LIBS
11511 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11513 $as_echo "not found" >&6; }
11515 else
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11517 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11519 cat >>confdefs.h <<_ACEOF
11520 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11521 _ACEOF
11526 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11527 case "x$with_jpeg" in
11528 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11529 xno) ;;
11530 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11531 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11532 esac
11535 if test "$ac_cv_header_png_h" = "yes"
11536 then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11538 $as_echo_n "checking for -lpng... " >&6; }
11539 if ${ac_cv_lib_soname_png+:} false; then :
11540 $as_echo_n "(cached) " >&6
11541 else
11542 ac_check_soname_save_LIBS=$LIBS
11543 LIBS="-lpng -lm -lz $LIBS"
11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h. */
11547 /* Override any GCC internal prototype to avoid an error.
11548 Use char because int might match the return type of a GCC
11549 builtin and then its argument prototype would still apply. */
11550 #ifdef __cplusplus
11551 extern "C"
11552 #endif
11553 char png_create_read_struct ();
11555 main ()
11557 return png_create_read_struct ();
11559 return 0;
11561 _ACEOF
11562 if ac_fn_c_try_link "$LINENO"; then :
11563 case "$LIBEXT" in
11564 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11565 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'` ;;
11566 *) 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'` ;;
11567 esac
11569 rm -f core conftest.err conftest.$ac_objext \
11570 conftest$ac_exeext conftest.$ac_ext
11571 LIBS=$ac_check_soname_save_LIBS
11573 if test "x$ac_cv_lib_soname_png" = "x"; then :
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11575 $as_echo "not found" >&6; }
11577 else
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11579 $as_echo "$ac_cv_lib_soname_png" >&6; }
11581 cat >>confdefs.h <<_ACEOF
11582 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11583 _ACEOF
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11588 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11589 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11590 $as_echo_n "(cached) " >&6
11591 else
11592 ac_check_lib_save_LIBS=$LIBS
11593 LIBS="-lpng -lm -lz $LIBS"
11594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595 /* end confdefs.h. */
11597 /* Override any GCC internal prototype to avoid an error.
11598 Use char because int might match the return type of a GCC
11599 builtin and then its argument prototype would still apply. */
11600 #ifdef __cplusplus
11601 extern "C"
11602 #endif
11603 char png_set_expand_gray_1_2_4_to_8 ();
11605 main ()
11607 return png_set_expand_gray_1_2_4_to_8 ();
11609 return 0;
11611 _ACEOF
11612 if ac_fn_c_try_link "$LINENO"; then :
11613 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11614 else
11615 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11617 rm -f core conftest.err conftest.$ac_objext \
11618 conftest$ac_exeext conftest.$ac_ext
11619 LIBS=$ac_check_lib_save_LIBS
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11622 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11623 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11625 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11630 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11631 then
11632 ac_save_CPPFLAGS="$CPPFLAGS"
11633 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11634 $as_unset ac_cv_header_png_h
11635 for ac_header in png.h
11636 do :
11637 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11638 if test "x$ac_cv_header_png_h" = xyes; then :
11639 cat >>confdefs.h <<_ACEOF
11640 #define HAVE_PNG_H 1
11641 _ACEOF
11645 done
11647 CPPFLAGS="$ac_save_CPPFLAGS"
11648 if test "$ac_cv_header_png_h" = "yes"
11649 then
11650 PNGINCL="$X_CFLAGS"
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11653 $as_echo_n "checking for -lpng... " >&6; }
11654 if ${ac_cv_lib_soname_png+:} false; then :
11655 $as_echo_n "(cached) " >&6
11656 else
11657 ac_check_soname_save_LIBS=$LIBS
11658 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11660 /* end confdefs.h. */
11662 /* Override any GCC internal prototype to avoid an error.
11663 Use char because int might match the return type of a GCC
11664 builtin and then its argument prototype would still apply. */
11665 #ifdef __cplusplus
11666 extern "C"
11667 #endif
11668 char png_create_read_struct ();
11670 main ()
11672 return png_create_read_struct ();
11674 return 0;
11676 _ACEOF
11677 if ac_fn_c_try_link "$LINENO"; then :
11678 case "$LIBEXT" in
11679 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11680 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'` ;;
11681 *) 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'` ;;
11682 esac
11684 rm -f core conftest.err conftest.$ac_objext \
11685 conftest$ac_exeext conftest.$ac_ext
11686 LIBS=$ac_check_soname_save_LIBS
11688 if test "x$ac_cv_lib_soname_png" = "x"; then :
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11690 $as_echo "not found" >&6; }
11692 else
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11694 $as_echo "$ac_cv_lib_soname_png" >&6; }
11696 cat >>confdefs.h <<_ACEOF
11697 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11698 _ACEOF
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11703 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11704 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11705 $as_echo_n "(cached) " >&6
11706 else
11707 ac_check_lib_save_LIBS=$LIBS
11708 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h. */
11712 /* Override any GCC internal prototype to avoid an error.
11713 Use char because int might match the return type of a GCC
11714 builtin and then its argument prototype would still apply. */
11715 #ifdef __cplusplus
11716 extern "C"
11717 #endif
11718 char png_set_expand_gray_1_2_4_to_8 ();
11720 main ()
11722 return png_set_expand_gray_1_2_4_to_8 ();
11724 return 0;
11726 _ACEOF
11727 if ac_fn_c_try_link "$LINENO"; then :
11728 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11729 else
11730 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11732 rm -f core conftest.err conftest.$ac_objext \
11733 conftest$ac_exeext conftest.$ac_ext
11734 LIBS=$ac_check_lib_save_LIBS
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11737 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11738 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11739 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11745 if test "x$ac_cv_lib_soname_png" = "x"; then :
11746 case "x$with_png" in
11747 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11748 xno) ;;
11749 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11750 This is an error since --with-png was requested." "$LINENO" 5 ;;
11751 esac
11754 if test "$ac_cv_header_tiffio_h" = "yes"
11755 then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11757 $as_echo_n "checking for -ltiff... " >&6; }
11758 if ${ac_cv_lib_soname_tiff+:} false; then :
11759 $as_echo_n "(cached) " >&6
11760 else
11761 ac_check_soname_save_LIBS=$LIBS
11762 LIBS="-ltiff $LIBS"
11763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764 /* end confdefs.h. */
11766 /* Override any GCC internal prototype to avoid an error.
11767 Use char because int might match the return type of a GCC
11768 builtin and then its argument prototype would still apply. */
11769 #ifdef __cplusplus
11770 extern "C"
11771 #endif
11772 char TIFFClientOpen ();
11774 main ()
11776 return TIFFClientOpen ();
11778 return 0;
11780 _ACEOF
11781 if ac_fn_c_try_link "$LINENO"; then :
11782 case "$LIBEXT" in
11783 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11784 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'` ;;
11785 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11786 esac
11788 rm -f core conftest.err conftest.$ac_objext \
11789 conftest$ac_exeext conftest.$ac_ext
11790 LIBS=$ac_check_soname_save_LIBS
11792 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11794 $as_echo "not found" >&6; }
11796 else
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11798 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11800 cat >>confdefs.h <<_ACEOF
11801 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11802 _ACEOF
11807 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11808 case "x$with_tiff" in
11809 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11810 xno) ;;
11811 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11812 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11813 esac
11816 if test "$ac_cv_header_mpg123_h" = "yes"
11817 then
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11819 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11820 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11821 $as_echo_n "(cached) " >&6
11822 else
11823 ac_check_lib_save_LIBS=$LIBS
11824 LIBS="-lmpg123 $LIBS"
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11828 /* Override any GCC internal prototype to avoid an error.
11829 Use char because int might match the return type of a GCC
11830 builtin and then its argument prototype would still apply. */
11831 #ifdef __cplusplus
11832 extern "C"
11833 #endif
11834 char mpg123_feed ();
11836 main ()
11838 return mpg123_feed ();
11840 return 0;
11842 _ACEOF
11843 if ac_fn_c_try_link "$LINENO"; then :
11844 ac_cv_lib_mpg123_mpg123_feed=yes
11845 else
11846 ac_cv_lib_mpg123_mpg123_feed=no
11848 rm -f core conftest.err conftest.$ac_objext \
11849 conftest$ac_exeext conftest.$ac_ext
11850 LIBS=$ac_check_lib_save_LIBS
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11853 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11854 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11855 LIBMPG123="-lmpg123"
11860 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11861 case "x$with_mpg123" in
11862 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11863 xno) ;;
11864 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11865 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11866 esac
11868 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}
11870 if test "$ac_cv_header_AL_al_h" = "yes"
11871 then
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11873 $as_echo_n "checking for -lopenal... " >&6; }
11874 if ${ac_cv_lib_soname_openal+:} false; then :
11875 $as_echo_n "(cached) " >&6
11876 else
11877 ac_check_soname_save_LIBS=$LIBS
11878 LIBS="-lopenal $LIBS"
11879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h. */
11882 /* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
11885 #ifdef __cplusplus
11886 extern "C"
11887 #endif
11888 char alGetSource3i ();
11890 main ()
11892 return alGetSource3i ();
11894 return 0;
11896 _ACEOF
11897 if ac_fn_c_try_link "$LINENO"; then :
11898 case "$LIBEXT" in
11899 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11900 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'` ;;
11901 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11902 esac
11904 rm -f core conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
11906 LIBS=$ac_check_soname_save_LIBS
11908 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11910 $as_echo "not found" >&6; }
11912 else
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11914 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11916 cat >>confdefs.h <<_ACEOF
11917 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11918 _ACEOF
11920 LIBOPENAL="-lopenal"
11922 ac_cv_lib_openal=yes
11924 cat >>confdefs.h <<_ACEOF
11925 #define HAVE_OPENAL 1
11926 _ACEOF
11930 if test "x$ac_cv_lib_openal" != xyes; then :
11931 case "x$with_openal" in
11932 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11933 xno) ;;
11934 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11935 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11936 esac
11938 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11940 if test "$ac_cv_header_kstat_h" = "yes"
11941 then
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11943 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11944 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
11945 $as_echo_n "(cached) " >&6
11946 else
11947 ac_check_lib_save_LIBS=$LIBS
11948 LIBS="-lkstat $LIBS"
11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h. */
11952 /* Override any GCC internal prototype to avoid an error.
11953 Use char because int might match the return type of a GCC
11954 builtin and then its argument prototype would still apply. */
11955 #ifdef __cplusplus
11956 extern "C"
11957 #endif
11958 char kstat_open ();
11960 main ()
11962 return kstat_open ();
11964 return 0;
11966 _ACEOF
11967 if ac_fn_c_try_link "$LINENO"; then :
11968 ac_cv_lib_kstat_kstat_open=yes
11969 else
11970 ac_cv_lib_kstat_kstat_open=no
11972 rm -f core conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974 LIBS=$ac_check_lib_save_LIBS
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11977 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11978 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
11980 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11982 LIBKSTAT="-lkstat"
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11989 $as_echo_n "checking for -lodbc... " >&6; }
11990 if ${ac_cv_lib_soname_odbc+:} false; then :
11991 $as_echo_n "(cached) " >&6
11992 else
11993 ac_check_soname_save_LIBS=$LIBS
11994 LIBS="-lodbc $LIBS"
11995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h. */
11998 /* Override any GCC internal prototype to avoid an error.
11999 Use char because int might match the return type of a GCC
12000 builtin and then its argument prototype would still apply. */
12001 #ifdef __cplusplus
12002 extern "C"
12003 #endif
12004 char SQLConnect ();
12006 main ()
12008 return SQLConnect ();
12010 return 0;
12012 _ACEOF
12013 if ac_fn_c_try_link "$LINENO"; then :
12014 case "$LIBEXT" in
12015 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12016 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'` ;;
12017 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
12018 esac
12020 rm -f core conftest.err conftest.$ac_objext \
12021 conftest$ac_exeext conftest.$ac_ext
12022 LIBS=$ac_check_soname_save_LIBS
12024 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12026 $as_echo "not found" >&6; }
12027 cat >>confdefs.h <<_ACEOF
12028 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12029 _ACEOF
12031 else
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12033 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12035 cat >>confdefs.h <<_ACEOF
12036 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12037 _ACEOF
12042 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12043 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12044 test -n "$NASLIBS" || enable_winenas_drv=${enable_winenas_drv:-no}
12045 test -n "$ESDLIBS" || enable_wineesd_drv=${enable_wineesd_drv:-no}
12046 test -n "$ac_cv_lib_soname_jack" || enable_winejack_drv=${enable_winejack_drv:-no}
12047 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
12048 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12050 if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
12051 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
12052 "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono
12053 then
12054 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12058 EXTRACFLAGS=""
12060 if test "x${GCC}" = "xyes"
12061 then
12062 EXTRACFLAGS="-Wall -pipe"
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12065 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12066 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12067 $as_echo_n "(cached) " >&6
12068 else
12069 if test "$cross_compiling" = yes; then :
12070 ac_cv_c_gcc_strength_bug="yes"
12071 else
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074 int L[4] = {0,1,2,3};
12076 main ()
12078 static int Array[3];
12079 unsigned int B = 3;
12080 int i;
12081 for(i=0; i<B; i++) Array[i] = i - 3;
12082 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12083 L[i] = 4;
12084 return (Array[1] != -2 || L[2] != 3)
12086 return 0;
12088 _ACEOF
12089 if ac_fn_c_try_run "$LINENO"; then :
12090 ac_cv_c_gcc_strength_bug="no"
12091 else
12092 ac_cv_c_gcc_strength_bug="yes"
12094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12095 conftest.$ac_objext conftest.beam conftest.$ac_ext
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12100 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12101 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12102 then
12103 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12107 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12108 if ${ac_cv_cflags__fno_builtin+:} false; then :
12109 $as_echo_n "(cached) " >&6
12110 else
12111 ac_wine_try_cflags_saved=$CFLAGS
12112 CFLAGS="$CFLAGS -fno-builtin"
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12115 int main(int argc, char **argv) { return 0; }
12116 _ACEOF
12117 if ac_fn_c_try_link "$LINENO"; then :
12118 ac_cv_cflags__fno_builtin=yes
12119 else
12120 ac_cv_cflags__fno_builtin=no
12122 rm -f core conftest.err conftest.$ac_objext \
12123 conftest$ac_exeext conftest.$ac_ext
12124 CFLAGS=$ac_wine_try_cflags_saved
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12127 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12128 if test $ac_cv_cflags__fno_builtin = yes; then :
12129 BUILTINFLAG="-fno-builtin"
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12133 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12134 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12135 $as_echo_n "(cached) " >&6
12136 else
12137 ac_wine_try_cflags_saved=$CFLAGS
12138 CFLAGS="$CFLAGS -fno-strict-aliasing"
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12141 int main(int argc, char **argv) { return 0; }
12142 _ACEOF
12143 if ac_fn_c_try_link "$LINENO"; then :
12144 ac_cv_cflags__fno_strict_aliasing=yes
12145 else
12146 ac_cv_cflags__fno_strict_aliasing=no
12148 rm -f core conftest.err conftest.$ac_objext \
12149 conftest$ac_exeext conftest.$ac_ext
12150 CFLAGS=$ac_wine_try_cflags_saved
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12153 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12154 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12155 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12158 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12159 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12160 $as_echo_n "(cached) " >&6
12161 else
12162 ac_wine_try_cflags_saved=$CFLAGS
12163 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166 int main(int argc, char **argv) { return 0; }
12167 _ACEOF
12168 if ac_fn_c_try_link "$LINENO"; then :
12169 ac_cv_cflags__Wdeclaration_after_statement=yes
12170 else
12171 ac_cv_cflags__Wdeclaration_after_statement=no
12173 rm -f core conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12175 CFLAGS=$ac_wine_try_cflags_saved
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12178 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12179 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12180 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12183 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12184 if ${ac_cv_cflags__Wempty_body+:} false; then :
12185 $as_echo_n "(cached) " >&6
12186 else
12187 ac_wine_try_cflags_saved=$CFLAGS
12188 CFLAGS="$CFLAGS -Wempty-body"
12189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h. */
12191 int main(int argc, char **argv) { return 0; }
12192 _ACEOF
12193 if ac_fn_c_try_link "$LINENO"; then :
12194 ac_cv_cflags__Wempty_body=yes
12195 else
12196 ac_cv_cflags__Wempty_body=no
12198 rm -f core conftest.err conftest.$ac_objext \
12199 conftest$ac_exeext conftest.$ac_ext
12200 CFLAGS=$ac_wine_try_cflags_saved
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12203 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12204 if test $ac_cv_cflags__Wempty_body = yes; then :
12205 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12208 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12209 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12210 $as_echo_n "(cached) " >&6
12211 else
12212 ac_wine_try_cflags_saved=$CFLAGS
12213 CFLAGS="$CFLAGS -Wstrict-prototypes"
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12216 int main(int argc, char **argv) { return 0; }
12217 _ACEOF
12218 if ac_fn_c_try_link "$LINENO"; then :
12219 ac_cv_cflags__Wstrict_prototypes=yes
12220 else
12221 ac_cv_cflags__Wstrict_prototypes=no
12223 rm -f core conftest.err conftest.$ac_objext \
12224 conftest$ac_exeext conftest.$ac_ext
12225 CFLAGS=$ac_wine_try_cflags_saved
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12228 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12229 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12230 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12233 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12234 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 ac_wine_try_cflags_saved=$CFLAGS
12238 CFLAGS="$CFLAGS -Wtype-limits"
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241 int main(int argc, char **argv) { return 0; }
12242 _ACEOF
12243 if ac_fn_c_try_link "$LINENO"; then :
12244 ac_cv_cflags__Wtype_limits=yes
12245 else
12246 ac_cv_cflags__Wtype_limits=no
12248 rm -f core conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12250 CFLAGS=$ac_wine_try_cflags_saved
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12253 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12254 if test $ac_cv_cflags__Wtype_limits = yes; then :
12255 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12258 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12259 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12260 $as_echo_n "(cached) " >&6
12261 else
12262 ac_wine_try_cflags_saved=$CFLAGS
12263 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265 /* end confdefs.h. */
12266 int main(int argc, char **argv) { return 0; }
12267 _ACEOF
12268 if ac_fn_c_try_link "$LINENO"; then :
12269 ac_cv_cflags__Wunused_but_set_parameter=yes
12270 else
12271 ac_cv_cflags__Wunused_but_set_parameter=no
12273 rm -f core conftest.err conftest.$ac_objext \
12274 conftest$ac_exeext conftest.$ac_ext
12275 CFLAGS=$ac_wine_try_cflags_saved
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12278 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12279 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12280 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12283 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12284 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12285 $as_echo_n "(cached) " >&6
12286 else
12287 ac_wine_try_cflags_saved=$CFLAGS
12288 CFLAGS="$CFLAGS -Wwrite-strings"
12289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12291 int main(int argc, char **argv) { return 0; }
12292 _ACEOF
12293 if ac_fn_c_try_link "$LINENO"; then :
12294 ac_cv_cflags__Wwrite_strings=yes
12295 else
12296 ac_cv_cflags__Wwrite_strings=no
12298 rm -f core conftest.err conftest.$ac_objext \
12299 conftest$ac_exeext conftest.$ac_ext
12300 CFLAGS=$ac_wine_try_cflags_saved
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12303 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12304 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12305 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12308 saved_CFLAGS="$CFLAGS"
12309 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12311 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12312 if ${ac_cv_c_string_h_warnings+:} false; then :
12313 $as_echo_n "(cached) " >&6
12314 else
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12317 #include <string.h>
12319 main ()
12323 return 0;
12325 _ACEOF
12326 if ac_fn_c_try_compile "$LINENO"; then :
12327 ac_cv_c_string_h_warnings=no
12328 else
12329 ac_cv_c_string_h_warnings=yes
12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12334 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12335 CFLAGS="$saved_CFLAGS"
12336 if test "$ac_cv_c_string_h_warnings" = "no"
12337 then
12338 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12341 saved_CFLAGS="$CFLAGS"
12342 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12344 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12345 if ${ac_cv_c_logicalop_noisy+:} false; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349 /* end confdefs.h. */
12350 #include <string.h>
12352 main ()
12354 char*f(const char *h,char n) {return strchr(h,n);}
12356 return 0;
12358 _ACEOF
12359 if ac_fn_c_try_compile "$LINENO"; then :
12360 ac_cv_c_logicalop_noisy=no
12361 else
12362 ac_cv_c_logicalop_noisy=yes
12364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12367 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12368 CFLAGS="$saved_CFLAGS"
12369 if test "$ac_cv_c_logicalop_noisy" = "no"
12370 then
12371 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12374 if test "x$enable_maintainer_mode" = "xyes"
12375 then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12377 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12378 if ${ac_cv_cflags__Werror+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 ac_wine_try_cflags_saved=$CFLAGS
12382 CFLAGS="$CFLAGS -Werror"
12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h. */
12385 int main(int argc, char **argv) { return 0; }
12386 _ACEOF
12387 if ac_fn_c_try_link "$LINENO"; then :
12388 ac_cv_cflags__Werror=yes
12389 else
12390 ac_cv_cflags__Werror=no
12392 rm -f core conftest.err conftest.$ac_objext \
12393 conftest$ac_exeext conftest.$ac_ext
12394 CFLAGS=$ac_wine_try_cflags_saved
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12397 $as_echo "$ac_cv_cflags__Werror" >&6; }
12398 if test $ac_cv_cflags__Werror = yes; then :
12399 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12403 saved_CFLAGS="$CFLAGS"
12404 CFLAGS="$CFLAGS -Werror"
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12406 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12407 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12408 $as_echo_n "(cached) " >&6
12409 else
12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h. */
12412 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12414 main ()
12418 return 0;
12420 _ACEOF
12421 if ac_fn_c_try_compile "$LINENO"; then :
12422 ac_cv_have_ms_hook_prologue="yes"
12423 else
12424 ac_cv_have_ms_hook_prologue="no"
12426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12429 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12430 CFLAGS="$saved_CFLAGS"
12431 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12432 then
12434 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12436 else
12437 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12444 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12445 if ${ac_cv_c_fortify_enabled+:} false; then :
12446 $as_echo_n "(cached) " >&6
12447 else
12448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h. */
12450 #include <string.h>
12452 main ()
12454 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12455 #error Fortify enabled
12456 #endif
12458 return 0;
12460 _ACEOF
12461 if ac_fn_c_try_compile "$LINENO"; then :
12462 ac_cv_c_fortify_enabled=no
12463 else
12464 ac_cv_c_fortify_enabled=yes
12466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12469 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12470 if test "$ac_cv_c_fortify_enabled" = yes
12471 then
12472 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12477 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12478 if ${ac_cv_c_extern_prefix+:} false; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12483 extern int ac_test;
12485 main ()
12487 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12489 return 0;
12491 _ACEOF
12492 if ac_fn_c_try_link "$LINENO"; then :
12493 ac_cv_c_extern_prefix="yes"
12494 else
12495 ac_cv_c_extern_prefix="no"
12497 rm -f core conftest.err conftest.$ac_objext \
12498 conftest$ac_exeext conftest.$ac_ext
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12501 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12503 case $host_cpu in
12504 *i[3456789]86*)
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12506 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12507 if ${ac_cv_c_stdcall_suffix+:} false; then :
12508 $as_echo_n "(cached) " >&6
12509 else
12510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511 /* end confdefs.h. */
12512 #ifndef _MSC_VER
12513 #define __stdcall __attribute__((__stdcall__))
12514 #endif
12515 int __stdcall ac_test(int i) { return i; }
12517 main ()
12519 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12521 return 0;
12523 _ACEOF
12524 if ac_fn_c_try_link "$LINENO"; then :
12525 ac_cv_c_stdcall_suffix="yes"
12526 else
12527 ac_cv_c_stdcall_suffix="no"
12529 rm -f core conftest.err conftest.$ac_objext \
12530 conftest$ac_exeext conftest.$ac_ext
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12533 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12534 *) ac_cv_c_stdcall_suffix="no" ;;
12535 esac
12538 if test "$ac_cv_c_extern_prefix" = "yes"
12539 then
12540 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12542 asm_name_prefix="_"
12543 else
12544 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12546 asm_name_prefix=""
12550 if test "$ac_cv_c_stdcall_suffix" = "yes"
12551 then
12552 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12554 else
12555 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12561 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12562 if ${ac_cv_asm_func_def+:} false; then :
12563 $as_echo_n "(cached) " >&6
12564 else
12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566 /* end confdefs.h. */
12569 main ()
12571 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12573 return 0;
12575 _ACEOF
12576 if ac_fn_c_try_link "$LINENO"; then :
12577 ac_cv_asm_func_def=".def"
12578 else
12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12583 main ()
12585 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12587 return 0;
12589 _ACEOF
12590 if ac_fn_c_try_link "$LINENO"; then :
12591 ac_cv_asm_func_def=".type @function"
12592 else
12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h. */
12597 main ()
12599 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12601 return 0;
12603 _ACEOF
12604 if ac_fn_c_try_link "$LINENO"; then :
12605 ac_cv_asm_func_def=".type 2"
12606 else
12607 ac_cv_asm_func_def="unknown"
12609 rm -f core conftest.err conftest.$ac_objext \
12610 conftest$ac_exeext conftest.$ac_ext
12612 rm -f core conftest.err conftest.$ac_objext \
12613 conftest$ac_exeext conftest.$ac_ext
12615 rm -f core conftest.err conftest.$ac_objext \
12616 conftest$ac_exeext conftest.$ac_ext
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12619 $as_echo "$ac_cv_asm_func_def" >&6; }
12622 case "$ac_cv_asm_func_def" in
12623 ".def")
12624 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12626 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12627 ".type @function")
12628 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12630 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12631 ".type 2")
12632 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12634 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12636 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12638 asm_func_header="" ;;
12639 esac
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12642 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12643 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12644 $as_echo_n "(cached) " >&6
12645 else
12646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647 /* end confdefs.h. */
12648 asm(".text\n\t.long 0");
12650 main ()
12654 return 0;
12656 _ACEOF
12657 if ac_fn_c_try_compile "$LINENO"; then :
12658 ac_cv_c_asm_outside_funcs="yes"
12659 else
12660 ac_cv_c_asm_outside_funcs="no"
12662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12665 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12668 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12669 if ${ac_cv_c_dot_previous+:} false; then :
12670 $as_echo_n "(cached) " >&6
12671 else
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12676 main ()
12678 asm(".text\nac_test:\t.long 0\n\t.previous");
12680 return 0;
12682 _ACEOF
12683 if ac_fn_c_try_link "$LINENO"; then :
12684 ac_cv_c_dot_previous="yes"
12685 else
12686 ac_cv_c_dot_previous="no"
12688 rm -f core conftest.err conftest.$ac_objext \
12689 conftest$ac_exeext conftest.$ac_ext
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12692 $as_echo "$ac_cv_c_dot_previous" >&6; }
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12695 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12696 if ${ac_cv_c_cfi_support+:} false; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h. */
12701 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12703 main ()
12707 return 0;
12709 _ACEOF
12710 if ac_fn_c_try_compile "$LINENO"; then :
12711 ac_cv_c_cfi_support="yes"
12712 else
12713 ac_cv_c_cfi_support="no"
12715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12718 $as_echo "$ac_cv_c_cfi_support" >&6; }
12720 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12721 asm_func_trailer=""
12722 if test "$ac_cv_c_dot_previous" = "yes"
12723 then
12724 asm_func_trailer="\\n\\t.previous"
12726 if test "$ac_cv_c_cfi_support" = "yes"
12727 then
12728 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12729 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12731 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12733 UNWINDFLAGS=-fasynchronous-unwind-tables
12735 else
12736 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12740 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12743 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12744 then
12745 cat >>confdefs.h <<_ACEOF
12746 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12747 _ACEOF
12749 else
12750 cat >>confdefs.h <<_ACEOF
12751 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12752 _ACEOF
12756 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12759 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12763 LDPATH=""
12765 case $build_os in
12766 cygwin*|mingw32*)
12767 TOOLSEXT=".exe"
12769 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12771 darwin*|macosx*)
12774 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12776 esac
12778 case $host_os in
12779 mingw32*)
12780 CRTLIBS="-lmsvcrt"
12782 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12785 esac
12787 MAIN_BINARY="wine"
12789 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12791 case $host_os in
12792 linux*)
12793 case $host_cpu in
12794 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12796 x86_64*) EXTRA_BINARIES="wine64-preloader"
12798 esac
12800 esac
12803 ac_save_CFLAGS="$CFLAGS"
12804 CFLAGS="$CFLAGS $BUILTINFLAG"
12805 for ac_func in \
12806 _finite \
12807 _isnan \
12808 _pclose \
12809 _popen \
12810 _snprintf \
12811 _spawnvp \
12812 _strdup \
12813 _stricmp \
12814 _strnicmp \
12815 _strtoi64 \
12816 _strtoui64 \
12817 _vsnprintf \
12818 asctime_r \
12819 chsize \
12820 dlopen \
12821 epoll_create \
12822 ffs \
12823 finite \
12824 fnmatch \
12825 fork \
12826 fpclass \
12827 fstatfs \
12828 fstatvfs \
12829 ftruncate \
12830 futimes \
12831 futimesat \
12832 getattrlist \
12833 getdirentries \
12834 getopt_long \
12835 getpagesize \
12836 getpwuid \
12837 gettimeofday \
12838 getuid \
12839 kqueue \
12840 lstat \
12841 memmove \
12842 mmap \
12843 pclose \
12844 pipe2 \
12845 poll \
12846 popen \
12847 port_create \
12848 prctl \
12849 pread \
12850 pwrite \
12851 readdir \
12852 readlink \
12853 sched_yield \
12854 select \
12855 setproctitle \
12856 setrlimit \
12857 settimeofday \
12858 sigaltstack \
12859 sigprocmask \
12860 snprintf \
12861 spawnvp \
12862 statfs \
12863 statvfs \
12864 strcasecmp \
12865 strdup \
12866 strerror \
12867 strncasecmp \
12868 strtold \
12869 strtoll \
12870 strtoull \
12871 symlink \
12872 tcgetattr \
12873 thr_kill2 \
12874 timegm \
12875 usleep \
12876 vsnprintf \
12877 wait4 \
12878 waitpid \
12880 do :
12881 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12882 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12883 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12884 cat >>confdefs.h <<_ACEOF
12885 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12886 _ACEOF
12889 done
12891 CFLAGS="$ac_save_CFLAGS"
12893 if test "$ac_cv_func_dlopen" = no
12894 then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12896 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12897 if ${ac_cv_lib_dl_dlopen+:} false; then :
12898 $as_echo_n "(cached) " >&6
12899 else
12900 ac_check_lib_save_LIBS=$LIBS
12901 LIBS="-ldl $LIBS"
12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h. */
12905 /* Override any GCC internal prototype to avoid an error.
12906 Use char because int might match the return type of a GCC
12907 builtin and then its argument prototype would still apply. */
12908 #ifdef __cplusplus
12909 extern "C"
12910 #endif
12911 char dlopen ();
12913 main ()
12915 return dlopen ();
12917 return 0;
12919 _ACEOF
12920 if ac_fn_c_try_link "$LINENO"; then :
12921 ac_cv_lib_dl_dlopen=yes
12922 else
12923 ac_cv_lib_dl_dlopen=no
12925 rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
12927 LIBS=$ac_check_lib_save_LIBS
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12930 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12931 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12932 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12933 LIBDL="-ldl"
12938 ac_wine_check_funcs_save_LIBS="$LIBS"
12939 LIBS="$LIBS $LIBDL"
12940 for ac_func in dladdr
12941 do :
12942 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12943 if test "x$ac_cv_func_dladdr" = xyes; then :
12944 cat >>confdefs.h <<_ACEOF
12945 #define HAVE_DLADDR 1
12946 _ACEOF
12949 done
12951 LIBS="$ac_wine_check_funcs_save_LIBS"
12953 if test "$ac_cv_func_poll" = no
12954 then
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12956 $as_echo_n "checking for poll in -lpoll... " >&6; }
12957 if ${ac_cv_lib_poll_poll+:} false; then :
12958 $as_echo_n "(cached) " >&6
12959 else
12960 ac_check_lib_save_LIBS=$LIBS
12961 LIBS="-lpoll $LIBS"
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12965 /* Override any GCC internal prototype to avoid an error.
12966 Use char because int might match the return type of a GCC
12967 builtin and then its argument prototype would still apply. */
12968 #ifdef __cplusplus
12969 extern "C"
12970 #endif
12971 char poll ();
12973 main ()
12975 return poll ();
12977 return 0;
12979 _ACEOF
12980 if ac_fn_c_try_link "$LINENO"; then :
12981 ac_cv_lib_poll_poll=yes
12982 else
12983 ac_cv_lib_poll_poll=no
12985 rm -f core conftest.err conftest.$ac_objext \
12986 conftest$ac_exeext conftest.$ac_ext
12987 LIBS=$ac_check_lib_save_LIBS
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12990 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12991 if test "x$ac_cv_lib_poll_poll" = xyes; then :
12992 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12993 LIBPOLL="-lpoll"
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13000 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13001 if ${ac_cv_search_gethostbyname+:} false; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 ac_func_search_save_LIBS=$LIBS
13005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13008 /* Override any GCC internal prototype to avoid an error.
13009 Use char because int might match the return type of a GCC
13010 builtin and then its argument prototype would still apply. */
13011 #ifdef __cplusplus
13012 extern "C"
13013 #endif
13014 char gethostbyname ();
13016 main ()
13018 return gethostbyname ();
13020 return 0;
13022 _ACEOF
13023 for ac_lib in '' nsl; do
13024 if test -z "$ac_lib"; then
13025 ac_res="none required"
13026 else
13027 ac_res=-l$ac_lib
13028 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13030 if ac_fn_c_try_link "$LINENO"; then :
13031 ac_cv_search_gethostbyname=$ac_res
13033 rm -f core conftest.err conftest.$ac_objext \
13034 conftest$ac_exeext
13035 if ${ac_cv_search_gethostbyname+:} false; then :
13036 break
13038 done
13039 if ${ac_cv_search_gethostbyname+:} false; then :
13041 else
13042 ac_cv_search_gethostbyname=no
13044 rm conftest.$ac_ext
13045 LIBS=$ac_func_search_save_LIBS
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13048 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13049 ac_res=$ac_cv_search_gethostbyname
13050 if test "$ac_res" != no; then :
13051 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13057 $as_echo_n "checking for library containing connect... " >&6; }
13058 if ${ac_cv_search_connect+:} false; then :
13059 $as_echo_n "(cached) " >&6
13060 else
13061 ac_func_search_save_LIBS=$LIBS
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13065 /* Override any GCC internal prototype to avoid an error.
13066 Use char because int might match the return type of a GCC
13067 builtin and then its argument prototype would still apply. */
13068 #ifdef __cplusplus
13069 extern "C"
13070 #endif
13071 char connect ();
13073 main ()
13075 return connect ();
13077 return 0;
13079 _ACEOF
13080 for ac_lib in '' socket; do
13081 if test -z "$ac_lib"; then
13082 ac_res="none required"
13083 else
13084 ac_res=-l$ac_lib
13085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13087 if ac_fn_c_try_link "$LINENO"; then :
13088 ac_cv_search_connect=$ac_res
13090 rm -f core conftest.err conftest.$ac_objext \
13091 conftest$ac_exeext
13092 if ${ac_cv_search_connect+:} false; then :
13093 break
13095 done
13096 if ${ac_cv_search_connect+:} false; then :
13098 else
13099 ac_cv_search_connect=no
13101 rm conftest.$ac_ext
13102 LIBS=$ac_func_search_save_LIBS
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13105 $as_echo "$ac_cv_search_connect" >&6; }
13106 ac_res=$ac_cv_search_connect
13107 if test "$ac_res" != no; then :
13108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13114 $as_echo_n "checking for library containing inet_aton... " >&6; }
13115 if ${ac_cv_search_inet_aton+:} false; then :
13116 $as_echo_n "(cached) " >&6
13117 else
13118 ac_func_search_save_LIBS=$LIBS
13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120 /* end confdefs.h. */
13122 /* Override any GCC internal prototype to avoid an error.
13123 Use char because int might match the return type of a GCC
13124 builtin and then its argument prototype would still apply. */
13125 #ifdef __cplusplus
13126 extern "C"
13127 #endif
13128 char inet_aton ();
13130 main ()
13132 return inet_aton ();
13134 return 0;
13136 _ACEOF
13137 for ac_lib in '' resolv; do
13138 if test -z "$ac_lib"; then
13139 ac_res="none required"
13140 else
13141 ac_res=-l$ac_lib
13142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13144 if ac_fn_c_try_link "$LINENO"; then :
13145 ac_cv_search_inet_aton=$ac_res
13147 rm -f core conftest.err conftest.$ac_objext \
13148 conftest$ac_exeext
13149 if ${ac_cv_search_inet_aton+:} false; then :
13150 break
13152 done
13153 if ${ac_cv_search_inet_aton+:} false; then :
13155 else
13156 ac_cv_search_inet_aton=no
13158 rm conftest.$ac_ext
13159 LIBS=$ac_func_search_save_LIBS
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13162 $as_echo "$ac_cv_search_inet_aton" >&6; }
13163 ac_res=$ac_cv_search_inet_aton
13164 if test "$ac_res" != no; then :
13165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13170 for ac_func in \
13171 getaddrinfo \
13172 getnameinfo \
13173 getnetbyname \
13174 getprotobyname \
13175 getprotobynumber \
13176 getservbyport \
13177 inet_network \
13178 inet_ntop \
13179 inet_pton \
13180 sendmsg \
13181 socketpair \
13183 do :
13184 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13185 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13186 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13187 cat >>confdefs.h <<_ACEOF
13188 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13189 _ACEOF
13192 done
13195 LDAPLIBS=""
13197 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13198 then
13199 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13201 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13203 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13204 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13205 $as_echo_n "(cached) " >&6
13206 else
13207 ac_check_lib_save_LIBS=$LIBS
13208 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13212 /* Override any GCC internal prototype to avoid an error.
13213 Use char because int might match the return type of a GCC
13214 builtin and then its argument prototype would still apply. */
13215 #ifdef __cplusplus
13216 extern "C"
13217 #endif
13218 char ldap_initialize ();
13220 main ()
13222 return ldap_initialize ();
13224 return 0;
13226 _ACEOF
13227 if ac_fn_c_try_link "$LINENO"; then :
13228 ac_cv_lib_ldap_r_ldap_initialize=yes
13229 else
13230 ac_cv_lib_ldap_r_ldap_initialize=no
13232 rm -f core conftest.err conftest.$ac_objext \
13233 conftest$ac_exeext conftest.$ac_ext
13234 LIBS=$ac_check_lib_save_LIBS
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13237 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13238 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13240 $as_echo_n "checking for ber_init in -llber... " >&6; }
13241 if ${ac_cv_lib_lber_ber_init+:} false; then :
13242 $as_echo_n "(cached) " >&6
13243 else
13244 ac_check_lib_save_LIBS=$LIBS
13245 LIBS="-llber $LIBPTHREAD $LIBS"
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h. */
13249 /* Override any GCC internal prototype to avoid an error.
13250 Use char because int might match the return type of a GCC
13251 builtin and then its argument prototype would still apply. */
13252 #ifdef __cplusplus
13253 extern "C"
13254 #endif
13255 char ber_init ();
13257 main ()
13259 return ber_init ();
13261 return 0;
13263 _ACEOF
13264 if ac_fn_c_try_link "$LINENO"; then :
13265 ac_cv_lib_lber_ber_init=yes
13266 else
13267 ac_cv_lib_lber_ber_init=no
13269 rm -f core conftest.err conftest.$ac_objext \
13270 conftest$ac_exeext conftest.$ac_ext
13271 LIBS=$ac_check_lib_save_LIBS
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13274 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13275 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13277 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13279 LDAPLIBS="-lldap_r -llber"
13286 ac_wine_check_funcs_save_LIBS="$LIBS"
13287 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13288 for ac_func in \
13289 ldap_count_references \
13290 ldap_first_reference \
13291 ldap_next_reference \
13292 ldap_parse_reference \
13293 ldap_parse_sort_control \
13294 ldap_parse_sortresponse_control \
13295 ldap_parse_vlv_control \
13296 ldap_parse_vlvresponse_control
13297 do :
13298 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13299 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13300 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13301 cat >>confdefs.h <<_ACEOF
13302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13303 _ACEOF
13306 done
13308 LIBS="$ac_wine_check_funcs_save_LIBS"
13310 if test "x$LDAPLIBS" = "x"; then :
13311 case "x$with_ldap" in
13312 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13313 xno) ;;
13314 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13315 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13316 esac
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13320 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13321 if ${wine_cv_one_arg_mkdir+:} false; then :
13322 $as_echo_n "(cached) " >&6
13323 else
13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325 /* end confdefs.h. */
13326 #include <sys/stat.h>
13328 main ()
13330 mkdir("foo");
13332 return 0;
13334 _ACEOF
13335 if ac_fn_c_try_compile "$LINENO"; then :
13336 wine_cv_one_arg_mkdir=yes
13337 else
13338 wine_cv_one_arg_mkdir=no
13340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13343 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13344 if test "$wine_cv_one_arg_mkdir" = "yes"
13345 then
13347 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13352 $as_echo_n "checking for sched_setaffinity... " >&6; }
13353 if ${wine_cv_have_sched_setaffinity+:} false; then :
13354 $as_echo_n "(cached) " >&6
13355 else
13356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13358 #define _GNU_SOURCE
13359 #include <sched.h>
13361 main ()
13363 sched_setaffinity(0, 0, 0);
13365 return 0;
13367 _ACEOF
13368 if ac_fn_c_try_link "$LINENO"; then :
13369 wine_cv_have_sched_setaffinity=yes
13370 else
13371 wine_cv_have_sched_setaffinity=no
13373 rm -f core conftest.err conftest.$ac_objext \
13374 conftest$ac_exeext conftest.$ac_ext
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13377 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13378 if test "$wine_cv_have_sched_setaffinity" = "yes"
13379 then
13381 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13387 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13388 if ${ac_cv_c_const+:} false; then :
13389 $as_echo_n "(cached) " >&6
13390 else
13391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392 /* end confdefs.h. */
13395 main ()
13397 /* FIXME: Include the comments suggested by Paul. */
13398 #ifndef __cplusplus
13399 /* Ultrix mips cc rejects this. */
13400 typedef int charset[2];
13401 const charset cs;
13402 /* SunOS 4.1.1 cc rejects this. */
13403 char const *const *pcpcc;
13404 char **ppc;
13405 /* NEC SVR4.0.2 mips cc rejects this. */
13406 struct point {int x, y;};
13407 static struct point const zero = {0,0};
13408 /* AIX XL C 1.02.0.0 rejects this.
13409 It does not let you subtract one const X* pointer from another in
13410 an arm of an if-expression whose if-part is not a constant
13411 expression */
13412 const char *g = "string";
13413 pcpcc = &g + (g ? g-g : 0);
13414 /* HPUX 7.0 cc rejects these. */
13415 ++pcpcc;
13416 ppc = (char**) pcpcc;
13417 pcpcc = (char const *const *) ppc;
13418 { /* SCO 3.2v4 cc rejects this. */
13419 char *t;
13420 char const *s = 0 ? (char *) 0 : (char const *) 0;
13422 *t++ = 0;
13423 if (s) return 0;
13425 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13426 int x[] = {25, 17};
13427 const int *foo = &x[0];
13428 ++foo;
13430 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13431 typedef const int *iptr;
13432 iptr p = 0;
13433 ++p;
13435 { /* AIX XL C 1.02.0.0 rejects this saying
13436 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13437 struct s { int j; const int *ap[3]; };
13438 struct s *b; b->j = 5;
13440 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13441 const int foo = 10;
13442 if (!foo) return 0;
13444 return !cs[0] && !zero.x;
13445 #endif
13448 return 0;
13450 _ACEOF
13451 if ac_fn_c_try_compile "$LINENO"; then :
13452 ac_cv_c_const=yes
13453 else
13454 ac_cv_c_const=no
13456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13459 $as_echo "$ac_cv_c_const" >&6; }
13460 if test $ac_cv_c_const = no; then
13462 $as_echo "#define const /**/" >>confdefs.h
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13467 $as_echo_n "checking for inline... " >&6; }
13468 if ${ac_cv_c_inline+:} false; then :
13469 $as_echo_n "(cached) " >&6
13470 else
13471 ac_cv_c_inline=no
13472 for ac_kw in inline __inline__ __inline; do
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13475 #ifndef __cplusplus
13476 typedef int foo_t;
13477 static $ac_kw foo_t static_foo () {return 0; }
13478 $ac_kw foo_t foo () {return 0; }
13479 #endif
13481 _ACEOF
13482 if ac_fn_c_try_compile "$LINENO"; then :
13483 ac_cv_c_inline=$ac_kw
13485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13486 test "$ac_cv_c_inline" != no && break
13487 done
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13491 $as_echo "$ac_cv_c_inline" >&6; }
13493 case $ac_cv_c_inline in
13494 inline | yes) ;;
13496 case $ac_cv_c_inline in
13497 no) ac_val=;;
13498 *) ac_val=$ac_cv_c_inline;;
13499 esac
13500 cat >>confdefs.h <<_ACEOF
13501 #ifndef __cplusplus
13502 #define inline $ac_val
13503 #endif
13504 _ACEOF
13506 esac
13508 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13509 if test "x$ac_cv_type_mode_t" = xyes; then :
13511 cat >>confdefs.h <<_ACEOF
13512 #define HAVE_MODE_T 1
13513 _ACEOF
13517 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13518 if test "x$ac_cv_type_off_t" = xyes; then :
13520 cat >>confdefs.h <<_ACEOF
13521 #define HAVE_OFF_T 1
13522 _ACEOF
13526 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13527 if test "x$ac_cv_type_pid_t" = xyes; then :
13529 cat >>confdefs.h <<_ACEOF
13530 #define HAVE_PID_T 1
13531 _ACEOF
13535 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13536 if test "x$ac_cv_type_size_t" = xyes; then :
13538 cat >>confdefs.h <<_ACEOF
13539 #define HAVE_SIZE_T 1
13540 _ACEOF
13544 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13545 if test "x$ac_cv_type_ssize_t" = xyes; then :
13547 cat >>confdefs.h <<_ACEOF
13548 #define HAVE_SSIZE_T 1
13549 _ACEOF
13553 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13554 if test "x$ac_cv_type_long_long" = xyes; then :
13556 cat >>confdefs.h <<_ACEOF
13557 #define HAVE_LONG_LONG 1
13558 _ACEOF
13562 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13563 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13565 cat >>confdefs.h <<_ACEOF
13566 #define HAVE_FSBLKCNT_T 1
13567 _ACEOF
13571 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13572 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13574 cat >>confdefs.h <<_ACEOF
13575 #define HAVE_FSFILCNT_T 1
13576 _ACEOF
13581 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13582 #include <signal.h>
13584 if test "x$ac_cv_type_sigset_t" = xyes; then :
13586 cat >>confdefs.h <<_ACEOF
13587 #define HAVE_SIGSET_T 1
13588 _ACEOF
13593 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13595 if test "x$ac_cv_type_request_sense" = xyes; then :
13597 cat >>confdefs.h <<_ACEOF
13598 #define HAVE_REQUEST_SENSE 1
13599 _ACEOF
13605 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13606 #ifdef HAVE_SYS_SOCKET_H
13607 #include <sys/socket.h>
13608 #endif
13609 #ifdef HAVE_SYS_SOCKETVAR_H
13610 #include <sys/socketvar.h>
13611 #endif
13612 #ifdef HAVE_NET_ROUTE_H
13613 #include <net/route.h>
13614 #endif
13615 #ifdef HAVE_NETINET_IN_H
13616 #include <netinet/in.h>
13617 #endif
13618 #ifdef HAVE_NETINET_IN_SYSTM_H
13619 #include <netinet/in_systm.h>
13620 #endif
13621 #ifdef HAVE_NETINET_IP_H
13622 #include <netinet/ip.h>
13623 #endif
13624 #ifdef HAVE_NETINET_IN_PCB_H
13625 #include <netinet/in_pcb.h>
13626 #endif
13628 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13630 cat >>confdefs.h <<_ACEOF
13631 #define HAVE_STRUCT_XINPGEN 1
13632 _ACEOF
13638 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13639 #include <linux/input.h>
13640 #endif
13642 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13644 cat >>confdefs.h <<_ACEOF
13645 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13646 _ACEOF
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13653 $as_echo_n "checking for sigaddset... " >&6; }
13654 if ${wine_cv_have_sigaddset+:} false; then :
13655 $as_echo_n "(cached) " >&6
13656 else
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13659 #include <signal.h>
13661 main ()
13663 sigset_t set; sigaddset(&set,SIGTERM);
13665 return 0;
13667 _ACEOF
13668 if ac_fn_c_try_link "$LINENO"; then :
13669 wine_cv_have_sigaddset=yes
13670 else
13671 wine_cv_have_sigaddset=no
13673 rm -f core conftest.err conftest.$ac_objext \
13674 conftest$ac_exeext conftest.$ac_ext
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13677 $as_echo "$wine_cv_have_sigaddset" >&6; }
13678 if test "$wine_cv_have_sigaddset" = "yes"
13679 then
13681 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13687 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13688 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13689 $as_echo_n "(cached) " >&6
13690 else
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13693 #include <netdb.h>
13695 main ()
13698 char *name=0;
13699 struct hostent he;
13700 struct hostent *result;
13701 char *buf=0;
13702 int bufsize=0;
13703 int res,errnr;
13704 char *addr=0;
13705 int addrlen=0;
13706 int addrtype=0;
13707 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13708 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13711 return 0;
13713 _ACEOF
13714 if ac_fn_c_try_link "$LINENO"; then :
13715 wine_cv_linux_gethostbyname_r_6=yes
13716 else
13717 wine_cv_linux_gethostbyname_r_6=no
13720 rm -f core conftest.err conftest.$ac_objext \
13721 conftest$ac_exeext conftest.$ac_ext
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13725 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13726 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13727 then
13729 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13733 if test "$ac_cv_header_linux_joystick_h" = "yes"
13734 then
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13736 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13737 if ${wine_cv_linux_joystick_22_api+:} false; then :
13738 $as_echo_n "(cached) " >&6
13739 else
13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h. */
13743 #include <sys/ioctl.h>
13744 #include <sys/types.h>
13745 #include <linux/joystick.h>
13747 struct js_event blub;
13748 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13749 #error "no 2.2 header"
13750 #endif
13753 main ()
13755 /*empty*/
13757 return 0;
13759 _ACEOF
13760 if ac_fn_c_try_compile "$LINENO"; then :
13761 wine_cv_linux_joystick_22_api=yes
13762 else
13763 wine_cv_linux_joystick_22_api=no
13765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13769 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13770 if test "$wine_cv_linux_joystick_22_api" = "yes"
13771 then
13773 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13779 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13780 #ifdef HAVE_SYS_PARAM_H
13781 # include <sys/param.h>
13782 #endif
13783 #ifdef HAVE_SYS_MOUNT_H
13784 # include <sys/mount.h>
13785 #endif
13786 #ifdef HAVE_SYS_VFS_H
13787 # include <sys/vfs.h>
13788 #endif
13789 #ifdef HAVE_SYS_STATFS_H
13790 # include <sys/statfs.h>
13791 #endif
13793 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13795 cat >>confdefs.h <<_ACEOF
13796 #define HAVE_STRUCT_STATFS_F_BFREE 1
13797 _ACEOF
13801 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13802 #ifdef HAVE_SYS_PARAM_H
13803 # include <sys/param.h>
13804 #endif
13805 #ifdef HAVE_SYS_MOUNT_H
13806 # include <sys/mount.h>
13807 #endif
13808 #ifdef HAVE_SYS_VFS_H
13809 # include <sys/vfs.h>
13810 #endif
13811 #ifdef HAVE_SYS_STATFS_H
13812 # include <sys/statfs.h>
13813 #endif
13815 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13817 cat >>confdefs.h <<_ACEOF
13818 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13819 _ACEOF
13823 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13824 #ifdef HAVE_SYS_PARAM_H
13825 # include <sys/param.h>
13826 #endif
13827 #ifdef HAVE_SYS_MOUNT_H
13828 # include <sys/mount.h>
13829 #endif
13830 #ifdef HAVE_SYS_VFS_H
13831 # include <sys/vfs.h>
13832 #endif
13833 #ifdef HAVE_SYS_STATFS_H
13834 # include <sys/statfs.h>
13835 #endif
13837 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13839 cat >>confdefs.h <<_ACEOF
13840 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13841 _ACEOF
13845 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13846 #ifdef HAVE_SYS_PARAM_H
13847 # include <sys/param.h>
13848 #endif
13849 #ifdef HAVE_SYS_MOUNT_H
13850 # include <sys/mount.h>
13851 #endif
13852 #ifdef HAVE_SYS_VFS_H
13853 # include <sys/vfs.h>
13854 #endif
13855 #ifdef HAVE_SYS_STATFS_H
13856 # include <sys/statfs.h>
13857 #endif
13859 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13861 cat >>confdefs.h <<_ACEOF
13862 #define HAVE_STRUCT_STATFS_F_FFREE 1
13863 _ACEOF
13867 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13868 #ifdef HAVE_SYS_PARAM_H
13869 # include <sys/param.h>
13870 #endif
13871 #ifdef HAVE_SYS_MOUNT_H
13872 # include <sys/mount.h>
13873 #endif
13874 #ifdef HAVE_SYS_VFS_H
13875 # include <sys/vfs.h>
13876 #endif
13877 #ifdef HAVE_SYS_STATFS_H
13878 # include <sys/statfs.h>
13879 #endif
13881 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13883 cat >>confdefs.h <<_ACEOF
13884 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13885 _ACEOF
13889 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13890 #ifdef HAVE_SYS_PARAM_H
13891 # include <sys/param.h>
13892 #endif
13893 #ifdef HAVE_SYS_MOUNT_H
13894 # include <sys/mount.h>
13895 #endif
13896 #ifdef HAVE_SYS_VFS_H
13897 # include <sys/vfs.h>
13898 #endif
13899 #ifdef HAVE_SYS_STATFS_H
13900 # include <sys/statfs.h>
13901 #endif
13903 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13905 cat >>confdefs.h <<_ACEOF
13906 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13907 _ACEOF
13913 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13914 #include <sys/statvfs.h>
13915 #endif
13917 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
13919 cat >>confdefs.h <<_ACEOF
13920 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13921 _ACEOF
13927 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13928 #ifdef HAVE_SYS_SOCKET_H
13929 # include <sys/socket.h>
13930 #endif
13931 #ifdef HAVE_SYS_UN_H
13932 # include <sys/un.h>
13933 #endif
13935 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
13937 cat >>confdefs.h <<_ACEOF
13938 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13939 _ACEOF
13943 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13944 #ifdef HAVE_SYS_SOCKET_H
13945 # include <sys/socket.h>
13946 #endif
13947 #ifdef HAVE_SYS_UN_H
13948 # include <sys/un.h>
13949 #endif
13951 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13953 cat >>confdefs.h <<_ACEOF
13954 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13955 _ACEOF
13959 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13960 #ifdef HAVE_SYS_SOCKET_H
13961 # include <sys/socket.h>
13962 #endif
13963 #ifdef HAVE_SYS_UN_H
13964 # include <sys/un.h>
13965 #endif
13967 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
13969 cat >>confdefs.h <<_ACEOF
13970 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13971 _ACEOF
13977 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13978 #ifdef HAVE_SCSI_SG_H
13979 #include <scsi/sg.h>
13980 #endif
13982 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
13984 cat >>confdefs.h <<_ACEOF
13985 #define HAVE_SCSIREQ_T_CMD 1
13986 _ACEOF
13990 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>
13991 #ifdef HAVE_SCSI_SG_H
13992 #include <scsi/sg.h>
13993 #endif
13995 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
13997 cat >>confdefs.h <<_ACEOF
13998 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13999 _ACEOF
14005 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14007 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
14009 cat >>confdefs.h <<_ACEOF
14010 #define HAVE_SIGINFO_T_SI_FD 1
14011 _ACEOF
14017 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14018 #ifdef HAVE_SYS_MTIO_H
14019 #include <sys/mtio.h>
14020 #endif
14022 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14024 cat >>confdefs.h <<_ACEOF
14025 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14026 _ACEOF
14030 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14031 #ifdef HAVE_SYS_MTIO_H
14032 #include <sys/mtio.h>
14033 #endif
14035 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14037 cat >>confdefs.h <<_ACEOF
14038 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14039 _ACEOF
14043 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14044 #ifdef HAVE_SYS_MTIO_H
14045 #include <sys/mtio.h>
14046 #endif
14048 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14050 cat >>confdefs.h <<_ACEOF
14051 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14052 _ACEOF
14058 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14059 #include <getopt.h>
14060 #endif
14062 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14064 cat >>confdefs.h <<_ACEOF
14065 #define HAVE_STRUCT_OPTION_NAME 1
14066 _ACEOF
14072 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14073 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14075 cat >>confdefs.h <<_ACEOF
14076 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14077 _ACEOF
14081 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14082 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14084 cat >>confdefs.h <<_ACEOF
14085 #define HAVE_STRUCT_STAT_ST_MTIM 1
14086 _ACEOF
14090 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14091 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14093 cat >>confdefs.h <<_ACEOF
14094 #define HAVE_STRUCT_STAT_ST_CTIM 1
14095 _ACEOF
14099 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14100 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14102 cat >>confdefs.h <<_ACEOF
14103 #define HAVE_STRUCT_STAT_ST_ATIM 1
14104 _ACEOF
14110 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
14111 #include <sys/types.h>
14112 #endif
14113 #ifdef HAVE_NETINET_IN_H
14114 #include <netinet/in.h>
14115 #endif
14117 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14119 cat >>confdefs.h <<_ACEOF
14120 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14121 _ACEOF
14127 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14128 #include <sys/types.h>
14129 #endif
14130 #ifdef HAVE_NETINET_IN_H
14131 # include <netinet/in.h>
14132 #endif
14133 #ifdef HAVE_ARPA_NAMESER_H
14134 # include <arpa/nameser.h>
14135 #endif
14137 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14139 cat >>confdefs.h <<_ACEOF
14140 #define HAVE_NS_MSG__MSG_PTR 1
14141 _ACEOF
14147 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14148 #include <sys/types.h>
14149 #endif
14150 #ifdef HAVE_ALIAS_H
14151 #include <alias.h>
14152 #endif
14153 #ifdef HAVE_SYS_SOCKET_H
14154 #include <sys/socket.h>
14155 #endif
14156 #ifdef HAVE_SYS_SOCKETVAR_H
14157 #include <sys/socketvar.h>
14158 #endif
14159 #ifdef HAVE_SYS_TIMEOUT_H
14160 #include <sys/timeout.h>
14161 #endif
14162 #ifdef HAVE_NETINET_IN_H
14163 #include <netinet/in.h>
14164 #endif
14165 #ifdef HAVE_NETINET_IN_SYSTM_H
14166 #include <netinet/in_systm.h>
14167 #endif
14168 #ifdef HAVE_NETINET_IP_H
14169 #include <netinet/ip.h>
14170 #endif
14171 #ifdef HAVE_NETINET_IP_VAR_H
14172 #include <netinet/ip_var.h>
14173 #endif
14174 #ifdef HAVE_NETINET_IP_ICMP_H
14175 #include <netinet/ip_icmp.h>
14176 #endif
14177 #ifdef HAVE_NETINET_ICMP_VAR
14178 #include <netinet/icmp_var.h>
14179 #endif
14181 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14183 cat >>confdefs.h <<_ACEOF
14184 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14185 _ACEOF
14191 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14192 #include <sys/types.h>
14193 #endif
14194 #ifdef HAVE_NET_IF_H
14195 # include <net/if.h>
14196 #endif
14198 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14200 cat >>confdefs.h <<_ACEOF
14201 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14202 _ACEOF
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14209 $as_echo_n "checking for timezone variable... " >&6; }
14210 if ${ac_cv_have_timezone+:} false; then :
14211 $as_echo_n "(cached) " >&6
14212 else
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14215 #include <time.h>
14217 main ()
14219 timezone = 1
14221 return 0;
14223 _ACEOF
14224 if ac_fn_c_try_link "$LINENO"; then :
14225 ac_cv_have_timezone="yes"
14226 else
14227 ac_cv_have_timezone="no"
14229 rm -f core conftest.err conftest.$ac_objext \
14230 conftest$ac_exeext conftest.$ac_ext
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14233 $as_echo "$ac_cv_have_timezone" >&6; }
14234 if test "$ac_cv_have_timezone" = "yes"
14235 then
14237 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14241 $as_echo_n "checking for daylight variable... " >&6; }
14242 if ${ac_cv_have_daylight+:} false; then :
14243 $as_echo_n "(cached) " >&6
14244 else
14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14247 #include <time.h>
14249 main ()
14251 daylight = 1
14253 return 0;
14255 _ACEOF
14256 if ac_fn_c_try_link "$LINENO"; then :
14257 ac_cv_have_daylight="yes"
14258 else
14259 ac_cv_have_daylight="no"
14261 rm -f core conftest.err conftest.$ac_objext \
14262 conftest$ac_exeext conftest.$ac_ext
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14265 $as_echo "$ac_cv_have_daylight" >&6; }
14266 if test "$ac_cv_have_daylight" = "yes"
14267 then
14269 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14274 $as_echo_n "checking for isinf... " >&6; }
14275 if ${ac_cv_have_isinf+:} false; then :
14276 $as_echo_n "(cached) " >&6
14277 else
14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14279 /* end confdefs.h. */
14280 #include <math.h>
14282 main ()
14284 float f = 0.0; int i=isinf(f)
14286 return 0;
14288 _ACEOF
14289 if ac_fn_c_try_link "$LINENO"; then :
14290 ac_cv_have_isinf="yes"
14291 else
14292 ac_cv_have_isinf="no"
14294 rm -f core conftest.err conftest.$ac_objext \
14295 conftest$ac_exeext conftest.$ac_ext
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14298 $as_echo "$ac_cv_have_isinf" >&6; }
14299 if test "$ac_cv_have_isinf" = "yes"
14300 then
14302 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14307 $as_echo_n "checking for isnan... " >&6; }
14308 if ${ac_cv_have_isnan+:} false; then :
14309 $as_echo_n "(cached) " >&6
14310 else
14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h. */
14313 #include <math.h>
14315 main ()
14317 float f = 0.0; int i=isnan(f)
14319 return 0;
14321 _ACEOF
14322 if ac_fn_c_try_link "$LINENO"; then :
14323 ac_cv_have_isnan="yes"
14324 else
14325 ac_cv_have_isnan="no"
14327 rm -f core conftest.err conftest.$ac_objext \
14328 conftest$ac_exeext conftest.$ac_ext
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14331 $as_echo "$ac_cv_have_isnan" >&6; }
14332 if test "$ac_cv_have_isnan" = "yes"
14333 then
14335 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14340 case $host_cpu in
14341 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14342 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14343 if ${ac_cv_cpp_def___i386__+:} false; then :
14344 $as_echo_n "(cached) " >&6
14345 else
14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h. */
14348 #ifndef __i386__
14350 #endif
14351 _ACEOF
14352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14353 $EGREP "yes" >/dev/null 2>&1; then :
14354 ac_cv_cpp_def___i386__=yes
14355 else
14356 ac_cv_cpp_def___i386__=no
14358 rm -f conftest*
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14362 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14363 if test $ac_cv_cpp_def___i386__ = yes; then :
14364 CFLAGS="$CFLAGS -D__i386__"
14365 LINTFLAGS="$LINTFLAGS -D__i386__"
14366 fi ;;
14367 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14368 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14369 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14370 $as_echo_n "(cached) " >&6
14371 else
14372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14373 /* end confdefs.h. */
14374 #ifndef __x86_64__
14376 #endif
14377 _ACEOF
14378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14379 $EGREP "yes" >/dev/null 2>&1; then :
14380 ac_cv_cpp_def___x86_64__=yes
14381 else
14382 ac_cv_cpp_def___x86_64__=no
14384 rm -f conftest*
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14388 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14389 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14390 CFLAGS="$CFLAGS -D__x86_64__"
14391 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14392 fi ;;
14393 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14394 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14395 if ${ac_cv_cpp_def___sparc__+:} false; then :
14396 $as_echo_n "(cached) " >&6
14397 else
14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399 /* end confdefs.h. */
14400 #ifndef __sparc__
14402 #endif
14403 _ACEOF
14404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14405 $EGREP "yes" >/dev/null 2>&1; then :
14406 ac_cv_cpp_def___sparc__=yes
14407 else
14408 ac_cv_cpp_def___sparc__=no
14410 rm -f conftest*
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14414 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14415 if test $ac_cv_cpp_def___sparc__ = yes; then :
14416 CFLAGS="$CFLAGS -D__sparc__"
14417 LINTFLAGS="$LINTFLAGS -D__sparc__"
14418 fi ;;
14419 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14420 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14421 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14422 $as_echo_n "(cached) " >&6
14423 else
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14426 #ifndef __powerpc__
14428 #endif
14429 _ACEOF
14430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14431 $EGREP "yes" >/dev/null 2>&1; then :
14432 ac_cv_cpp_def___powerpc__=yes
14433 else
14434 ac_cv_cpp_def___powerpc__=no
14436 rm -f conftest*
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14440 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14441 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14442 CFLAGS="$CFLAGS -D__powerpc__"
14443 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14444 fi ;;
14445 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14446 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14447 if ${ac_cv_cpp_def___arm__+:} false; then :
14448 $as_echo_n "(cached) " >&6
14449 else
14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h. */
14452 #ifndef __arm__
14454 #endif
14455 _ACEOF
14456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14457 $EGREP "yes" >/dev/null 2>&1; then :
14458 ac_cv_cpp_def___arm__=yes
14459 else
14460 ac_cv_cpp_def___arm__=no
14462 rm -f conftest*
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14466 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14467 if test $ac_cv_cpp_def___arm__ = yes; then :
14468 CFLAGS="$CFLAGS -D__arm__"
14469 LINTFLAGS="$LINTFLAGS -D__arm__"
14470 fi ;;
14471 esac
14473 case $host_vendor in
14474 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14475 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14476 if ${ac_cv_cpp_def___sun__+:} false; then :
14477 $as_echo_n "(cached) " >&6
14478 else
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14481 #ifndef __sun__
14483 #endif
14484 _ACEOF
14485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14486 $EGREP "yes" >/dev/null 2>&1; then :
14487 ac_cv_cpp_def___sun__=yes
14488 else
14489 ac_cv_cpp_def___sun__=no
14491 rm -f conftest*
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14495 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14496 if test $ac_cv_cpp_def___sun__ = yes; then :
14497 CFLAGS="$CFLAGS -D__sun__"
14498 LINTFLAGS="$LINTFLAGS -D__sun__"
14499 fi ;;
14500 esac
14506 ac_config_commands="$ac_config_commands include/stamp-h"
14509 ALL_MAKEFILE_DEPENDS="
14510 # Rules automatically generated by configure
14512 .INIT: Makefile
14513 .MAKEFILEDEPS:
14514 all: Makefile
14515 Makefile: Makefile.in Make.vars.in Make.rules config.status
14516 @./config.status Make.tmp Makefile"
14518 ALL_POT_FILES=""
14519 ALL_TEST_RESOURCES=""
14522 wine_fn_append_file ()
14524 as_fn_append $1 " \\$as_nl $2"
14527 wine_fn_append_rule ()
14529 as_fn_append $1 "$as_nl$2"
14532 wine_fn_has_flag ()
14534 expr ",$2," : ".*,$1,.*" >/dev/null
14537 wine_fn_all_dir_rules ()
14539 ac_dir=$1
14540 ac_alldeps=$2
14541 ac_makedep="\$(MAKEDEP)"
14542 ac_input=Make.vars.in:$ac_dir/Makefile.in
14543 if test $ac_dir != tools
14544 then
14545 ac_alldeps="$2 $ac_makedep"
14547 case $2 in
14548 *.in) ac_input=$ac_input:$2 ;;
14549 *) ac_makedep="$2 $ac_makedep" ;;
14550 esac
14552 wine_fn_append_file ALL_DIRS $ac_dir
14553 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14554 "__clean__: $ac_dir/__clean__
14555 .PHONY: $ac_dir/__clean__
14556 $ac_dir/__clean__: $ac_dir/Makefile
14557 @cd $ac_dir && \$(MAKE) clean
14558 \$(RM) $ac_dir/Makefile
14559 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14560 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14561 depend: $ac_dir/__depend__
14562 .PHONY: $ac_dir/__depend__
14563 $ac_dir/__depend__: $ac_makedep dummy
14564 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14567 wine_fn_config_makefile ()
14569 ac_dir=$1
14570 ac_enable=$2
14571 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14572 return 0
14575 wine_fn_all_dir_rules $ac_dir Make.rules
14576 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14577 "all: $ac_dir
14578 .PHONY: $ac_dir
14579 $ac_dir: $ac_dir/Makefile dummy
14580 @cd $ac_dir && \$(MAKE)
14581 install:: $ac_dir
14582 @cd $ac_dir && \$(MAKE) install
14583 install-lib:: $ac_dir
14584 @cd $ac_dir && \$(MAKE) install-lib
14585 install-dev:: $ac_dir
14586 @cd $ac_dir && \$(MAKE) install-dev
14587 uninstall:: $ac_dir/Makefile
14588 @cd $ac_dir && \$(MAKE) uninstall"
14591 wine_fn_config_lib ()
14593 ac_name=$1
14594 ac_dir=dlls/$ac_name
14595 wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules
14596 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14597 "all __builddeps__: $ac_dir
14598 $ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
14599 @cd $ac_dir && \$(MAKE)
14600 install install-dev:: $ac_dir
14601 @cd $ac_dir && \$(MAKE) install
14602 uninstall:: $ac_dir/Makefile
14603 @cd $ac_dir && \$(MAKE) uninstall"
14606 wine_fn_config_dll ()
14608 ac_name=$1
14609 ac_dir=dlls/$ac_name
14610 ac_enable=$2
14611 ac_flags=$3
14612 ac_implib=${4:-$ac_name}
14613 ac_file=$ac_dir/lib$ac_implib
14614 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14615 ac_implibflags=""
14617 case $ac_name in
14618 *16) ac_implibflags=" -m16" ;;
14619 esac
14621 wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14623 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14624 test "$ac_enable" != enable_win16 || return 0
14625 else
14626 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14627 "all: $ac_dir
14628 .PHONY: $ac_dir
14629 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14630 @cd $ac_dir && \$(MAKE)
14631 install:: $ac_dir/Makefile __builddeps__
14632 @cd $ac_dir && \$(MAKE) install
14633 install-lib:: $ac_dir/Makefile __builddeps__
14634 @cd $ac_dir && \$(MAKE) install-lib
14635 uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14636 @cd $ac_dir && \$(MAKE) \$@"
14638 if test "x$enable_maintainer_mode" = xyes
14639 then
14640 if wine_fn_has_flag mc $ac_flags
14641 then
14642 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14643 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14644 "$ac_dir/msg.pot: $ac_dir"
14646 if wine_fn_has_flag po $ac_flags
14647 then
14648 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14649 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14650 "$ac_dir/rsrc.pot: $ac_dir"
14655 if wine_fn_has_flag staticimplib $ac_flags
14656 then
14657 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14658 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14659 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14660 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14661 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14662 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14663 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14664 install-dev:: $ac_dir/Makefile __builddeps__
14665 @cd $ac_dir && \$(MAKE) install-dev"
14666 if test "x$CROSSTEST_DISABLE" = x
14667 then
14668 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14669 "__builddeps__: $ac_file.cross.a
14670 $ac_file.cross.a: $ac_dir/Makefile dummy
14671 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14674 elif wine_fn_has_flag implib $ac_flags
14675 then
14676 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14677 "__builddeps__: $ac_file.$IMPLIBEXT
14678 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14679 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14680 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14681 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14682 install-dev:: $ac_dir/Makefile __builddeps__
14683 @cd $ac_dir && \$(MAKE) install-dev"
14684 if test "x$CROSSTEST_DISABLE" = x
14685 then
14686 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14687 "__builddeps__: $ac_file.cross.a
14688 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14689 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14692 if test "$ac_name" != "$ac_implib"
14693 then
14694 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14695 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14696 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14697 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14698 clean::
14699 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14700 if test "x$CROSSTEST_DISABLE" = x
14701 then
14702 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14703 "__builddeps__: dlls/lib$ac_implib.cross.a
14704 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14705 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14711 wine_fn_config_program ()
14713 ac_name=$1
14714 ac_dir=programs/$ac_name
14715 ac_enable=$2
14716 ac_flags=$3
14717 wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules
14719 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14721 else
14722 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14723 "all: $ac_dir
14724 .PHONY: $ac_dir
14725 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14726 @cd $ac_dir && \$(MAKE)"
14728 if test "x$enable_maintainer_mode" = xyes
14729 then
14730 if wine_fn_has_flag mc $ac_flags
14731 then
14732 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14733 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14734 "$ac_dir/msg.pot: $ac_dir"
14736 if wine_fn_has_flag po $ac_flags
14737 then
14738 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14739 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14740 "$ac_dir/rsrc.pot: $ac_dir"
14744 wine_fn_has_flag install $ac_flags || return
14745 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14746 "install install-lib:: $ac_dir/Makefile __builddeps__
14747 @cd $ac_dir && \$(MAKE) install
14748 uninstall:: $ac_dir/Makefile
14749 @cd $ac_dir && \$(MAKE) uninstall"
14750 if test -n "$DLLEXT" -a "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14751 then
14752 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14753 "install install-lib:: tools \$(DESTDIR)\$(bindir)
14754 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14755 uninstall::
14756 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14761 wine_fn_config_test ()
14763 ac_dir=$1
14764 ac_name=$2
14765 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
14766 wine_fn_all_dir_rules $ac_dir Maketest.rules
14768 if test "x$enable_tests" = xno; then :
14770 else
14771 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14772 "all: $ac_dir
14773 .PHONY: $ac_dir
14774 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
14775 @cd $ac_dir && \$(MAKE)
14776 programs/winetest: $ac_dir
14777 check test: $ac_dir/__test__
14778 .PHONY: $ac_dir/__test__
14779 $ac_dir/__test__: dummy
14780 @cd $ac_dir && \$(MAKE) test
14781 testclean::
14782 \$(RM) $ac_dir/*.ok"
14784 if test "x$CROSSTEST_DISABLE" = x
14785 then
14786 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14787 "crosstest: $ac_dir/__crosstest__
14788 .PHONY: $ac_dir/__crosstest__
14789 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14790 @cd $ac_dir && \$(MAKE) crosstest"
14795 wine_fn_config_tool ()
14797 ac_dir=$1
14798 if test "x$enable_tools" = xno; then :
14799 return 0
14802 wine_fn_all_dir_rules $ac_dir Make.rules
14804 case $ac_dir in
14805 tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14806 "install:: $ac_dir
14807 @cd $ac_dir && \$(MAKE) install
14808 install-lib:: $ac_dir
14809 @cd $ac_dir && \$(MAKE) install-lib
14810 install-dev:: $ac_dir
14811 @cd $ac_dir && \$(MAKE) install-dev" ;;
14812 *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14813 "install install-dev:: $ac_dir
14814 @cd $ac_dir && \$(MAKE) install" ;;
14815 esac
14816 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14817 "uninstall:: $ac_dir/Makefile
14818 @cd $ac_dir && \$(MAKE) uninstall
14819 all __tooldeps__: $ac_dir
14820 .PHONY: $ac_dir
14821 $ac_dir: $ac_dir/Makefile libs/port dummy
14822 @cd $ac_dir && \$(MAKE)"
14823 case $ac_dir in
14824 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14825 esac
14828 wine_fn_config_makerules ()
14830 ac_rules=$1
14831 ac_deps=$2
14832 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14833 "$ac_rules: $ac_rules.in $ac_deps config.status
14834 @./config.status $ac_rules
14835 distclean::
14836 \$(RM) $ac_rules"
14839 wine_fn_config_symlink ()
14841 ac_link=$1
14842 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14843 "$ac_link:
14844 @./config.status $ac_link
14845 distclean::
14846 \$(RM) $ac_link"
14849 if test "x$CROSSTEST_DISABLE" != x
14850 then
14851 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14852 "crosstest:
14853 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14855 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14856 wine_fn_config_symlink dlls/shell32/AUTHORS
14857 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14858 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14859 if test "x$enable_fonts" != xno; then
14860 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14861 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14863 if test "x$enable_fonts" != xno; then
14864 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14865 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14867 if test "x$enable_fonts" != xno; then
14868 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14869 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14871 if test "x$enable_fonts" != xno; then
14872 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14873 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14875 if test "x$enable_tools" != xno; then
14876 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14877 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14879 ac_config_links="$ac_config_links wine:tools/winewrapper"
14880 wine_fn_config_symlink wine
14881 if test "x$enable_win64" != xno; then
14882 ac_config_links="$ac_config_links wine64:tools/winewrapper"
14883 wine_fn_config_symlink wine64
14886 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14888 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14890 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14892 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14894 ac_config_commands="$ac_config_commands dlls/user32/resources"
14896 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14898 ac_config_commands="$ac_config_commands include/wine"
14901 wine_fn_config_makerules Make.rules
14902 MAKE_RULES=Make.rules
14903 ac_config_files="$ac_config_files Make.rules"
14905 wine_fn_config_makerules Maketest.rules Make.rules
14906 MAKE_TEST_RULES=Maketest.rules
14907 ac_config_files="$ac_config_files Maketest.rules"
14909 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14910 MAKE_DLL_RULES=dlls/Makedll.rules
14911 ac_config_files="$ac_config_files dlls/Makedll.rules"
14913 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14914 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14915 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14917 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14918 MAKE_PROG_RULES=programs/Makeprog.rules
14919 ac_config_files="$ac_config_files programs/Makeprog.rules"
14922 wine_fn_config_dll acledit enable_acledit
14923 wine_fn_config_dll aclui enable_aclui implib
14924 wine_fn_config_dll activeds enable_activeds implib
14925 wine_fn_config_dll actxprxy enable_actxprxy
14926 wine_fn_config_lib adsiid
14927 wine_fn_config_dll advapi32 enable_advapi32 implib
14928 wine_fn_config_test dlls/advapi32/tests advapi32_test
14929 wine_fn_config_dll advpack enable_advpack implib
14930 wine_fn_config_test dlls/advpack/tests advpack_test
14931 wine_fn_config_dll amstream enable_amstream
14932 wine_fn_config_test dlls/amstream/tests amstream_test
14933 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14934 wine_fn_config_dll atl enable_atl implib
14935 wine_fn_config_test dlls/atl/tests atl_test
14936 wine_fn_config_dll authz enable_authz
14937 wine_fn_config_dll avicap32 enable_avicap32 implib
14938 wine_fn_config_dll avifil32 enable_avifil32 po,implib
14939 wine_fn_config_test dlls/avifil32/tests avifil32_test
14940 wine_fn_config_dll avifile.dll16 enable_win16
14941 wine_fn_config_dll avrt enable_avrt implib
14942 wine_fn_config_dll bcrypt enable_bcrypt
14943 wine_fn_config_dll browseui enable_browseui po
14944 wine_fn_config_test dlls/browseui/tests browseui_test
14945 wine_fn_config_dll cabinet enable_cabinet implib
14946 wine_fn_config_test dlls/cabinet/tests cabinet_test
14947 wine_fn_config_dll capi2032 enable_capi2032 implib
14948 wine_fn_config_dll cards enable_cards implib
14949 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14950 wine_fn_config_dll clusapi enable_clusapi implib
14951 wine_fn_config_dll comcat enable_comcat
14952 wine_fn_config_test dlls/comcat/tests comcat_test
14953 wine_fn_config_dll comctl32 enable_comctl32 po,implib
14954 wine_fn_config_test dlls/comctl32/tests comctl32_test
14955 wine_fn_config_dll comdlg32 enable_comdlg32 po,implib
14956 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14957 wine_fn_config_dll comm.drv16 enable_win16
14958 wine_fn_config_dll commdlg.dll16 enable_win16
14959 wine_fn_config_dll compobj.dll16 enable_win16
14960 wine_fn_config_dll compstui enable_compstui implib
14961 wine_fn_config_dll credui enable_credui po,implib
14962 wine_fn_config_test dlls/credui/tests credui_test
14963 wine_fn_config_dll crtdll enable_crtdll implib
14964 wine_fn_config_dll crypt32 enable_crypt32 po,implib
14965 wine_fn_config_test dlls/crypt32/tests crypt32_test
14966 wine_fn_config_dll cryptdlg enable_cryptdlg po
14967 wine_fn_config_dll cryptdll enable_cryptdll implib
14968 wine_fn_config_dll cryptnet enable_cryptnet implib
14969 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14970 wine_fn_config_dll cryptui enable_cryptui po,implib
14971 wine_fn_config_test dlls/cryptui/tests cryptui_test
14972 wine_fn_config_dll ctapi32 enable_ctapi32
14973 wine_fn_config_dll ctl3d.dll16 enable_win16
14974 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14975 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14976 wine_fn_config_dll d3d10 enable_d3d10 implib
14977 wine_fn_config_test dlls/d3d10/tests d3d10_test
14978 wine_fn_config_dll d3d10core enable_d3d10core implib
14979 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14980 wine_fn_config_dll d3d8 enable_d3d8 implib
14981 wine_fn_config_test dlls/d3d8/tests d3d8_test
14982 wine_fn_config_dll d3d9 enable_d3d9 implib
14983 wine_fn_config_test dlls/d3d9/tests d3d9_test
14984 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14985 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14986 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14987 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14988 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14989 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14990 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14991 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14992 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14993 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14994 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14995 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14996 wine_fn_config_dll d3dim enable_d3dim implib
14997 wine_fn_config_dll d3drm enable_d3drm implib
14998 wine_fn_config_test dlls/d3drm/tests d3drm_test
14999 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15000 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15001 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15002 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15003 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15004 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15005 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15006 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15007 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15008 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15009 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15010 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15011 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15012 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15013 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15014 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15015 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15016 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15017 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15018 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15019 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15020 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15021 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15022 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15023 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15024 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15025 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15026 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15027 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15028 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15029 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15030 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15031 wine_fn_config_dll d3dxof enable_d3dxof implib
15032 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15033 wine_fn_config_dll dbgeng enable_dbgeng implib
15034 wine_fn_config_dll dbghelp enable_dbghelp implib
15035 wine_fn_config_dll dciman32 enable_dciman32 implib
15036 wine_fn_config_dll ddeml.dll16 enable_win16
15037 wine_fn_config_dll ddraw enable_ddraw implib
15038 wine_fn_config_test dlls/ddraw/tests ddraw_test
15039 wine_fn_config_dll ddrawex enable_ddrawex
15040 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15041 wine_fn_config_dll devenum enable_devenum po
15042 wine_fn_config_dll dinput enable_dinput implib,staticimplib
15043 wine_fn_config_test dlls/dinput/tests dinput_test
15044 wine_fn_config_dll dinput8 enable_dinput8 implib
15045 wine_fn_config_test dlls/dinput8/tests dinput8_test
15046 wine_fn_config_dll dispdib.dll16 enable_win16
15047 wine_fn_config_dll dispex enable_dispex
15048 wine_fn_config_test dlls/dispex/tests dispex_test
15049 wine_fn_config_dll display.drv16 enable_win16
15050 wine_fn_config_dll dmband enable_dmband
15051 wine_fn_config_dll dmcompos enable_dmcompos
15052 wine_fn_config_dll dmime enable_dmime
15053 wine_fn_config_test dlls/dmime/tests dmime_test
15054 wine_fn_config_dll dmloader enable_dmloader
15055 wine_fn_config_test dlls/dmloader/tests dmloader_test
15056 wine_fn_config_dll dmscript enable_dmscript
15057 wine_fn_config_dll dmstyle enable_dmstyle
15058 wine_fn_config_dll dmsynth enable_dmsynth
15059 wine_fn_config_dll dmusic enable_dmusic
15060 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15061 wine_fn_config_dll dnsapi enable_dnsapi implib
15062 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15063 wine_fn_config_dll dplay enable_dplay implib
15064 wine_fn_config_dll dplayx enable_dplayx implib
15065 wine_fn_config_test dlls/dplayx/tests dplayx_test
15066 wine_fn_config_dll dpnaddr enable_dpnaddr
15067 wine_fn_config_dll dpnet enable_dpnet implib
15068 wine_fn_config_dll dpnhpast enable_dpnhpast
15069 wine_fn_config_dll dpnlobby enable_dpnlobby
15070 wine_fn_config_dll dpwsockx enable_dpwsockx
15071 wine_fn_config_dll drmclien enable_drmclien
15072 wine_fn_config_dll dsound enable_dsound implib
15073 wine_fn_config_test dlls/dsound/tests dsound_test
15074 wine_fn_config_dll dssenh enable_dssenh
15075 wine_fn_config_dll dswave enable_dswave
15076 wine_fn_config_dll dwmapi enable_dwmapi implib
15077 wine_fn_config_dll dxdiagn enable_dxdiagn po
15078 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15079 wine_fn_config_lib dxerr8
15080 wine_fn_config_lib dxerr9
15081 wine_fn_config_dll dxgi enable_dxgi implib
15082 wine_fn_config_test dlls/dxgi/tests dxgi_test
15083 wine_fn_config_lib dxguid
15084 wine_fn_config_dll explorerframe enable_explorerframe
15085 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15086 wine_fn_config_dll faultrep enable_faultrep implib
15087 wine_fn_config_test dlls/faultrep/tests faultrep_test
15088 wine_fn_config_dll fltlib enable_fltlib
15089 wine_fn_config_dll fusion enable_fusion
15090 wine_fn_config_test dlls/fusion/tests fusion_test
15091 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15092 wine_fn_config_dll gameux enable_gameux
15093 wine_fn_config_test dlls/gameux/tests gameux_test
15094 wine_fn_config_dll gdi.exe16 enable_win16
15095 wine_fn_config_dll gdi32 enable_gdi32 implib
15096 wine_fn_config_test dlls/gdi32/tests gdi32_test
15097 wine_fn_config_dll gdiplus enable_gdiplus implib
15098 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15099 wine_fn_config_dll glu32 enable_glu32 implib
15100 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
15101 wine_fn_config_dll gpkcsp enable_gpkcsp
15102 wine_fn_config_dll hal enable_hal
15103 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15104 wine_fn_config_dll hid enable_hid implib
15105 wine_fn_config_dll hlink enable_hlink implib
15106 wine_fn_config_test dlls/hlink/tests hlink_test
15107 wine_fn_config_dll hnetcfg enable_hnetcfg
15108 wine_fn_config_dll httpapi enable_httpapi
15109 wine_fn_config_dll iccvid enable_iccvid po
15110 wine_fn_config_dll icmp enable_icmp
15111 wine_fn_config_dll ifsmgr.vxd enable_win16
15112 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15113 wine_fn_config_dll imagehlp enable_imagehlp implib
15114 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15115 wine_fn_config_dll imm.dll16 enable_win16
15116 wine_fn_config_dll imm32 enable_imm32 implib
15117 wine_fn_config_test dlls/imm32/tests imm32_test
15118 wine_fn_config_dll inetcomm enable_inetcomm implib
15119 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15120 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15121 wine_fn_config_dll inetmib1 enable_inetmib1
15122 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15123 wine_fn_config_dll infosoft enable_infosoft
15124 wine_fn_config_test dlls/infosoft/tests infosoft_test
15125 wine_fn_config_dll initpki enable_initpki
15126 wine_fn_config_dll inkobj enable_inkobj
15127 wine_fn_config_dll inseng enable_inseng
15128 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15129 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15130 wine_fn_config_dll itircl enable_itircl
15131 wine_fn_config_dll itss enable_itss
15132 wine_fn_config_test dlls/itss/tests itss_test
15133 wine_fn_config_dll jscript enable_jscript po
15134 wine_fn_config_test dlls/jscript/tests jscript_test
15135 wine_fn_config_dll kernel32 enable_kernel32 mc,implib
15136 wine_fn_config_test dlls/kernel32/tests kernel32_test
15137 wine_fn_config_dll keyboard.drv16 enable_win16
15138 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15139 wine_fn_config_dll ktmw32 enable_ktmw32
15140 wine_fn_config_dll loadperf enable_loadperf implib
15141 wine_fn_config_dll localspl enable_localspl po
15142 wine_fn_config_test dlls/localspl/tests localspl_test
15143 wine_fn_config_dll localui enable_localui po
15144 wine_fn_config_test dlls/localui/tests localui_test
15145 wine_fn_config_dll lz32 enable_lz32 implib
15146 wine_fn_config_test dlls/lz32/tests lz32_test
15147 wine_fn_config_dll lzexpand.dll16 enable_win16
15148 wine_fn_config_dll mapi32 enable_mapi32 po,implib
15149 wine_fn_config_test dlls/mapi32/tests mapi32_test
15150 wine_fn_config_dll mapistub enable_mapistub
15151 wine_fn_config_dll mciavi32 enable_mciavi32
15152 wine_fn_config_dll mcicda enable_mcicda
15153 wine_fn_config_dll mciqtz32 enable_mciqtz32
15154 wine_fn_config_dll mciseq enable_mciseq
15155 wine_fn_config_dll mciwave enable_mciwave
15156 wine_fn_config_dll midimap enable_midimap
15157 wine_fn_config_dll mlang enable_mlang implib
15158 wine_fn_config_test dlls/mlang/tests mlang_test
15159 wine_fn_config_dll mmdevapi enable_mmdevapi
15160 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15161 wine_fn_config_dll mmdevldr.vxd enable_win16
15162 wine_fn_config_dll mmsystem.dll16 enable_win16
15163 wine_fn_config_dll monodebg.vxd enable_win16
15164 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15165 wine_fn_config_dll mouse.drv16 enable_win16
15166 wine_fn_config_dll mpr enable_mpr po,implib
15167 wine_fn_config_dll mprapi enable_mprapi implib
15168 wine_fn_config_dll msacm.dll16 enable_win16
15169 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15170 wine_fn_config_dll msacm32 enable_msacm32 implib
15171 wine_fn_config_test dlls/msacm32/tests msacm32_test
15172 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15173 wine_fn_config_dll mscat32 enable_mscat32
15174 wine_fn_config_dll mscms enable_mscms implib
15175 wine_fn_config_test dlls/mscms/tests mscms_test
15176 wine_fn_config_dll mscoree enable_mscoree
15177 wine_fn_config_test dlls/mscoree/tests mscoree_test
15178 wine_fn_config_dll msctf enable_msctf
15179 wine_fn_config_test dlls/msctf/tests msctf_test
15180 wine_fn_config_dll msdaps enable_msdaps
15181 wine_fn_config_dll msdmo enable_msdmo implib
15182 wine_fn_config_dll msftedit enable_msftedit
15183 wine_fn_config_dll msg711.acm enable_msg711_acm
15184 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15185 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15186 wine_fn_config_dll mshtml enable_mshtml po,implib
15187 wine_fn_config_test dlls/mshtml/tests mshtml_test
15188 wine_fn_config_dll msi enable_msi po,implib
15189 wine_fn_config_test dlls/msi/tests msi_test
15190 wine_fn_config_dll msimg32 enable_msimg32 implib
15191 wine_fn_config_dll msimsg enable_msimsg
15192 wine_fn_config_dll msimtf enable_msimtf
15193 wine_fn_config_dll msisip enable_msisip
15194 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15195 wine_fn_config_dll msnet32 enable_msnet32
15196 wine_fn_config_dll mspatcha enable_mspatcha
15197 wine_fn_config_dll msrle32 enable_msrle32 po
15198 wine_fn_config_dll mssign32 enable_mssign32
15199 wine_fn_config_dll mssip32 enable_mssip32
15200 wine_fn_config_dll mstask enable_mstask
15201 wine_fn_config_test dlls/mstask/tests mstask_test
15202 wine_fn_config_dll msvcirt enable_msvcirt
15203 wine_fn_config_dll msvcp100 enable_msvcp100
15204 wine_fn_config_dll msvcp60 enable_msvcp60
15205 wine_fn_config_dll msvcp70 enable_msvcp70
15206 wine_fn_config_dll msvcp71 enable_msvcp71
15207 wine_fn_config_dll msvcp80 enable_msvcp80
15208 wine_fn_config_dll msvcp90 enable_msvcp90
15209 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15210 wine_fn_config_dll msvcr100 enable_msvcr100
15211 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15212 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15213 wine_fn_config_dll msvcr80 enable_msvcr80
15214 wine_fn_config_dll msvcr90 enable_msvcr90
15215 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15216 wine_fn_config_dll msvcrt enable_msvcrt implib
15217 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15218 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15219 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15220 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15221 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15222 wine_fn_config_dll msvfw32 enable_msvfw32 po,implib
15223 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15224 wine_fn_config_dll msvidc32 enable_msvidc32 po
15225 wine_fn_config_dll msvideo.dll16 enable_win16
15226 wine_fn_config_dll mswsock enable_mswsock implib
15227 wine_fn_config_dll msxml enable_msxml
15228 wine_fn_config_dll msxml2 enable_msxml2
15229 wine_fn_config_dll msxml3 enable_msxml3
15230 wine_fn_config_test dlls/msxml3/tests msxml3_test
15231 wine_fn_config_dll msxml4 enable_msxml4
15232 wine_fn_config_dll msxml6 enable_msxml6
15233 wine_fn_config_dll nddeapi enable_nddeapi implib
15234 wine_fn_config_dll netapi32 enable_netapi32 implib
15235 wine_fn_config_test dlls/netapi32/tests netapi32_test
15236 wine_fn_config_dll newdev enable_newdev implib
15237 wine_fn_config_dll normaliz enable_normaliz implib
15238 wine_fn_config_dll npmshtml enable_npmshtml
15239 wine_fn_config_dll ntdll enable_ntdll implib
15240 wine_fn_config_test dlls/ntdll/tests ntdll_test
15241 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15242 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15243 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15244 wine_fn_config_dll ntprint enable_ntprint
15245 wine_fn_config_test dlls/ntprint/tests ntprint_test
15246 wine_fn_config_dll objsel enable_objsel
15247 wine_fn_config_dll odbc32 enable_odbc32 implib
15248 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15249 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15250 wine_fn_config_dll ole2.dll16 enable_win16
15251 wine_fn_config_dll ole2conv.dll16 enable_win16
15252 wine_fn_config_dll ole2disp.dll16 enable_win16
15253 wine_fn_config_dll ole2nls.dll16 enable_win16
15254 wine_fn_config_dll ole2prox.dll16 enable_win16
15255 wine_fn_config_dll ole2thk.dll16 enable_win16
15256 wine_fn_config_dll ole32 enable_ole32 implib
15257 wine_fn_config_test dlls/ole32/tests ole32_test
15258 wine_fn_config_dll oleacc enable_oleacc po,implib
15259 wine_fn_config_test dlls/oleacc/tests oleacc_test
15260 wine_fn_config_dll oleaut32 enable_oleaut32 po,implib
15261 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15262 wine_fn_config_dll olecli.dll16 enable_win16
15263 wine_fn_config_dll olecli32 enable_olecli32 implib
15264 wine_fn_config_dll oledb32 enable_oledb32
15265 wine_fn_config_test dlls/oledb32/tests oledb32_test
15266 wine_fn_config_dll oledlg enable_oledlg po,implib
15267 wine_fn_config_dll olepro32 enable_olepro32 implib
15268 wine_fn_config_dll olesvr.dll16 enable_win16
15269 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15270 wine_fn_config_dll olethk32 enable_olethk32
15271 wine_fn_config_dll openal32 enable_openal32
15272 wine_fn_config_dll opencl enable_opencl
15273 wine_fn_config_dll opengl32 enable_opengl32 implib
15274 wine_fn_config_test dlls/opengl32/tests opengl32_test
15275 wine_fn_config_dll pdh enable_pdh implib
15276 wine_fn_config_test dlls/pdh/tests pdh_test
15277 wine_fn_config_dll pidgen enable_pidgen
15278 wine_fn_config_dll powrprof enable_powrprof implib
15279 wine_fn_config_dll printui enable_printui
15280 wine_fn_config_dll propsys enable_propsys implib
15281 wine_fn_config_test dlls/propsys/tests propsys_test
15282 wine_fn_config_dll psapi enable_psapi implib
15283 wine_fn_config_test dlls/psapi/tests psapi_test
15284 wine_fn_config_dll pstorec enable_pstorec
15285 wine_fn_config_dll qcap enable_qcap
15286 wine_fn_config_dll qedit enable_qedit
15287 wine_fn_config_test dlls/qedit/tests qedit_test
15288 wine_fn_config_dll qmgr enable_qmgr
15289 wine_fn_config_test dlls/qmgr/tests qmgr_test
15290 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15291 wine_fn_config_dll quartz enable_quartz implib
15292 wine_fn_config_test dlls/quartz/tests quartz_test
15293 wine_fn_config_dll query enable_query
15294 wine_fn_config_dll rasapi16.dll16 enable_win16
15295 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15296 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15297 wine_fn_config_dll rasdlg enable_rasdlg implib
15298 wine_fn_config_dll regapi enable_regapi
15299 wine_fn_config_dll resutils enable_resutils implib
15300 wine_fn_config_dll riched20 enable_riched20 implib
15301 wine_fn_config_test dlls/riched20/tests riched20_test
15302 wine_fn_config_dll riched32 enable_riched32
15303 wine_fn_config_test dlls/riched32/tests riched32_test
15304 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15305 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15306 wine_fn_config_dll rsabase enable_rsabase
15307 wine_fn_config_dll rsaenh enable_rsaenh implib
15308 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15309 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15310 wine_fn_config_dll rtutils enable_rtutils implib
15311 wine_fn_config_dll samlib enable_samlib
15312 wine_fn_config_dll sane.ds enable_sane_ds po
15313 wine_fn_config_dll scarddlg enable_scarddlg
15314 wine_fn_config_dll sccbase enable_sccbase
15315 wine_fn_config_dll schannel enable_schannel
15316 wine_fn_config_test dlls/schannel/tests schannel_test
15317 wine_fn_config_dll secur32 enable_secur32 implib
15318 wine_fn_config_test dlls/secur32/tests secur32_test
15319 wine_fn_config_dll security enable_security
15320 wine_fn_config_dll sensapi enable_sensapi implib
15321 wine_fn_config_dll serialui enable_serialui implib
15322 wine_fn_config_test dlls/serialui/tests serialui_test
15323 wine_fn_config_dll setupapi enable_setupapi po,implib
15324 wine_fn_config_test dlls/setupapi/tests setupapi_test
15325 wine_fn_config_dll setupx.dll16 enable_win16
15326 wine_fn_config_dll sfc enable_sfc implib
15327 wine_fn_config_dll sfc_os enable_sfc_os implib
15328 wine_fn_config_dll shdoclc enable_shdoclc po
15329 wine_fn_config_dll shdocvw enable_shdocvw po,implib
15330 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15331 wine_fn_config_dll shell.dll16 enable_win16
15332 wine_fn_config_dll shell32 enable_shell32 po,implib
15333 wine_fn_config_test dlls/shell32/tests shell32_test
15334 wine_fn_config_dll shfolder enable_shfolder implib
15335 wine_fn_config_dll shlwapi enable_shlwapi po,implib
15336 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15337 wine_fn_config_dll slbcsp enable_slbcsp
15338 wine_fn_config_dll slc enable_slc implib
15339 wine_fn_config_dll snmpapi enable_snmpapi implib
15340 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15341 wine_fn_config_dll softpub enable_softpub
15342 wine_fn_config_dll sound.drv16 enable_win16
15343 wine_fn_config_dll spoolss enable_spoolss implib
15344 wine_fn_config_test dlls/spoolss/tests spoolss_test
15345 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15346 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15347 wine_fn_config_dll sti enable_sti implib
15348 wine_fn_config_test dlls/sti/tests sti_test
15349 wine_fn_config_dll storage.dll16 enable_win16
15350 wine_fn_config_dll stress.dll16 enable_win16
15351 wine_fn_config_lib strmbase
15352 wine_fn_config_lib strmiids
15353 wine_fn_config_dll svrapi enable_svrapi
15354 wine_fn_config_dll sxs enable_sxs
15355 wine_fn_config_dll system.drv16 enable_win16
15356 wine_fn_config_dll t2embed enable_t2embed
15357 wine_fn_config_dll tapi32 enable_tapi32 implib
15358 wine_fn_config_dll toolhelp.dll16 enable_win16
15359 wine_fn_config_dll traffic enable_traffic
15360 wine_fn_config_dll twain.dll16 enable_win16
15361 wine_fn_config_dll twain_32 enable_twain_32
15362 wine_fn_config_test dlls/twain_32/tests twain_32_test
15363 wine_fn_config_dll typelib.dll16 enable_win16
15364 wine_fn_config_dll unicows enable_unicows implib
15365 wine_fn_config_dll updspapi enable_updspapi
15366 wine_fn_config_dll url enable_url implib
15367 wine_fn_config_dll urlmon enable_urlmon implib
15368 wine_fn_config_test dlls/urlmon/tests urlmon_test
15369 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15370 wine_fn_config_dll user.exe16 enable_win16
15371 wine_fn_config_dll user32 enable_user32 po,implib
15372 wine_fn_config_test dlls/user32/tests user32_test
15373 wine_fn_config_dll userenv enable_userenv implib
15374 wine_fn_config_test dlls/userenv/tests userenv_test
15375 wine_fn_config_dll usp10 enable_usp10 implib
15376 wine_fn_config_test dlls/usp10/tests usp10_test
15377 wine_fn_config_lib uuid
15378 wine_fn_config_dll uxtheme enable_uxtheme implib
15379 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15380 wine_fn_config_dll vcomp enable_vcomp
15381 wine_fn_config_dll vdhcp.vxd enable_win16
15382 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15383 wine_fn_config_dll ver.dll16 enable_win16
15384 wine_fn_config_dll version enable_version implib
15385 wine_fn_config_test dlls/version/tests version_test
15386 wine_fn_config_dll vmm.vxd enable_win16
15387 wine_fn_config_dll vnbt.vxd enable_win16
15388 wine_fn_config_dll vnetbios.vxd enable_win16
15389 wine_fn_config_dll vtdapi.vxd enable_win16
15390 wine_fn_config_dll vwin32.vxd enable_win16
15391 wine_fn_config_dll w32skrnl enable_win16
15392 wine_fn_config_dll w32sys.dll16 enable_win16
15393 wine_fn_config_dll wbemprox enable_wbemprox
15394 wine_fn_config_dll wer enable_wer implib
15395 wine_fn_config_test dlls/wer/tests wer_test
15396 wine_fn_config_dll wiaservc enable_wiaservc
15397 wine_fn_config_dll win32s16.dll16 enable_win16
15398 wine_fn_config_dll win87em.dll16 enable_win16
15399 wine_fn_config_dll winaspi.dll16 enable_win16
15400 wine_fn_config_dll windebug.dll16 enable_win16
15401 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15402 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15403 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15404 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15405 wine_fn_config_lib winecrt0
15406 wine_fn_config_dll wined3d enable_wined3d implib
15407 wine_fn_config_dll wineesd.drv enable_wineesd_drv
15408 wine_fn_config_dll winegstreamer enable_winegstreamer
15409 wine_fn_config_dll winejack.drv enable_winejack_drv
15410 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15411 wine_fn_config_dll winemapi enable_winemapi
15412 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15413 wine_fn_config_dll winenas.drv enable_winenas_drv
15414 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15415 wine_fn_config_dll wineps.drv enable_wineps_drv
15416 wine_fn_config_dll wineps16.drv16 enable_win16
15417 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15418 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15419 wine_fn_config_dll winex11.drv enable_winex11_drv
15420 wine_fn_config_dll wing.dll16 enable_win16
15421 wine_fn_config_dll wing32 enable_wing32
15422 wine_fn_config_dll winhttp enable_winhttp implib
15423 wine_fn_config_test dlls/winhttp/tests winhttp_test
15424 wine_fn_config_dll wininet enable_wininet po,implib
15425 wine_fn_config_test dlls/wininet/tests wininet_test
15426 wine_fn_config_dll winmm enable_winmm po,implib
15427 wine_fn_config_test dlls/winmm/tests winmm_test
15428 wine_fn_config_dll winnls.dll16 enable_win16
15429 wine_fn_config_dll winnls32 enable_winnls32 implib
15430 wine_fn_config_dll winscard enable_winscard implib
15431 wine_fn_config_dll winsock.dll16 enable_win16
15432 wine_fn_config_dll winspool.drv enable_winspool_drv po,implib winspool
15433 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15434 wine_fn_config_dll winsta enable_winsta
15435 wine_fn_config_dll wintab.dll16 enable_win16
15436 wine_fn_config_dll wintab32 enable_wintab32 implib
15437 wine_fn_config_test dlls/wintab32/tests wintab32_test
15438 wine_fn_config_dll wintrust enable_wintrust implib
15439 wine_fn_config_test dlls/wintrust/tests wintrust_test
15440 wine_fn_config_dll wlanapi enable_wlanapi
15441 wine_fn_config_dll wldap32 enable_wldap32 po,implib
15442 wine_fn_config_test dlls/wldap32/tests wldap32_test
15443 wine_fn_config_dll wmi enable_wmi
15444 wine_fn_config_dll wmiutils enable_wmiutils
15445 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15446 wine_fn_config_dll wow32 enable_win16 implib
15447 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15448 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15449 wine_fn_config_dll wsock32 enable_wsock32 implib
15450 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15451 wine_fn_config_dll wuapi enable_wuapi
15452 wine_fn_config_dll wuaueng enable_wuaueng
15453 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15454 wine_fn_config_dll xinput1_1 enable_xinput1_1
15455 wine_fn_config_dll xinput1_2 enable_xinput1_2
15456 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15457 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15458 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15459 wine_fn_config_dll xmllite enable_xmllite
15460 wine_fn_config_test dlls/xmllite/tests xmllite_test
15461 wine_fn_config_makefile documentation enable_documentation
15462 wine_fn_config_makefile fonts enable_fonts
15463 wine_fn_config_makefile include enable_include
15464 wine_fn_config_makefile libs/port enable_libs_port
15465 wine_fn_config_makefile libs/wine enable_libs_wine
15466 wine_fn_config_makefile libs/wpp enable_libs_wpp
15467 wine_fn_config_makefile loader enable_loader
15468 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15469 wine_fn_config_program attrib enable_attrib install
15470 wine_fn_config_program cabarc enable_cabarc install
15471 wine_fn_config_program cacls enable_cacls install
15472 wine_fn_config_program clock enable_clock po,install
15473 wine_fn_config_program cmd enable_cmd po,install
15474 wine_fn_config_test programs/cmd/tests cmd.exe_test
15475 wine_fn_config_program cmdlgtst enable_cmdlgtst
15476 wine_fn_config_program control enable_control install
15477 wine_fn_config_program dxdiag enable_dxdiag install
15478 wine_fn_config_program eject enable_eject install
15479 wine_fn_config_program expand enable_expand install
15480 wine_fn_config_program explorer enable_explorer install
15481 wine_fn_config_program extrac32 enable_extrac32 install
15482 wine_fn_config_program hh enable_hh install
15483 wine_fn_config_program hostname enable_hostname po,install
15484 wine_fn_config_program icinfo enable_icinfo install
15485 wine_fn_config_program iexplore enable_iexplore install
15486 wine_fn_config_program ipconfig enable_ipconfig po,install
15487 wine_fn_config_program lodctr enable_lodctr install
15488 wine_fn_config_program mofcomp enable_mofcomp install
15489 wine_fn_config_program mshta enable_mshta install
15490 wine_fn_config_program msiexec enable_msiexec install,installbin
15491 wine_fn_config_program net enable_net po,install
15492 wine_fn_config_program netsh enable_netsh install
15493 wine_fn_config_program ngen enable_ngen install
15494 wine_fn_config_program notepad enable_notepad po,install,installbin
15495 wine_fn_config_program oleview enable_oleview po,install
15496 wine_fn_config_program ping enable_ping install
15497 wine_fn_config_program plugplay enable_plugplay install
15498 wine_fn_config_program progman enable_progman po,install
15499 wine_fn_config_program reg enable_reg po,install
15500 wine_fn_config_program regedit enable_regedit po,install,installbin
15501 wine_fn_config_test programs/regedit/tests regedit.exe_test
15502 wine_fn_config_program regsvcs enable_regsvcs install
15503 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin
15504 wine_fn_config_program rpcss enable_rpcss install
15505 wine_fn_config_program rundll.exe16 enable_win16 install
15506 wine_fn_config_program rundll32 enable_rundll32 install
15507 wine_fn_config_program sc enable_sc install
15508 wine_fn_config_program secedit enable_secedit install
15509 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15510 wine_fn_config_program services enable_services install
15511 wine_fn_config_program spoolsv enable_spoolsv install
15512 wine_fn_config_program start enable_start po,install
15513 wine_fn_config_program svchost enable_svchost install
15514 wine_fn_config_program taskkill enable_taskkill po,install
15515 wine_fn_config_program taskmgr enable_taskmgr po,install
15516 wine_fn_config_program termsv enable_termsv install
15517 wine_fn_config_program uninstaller enable_uninstaller po,install
15518 wine_fn_config_program unlodctr enable_unlodctr install
15519 wine_fn_config_program view enable_view po
15520 wine_fn_config_program wineboot enable_wineboot install,installbin
15521 wine_fn_config_program winebrowser enable_winebrowser install
15522 wine_fn_config_program winecfg enable_winecfg po,install,installbin
15523 wine_fn_config_program wineconsole enable_wineconsole po,install,installbin
15524 wine_fn_config_program winedbg enable_winedbg po,install,installbin
15525 wine_fn_config_program winedevice enable_winedevice install
15526 wine_fn_config_program winefile enable_winefile po,install,installbin
15527 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15528 wine_fn_config_program winemine enable_winemine po,install,installbin
15529 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15530 wine_fn_config_program winepath enable_winepath install,installbin
15531 wine_fn_config_program winetest enable_winetest
15532 wine_fn_config_program winevdm enable_win16 install
15533 wine_fn_config_program winhelp.exe16 enable_win16 install
15534 wine_fn_config_program winhlp32 enable_winhlp32 po,install
15535 wine_fn_config_program winoldap.mod16 enable_win16 install
15536 wine_fn_config_program winver enable_winver install
15537 wine_fn_config_program wmic enable_wmic install
15538 wine_fn_config_program wordpad enable_wordpad po,install
15539 wine_fn_config_program write enable_write po,install
15540 wine_fn_config_program wscript enable_wscript install
15541 wine_fn_config_test programs/wscript/tests wscript.exe_test
15542 wine_fn_config_program xcopy enable_xcopy po,install
15543 wine_fn_config_makefile server enable_server
15544 wine_fn_config_tool tools
15545 wine_fn_config_tool tools/widl
15546 wine_fn_config_tool tools/winebuild
15547 wine_fn_config_tool tools/winedump
15548 wine_fn_config_tool tools/winegcc
15549 wine_fn_config_tool tools/wmc
15550 wine_fn_config_tool tools/wrc
15552 LINGUAS="\
15553 ar \
15554 bg \
15555 ca \
15556 cs \
15557 da \
15558 de \
15559 el \
15560 en \
15561 en_US \
15562 eo \
15563 es \
15564 fa \
15565 fi \
15566 fr \
15567 he \
15568 hi \
15569 hu \
15570 it \
15571 ja \
15572 ko \
15573 lt \
15574 ml \
15575 nb_NO \
15576 nl \
15577 or \
15578 pa \
15579 pl \
15580 pt_BR \
15581 pt_PT \
15582 rm \
15583 ro \
15584 ru \
15585 sk \
15586 sl \
15587 sr_RS@cyrillic \
15588 sr_RS@latin \
15589 sv \
15590 te \
15591 th \
15592 tr \
15593 uk \
15594 wa \
15595 zh_CN \
15596 zh_TW"
15600 ac_config_commands="$ac_config_commands Makefile"
15603 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15607 if test "x$enable_maintainer_mode" = xyes
15608 then
15609 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15610 cd \$(srcdir) && autoconf --warnings=all
15611 \$(srcdir)/include/config.h.in: include/stamp-h.in
15612 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15613 cd \$(srcdir) && autoheader --warnings=all
15614 @echo timestamp > \$@
15616 ALL_POT_FILES =$ALL_POT_FILES
15617 all: \$(ALL_PO_FILES)
15618 \$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
15619 msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15620 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15621 msgcat -o \$@ \$(ALL_POT_FILES)"
15624 if test "x$enable_tools" != xno
15625 then
15626 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15627 clean:: __clean__
15628 \$(RM) tools/makedep\$(EXEEXT)"
15631 if test -n "$with_wine64"
15632 then
15633 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15634 fonts server tools:
15635 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15636 $with_wine64/loader/wine:
15637 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15638 $with_wine64/loader/wine-preloader:
15639 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15640 clean::
15641 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15644 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
15645 -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
15647 cat >confcache <<\_ACEOF
15648 # This file is a shell script that caches the results of configure
15649 # tests run on this system so they can be shared between configure
15650 # scripts and configure runs, see configure's option --config-cache.
15651 # It is not useful on other systems. If it contains results you don't
15652 # want to keep, you may remove or edit it.
15654 # config.status only pays attention to the cache file if you give it
15655 # the --recheck option to rerun configure.
15657 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15658 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15659 # following values.
15661 _ACEOF
15663 # The following way of writing the cache mishandles newlines in values,
15664 # but we know of no workaround that is simple, portable, and efficient.
15665 # So, we kill variables containing newlines.
15666 # Ultrix sh set writes to stderr and can't be redirected directly,
15667 # and sets the high bit in the cache file unless we assign to the vars.
15669 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15670 eval ac_val=\$$ac_var
15671 case $ac_val in #(
15672 *${as_nl}*)
15673 case $ac_var in #(
15674 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15675 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15676 esac
15677 case $ac_var in #(
15678 _ | IFS | as_nl) ;; #(
15679 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15680 *) { eval $ac_var=; unset $ac_var;} ;;
15681 esac ;;
15682 esac
15683 done
15685 (set) 2>&1 |
15686 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15687 *${as_nl}ac_space=\ *)
15688 # `set' does not quote correctly, so add quotes: double-quote
15689 # substitution turns \\\\ into \\, and sed turns \\ into \.
15690 sed -n \
15691 "s/'/'\\\\''/g;
15692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15693 ;; #(
15695 # `set' quotes correctly as required by POSIX, so do not add quotes.
15696 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15698 esac |
15699 sort
15701 sed '
15702 /^ac_cv_env_/b end
15703 t clear
15704 :clear
15705 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15706 t end
15707 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15708 :end' >>confcache
15709 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15710 if test -w "$cache_file"; then
15711 if test "x$cache_file" != "x/dev/null"; then
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15713 $as_echo "$as_me: updating cache $cache_file" >&6;}
15714 if test ! -f "$cache_file" || test -h "$cache_file"; then
15715 cat confcache >"$cache_file"
15716 else
15717 case $cache_file in #(
15718 */* | ?:*)
15719 mv -f confcache "$cache_file"$$ &&
15720 mv -f "$cache_file"$$ "$cache_file" ;; #(
15722 mv -f confcache "$cache_file" ;;
15723 esac
15726 else
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15728 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15731 rm -f confcache
15733 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15734 # Let make expand exec_prefix.
15735 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15737 DEFS=-DHAVE_CONFIG_H
15739 ac_libobjs=
15740 ac_ltlibobjs=
15742 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15743 # 1. Remove the extension, and $U if already installed.
15744 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15745 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15746 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15747 # will be set to the directory where LIBOBJS objects are built.
15748 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15749 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15750 done
15751 LIBOBJS=$ac_libobjs
15753 LTLIBOBJS=$ac_ltlibobjs
15757 : "${CONFIG_STATUS=./config.status}"
15758 ac_write_fail=0
15759 ac_clean_files_save=$ac_clean_files
15760 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15762 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15763 as_write_fail=0
15764 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15765 #! $SHELL
15766 # Generated by $as_me.
15767 # Run this file to recreate the current configuration.
15768 # Compiler output produced by configure, useful for debugging
15769 # configure, is in config.log if it exists.
15771 debug=false
15772 ac_cs_recheck=false
15773 ac_cs_silent=false
15775 SHELL=\${CONFIG_SHELL-$SHELL}
15776 export SHELL
15777 _ASEOF
15778 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15779 ## -------------------- ##
15780 ## M4sh Initialization. ##
15781 ## -------------------- ##
15783 # Be more Bourne compatible
15784 DUALCASE=1; export DUALCASE # for MKS sh
15785 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15786 emulate sh
15787 NULLCMD=:
15788 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15789 # is contrary to our usage. Disable this feature.
15790 alias -g '${1+"$@"}'='"$@"'
15791 setopt NO_GLOB_SUBST
15792 else
15793 case `(set -o) 2>/dev/null` in #(
15794 *posix*) :
15795 set -o posix ;; #(
15796 *) :
15798 esac
15802 as_nl='
15804 export as_nl
15805 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15806 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15807 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15808 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15809 # Prefer a ksh shell builtin over an external printf program on Solaris,
15810 # but without wasting forks for bash or zsh.
15811 if test -z "$BASH_VERSION$ZSH_VERSION" \
15812 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15813 as_echo='print -r --'
15814 as_echo_n='print -rn --'
15815 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15816 as_echo='printf %s\n'
15817 as_echo_n='printf %s'
15818 else
15819 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15820 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15821 as_echo_n='/usr/ucb/echo -n'
15822 else
15823 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15824 as_echo_n_body='eval
15825 arg=$1;
15826 case $arg in #(
15827 *"$as_nl"*)
15828 expr "X$arg" : "X\\(.*\\)$as_nl";
15829 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15830 esac;
15831 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15833 export as_echo_n_body
15834 as_echo_n='sh -c $as_echo_n_body as_echo'
15836 export as_echo_body
15837 as_echo='sh -c $as_echo_body as_echo'
15840 # The user is always right.
15841 if test "${PATH_SEPARATOR+set}" != set; then
15842 PATH_SEPARATOR=:
15843 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15844 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15845 PATH_SEPARATOR=';'
15850 # IFS
15851 # We need space, tab and new line, in precisely that order. Quoting is
15852 # there to prevent editors from complaining about space-tab.
15853 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15854 # splitting by setting IFS to empty value.)
15855 IFS=" "" $as_nl"
15857 # Find who we are. Look in the path if we contain no directory separator.
15858 as_myself=
15859 case $0 in #((
15860 *[\\/]* ) as_myself=$0 ;;
15861 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15862 for as_dir in $PATH
15864 IFS=$as_save_IFS
15865 test -z "$as_dir" && as_dir=.
15866 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15867 done
15868 IFS=$as_save_IFS
15871 esac
15872 # We did not find ourselves, most probably we were run as `sh COMMAND'
15873 # in which case we are not to be found in the path.
15874 if test "x$as_myself" = x; then
15875 as_myself=$0
15877 if test ! -f "$as_myself"; then
15878 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15879 exit 1
15882 # Unset variables that we do not need and which cause bugs (e.g. in
15883 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15884 # suppresses any "Segmentation fault" message there. '((' could
15885 # trigger a bug in pdksh 5.2.14.
15886 for as_var in BASH_ENV ENV MAIL MAILPATH
15887 do eval test x\${$as_var+set} = xset \
15888 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15889 done
15890 PS1='$ '
15891 PS2='> '
15892 PS4='+ '
15894 # NLS nuisances.
15895 LC_ALL=C
15896 export LC_ALL
15897 LANGUAGE=C
15898 export LANGUAGE
15900 # CDPATH.
15901 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15904 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15905 # ----------------------------------------
15906 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15907 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15908 # script with STATUS, using 1 if that was 0.
15909 as_fn_error ()
15911 as_status=$1; test $as_status -eq 0 && as_status=1
15912 if test "$4"; then
15913 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15914 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15916 $as_echo "$as_me: error: $2" >&2
15917 as_fn_exit $as_status
15918 } # as_fn_error
15921 # as_fn_set_status STATUS
15922 # -----------------------
15923 # Set $? to STATUS, without forking.
15924 as_fn_set_status ()
15926 return $1
15927 } # as_fn_set_status
15929 # as_fn_exit STATUS
15930 # -----------------
15931 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15932 as_fn_exit ()
15934 set +e
15935 as_fn_set_status $1
15936 exit $1
15937 } # as_fn_exit
15939 # as_fn_unset VAR
15940 # ---------------
15941 # Portably unset VAR.
15942 as_fn_unset ()
15944 { eval $1=; unset $1;}
15946 as_unset=as_fn_unset
15947 # as_fn_append VAR VALUE
15948 # ----------------------
15949 # Append the text in VALUE to the end of the definition contained in VAR. Take
15950 # advantage of any shell optimizations that allow amortized linear growth over
15951 # repeated appends, instead of the typical quadratic growth present in naive
15952 # implementations.
15953 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15954 eval 'as_fn_append ()
15956 eval $1+=\$2
15958 else
15959 as_fn_append ()
15961 eval $1=\$$1\$2
15963 fi # as_fn_append
15965 # as_fn_arith ARG...
15966 # ------------------
15967 # Perform arithmetic evaluation on the ARGs, and store the result in the
15968 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15969 # must be portable across $(()) and expr.
15970 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15971 eval 'as_fn_arith ()
15973 as_val=$(( $* ))
15975 else
15976 as_fn_arith ()
15978 as_val=`expr "$@" || test $? -eq 1`
15980 fi # as_fn_arith
15983 if expr a : '\(a\)' >/dev/null 2>&1 &&
15984 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15985 as_expr=expr
15986 else
15987 as_expr=false
15990 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15991 as_basename=basename
15992 else
15993 as_basename=false
15996 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15997 as_dirname=dirname
15998 else
15999 as_dirname=false
16002 as_me=`$as_basename -- "$0" ||
16003 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16004 X"$0" : 'X\(//\)$' \| \
16005 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16006 $as_echo X/"$0" |
16007 sed '/^.*\/\([^/][^/]*\)\/*$/{
16008 s//\1/
16011 /^X\/\(\/\/\)$/{
16012 s//\1/
16015 /^X\/\(\/\).*/{
16016 s//\1/
16019 s/.*/./; q'`
16021 # Avoid depending upon Character Ranges.
16022 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16023 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16024 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16025 as_cr_digits='0123456789'
16026 as_cr_alnum=$as_cr_Letters$as_cr_digits
16028 ECHO_C= ECHO_N= ECHO_T=
16029 case `echo -n x` in #(((((
16030 -n*)
16031 case `echo 'xy\c'` in
16032 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16033 xy) ECHO_C='\c';;
16034 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16035 ECHO_T=' ';;
16036 esac;;
16038 ECHO_N='-n';;
16039 esac
16041 rm -f conf$$ conf$$.exe conf$$.file
16042 if test -d conf$$.dir; then
16043 rm -f conf$$.dir/conf$$.file
16044 else
16045 rm -f conf$$.dir
16046 mkdir conf$$.dir 2>/dev/null
16048 if (echo >conf$$.file) 2>/dev/null; then
16049 if ln -s conf$$.file conf$$ 2>/dev/null; then
16050 as_ln_s='ln -s'
16051 # ... but there are two gotchas:
16052 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16053 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16054 # In both cases, we have to default to `cp -p'.
16055 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16056 as_ln_s='cp -p'
16057 elif ln conf$$.file conf$$ 2>/dev/null; then
16058 as_ln_s=ln
16059 else
16060 as_ln_s='cp -p'
16062 else
16063 as_ln_s='cp -p'
16065 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16066 rmdir conf$$.dir 2>/dev/null
16069 # as_fn_mkdir_p
16070 # -------------
16071 # Create "$as_dir" as a directory, including parents if necessary.
16072 as_fn_mkdir_p ()
16075 case $as_dir in #(
16076 -*) as_dir=./$as_dir;;
16077 esac
16078 test -d "$as_dir" || eval $as_mkdir_p || {
16079 as_dirs=
16080 while :; do
16081 case $as_dir in #(
16082 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16083 *) as_qdir=$as_dir;;
16084 esac
16085 as_dirs="'$as_qdir' $as_dirs"
16086 as_dir=`$as_dirname -- "$as_dir" ||
16087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16088 X"$as_dir" : 'X\(//\)[^/]' \| \
16089 X"$as_dir" : 'X\(//\)$' \| \
16090 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16091 $as_echo X"$as_dir" |
16092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16093 s//\1/
16096 /^X\(\/\/\)[^/].*/{
16097 s//\1/
16100 /^X\(\/\/\)$/{
16101 s//\1/
16104 /^X\(\/\).*/{
16105 s//\1/
16108 s/.*/./; q'`
16109 test -d "$as_dir" && break
16110 done
16111 test -z "$as_dirs" || eval "mkdir $as_dirs"
16112 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16115 } # as_fn_mkdir_p
16116 if mkdir -p . 2>/dev/null; then
16117 as_mkdir_p='mkdir -p "$as_dir"'
16118 else
16119 test -d ./-p && rmdir ./-p
16120 as_mkdir_p=false
16123 if test -x / >/dev/null 2>&1; then
16124 as_test_x='test -x'
16125 else
16126 if ls -dL / >/dev/null 2>&1; then
16127 as_ls_L_option=L
16128 else
16129 as_ls_L_option=
16131 as_test_x='
16132 eval sh -c '\''
16133 if test -d "$1"; then
16134 test -d "$1/.";
16135 else
16136 case $1 in #(
16137 -*)set "./$1";;
16138 esac;
16139 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16140 ???[sx]*):;;*)false;;esac;fi
16141 '\'' sh
16144 as_executable_p=$as_test_x
16146 # Sed expression to map a string onto a valid CPP name.
16147 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16149 # Sed expression to map a string onto a valid variable name.
16150 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16153 exec 6>&1
16154 ## ----------------------------------- ##
16155 ## Main body of $CONFIG_STATUS script. ##
16156 ## ----------------------------------- ##
16157 _ASEOF
16158 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16161 # Save the log message, to keep $0 and so on meaningful, and to
16162 # report actual input values of CONFIG_FILES etc. instead of their
16163 # values after options handling.
16164 ac_log="
16165 This file was extended by Wine $as_me 1.3.21, which was
16166 generated by GNU Autoconf 2.68. Invocation command line was
16168 CONFIG_FILES = $CONFIG_FILES
16169 CONFIG_HEADERS = $CONFIG_HEADERS
16170 CONFIG_LINKS = $CONFIG_LINKS
16171 CONFIG_COMMANDS = $CONFIG_COMMANDS
16172 $ $0 $@
16174 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16177 _ACEOF
16179 case $ac_config_files in *"
16180 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16181 esac
16183 case $ac_config_headers in *"
16184 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16185 esac
16188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16189 # Files that config.status was made for.
16190 config_files="$ac_config_files"
16191 config_headers="$ac_config_headers"
16192 config_links="$ac_config_links"
16193 config_commands="$ac_config_commands"
16195 _ACEOF
16197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16198 ac_cs_usage="\
16199 \`$as_me' instantiates files and other configuration actions
16200 from templates according to the current configuration. Unless the files
16201 and actions are specified as TAGs, all are instantiated by default.
16203 Usage: $0 [OPTION]... [TAG]...
16205 -h, --help print this help, then exit
16206 -V, --version print version number and configuration settings, then exit
16207 --config print configuration, then exit
16208 -q, --quiet, --silent
16209 do not print progress messages
16210 -d, --debug don't remove temporary files
16211 --recheck update $as_me by reconfiguring in the same conditions
16212 --file=FILE[:TEMPLATE]
16213 instantiate the configuration file FILE
16214 --header=FILE[:TEMPLATE]
16215 instantiate the configuration header FILE
16217 Configuration files:
16218 $config_files
16220 Configuration headers:
16221 $config_headers
16223 Configuration links:
16224 $config_links
16226 Configuration commands:
16227 $config_commands
16229 Report bugs to <wine-devel@winehq.org>.
16230 Wine home page: <http://www.winehq.org>."
16232 _ACEOF
16233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16234 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16235 ac_cs_version="\\
16236 Wine config.status 1.3.21
16237 configured by $0, generated by GNU Autoconf 2.68,
16238 with options \\"\$ac_cs_config\\"
16240 Copyright (C) 2010 Free Software Foundation, Inc.
16241 This config.status script is free software; the Free Software Foundation
16242 gives unlimited permission to copy, distribute and modify it."
16244 ac_pwd='$ac_pwd'
16245 srcdir='$srcdir'
16246 INSTALL='$INSTALL'
16247 test -n "\$AWK" || AWK=awk
16248 _ACEOF
16250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16251 # The default lists apply if the user does not specify any file.
16252 ac_need_defaults=:
16253 while test $# != 0
16255 case $1 in
16256 --*=?*)
16257 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16258 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16259 ac_shift=:
16261 --*=)
16262 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16263 ac_optarg=
16264 ac_shift=:
16267 ac_option=$1
16268 ac_optarg=$2
16269 ac_shift=shift
16271 esac
16273 case $ac_option in
16274 # Handling of the options.
16275 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16276 ac_cs_recheck=: ;;
16277 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16278 $as_echo "$ac_cs_version"; exit ;;
16279 --config | --confi | --conf | --con | --co | --c )
16280 $as_echo "$ac_cs_config"; exit ;;
16281 --debug | --debu | --deb | --de | --d | -d )
16282 debug=: ;;
16283 --file | --fil | --fi | --f )
16284 $ac_shift
16285 case $ac_optarg in
16286 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16287 '') as_fn_error $? "missing file argument" ;;
16288 esac
16289 as_fn_append CONFIG_FILES " '$ac_optarg'"
16290 ac_need_defaults=false;;
16291 --header | --heade | --head | --hea )
16292 $ac_shift
16293 case $ac_optarg in
16294 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16295 esac
16296 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16297 ac_need_defaults=false;;
16298 --he | --h)
16299 # Conflict between --help and --header
16300 as_fn_error $? "ambiguous option: \`$1'
16301 Try \`$0 --help' for more information.";;
16302 --help | --hel | -h )
16303 $as_echo "$ac_cs_usage"; exit ;;
16304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16305 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16306 ac_cs_silent=: ;;
16308 # This is an error.
16309 -*) as_fn_error $? "unrecognized option: \`$1'
16310 Try \`$0 --help' for more information." ;;
16312 *) as_fn_append ac_config_targets " $1"
16313 ac_need_defaults=false ;;
16315 esac
16316 shift
16317 done
16319 ac_configure_extra_args=
16321 if $ac_cs_silent; then
16322 exec 6>/dev/null
16323 ac_configure_extra_args="$ac_configure_extra_args --silent"
16326 _ACEOF
16327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16328 if \$ac_cs_recheck; then
16329 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16330 shift
16331 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16332 CONFIG_SHELL='$SHELL'
16333 export CONFIG_SHELL
16334 exec "\$@"
16337 _ACEOF
16338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16339 exec 5>>config.log
16341 echo
16342 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16343 ## Running $as_me. ##
16344 _ASBOX
16345 $as_echo "$ac_log"
16346 } >&5
16348 _ACEOF
16349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16351 # INIT-COMMANDS
16353 wine_fn_output_makefile ()
16355 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16356 $ALL_MAKEFILE_DEPENDS
16357 _WINE_EOF
16358 as_fn_error $? "could not create Makefile" "$LINENO" 5
16361 _ACEOF
16363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16365 # Handling of arguments.
16366 for ac_config_target in $ac_config_targets
16368 case $ac_config_target in
16369 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16370 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16371 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16372 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16373 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16374 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16375 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16376 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16377 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16378 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16379 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
16380 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16381 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16382 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16383 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16384 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16385 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16386 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16387 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16388 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16389 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16390 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16391 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16392 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16393 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16395 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16396 esac
16397 done
16400 # If the user did not use the arguments to specify the items to instantiate,
16401 # then the envvar interface is used. Set only those that are not.
16402 # We use the long form for the default assignment because of an extremely
16403 # bizarre bug on SunOS 4.1.3.
16404 if $ac_need_defaults; then
16405 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16406 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16407 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16408 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16411 # Have a temporary directory for convenience. Make it in the build tree
16412 # simply because there is no reason against having it here, and in addition,
16413 # creating and moving files from /tmp can sometimes cause problems.
16414 # Hook for its removal unless debugging.
16415 # Note that there is a small window in which the directory will not be cleaned:
16416 # after its creation but before its name has been assigned to `$tmp'.
16417 $debug ||
16419 tmp= ac_tmp=
16420 trap 'exit_status=$?
16421 : "${ac_tmp:=$tmp}"
16422 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16424 trap 'as_fn_exit 1' 1 2 13 15
16426 # Create a (secure) tmp directory for tmp files.
16429 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16430 test -d "$tmp"
16431 } ||
16433 tmp=./conf$$-$RANDOM
16434 (umask 077 && mkdir "$tmp")
16435 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16436 ac_tmp=$tmp
16438 # Set up the scripts for CONFIG_FILES section.
16439 # No need to generate them if there are no CONFIG_FILES.
16440 # This happens for instance with `./config.status config.h'.
16441 if test -n "$CONFIG_FILES"; then
16443 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16444 ac_cs_awk_getline=:
16445 ac_cs_awk_pipe_init=
16446 ac_cs_awk_read_file='
16447 while ((getline aline < (F[key])) > 0)
16448 print(aline)
16449 close(F[key])'
16450 ac_cs_awk_pipe_fini=
16451 else
16452 ac_cs_awk_getline=false
16453 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16454 ac_cs_awk_read_file='
16455 print "|#_!!_#|"
16456 print "cat " F[key] " &&"
16457 '$ac_cs_awk_pipe_init
16458 # The final `:' finishes the AND list.
16459 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16461 ac_cr=`echo X | tr X '\015'`
16462 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16463 # But we know of no other shell where ac_cr would be empty at this
16464 # point, so we can use a bashism as a fallback.
16465 if test "x$ac_cr" = x; then
16466 eval ac_cr=\$\'\\r\'
16468 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16469 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16470 ac_cs_awk_cr='\\r'
16471 else
16472 ac_cs_awk_cr=$ac_cr
16475 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16476 _ACEOF
16478 # Create commands to substitute file output variables.
16480 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16481 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16482 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16483 echo "_ACAWK" &&
16484 echo "_ACEOF"
16485 } >conf$$files.sh &&
16486 . ./conf$$files.sh ||
16487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16488 rm -f conf$$files.sh
16491 echo "cat >conf$$subs.awk <<_ACEOF" &&
16492 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16493 echo "_ACEOF"
16494 } >conf$$subs.sh ||
16495 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16496 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16497 ac_delim='%!_!# '
16498 for ac_last_try in false false false false false :; do
16499 . ./conf$$subs.sh ||
16500 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16502 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16503 if test $ac_delim_n = $ac_delim_num; then
16504 break
16505 elif $ac_last_try; then
16506 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16507 else
16508 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16510 done
16511 rm -f conf$$subs.sh
16513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16514 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16515 _ACEOF
16516 sed -n '
16518 s/^/S["/; s/!.*/"]=/
16521 s/^[^!]*!//
16522 :repl
16523 t repl
16524 s/'"$ac_delim"'$//
16525 t delim
16528 s/\(.\{148\}\)..*/\1/
16529 t more1
16530 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16533 b repl
16534 :more1
16535 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16538 s/.\{148\}//
16539 t nl
16540 :delim
16542 s/\(.\{148\}\)..*/\1/
16543 t more2
16544 s/["\\]/\\&/g; s/^/"/; s/$/"/
16547 :more2
16548 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16551 s/.\{148\}//
16552 t delim
16553 ' <conf$$subs.awk | sed '
16554 /^[^""]/{
16556 s/\n//
16558 ' >>$CONFIG_STATUS || ac_write_fail=1
16559 rm -f conf$$subs.awk
16560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16561 _ACAWK
16562 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16563 for (key in S) S_is_set[key] = 1
16564 FS = "\a"
16565 \$ac_cs_awk_pipe_init
16568 line = $ 0
16569 nfields = split(line, field, "@")
16570 substed = 0
16571 len = length(field[1])
16572 for (i = 2; i < nfields; i++) {
16573 key = field[i]
16574 keylen = length(key)
16575 if (S_is_set[key]) {
16576 value = S[key]
16577 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16578 len += length(value) + length(field[++i])
16579 substed = 1
16580 } else
16581 len += 1 + keylen
16583 if (nfields == 3 && !substed) {
16584 key = field[2]
16585 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16586 \$ac_cs_awk_read_file
16587 next
16590 print line
16592 \$ac_cs_awk_pipe_fini
16593 _ACAWK
16594 _ACEOF
16595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16596 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16597 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16598 else
16600 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16601 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16602 _ACEOF
16604 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16605 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16606 # trailing colons and then remove the whole line if VPATH becomes empty
16607 # (actually we leave an empty line to preserve line numbers).
16608 if test "x$srcdir" = x.; then
16609 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16611 s///
16612 s/^/:/
16613 s/[ ]*$/:/
16614 s/:\$(srcdir):/:/g
16615 s/:\${srcdir}:/:/g
16616 s/:@srcdir@:/:/g
16617 s/^:*//
16618 s/:*$//
16620 s/\(=[ ]*\).*/\1/
16622 s/\n//
16623 s/^[^=]*=[ ]*$//
16627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16628 fi # test -n "$CONFIG_FILES"
16630 # Set up the scripts for CONFIG_HEADERS section.
16631 # No need to generate them if there are no CONFIG_HEADERS.
16632 # This happens for instance with `./config.status Makefile'.
16633 if test -n "$CONFIG_HEADERS"; then
16634 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16635 BEGIN {
16636 _ACEOF
16638 # Transform confdefs.h into an awk script `defines.awk', embedded as
16639 # here-document in config.status, that substitutes the proper values into
16640 # config.h.in to produce config.h.
16642 # Create a delimiter string that does not exist in confdefs.h, to ease
16643 # handling of long lines.
16644 ac_delim='%!_!# '
16645 for ac_last_try in false false :; do
16646 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16647 if test -z "$ac_tt"; then
16648 break
16649 elif $ac_last_try; then
16650 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16651 else
16652 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16654 done
16656 # For the awk script, D is an array of macro values keyed by name,
16657 # likewise P contains macro parameters if any. Preserve backslash
16658 # newline sequences.
16660 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16661 sed -n '
16662 s/.\{148\}/&'"$ac_delim"'/g
16663 t rset
16664 :rset
16665 s/^[ ]*#[ ]*define[ ][ ]*/ /
16666 t def
16668 :def
16669 s/\\$//
16670 t bsnl
16671 s/["\\]/\\&/g
16672 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16673 D["\1"]=" \3"/p
16674 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16676 :bsnl
16677 s/["\\]/\\&/g
16678 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16679 D["\1"]=" \3\\\\\\n"\\/p
16680 t cont
16681 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16682 t cont
16684 :cont
16686 s/.\{148\}/&'"$ac_delim"'/g
16687 t clear
16688 :clear
16689 s/\\$//
16690 t bsnlc
16691 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16693 :bsnlc
16694 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16695 b cont
16696 ' <confdefs.h | sed '
16697 s/'"$ac_delim"'/"\\\
16698 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16701 for (key in D) D_is_set[key] = 1
16702 FS = "\a"
16704 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16705 line = \$ 0
16706 split(line, arg, " ")
16707 if (arg[1] == "#") {
16708 defundef = arg[2]
16709 mac1 = arg[3]
16710 } else {
16711 defundef = substr(arg[1], 2)
16712 mac1 = arg[2]
16714 split(mac1, mac2, "(") #)
16715 macro = mac2[1]
16716 prefix = substr(line, 1, index(line, defundef) - 1)
16717 if (D_is_set[macro]) {
16718 # Preserve the white space surrounding the "#".
16719 print prefix "define", macro P[macro] D[macro]
16720 next
16721 } else {
16722 # Replace #undef with comments. This is necessary, for example,
16723 # in the case of _POSIX_SOURCE, which is predefined and required
16724 # on some systems where configure will not decide to define it.
16725 if (defundef == "undef") {
16726 print "/*", prefix defundef, macro, "*/"
16727 next
16731 { print }
16732 _ACAWK
16733 _ACEOF
16734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16735 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16736 fi # test -n "$CONFIG_HEADERS"
16739 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16740 shift
16741 for ac_tag
16743 case $ac_tag in
16744 :[FHLC]) ac_mode=$ac_tag; continue;;
16745 esac
16746 case $ac_mode$ac_tag in
16747 :[FHL]*:*);;
16748 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16749 :[FH]-) ac_tag=-:-;;
16750 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16751 esac
16752 ac_save_IFS=$IFS
16753 IFS=:
16754 set x $ac_tag
16755 IFS=$ac_save_IFS
16756 shift
16757 ac_file=$1
16758 shift
16760 case $ac_mode in
16761 :L) ac_source=$1;;
16762 :[FH])
16763 ac_file_inputs=
16764 for ac_f
16766 case $ac_f in
16767 -) ac_f="$ac_tmp/stdin";;
16768 *) # Look for the file first in the build tree, then in the source tree
16769 # (if the path is not absolute). The absolute path cannot be DOS-style,
16770 # because $ac_f cannot contain `:'.
16771 test -f "$ac_f" ||
16772 case $ac_f in
16773 [\\/$]*) false;;
16774 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16775 esac ||
16776 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16777 esac
16778 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16779 as_fn_append ac_file_inputs " '$ac_f'"
16780 done
16782 # Let's still pretend it is `configure' which instantiates (i.e., don't
16783 # use $as_me), people would be surprised to read:
16784 # /* config.h. Generated by config.status. */
16785 configure_input='Generated from '`
16786 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16787 `' by configure.'
16788 if test x"$ac_file" != x-; then
16789 configure_input="$ac_file. $configure_input"
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16791 $as_echo "$as_me: creating $ac_file" >&6;}
16793 # Neutralize special characters interpreted by sed in replacement strings.
16794 case $configure_input in #(
16795 *\&* | *\|* | *\\* )
16796 ac_sed_conf_input=`$as_echo "$configure_input" |
16797 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16798 *) ac_sed_conf_input=$configure_input;;
16799 esac
16801 case $ac_tag in
16802 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16803 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16804 esac
16806 esac
16808 ac_dir=`$as_dirname -- "$ac_file" ||
16809 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16810 X"$ac_file" : 'X\(//\)[^/]' \| \
16811 X"$ac_file" : 'X\(//\)$' \| \
16812 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16813 $as_echo X"$ac_file" |
16814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16815 s//\1/
16818 /^X\(\/\/\)[^/].*/{
16819 s//\1/
16822 /^X\(\/\/\)$/{
16823 s//\1/
16826 /^X\(\/\).*/{
16827 s//\1/
16830 s/.*/./; q'`
16831 as_dir="$ac_dir"; as_fn_mkdir_p
16832 ac_builddir=.
16834 case "$ac_dir" in
16835 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16837 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16838 # A ".." for each directory in $ac_dir_suffix.
16839 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16840 case $ac_top_builddir_sub in
16841 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16842 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16843 esac ;;
16844 esac
16845 ac_abs_top_builddir=$ac_pwd
16846 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16847 # for backward compatibility:
16848 ac_top_builddir=$ac_top_build_prefix
16850 case $srcdir in
16851 .) # We are building in place.
16852 ac_srcdir=.
16853 ac_top_srcdir=$ac_top_builddir_sub
16854 ac_abs_top_srcdir=$ac_pwd ;;
16855 [\\/]* | ?:[\\/]* ) # Absolute name.
16856 ac_srcdir=$srcdir$ac_dir_suffix;
16857 ac_top_srcdir=$srcdir
16858 ac_abs_top_srcdir=$srcdir ;;
16859 *) # Relative name.
16860 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16861 ac_top_srcdir=$ac_top_build_prefix$srcdir
16862 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16863 esac
16864 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16867 case $ac_mode in
16870 # CONFIG_FILE
16873 case $INSTALL in
16874 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16875 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16876 esac
16877 _ACEOF
16879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16880 # If the template does not know about datarootdir, expand it.
16881 # FIXME: This hack should be removed a few years after 2.60.
16882 ac_datarootdir_hack=; ac_datarootdir_seen=
16883 ac_sed_dataroot='
16884 /datarootdir/ {
16888 /@datadir@/p
16889 /@docdir@/p
16890 /@infodir@/p
16891 /@localedir@/p
16892 /@mandir@/p'
16893 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16894 *datarootdir*) ac_datarootdir_seen=yes;;
16895 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16897 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16898 _ACEOF
16899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16900 ac_datarootdir_hack='
16901 s&@datadir@&$datadir&g
16902 s&@docdir@&$docdir&g
16903 s&@infodir@&$infodir&g
16904 s&@localedir@&$localedir&g
16905 s&@mandir@&$mandir&g
16906 s&\\\${datarootdir}&$datarootdir&g' ;;
16907 esac
16908 _ACEOF
16910 # Neutralize VPATH when `$srcdir' = `.'.
16911 # Shell code in configure.ac might set extrasub.
16912 # FIXME: do we really want to maintain this feature?
16913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16914 ac_sed_extra="$ac_vpsub
16915 $extrasub
16916 _ACEOF
16917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16920 s|@configure_input@|$ac_sed_conf_input|;t t
16921 s&@top_builddir@&$ac_top_builddir_sub&;t t
16922 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16923 s&@srcdir@&$ac_srcdir&;t t
16924 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16925 s&@top_srcdir@&$ac_top_srcdir&;t t
16926 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16927 s&@builddir@&$ac_builddir&;t t
16928 s&@abs_builddir@&$ac_abs_builddir&;t t
16929 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16930 s&@INSTALL@&$ac_INSTALL&;t t
16931 $ac_datarootdir_hack
16933 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16934 if $ac_cs_awk_getline; then
16935 $AWK -f "$ac_tmp/subs.awk"
16936 else
16937 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16938 fi \
16939 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16941 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16942 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16943 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16944 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16946 which seems to be undefined. Please make sure it is defined" >&5
16947 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16948 which seems to be undefined. Please make sure it is defined" >&2;}
16950 rm -f "$ac_tmp/stdin"
16951 case $ac_file in
16952 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16953 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16954 esac \
16955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16959 # CONFIG_HEADER
16961 if test x"$ac_file" != x-; then
16963 $as_echo "/* $configure_input */" \
16964 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16965 } >"$ac_tmp/config.h" \
16966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16967 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16969 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16970 else
16971 rm -f "$ac_file"
16972 mv "$ac_tmp/config.h" "$ac_file" \
16973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16975 else
16976 $as_echo "/* $configure_input */" \
16977 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16978 || as_fn_error $? "could not create -" "$LINENO" 5
16983 # CONFIG_LINK
16986 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16988 else
16989 # Prefer the file from the source tree if names are identical.
16990 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16991 ac_source=$srcdir/$ac_source
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16995 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16997 if test ! -r "$ac_source"; then
16998 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17000 rm -f "$ac_file"
17002 # Try a relative symlink, then a hard link, then a copy.
17003 case $ac_source in
17004 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17005 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17006 esac
17007 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17008 ln "$ac_source" "$ac_file" 2>/dev/null ||
17009 cp -p "$ac_source" "$ac_file" ||
17010 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17013 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17014 $as_echo "$as_me: executing $ac_file commands" >&6;}
17016 esac
17019 case $ac_file$ac_mode in
17020 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17021 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17022 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17023 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17024 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17025 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17026 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17027 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17028 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17029 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17030 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17031 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17032 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17033 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17034 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17035 "Makefile":C) wine_fn_output_makefile Makefile ;;
17037 esac
17038 done # for ac_tag
17041 as_fn_exit 0
17042 _ACEOF
17043 ac_clean_files=$ac_clean_files_save
17045 test $ac_write_fail = 0 ||
17046 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17049 # configure is writing to config.log, and then calls config.status.
17050 # config.status does its own redirection, appending to config.log.
17051 # Unfortunately, on DOS this fails, as config.log is still kept open
17052 # by configure, so config.status won't be able to write to it; its
17053 # output is simply discarded. So we exec the FD to /dev/null,
17054 # effectively closing config.log, so it can be properly (re)opened and
17055 # appended to by config.status. When coming back to configure, we
17056 # need to make the FD available again.
17057 if test "$no_create" != yes; then
17058 ac_cs_success=:
17059 ac_config_status_args=
17060 test "$silent" = yes &&
17061 ac_config_status_args="$ac_config_status_args --quiet"
17062 exec 5>/dev/null
17063 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17064 exec 5>>config.log
17065 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17066 # would make configure fail if this is the last instruction.
17067 $ac_cs_success || as_fn_exit 1
17069 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17071 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17075 if test "$no_create" = "yes"
17076 then
17077 exit 0
17080 ac_save_IFS="$IFS"
17081 if test "x$wine_notices != "x; then
17082 echo >&6
17083 IFS="|"
17084 for msg in $wine_notices; do
17085 IFS="$ac_save_IFS"
17086 if test -n "$msg"; then
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17088 $as_echo "$as_me: $msg" >&6;}
17090 done
17092 IFS="|"
17093 for msg in $wine_warnings; do
17094 IFS="$ac_save_IFS"
17095 if test -n "$msg"; then
17096 echo >&2
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17098 $as_echo "$as_me: WARNING: $msg" >&2;}
17100 done
17101 IFS="$ac_save_IFS"
17103 echo "
17104 $as_me: Finished. Do '${ac_make}' to compile Wine.
17105 " >&6