qcap: Use ifaces instead of vtbl pointers in VfwCapture.
[wine/zf.git] / configure
blobe1da621b8fea40bfae2b27255030c5c61869d4f9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for Wine 1.3.9.
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 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: wine-devel@winehq.org about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$1; test $as_status -eq 0 && as_status=1
370 if test "$4"; then
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374 $as_echo "$as_me: error: $2" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
535 # Name of the host.
536 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 # Initializations.
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='Wine'
554 PACKAGE_TARNAME='wine'
555 PACKAGE_VERSION='1.3.9'
556 PACKAGE_STRING='Wine 1.3.9'
557 PACKAGE_BUGREPORT='wine-devel@winehq.org'
558 PACKAGE_URL='http://www.winehq.org'
560 ac_unique_file="server/atom.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 # include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 # include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
597 ac_subst_vars='LTLIBOBJS
598 LIBOBJS
599 ALL_TEST_BINARIES
600 ALL_WINETEST_DEPENDS
601 LDAPLIBS
602 LIBPOLL
603 LIBDL
604 EXTRA_BINARIES
605 MAIN_BINARY
606 SOCKETLIBS
607 CRTLIBS
608 TOOLSEXT
609 LDPATH
610 UNWINDFLAGS
611 BUILTINFLAG
612 EXTRACFLAGS
613 LIBKSTAT
614 LIBOPENAL
615 LIBMPG123
616 PNGINCL
617 FONTCONFIGINCL
618 CUPSINCL
619 ALSALIBS
620 GSTREAMER_INCL
621 GSTREAMER_LIBS
622 ESDLIBS
623 ESDINCL
624 ESDCONFIG
625 ZLIB
626 FREETYPEINCL
627 FREETYPELIBS
628 ft_devel
629 LCMSLIBS
630 RESOLVLIBS
631 GPHOTO2INCL
632 GPHOTO2LIBS
633 gphoto2port_devel
634 gphoto2_devel
635 SANEINCL
636 sane_devel
637 GNUTLSINCL
638 HALINCL
639 XSLTINCL
640 XML2INCL
641 XML2LIBS
642 NASLIBS
643 X_EXTRA_LIBS
644 X_LIBS
645 X_PRE_LIBS
646 X_CFLAGS
647 XMKMF
648 LIBPTHREAD
649 CROSSTARGET
650 CROSSCC
651 CROSSTEST_DISABLE
652 PRELINK
653 CARBONLIB
654 LIBOPENCL
655 FRAMEWORK_OPENAL
656 COREAUDIO
657 DISKARBITRATIONLIB
658 LDEXECFLAGS
659 QUICKTIMELIB
660 IOKITLIB
661 COREFOUNDATIONLIB
662 SECURITYLIB
663 DLLWRAP
664 DLLTOOL
666 LDRPATH_LOCAL
667 LDRPATH_INSTALL
668 IMPLIBEXT
669 LIBEXT
670 LDDLLFLAGS
671 LDSHARED
672 DLLFLAGS
673 DLLEXT
675 OPENGL_LIBS
676 XLIB
677 MAINTAINER_MODE
678 ICOTOOL
679 CONVERT
680 RSVG
681 PKG_CONFIG
682 FONTFORGE
683 LINTFLAGS
684 LINT
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 LDCONFIG
689 EGREP
690 GREP
691 LN_S
692 STRIP
693 RANLIB
694 ARFLAGS
695 ac_ct_AR
697 BISON
698 FLEX
699 TOOLSDIR
700 WOW64_DISABLE
701 TARGETFLAGS
702 CPPBIN
703 ac_ct_CXX
704 CXXFLAGS
706 OBJEXT
707 EXEEXT
708 ac_ct_CC
709 CPPFLAGS
710 LDFLAGS
711 CFLAGS
713 SET_MAKE
714 host_os
715 host_vendor
716 host_cpu
717 host
718 build_os
719 build_vendor
720 build_cpu
721 build
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 localstatedir
742 sharedstatedir
743 sysconfdir
744 datadir
745 datarootdir
746 libexecdir
747 sbindir
748 bindir
749 program_transform_name
750 prefix
751 exec_prefix
752 PACKAGE_URL
753 PACKAGE_BUGREPORT
754 PACKAGE_STRING
755 PACKAGE_VERSION
756 PACKAGE_TARNAME
757 PACKAGE_NAME
758 PATH_SEPARATOR
759 SHELL'
760 ac_subst_files='MAKE_RULES
761 MAKE_TEST_RULES
762 MAKE_DLL_RULES
763 MAKE_IMPLIB_RULES
764 MAKE_PROG_RULES'
765 ac_user_opts='
766 enable_option_checking
767 enable_win16
768 enable_win64
769 enable_tests
770 enable_maintainer_mode
771 with_alsa
772 with_capi
773 with_cms
774 with_coreaudio
775 with_cups
776 with_curses
777 with_esd
778 with_fontconfig
779 with_freetype
780 with_gphoto
781 with_glu
782 with_gnutls
783 with_gsm
784 with_gstreamer
785 with_hal
786 with_icns
787 with_jack
788 with_jpeg
789 with_ldap
790 with_mpg123
791 with_nas
792 with_openal
793 with_opencl
794 with_opengl
795 with_openssl
796 with_oss
797 with_png
798 with_pthread
799 with_sane
800 with_tiff
801 with_v4l
802 with_xcomposite
803 with_xcursor
804 with_xinerama
805 with_xinput
806 with_xml
807 with_xrandr
808 with_xrender
809 with_xshape
810 with_xshm
811 with_xslt
812 with_xxf86vm
813 with_wine_tools
814 with_wine64
815 enable_largefile
816 with_x
818 ac_precious_vars='build_alias
819 host_alias
820 target_alias
822 CFLAGS
823 LDFLAGS
824 LIBS
825 CPPFLAGS
827 CXXFLAGS
830 XMKMF'
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
881 ac_prev=
882 ac_dashdash=
883 for ac_option
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
888 ac_prev=
889 continue
892 case $ac_option in
893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *=) ac_optarg= ;;
895 *) ac_optarg=yes ;;
896 esac
898 # Accept the important Cygnus configure options, so we can diagnose typos.
900 case $ac_dashdash$ac_option in
902 ac_dashdash=yes ;;
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 ac_prev=bindir ;;
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 bindir=$ac_optarg ;;
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
921 --config-cache | -C)
922 cache_file=config.cache ;;
924 -datadir | --datadir | --datadi | --datad)
925 ac_prev=datadir ;;
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
936 -disable-* | --disable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=no ;;
952 -docdir | --docdir | --docdi | --doc | --do)
953 ac_prev=docdir ;;
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 docdir=$ac_optarg ;;
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 ac_prev=dvidir ;;
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 dvidir=$ac_optarg ;;
962 -enable-* | --enable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
971 "enable_$ac_useropt"
972 "*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=\$ac_optarg ;;
978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
985 exec_prefix=$ac_optarg ;;
987 -gas | --gas | --ga | --g)
988 # Obsolete; use --with-gas.
989 with_gas=yes ;;
991 -help | --help | --hel | --he | -h)
992 ac_init_help=long ;;
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
998 -host | --host | --hos | --ho)
999 ac_prev=host_alias ;;
1000 -host=* | --host=* | --hos=* | --ho=*)
1001 host_alias=$ac_optarg ;;
1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 ac_prev=htmldir ;;
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 | --ht=*)
1007 htmldir=$ac_optarg ;;
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
1014 includedir=$ac_optarg ;;
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 ac_prev=infodir ;;
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019 infodir=$ac_optarg ;;
1021 -libdir | --libdir | --libdi | --libd)
1022 ac_prev=libdir ;;
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024 libdir=$ac_optarg ;;
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
1031 libexecdir=$ac_optarg ;;
1033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1038 -localstatedir | --localstatedir | --localstatedi | --localstated \
1039 | --localstate | --localstat | --localsta | --localst | --locals)
1040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043 localstatedir=$ac_optarg ;;
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 ac_prev=mandir ;;
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048 mandir=$ac_optarg ;;
1050 -nfp | --nfp | --nf)
1051 # Obsolete; use --without-fp.
1052 with_fp=no ;;
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055 | --no-cr | --no-c | -n)
1056 no_create=yes ;;
1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 no_recursion=yes ;;
1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069 oldincludedir=$ac_optarg ;;
1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 ac_prev=prefix ;;
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074 prefix=$ac_optarg ;;
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081 program_prefix=$ac_optarg ;;
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088 program_suffix=$ac_optarg ;;
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
1105 program_transform_name=$ac_optarg ;;
1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 ac_prev=pdfdir ;;
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1112 -psdir | --psdir | --psdi | --psd | --ps)
1113 ac_prev=psdir ;;
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 psdir=$ac_optarg ;;
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 silent=yes ;;
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1216 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217 Try \`$0 --help' for more information"
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1231 # FIXME: should be removed in autoconf 3.0.
1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1238 esac
1239 done
1241 if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error $? "missing argument to $ac_option"
1246 if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1275 # There might be people who depend on the old broken behavior: `$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1287 If a cross compiler is detected then cross compile mode will be used" >&2
1288 elif test "x$build_alias" != "x$host_alias"; then
1289 cross_compiling=yes
1293 ac_tool_prefix=
1294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296 test "$silent" = yes && exec 6>/dev/null
1299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300 ac_ls_di=`ls -di .` &&
1301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302 as_fn_error $? "working directory cannot be determined"
1303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304 as_fn_error $? "pwd does not report name of working directory"
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309 ac_srcdir_defaulted=yes
1310 # Try the directory containing this script, then the parent directory.
1311 ac_confdir=`$as_dirname -- "$as_myself" ||
1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313 X"$as_myself" : 'X\(//\)[^/]' \| \
1314 X"$as_myself" : 'X\(//\)$' \| \
1315 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 $as_echo X"$as_myself" |
1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318 s//\1/
1321 /^X\(\/\/\)[^/].*/{
1322 s//\1/
1325 /^X\(\/\/\)$/{
1326 s//\1/
1329 /^X\(\/\).*/{
1330 s//\1/
1333 s/.*/./; q'`
1334 srcdir=$ac_confdir
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 srcdir=..
1338 else
1339 ac_srcdir_defaulted=no
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 ac_abs_confdir=`(
1347 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1348 pwd)`
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351 srcdir=.
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1356 case $srcdir in
1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 esac
1359 for ac_var in $ac_precious_vars; do
1360 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_${ac_var}_value=\$${ac_var}
1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364 done
1367 # Report the --help message.
1369 if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1372 cat <<_ACEOF
1373 \`configure' configures Wine 1.3.9 to adapt to many kinds of systems.
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE. See below for descriptions of some of the useful variables.
1380 Defaults for the options are specified in brackets.
1382 Configuration:
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
1387 -q, --quiet, --silent do not print \`checking ...' messages
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for \`--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1393 Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
1395 [$ac_default_prefix]
1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397 [PREFIX]
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1404 For better control, use the options below.
1406 Fine tuning of the installation directories:
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --libdir=DIR object code libraries [EPREFIX/lib]
1414 --includedir=DIR C header files [PREFIX/include]
1415 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1418 --infodir=DIR info documentation [DATAROOTDIR/info]
1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1420 --mandir=DIR man documentation [DATAROOTDIR/man]
1421 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1426 _ACEOF
1428 cat <<\_ACEOF
1430 X features:
1431 --x-includes=DIR X include files are in DIR
1432 --x-libraries=DIR X library files are in DIR
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 _ACEOF
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of Wine 1.3.9:";;
1443 esac
1444 cat <<\_ACEOF
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --disable-win16 do not include Win16 support
1451 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1452 binaries)
1453 --disable-tests do not build the regression tests
1454 --enable-maintainer-mode
1455 enable maintainer-specific build rules
1456 --disable-largefile omit support for large files
1458 Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --without-alsa do not use the Alsa sound support
1462 --without-capi do not use CAPI (ISDN support)
1463 --without-cms do not use CMS (color management support)
1464 --without-coreaudio do not use the CoreAudio sound support
1465 --without-cups do not use CUPS
1466 --without-curses do not use (n)curses
1467 --without-esd do not use the EsounD sound support
1468 --without-fontconfig do not use fontconfig
1469 --without-freetype do not use the FreeType library
1470 --without-gphoto do not use gphoto (Digital Camera support)
1471 --without-glu do not use the GLU library
1472 --without-gnutls do not use GnuTLS (schannel support)
1473 --without-gsm do not use libgsm (GSM 06.10 codec support)
1474 --without-gstreamer do not use GStreamer (codecs support)
1475 --without-hal do not use HAL (dynamic device support)
1476 --without-icns do not use ICNS icon support
1477 --without-jack do not use the Jack sound support
1478 --without-jpeg do not use JPEG
1479 --without-ldap do not use LDAP
1480 --without-mpg123 do not use the mpg123 library
1481 --without-nas do not use the NAS sound support
1482 --without-openal do not use OpenAL
1483 --without-opencl do not use OpenCL
1484 --without-opengl do not use OpenGL
1485 --without-openssl do not use OpenSSL
1486 --without-oss do not use the OSS sound support
1487 --without-png do not use PNG
1488 --without-pthread do not use the pthread library
1489 --without-sane do not use SANE (scanner support)
1490 --without-tiff do not use TIFF
1491 --without-v4l do not use v4l1 (v4l support)
1492 --without-xcomposite do not use the Xcomposite extension
1493 --without-xcursor do not use the Xcursor extension
1494 --without-xinerama do not use Xinerama (multi-monitor support)
1495 --without-xinput do not use the Xinput extension
1496 --without-xml do not use XML
1497 --without-xrandr do not use Xrandr (resolution changes)
1498 --without-xrender do not use the Xrender extension
1499 --without-xshape do not use the Xshape extension
1500 --without-xshm do not use XShm (shared memory extension)
1501 --without-xslt do not use XSLT
1502 --without-xxf86vm do not use XFree video mode extension
1503 --with-wine-tools=DIR use Wine tools from directory DIR
1504 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1505 --with-x use the X Window System
1507 Some influential environment variables:
1508 CC C compiler command
1509 CFLAGS C compiler flags
1510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1511 nonstandard directory <lib dir>
1512 LIBS libraries to pass to the linker, e.g. -l<library>
1513 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1514 you have headers in a nonstandard directory <include dir>
1515 CXX C++ compiler command
1516 CXXFLAGS C++ compiler flags
1517 CPP C preprocessor
1518 XMKMF Path to xmkmf, Makefile generator for X Window System
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1523 Report bugs to <wine-devel@winehq.org>.
1524 Wine home page: <http://www.winehq.org>.
1525 _ACEOF
1526 ac_status=$?
1529 if test "$ac_init_help" = "recursive"; then
1530 # If there are subdirs, report their specific --help.
1531 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532 test -d "$ac_dir" ||
1533 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1534 continue
1535 ac_builddir=.
1537 case "$ac_dir" in
1538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1541 # A ".." for each directory in $ac_dir_suffix.
1542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1543 case $ac_top_builddir_sub in
1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546 esac ;;
1547 esac
1548 ac_abs_top_builddir=$ac_pwd
1549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550 # for backward compatibility:
1551 ac_top_builddir=$ac_top_build_prefix
1553 case $srcdir in
1554 .) # We are building in place.
1555 ac_srcdir=.
1556 ac_top_srcdir=$ac_top_builddir_sub
1557 ac_abs_top_srcdir=$ac_pwd ;;
1558 [\\/]* | ?:[\\/]* ) # Absolute name.
1559 ac_srcdir=$srcdir$ac_dir_suffix;
1560 ac_top_srcdir=$srcdir
1561 ac_abs_top_srcdir=$srcdir ;;
1562 *) # Relative name.
1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564 ac_top_srcdir=$ac_top_build_prefix$srcdir
1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 esac
1567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1569 cd "$ac_dir" || { ac_status=$?; continue; }
1570 # Check for guested configure.
1571 if test -f "$ac_srcdir/configure.gnu"; then
1572 echo &&
1573 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574 elif test -f "$ac_srcdir/configure"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure" --help=recursive
1577 else
1578 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579 fi || ac_status=$?
1580 cd "$ac_pwd" || { ac_status=$?; break; }
1581 done
1584 test -n "$ac_init_help" && exit $ac_status
1585 if $ac_init_version; then
1586 cat <<\_ACEOF
1587 Wine configure 1.3.9
1588 generated by GNU Autoconf 2.67
1590 Copyright (C) 2010 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1593 _ACEOF
1594 exit
1597 ## ------------------------ ##
1598 ## Autoconf initialization. ##
1599 ## ------------------------ ##
1601 # ac_fn_c_try_compile LINENO
1602 # --------------------------
1603 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_c_try_compile ()
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 rm -f conftest.$ac_objext
1608 if { { ac_try="$ac_compile"
1609 case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_compile") 2>conftest.err
1616 ac_status=$?
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && {
1624 test -z "$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 } && test -s conftest.$ac_objext; then :
1627 ac_retval=0
1628 else
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1632 ac_retval=1
1634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1635 as_fn_set_status $ac_retval
1637 } # ac_fn_c_try_compile
1639 # ac_fn_cxx_try_compile LINENO
1640 # ----------------------------
1641 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_cxx_try_compile ()
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 rm -f conftest.$ac_objext
1646 if { { ac_try="$ac_compile"
1647 case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_compile") 2>conftest.err
1654 ac_status=$?
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } && {
1662 test -z "$ac_cxx_werror_flag" ||
1663 test ! -s conftest.err
1664 } && test -s conftest.$ac_objext; then :
1665 ac_retval=0
1666 else
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1670 ac_retval=1
1672 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1673 as_fn_set_status $ac_retval
1675 } # ac_fn_cxx_try_compile
1677 # ac_fn_c_try_link LINENO
1678 # -----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_c_try_link ()
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext conftest$ac_exeext
1684 if { { ac_try="$ac_link"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest$ac_exeext && {
1703 test "$cross_compiling" = yes ||
1704 $as_test_x conftest$ac_exeext
1705 }; then :
1706 ac_retval=0
1707 else
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1711 ac_retval=1
1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715 # interfere with the next link command; also delete a directory that is
1716 # left behind by Apple's compiler. We do this before executing the actions.
1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719 as_fn_set_status $ac_retval
1721 } # ac_fn_c_try_link
1723 # ac_fn_c_try_cpp LINENO
1724 # ----------------------
1725 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_c_try_cpp ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 if { { ac_try="$ac_cpp conftest.$ac_ext"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1737 ac_status=$?
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } > conftest.i && {
1745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 }; then :
1748 ac_retval=0
1749 else
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1753 ac_retval=1
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756 as_fn_set_status $ac_retval
1758 } # ac_fn_c_try_cpp
1760 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1761 # -------------------------------------------------------
1762 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1763 # the include files in INCLUDES and setting the cache variable VAR
1764 # accordingly.
1765 ac_fn_c_check_header_mongrel ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if eval "test \"\${$3+set}\"" = set; then :
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval "test \"\${$3+set}\"" = set; then :
1772 $as_echo_n "(cached) " >&6
1774 eval ac_res=\$$3
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 else
1778 # Is the header compilable?
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1780 $as_echo_n "checking $2 usability... " >&6; }
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1784 #include <$2>
1785 _ACEOF
1786 if ac_fn_c_try_compile "$LINENO"; then :
1787 ac_header_compiler=yes
1788 else
1789 ac_header_compiler=no
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1793 $as_echo "$ac_header_compiler" >&6; }
1795 # Is the header present?
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1797 $as_echo_n "checking $2 presence... " >&6; }
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 #include <$2>
1801 _ACEOF
1802 if ac_fn_c_try_cpp "$LINENO"; then :
1803 ac_header_preproc=yes
1804 else
1805 ac_header_preproc=no
1807 rm -f conftest.err conftest.i conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1809 $as_echo "$ac_header_preproc" >&6; }
1811 # So? What about this header?
1812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1813 yes:no: )
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1815 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1817 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1819 no:yes:* )
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1821 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1823 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1825 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1827 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1829 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830 ( $as_echo "## ------------------------------------ ##
1831 ## Report this to wine-devel@winehq.org ##
1832 ## ------------------------------------ ##"
1833 ) | sed "s/^/$as_me: WARNING: /" >&2
1835 esac
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval "test \"\${$3+set}\"" = set; then :
1839 $as_echo_n "(cached) " >&6
1840 else
1841 eval "$3=\$ac_header_compiler"
1843 eval ac_res=\$$3
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 } # ac_fn_c_check_header_mongrel
1851 # ac_fn_c_try_run LINENO
1852 # ----------------------
1853 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1854 # that executables *can* be run.
1855 ac_fn_c_try_run ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { { ac_try="$ac_link"
1859 case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_link") 2>&5
1866 ac_status=$?
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1869 { { case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_try") 2>&5
1876 ac_status=$?
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; }; }; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: program exited with status $ac_status" >&5
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1885 ac_retval=$ac_status
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889 as_fn_set_status $ac_retval
1891 } # ac_fn_c_try_run
1893 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1894 # -------------------------------------------------------
1895 # Tests whether HEADER exists and can be compiled using the include files in
1896 # INCLUDES, setting the cache variable VAR accordingly.
1897 ac_fn_c_check_header_compile ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval "test \"\${$3+set}\"" = set; then :
1903 $as_echo_n "(cached) " >&6
1904 else
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1908 #include <$2>
1909 _ACEOF
1910 if ac_fn_c_try_compile "$LINENO"; then :
1911 eval "$3=yes"
1912 else
1913 eval "$3=no"
1915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1922 } # ac_fn_c_check_header_compile
1924 # ac_fn_c_check_func LINENO FUNC VAR
1925 # ----------------------------------
1926 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1927 ac_fn_c_check_func ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 $as_echo_n "checking for $2... " >&6; }
1932 if eval "test \"\${$3+set}\"" = set; then :
1933 $as_echo_n "(cached) " >&6
1934 else
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1937 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1939 #define $2 innocuous_$2
1941 /* System header to define __stub macros and hopefully few prototypes,
1942 which can conflict with char $2 (); below.
1943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1944 <limits.h> exists even on freestanding compilers. */
1946 #ifdef __STDC__
1947 # include <limits.h>
1948 #else
1949 # include <assert.h>
1950 #endif
1952 #undef $2
1954 /* Override any GCC internal prototype to avoid an error.
1955 Use char because int might match the return type of a GCC
1956 builtin and then its argument prototype would still apply. */
1957 #ifdef __cplusplus
1958 extern "C"
1959 #endif
1960 char $2 ();
1961 /* The GNU C library defines this for functions which it implements
1962 to always fail with ENOSYS. Some functions are actually named
1963 something starting with __ and the normal name is an alias. */
1964 #if defined __stub_$2 || defined __stub___$2
1965 choke me
1966 #endif
1969 main ()
1971 return $2 ();
1973 return 0;
1975 _ACEOF
1976 if ac_fn_c_try_link "$LINENO"; then :
1977 eval "$3=yes"
1978 else
1979 eval "$3=no"
1981 rm -f core conftest.err conftest.$ac_objext \
1982 conftest$ac_exeext conftest.$ac_ext
1984 eval ac_res=\$$3
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989 } # ac_fn_c_check_func
1991 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1992 # ----------------------------------------------------
1993 # Tries to find if the field MEMBER exists in type AGGR, after including
1994 # INCLUDES, setting cache variable VAR accordingly.
1995 ac_fn_c_check_member ()
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1999 $as_echo_n "checking for $2.$3... " >&6; }
2000 if eval "test \"\${$4+set}\"" = set; then :
2001 $as_echo_n "(cached) " >&6
2002 else
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2007 main ()
2009 static $2 ac_aggr;
2010 if (ac_aggr.$3)
2011 return 0;
2013 return 0;
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017 eval "$4=yes"
2018 else
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2023 main ()
2025 static $2 ac_aggr;
2026 if (sizeof ac_aggr.$3)
2027 return 0;
2029 return 0;
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 eval "$4=yes"
2034 else
2035 eval "$4=no"
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 eval ac_res=\$$4
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046 } # ac_fn_c_check_member
2048 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2049 # -------------------------------------------
2050 # Tests whether TYPE exists after having included INCLUDES, setting cache
2051 # variable VAR accordingly.
2052 ac_fn_c_check_type ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if eval "test \"\${$3+set}\"" = set; then :
2058 $as_echo_n "(cached) " >&6
2059 else
2060 eval "$3=no"
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2065 main ()
2067 if (sizeof ($2))
2068 return 0;
2070 return 0;
2072 _ACEOF
2073 if ac_fn_c_try_compile "$LINENO"; then :
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2078 main ()
2080 if (sizeof (($2)))
2081 return 0;
2083 return 0;
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2088 else
2089 eval "$3=yes"
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 eval ac_res=\$$3
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097 $as_echo "$ac_res" >&6; }
2098 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2100 } # ac_fn_c_check_type
2101 cat >config.log <<_ACEOF
2102 This file contains any messages produced by compilers while
2103 running configure, to aid debugging if configure makes a mistake.
2105 It was created by Wine $as_me 1.3.9, which was
2106 generated by GNU Autoconf 2.67. Invocation command line was
2108 $ $0 $@
2110 _ACEOF
2111 exec 5>>config.log
2113 cat <<_ASUNAME
2114 ## --------- ##
2115 ## Platform. ##
2116 ## --------- ##
2118 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2119 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2120 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2121 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2122 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2124 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2125 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2127 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2128 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2129 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2130 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2131 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2132 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2133 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2135 _ASUNAME
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 $as_echo "PATH: $as_dir"
2143 done
2144 IFS=$as_save_IFS
2146 } >&5
2148 cat >&5 <<_ACEOF
2151 ## ----------- ##
2152 ## Core tests. ##
2153 ## ----------- ##
2155 _ACEOF
2158 # Keep a trace of the command line.
2159 # Strip out --no-create and --no-recursion so they do not pile up.
2160 # Strip out --silent because we don't want to record it for future runs.
2161 # Also quote any args containing shell meta-characters.
2162 # Make two passes to allow for proper duplicate-argument suppression.
2163 ac_configure_args=
2164 ac_configure_args0=
2165 ac_configure_args1=
2166 ac_must_keep_next=false
2167 for ac_pass in 1 2
2169 for ac_arg
2171 case $ac_arg in
2172 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2174 | -silent | --silent | --silen | --sile | --sil)
2175 continue ;;
2176 *\'*)
2177 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2178 esac
2179 case $ac_pass in
2180 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2182 as_fn_append ac_configure_args1 " '$ac_arg'"
2183 if test $ac_must_keep_next = true; then
2184 ac_must_keep_next=false # Got value, back to normal.
2185 else
2186 case $ac_arg in
2187 *=* | --config-cache | -C | -disable-* | --disable-* \
2188 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2189 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2190 | -with-* | --with-* | -without-* | --without-* | --x)
2191 case "$ac_configure_args0 " in
2192 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2193 esac
2195 -* ) ac_must_keep_next=true ;;
2196 esac
2198 as_fn_append ac_configure_args " '$ac_arg'"
2200 esac
2201 done
2202 done
2203 { ac_configure_args0=; unset ac_configure_args0;}
2204 { ac_configure_args1=; unset ac_configure_args1;}
2206 # When interrupted or exit'd, cleanup temporary files, and complete
2207 # config.log. We remove comments because anyway the quotes in there
2208 # would cause problems or look ugly.
2209 # WARNING: Use '\'' to represent an apostrophe within the trap.
2210 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2211 trap 'exit_status=$?
2212 # Save into config.log some information that might help in debugging.
2214 echo
2216 $as_echo "## ---------------- ##
2217 ## Cache variables. ##
2218 ## ---------------- ##"
2219 echo
2220 # The following way of writing the cache mishandles newlines in values,
2222 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2223 eval ac_val=\$$ac_var
2224 case $ac_val in #(
2225 *${as_nl}*)
2226 case $ac_var in #(
2227 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2228 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2229 esac
2230 case $ac_var in #(
2231 _ | IFS | as_nl) ;; #(
2232 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2233 *) { eval $ac_var=; unset $ac_var;} ;;
2234 esac ;;
2235 esac
2236 done
2237 (set) 2>&1 |
2238 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2239 *${as_nl}ac_space=\ *)
2240 sed -n \
2241 "s/'\''/'\''\\\\'\'''\''/g;
2242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2243 ;; #(
2245 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2247 esac |
2248 sort
2250 echo
2252 $as_echo "## ----------------- ##
2253 ## Output variables. ##
2254 ## ----------------- ##"
2255 echo
2256 for ac_var in $ac_subst_vars
2258 eval ac_val=\$$ac_var
2259 case $ac_val in
2260 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261 esac
2262 $as_echo "$ac_var='\''$ac_val'\''"
2263 done | sort
2264 echo
2266 if test -n "$ac_subst_files"; then
2267 $as_echo "## ------------------- ##
2268 ## File substitutions. ##
2269 ## ------------------- ##"
2270 echo
2271 for ac_var in $ac_subst_files
2273 eval ac_val=\$$ac_var
2274 case $ac_val in
2275 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2276 esac
2277 $as_echo "$ac_var='\''$ac_val'\''"
2278 done | sort
2279 echo
2282 if test -s confdefs.h; then
2283 $as_echo "## ----------- ##
2284 ## confdefs.h. ##
2285 ## ----------- ##"
2286 echo
2287 cat confdefs.h
2288 echo
2290 test "$ac_signal" != 0 &&
2291 $as_echo "$as_me: caught signal $ac_signal"
2292 $as_echo "$as_me: exit $exit_status"
2293 } >&5
2294 rm -f core *.core core.conftest.* &&
2295 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2296 exit $exit_status
2298 for ac_signal in 1 2 13 15; do
2299 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2300 done
2301 ac_signal=0
2303 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2304 rm -f -r conftest* confdefs.h
2306 $as_echo "/* confdefs.h */" > confdefs.h
2308 # Predefined preprocessor variables.
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_NAME "$PACKAGE_NAME"
2312 _ACEOF
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2316 _ACEOF
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2320 _ACEOF
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_STRING "$PACKAGE_STRING"
2324 _ACEOF
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2328 _ACEOF
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_URL "$PACKAGE_URL"
2332 _ACEOF
2335 # Let the site file select an alternate cache file if it wants to.
2336 # Prefer an explicitly selected file to automatically selected ones.
2337 ac_site_file1=NONE
2338 ac_site_file2=NONE
2339 if test -n "$CONFIG_SITE"; then
2340 # We do not want a PATH search for config.site.
2341 case $CONFIG_SITE in #((
2342 -*) ac_site_file1=./$CONFIG_SITE;;
2343 */*) ac_site_file1=$CONFIG_SITE;;
2344 *) ac_site_file1=./$CONFIG_SITE;;
2345 esac
2346 elif test "x$prefix" != xNONE; then
2347 ac_site_file1=$prefix/share/config.site
2348 ac_site_file2=$prefix/etc/config.site
2349 else
2350 ac_site_file1=$ac_default_prefix/share/config.site
2351 ac_site_file2=$ac_default_prefix/etc/config.site
2353 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2355 test "x$ac_site_file" = xNONE && continue
2356 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2358 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2359 sed 's/^/| /' "$ac_site_file" >&5
2360 . "$ac_site_file" \
2361 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2363 as_fn_error $? "failed to load site script $ac_site_file
2364 See \`config.log' for more details" "$LINENO" 5 ; }
2366 done
2368 if test -r "$cache_file"; then
2369 # Some versions of bash will fail to source /dev/null (special files
2370 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2371 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2373 $as_echo "$as_me: loading cache $cache_file" >&6;}
2374 case $cache_file in
2375 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2376 *) . "./$cache_file";;
2377 esac
2379 else
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2381 $as_echo "$as_me: creating cache $cache_file" >&6;}
2382 >$cache_file
2385 # Check that the precious variables saved in the cache have kept the same
2386 # value.
2387 ac_cache_corrupted=false
2388 for ac_var in $ac_precious_vars; do
2389 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2390 eval ac_new_set=\$ac_env_${ac_var}_set
2391 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2392 eval ac_new_val=\$ac_env_${ac_var}_value
2393 case $ac_old_set,$ac_new_set in
2394 set,)
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2396 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2397 ac_cache_corrupted=: ;;
2398 ,set)
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2400 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2401 ac_cache_corrupted=: ;;
2402 ,);;
2404 if test "x$ac_old_val" != "x$ac_new_val"; then
2405 # differences in whitespace do not lead to failure.
2406 ac_old_val_w=`echo x $ac_old_val`
2407 ac_new_val_w=`echo x $ac_new_val`
2408 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2410 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2411 ac_cache_corrupted=:
2412 else
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2414 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2415 eval $ac_var=\$ac_old_val
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2418 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2420 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2421 fi;;
2422 esac
2423 # Pass precious variables to config.status.
2424 if test "$ac_new_set" = set; then
2425 case $ac_new_val in
2426 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2427 *) ac_arg=$ac_var=$ac_new_val ;;
2428 esac
2429 case " $ac_configure_args " in
2430 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2431 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2432 esac
2434 done
2435 if $ac_cache_corrupted; then
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2439 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2440 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2442 ## -------------------- ##
2443 ## Main body of script. ##
2444 ## -------------------- ##
2446 ac_ext=c
2447 ac_cpp='$CPP $CPPFLAGS'
2448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2454 ac_config_headers="$ac_config_headers include/config.h"
2456 ac_aux_dir=
2457 for ac_dir in tools "$srcdir"/tools; do
2458 if test -f "$ac_dir/install-sh"; then
2459 ac_aux_dir=$ac_dir
2460 ac_install_sh="$ac_aux_dir/install-sh -c"
2461 break
2462 elif test -f "$ac_dir/install.sh"; then
2463 ac_aux_dir=$ac_dir
2464 ac_install_sh="$ac_aux_dir/install.sh -c"
2465 break
2466 elif test -f "$ac_dir/shtool"; then
2467 ac_aux_dir=$ac_dir
2468 ac_install_sh="$ac_aux_dir/shtool install -c"
2469 break
2471 done
2472 if test -z "$ac_aux_dir"; then
2473 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2476 # These three variables are undocumented and unsupported,
2477 # and are intended to be withdrawn in a future Autoconf release.
2478 # They can cause serious problems if a builder's source tree is in a directory
2479 # whose full name contains unusual characters.
2480 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2481 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2482 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2488 # Check whether --enable-win16 was given.
2489 if test "${enable_win16+set}" = set; then :
2490 enableval=$enable_win16;
2493 # Check whether --enable-win64 was given.
2494 if test "${enable_win64+set}" = set; then :
2495 enableval=$enable_win64;
2498 # Check whether --enable-tests was given.
2499 if test "${enable_tests+set}" = set; then :
2500 enableval=$enable_tests;
2503 # Check whether --enable-maintainer-mode was given.
2504 if test "${enable_maintainer_mode+set}" = set; then :
2505 enableval=$enable_maintainer_mode;
2510 # Check whether --with-alsa was given.
2511 if test "${with_alsa+set}" = set; then :
2512 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2516 # Check whether --with-capi was given.
2517 if test "${with_capi+set}" = set; then :
2518 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2522 # Check whether --with-cms was given.
2523 if test "${with_cms+set}" = set; then :
2524 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2528 # Check whether --with-coreaudio was given.
2529 if test "${with_coreaudio+set}" = set; then :
2530 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2534 # Check whether --with-cups was given.
2535 if test "${with_cups+set}" = set; then :
2536 withval=$with_cups;
2540 # Check whether --with-curses was given.
2541 if test "${with_curses+set}" = set; then :
2542 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2546 # Check whether --with-esd was given.
2547 if test "${with_esd+set}" = set; then :
2548 withval=$with_esd;
2552 # Check whether --with-fontconfig was given.
2553 if test "${with_fontconfig+set}" = set; then :
2554 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2558 # Check whether --with-freetype was given.
2559 if test "${with_freetype+set}" = set; then :
2560 withval=$with_freetype;
2564 # Check whether --with-gphoto was given.
2565 if test "${with_gphoto+set}" = set; then :
2566 withval=$with_gphoto;
2570 # Check whether --with-glu was given.
2571 if test "${with_glu+set}" = set; then :
2572 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2576 # Check whether --with-gnutls was given.
2577 if test "${with_gnutls+set}" = set; then :
2578 withval=$with_gnutls;
2582 # Check whether --with-gsm was given.
2583 if test "${with_gsm+set}" = set; then :
2584 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2588 # Check whether --with-gstreamer was given.
2589 if test "${with_gstreamer+set}" = set; then :
2590 withval=$with_gstreamer;
2594 # Check whether --with-hal was given.
2595 if test "${with_hal+set}" = set; then :
2596 withval=$with_hal;
2600 # Check whether --with-icns was given.
2601 if test "${with_icns+set}" = set; then :
2602 withval=$with_icns; if test "x$withval" = "xno"; then ac_cv_header_icns_h=no; fi
2606 # Check whether --with-jack was given.
2607 if test "${with_jack+set}" = set; then :
2608 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2612 # Check whether --with-jpeg was given.
2613 if test "${with_jpeg+set}" = set; then :
2614 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2618 # Check whether --with-ldap was given.
2619 if test "${with_ldap+set}" = set; then :
2620 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2624 # Check whether --with-mpg123 was given.
2625 if test "${with_mpg123+set}" = set; then :
2626 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2630 # Check whether --with-nas was given.
2631 if test "${with_nas+set}" = set; then :
2632 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2636 # Check whether --with-openal was given.
2637 if test "${with_openal+set}" = set; then :
2638 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2642 # Check whether --with-opencl was given.
2643 if test "${with_opencl+set}" = set; then :
2644 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_opencl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2648 # Check whether --with-opengl was given.
2649 if test "${with_opengl+set}" = set; then :
2650 withval=$with_opengl;
2654 # Check whether --with-openssl was given.
2655 if test "${with_openssl+set}" = set; then :
2656 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2660 # Check whether --with-oss was given.
2661 if test "${with_oss+set}" = set; then :
2662 withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi
2666 # Check whether --with-png was given.
2667 if test "${with_png+set}" = set; then :
2668 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2672 # Check whether --with-pthread was given.
2673 if test "${with_pthread+set}" = set; then :
2674 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2678 # Check whether --with-sane was given.
2679 if test "${with_sane+set}" = set; then :
2680 withval=$with_sane;
2684 # Check whether --with-tiff was given.
2685 if test "${with_tiff+set}" = set; then :
2686 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2690 # Check whether --with-v4l was given.
2691 if test "${with_v4l+set}" = set; then :
2692 withval=$with_v4l;
2696 # Check whether --with-xcomposite was given.
2697 if test "${with_xcomposite+set}" = set; then :
2698 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2702 # Check whether --with-xcursor was given.
2703 if test "${with_xcursor+set}" = set; then :
2704 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2708 # Check whether --with-xinerama was given.
2709 if test "${with_xinerama+set}" = set; then :
2710 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2714 # Check whether --with-xinput was given.
2715 if test "${with_xinput+set}" = set; then :
2716 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2720 # Check whether --with-xml was given.
2721 if test "${with_xml+set}" = set; then :
2722 withval=$with_xml;
2726 # Check whether --with-xrandr was given.
2727 if test "${with_xrandr+set}" = set; then :
2728 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2732 # Check whether --with-xrender was given.
2733 if test "${with_xrender+set}" = set; then :
2734 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2738 # Check whether --with-xshape was given.
2739 if test "${with_xshape+set}" = set; then :
2740 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2744 # Check whether --with-xshm was given.
2745 if test "${with_xshm+set}" = set; then :
2746 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2750 # Check whether --with-xslt was given.
2751 if test "${with_xslt+set}" = set; then :
2752 withval=$with_xslt;
2756 # Check whether --with-xxf86vm was given.
2757 if test "${with_xxf86vm+set}" = set; then :
2758 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
2763 # Check whether --with-wine-tools was given.
2764 if test "${with_wine_tools+set}" = set; then :
2765 withval=$with_wine_tools;
2769 # Check whether --with-wine64 was given.
2770 if test "${with_wine64+set}" = set; then :
2771 withval=$with_wine64;
2775 # Make sure we can run config.sub.
2776 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2777 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2780 $as_echo_n "checking build system type... " >&6; }
2781 if test "${ac_cv_build+set}" = set; then :
2782 $as_echo_n "(cached) " >&6
2783 else
2784 ac_build_alias=$build_alias
2785 test "x$ac_build_alias" = x &&
2786 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2787 test "x$ac_build_alias" = x &&
2788 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2789 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2790 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2794 $as_echo "$ac_cv_build" >&6; }
2795 case $ac_cv_build in
2796 *-*-*) ;;
2797 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2798 esac
2799 build=$ac_cv_build
2800 ac_save_IFS=$IFS; IFS='-'
2801 set x $ac_cv_build
2802 shift
2803 build_cpu=$1
2804 build_vendor=$2
2805 shift; shift
2806 # Remember, the first character of IFS is used to create $*,
2807 # except with old shells:
2808 build_os=$*
2809 IFS=$ac_save_IFS
2810 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2814 $as_echo_n "checking host system type... " >&6; }
2815 if test "${ac_cv_host+set}" = set; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 if test "x$host_alias" = x; then
2819 ac_cv_host=$ac_cv_build
2820 else
2821 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2822 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2827 $as_echo "$ac_cv_host" >&6; }
2828 case $ac_cv_host in
2829 *-*-*) ;;
2830 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2831 esac
2832 host=$ac_cv_host
2833 ac_save_IFS=$IFS; IFS='-'
2834 set x $ac_cv_host
2835 shift
2836 host_cpu=$1
2837 host_vendor=$2
2838 shift; shift
2839 # Remember, the first character of IFS is used to create $*,
2840 # except with old shells:
2841 host_os=$*
2842 IFS=$ac_save_IFS
2843 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2847 case "$srcdir" in
2848 .) ;;
2849 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2850 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2851 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2852 fi ;;
2853 esac
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2857 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2858 set x ${MAKE-make}
2859 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2860 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2861 $as_echo_n "(cached) " >&6
2862 else
2863 cat >conftest.make <<\_ACEOF
2864 SHELL = /bin/sh
2865 all:
2866 @echo '@@@%%%=$(MAKE)=@@@%%%'
2867 _ACEOF
2868 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2869 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2870 *@@@%%%=?*=@@@%%%*)
2871 eval ac_cv_prog_make_${ac_make}_set=yes;;
2873 eval ac_cv_prog_make_${ac_make}_set=no;;
2874 esac
2875 rm -f conftest.make
2877 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2879 $as_echo "yes" >&6; }
2880 SET_MAKE=
2881 else
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2884 SET_MAKE="MAKE=${MAKE-make}"
2887 ac_ext=c
2888 ac_cpp='$CPP $CPPFLAGS'
2889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2892 if test -n "$ac_tool_prefix"; then
2893 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2894 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 $as_echo_n "checking for $ac_word... " >&6; }
2897 if test "${ac_cv_prog_CC+set}" = set; then :
2898 $as_echo_n "(cached) " >&6
2899 else
2900 if test -n "$CC"; then
2901 ac_cv_prog_CC="$CC" # Let the user override the test.
2902 else
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2910 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 break 2
2914 done
2915 done
2916 IFS=$as_save_IFS
2920 CC=$ac_cv_prog_CC
2921 if test -n "$CC"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2923 $as_echo "$CC" >&6; }
2924 else
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2931 if test -z "$ac_cv_prog_CC"; then
2932 ac_ct_CC=$CC
2933 # Extract the first word of "gcc", so it can be a program name with args.
2934 set dummy gcc; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2938 $as_echo_n "(cached) " >&6
2939 else
2940 if test -n "$ac_ct_CC"; then
2941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950 ac_cv_prog_ac_ct_CC="gcc"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 break 2
2954 done
2955 done
2956 IFS=$as_save_IFS
2960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2961 if test -n "$ac_ct_CC"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2963 $as_echo "$ac_ct_CC" >&6; }
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2969 if test "x$ac_ct_CC" = x; then
2970 CC=""
2971 else
2972 case $cross_compiling:$ac_tool_warned in
2973 yes:)
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2976 ac_tool_warned=yes ;;
2977 esac
2978 CC=$ac_ct_CC
2980 else
2981 CC="$ac_cv_prog_CC"
2984 if test -z "$CC"; then
2985 if test -n "$ac_tool_prefix"; then
2986 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2987 set dummy ${ac_tool_prefix}cc; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if test "${ac_cv_prog_CC+set}" = set; then :
2991 $as_echo_n "(cached) " >&6
2992 else
2993 if test -n "$CC"; then
2994 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003 ac_cv_prog_CC="${ac_tool_prefix}cc"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3007 done
3008 done
3009 IFS=$as_save_IFS
3013 CC=$ac_cv_prog_CC
3014 if test -n "$CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016 $as_echo "$CC" >&6; }
3017 else
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3025 if test -z "$CC"; then
3026 # Extract the first word of "cc", so it can be a program name with args.
3027 set dummy cc; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if test "${ac_cv_prog_CC+set}" = set; then :
3031 $as_echo_n "(cached) " >&6
3032 else
3033 if test -n "$CC"; then
3034 ac_cv_prog_CC="$CC" # Let the user override the test.
3035 else
3036 ac_prog_rejected=no
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3044 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3045 ac_prog_rejected=yes
3046 continue
3048 ac_cv_prog_CC="cc"
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 break 2
3052 done
3053 done
3054 IFS=$as_save_IFS
3056 if test $ac_prog_rejected = yes; then
3057 # We found a bogon in the path, so make sure we never use it.
3058 set dummy $ac_cv_prog_CC
3059 shift
3060 if test $# != 0; then
3061 # We chose a different compiler from the bogus one.
3062 # However, it has the same basename, so the bogon will be chosen
3063 # first if we set CC to just the basename; use the full file name.
3064 shift
3065 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3070 CC=$ac_cv_prog_CC
3071 if test -n "$CC"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3073 $as_echo "$CC" >&6; }
3074 else
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3081 if test -z "$CC"; then
3082 if test -n "$ac_tool_prefix"; then
3083 for ac_prog in cl.exe
3085 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if test "${ac_cv_prog_CC+set}" = set; then :
3090 $as_echo_n "(cached) " >&6
3091 else
3092 if test -n "$CC"; then
3093 ac_cv_prog_CC="$CC" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3106 done
3107 done
3108 IFS=$as_save_IFS
3112 CC=$ac_cv_prog_CC
3113 if test -n "$CC"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3115 $as_echo "$CC" >&6; }
3116 else
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3122 test -n "$CC" && break
3123 done
3125 if test -z "$CC"; then
3126 ac_ct_CC=$CC
3127 for ac_prog in cl.exe
3129 # Extract the first word of "$ac_prog", so it can be a program name with args.
3130 set dummy $ac_prog; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3134 $as_echo_n "(cached) " >&6
3135 else
3136 if test -n "$ac_ct_CC"; then
3137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3138 else
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3142 IFS=$as_save_IFS
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146 ac_cv_prog_ac_ct_CC="$ac_prog"
3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 break 2
3150 done
3151 done
3152 IFS=$as_save_IFS
3156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3157 if test -n "$ac_ct_CC"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3159 $as_echo "$ac_ct_CC" >&6; }
3160 else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3166 test -n "$ac_ct_CC" && break
3167 done
3169 if test "x$ac_ct_CC" = x; then
3170 CC=""
3171 else
3172 case $cross_compiling:$ac_tool_warned in
3173 yes:)
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3176 ac_tool_warned=yes ;;
3177 esac
3178 CC=$ac_ct_CC
3185 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187 as_fn_error $? "no acceptable C compiler found in \$PATH
3188 See \`config.log' for more details" "$LINENO" 5 ; }
3190 # Provide some information about the compiler.
3191 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3192 set X $ac_compile
3193 ac_compiler=$2
3194 for ac_option in --version -v -V -qversion; do
3195 { { ac_try="$ac_compiler $ac_option >&5"
3196 case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199 esac
3200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201 $as_echo "$ac_try_echo"; } >&5
3202 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3203 ac_status=$?
3204 if test -s conftest.err; then
3205 sed '10a\
3206 ... rest of stderr output deleted ...
3207 10q' conftest.err >conftest.er1
3208 cat conftest.er1 >&5
3210 rm -f conftest.er1 conftest.err
3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }
3213 done
3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216 /* end confdefs.h. */
3219 main ()
3223 return 0;
3225 _ACEOF
3226 ac_clean_files_save=$ac_clean_files
3227 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3228 # Try to create an executable without -o first, disregard a.out.
3229 # It will help us diagnose broken compilers, and finding out an intuition
3230 # of exeext.
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3232 $as_echo_n "checking whether the C compiler works... " >&6; }
3233 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3235 # The possible output files:
3236 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3238 ac_rmfiles=
3239 for ac_file in $ac_files
3241 case $ac_file in
3242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3243 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3244 esac
3245 done
3246 rm -f $ac_rmfiles
3248 if { { ac_try="$ac_link_default"
3249 case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254 $as_echo "$ac_try_echo"; } >&5
3255 (eval "$ac_link_default") 2>&5
3256 ac_status=$?
3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258 test $ac_status = 0; }; then :
3259 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3260 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3261 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3262 # so that the user can short-circuit this test for compilers unknown to
3263 # Autoconf.
3264 for ac_file in $ac_files ''
3266 test -f "$ac_file" || continue
3267 case $ac_file in
3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3270 [ab].out )
3271 # We found the default executable, but exeext='' is most
3272 # certainly right.
3273 break;;
3274 *.* )
3275 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3276 then :; else
3277 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3279 # We set ac_cv_exeext here because the later test for it is not
3280 # safe: cross compilers may not add the suffix if given an `-o'
3281 # argument, so we may need to know it at that point already.
3282 # Even if this section looks crufty: it has the advantage of
3283 # actually working.
3284 break;;
3286 break;;
3287 esac
3288 done
3289 test "$ac_cv_exeext" = no && ac_cv_exeext=
3291 else
3292 ac_file=''
3294 if test -z "$ac_file"; then :
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3297 $as_echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 as_fn_error 77 "C compiler cannot create executables
3303 See \`config.log' for more details" "$LINENO" 5 ; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3306 $as_echo "yes" >&6; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3309 $as_echo_n "checking for C compiler default output file name... " >&6; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3311 $as_echo "$ac_file" >&6; }
3312 ac_exeext=$ac_cv_exeext
3314 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3315 ac_clean_files=$ac_clean_files_save
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3317 $as_echo_n "checking for suffix of executables... " >&6; }
3318 if { { ac_try="$ac_link"
3319 case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325 (eval "$ac_link") 2>&5
3326 ac_status=$?
3327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328 test $ac_status = 0; }; then :
3329 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3330 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3331 # work properly (i.e., refer to `conftest.exe'), while it won't with
3332 # `rm'.
3333 for ac_file in conftest.exe conftest conftest.*; do
3334 test -f "$ac_file" || continue
3335 case $ac_file in
3336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3337 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3338 break;;
3339 * ) break;;
3340 esac
3341 done
3342 else
3343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3346 See \`config.log' for more details" "$LINENO" 5 ; }
3348 rm -f conftest conftest$ac_cv_exeext
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3350 $as_echo "$ac_cv_exeext" >&6; }
3352 rm -f conftest.$ac_ext
3353 EXEEXT=$ac_cv_exeext
3354 ac_exeext=$EXEEXT
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3357 #include <stdio.h>
3359 main ()
3361 FILE *f = fopen ("conftest.out", "w");
3362 return ferror (f) || fclose (f) != 0;
3365 return 0;
3367 _ACEOF
3368 ac_clean_files="$ac_clean_files conftest.out"
3369 # Check that the compiler produces executables we can run. If not, either
3370 # the compiler is broken, or we cross compile.
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3372 $as_echo_n "checking whether we are cross compiling... " >&6; }
3373 if test "$cross_compiling" != yes; then
3374 { { ac_try="$ac_link"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_link") 2>&5
3382 ac_status=$?
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }
3385 if { ac_try='./conftest$ac_cv_exeext'
3386 { { case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391 $as_echo "$ac_try_echo"; } >&5
3392 (eval "$ac_try") 2>&5
3393 ac_status=$?
3394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }; }; then
3396 cross_compiling=no
3397 else
3398 if test "$cross_compiling" = maybe; then
3399 cross_compiling=yes
3400 else
3401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 as_fn_error $? "cannot run C compiled programs.
3404 If you meant to cross compile, use \`--host'.
3405 See \`config.log' for more details" "$LINENO" 5 ; }
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3410 $as_echo "$cross_compiling" >&6; }
3412 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3413 ac_clean_files=$ac_clean_files_save
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3415 $as_echo_n "checking for suffix of object files... " >&6; }
3416 if test "${ac_cv_objext+set}" = set; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3423 main ()
3427 return 0;
3429 _ACEOF
3430 rm -f conftest.o conftest.obj
3431 if { { ac_try="$ac_compile"
3432 case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437 $as_echo "$ac_try_echo"; } >&5
3438 (eval "$ac_compile") 2>&5
3439 ac_status=$?
3440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441 test $ac_status = 0; }; then :
3442 for ac_file in conftest.o conftest.obj conftest.*; do
3443 test -f "$ac_file" || continue;
3444 case $ac_file in
3445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3446 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3447 break;;
3448 esac
3449 done
3450 else
3451 $as_echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456 as_fn_error $? "cannot compute suffix of object files: cannot compile
3457 See \`config.log' for more details" "$LINENO" 5 ; }
3459 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3462 $as_echo "$ac_cv_objext" >&6; }
3463 OBJEXT=$ac_cv_objext
3464 ac_objext=$OBJEXT
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3466 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3467 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h. */
3474 main ()
3476 #ifndef __GNUC__
3477 choke me
3478 #endif
3481 return 0;
3483 _ACEOF
3484 if ac_fn_c_try_compile "$LINENO"; then :
3485 ac_compiler_gnu=yes
3486 else
3487 ac_compiler_gnu=no
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3494 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3495 if test $ac_compiler_gnu = yes; then
3496 GCC=yes
3497 else
3498 GCC=
3500 ac_test_CFLAGS=${CFLAGS+set}
3501 ac_save_CFLAGS=$CFLAGS
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3503 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3504 if test "${ac_cv_prog_cc_g+set}" = set; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 ac_save_c_werror_flag=$ac_c_werror_flag
3508 ac_c_werror_flag=yes
3509 ac_cv_prog_cc_g=no
3510 CFLAGS="-g"
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3515 main ()
3519 return 0;
3521 _ACEOF
3522 if ac_fn_c_try_compile "$LINENO"; then :
3523 ac_cv_prog_cc_g=yes
3524 else
3525 CFLAGS=""
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3530 main ()
3534 return 0;
3536 _ACEOF
3537 if ac_fn_c_try_compile "$LINENO"; then :
3539 else
3540 ac_c_werror_flag=$ac_save_c_werror_flag
3541 CFLAGS="-g"
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3546 main ()
3550 return 0;
3552 _ACEOF
3553 if ac_fn_c_try_compile "$LINENO"; then :
3554 ac_cv_prog_cc_g=yes
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 ac_c_werror_flag=$ac_save_c_werror_flag
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3564 $as_echo "$ac_cv_prog_cc_g" >&6; }
3565 if test "$ac_test_CFLAGS" = set; then
3566 CFLAGS=$ac_save_CFLAGS
3567 elif test $ac_cv_prog_cc_g = yes; then
3568 if test "$GCC" = yes; then
3569 CFLAGS="-g -O2"
3570 else
3571 CFLAGS="-g"
3573 else
3574 if test "$GCC" = yes; then
3575 CFLAGS="-O2"
3576 else
3577 CFLAGS=
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3581 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3582 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3583 $as_echo_n "(cached) " >&6
3584 else
3585 ac_cv_prog_cc_c89=no
3586 ac_save_CC=$CC
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3589 #include <stdarg.h>
3590 #include <stdio.h>
3591 #include <sys/types.h>
3592 #include <sys/stat.h>
3593 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3594 struct buf { int x; };
3595 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3596 static char *e (p, i)
3597 char **p;
3598 int i;
3600 return p[i];
3602 static char *f (char * (*g) (char **, int), char **p, ...)
3604 char *s;
3605 va_list v;
3606 va_start (v,p);
3607 s = g (p, va_arg (v,int));
3608 va_end (v);
3609 return s;
3612 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3613 function prototypes and stuff, but not '\xHH' hex character constants.
3614 These don't provoke an error unfortunately, instead are silently treated
3615 as 'x'. The following induces an error, until -std is added to get
3616 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3617 array size at least. It's necessary to write '\x00'==0 to get something
3618 that's true only with -std. */
3619 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3621 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3622 inside strings and character constants. */
3623 #define FOO(x) 'x'
3624 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3626 int test (int i, double x);
3627 struct s1 {int (*f) (int a);};
3628 struct s2 {int (*f) (double a);};
3629 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3630 int argc;
3631 char **argv;
3633 main ()
3635 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3637 return 0;
3639 _ACEOF
3640 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3641 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3643 CC="$ac_save_CC $ac_arg"
3644 if ac_fn_c_try_compile "$LINENO"; then :
3645 ac_cv_prog_cc_c89=$ac_arg
3647 rm -f core conftest.err conftest.$ac_objext
3648 test "x$ac_cv_prog_cc_c89" != "xno" && break
3649 done
3650 rm -f conftest.$ac_ext
3651 CC=$ac_save_CC
3654 # AC_CACHE_VAL
3655 case "x$ac_cv_prog_cc_c89" in
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3658 $as_echo "none needed" >&6; } ;;
3659 xno)
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3661 $as_echo "unsupported" >&6; } ;;
3663 CC="$CC $ac_cv_prog_cc_c89"
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3665 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3666 esac
3667 if test "x$ac_cv_prog_cc_c89" != xno; then :
3671 ac_ext=c
3672 ac_cpp='$CPP $CPPFLAGS'
3673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677 ac_ext=cpp
3678 ac_cpp='$CXXCPP $CPPFLAGS'
3679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3682 if test -z "$CXX"; then
3683 if test -n "$CCC"; then
3684 CXX=$CCC
3685 else
3686 if test -n "$ac_tool_prefix"; then
3687 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if test "${ac_cv_prog_CXX+set}" = set; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 if test -n "$CXX"; then
3697 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3710 done
3711 done
3712 IFS=$as_save_IFS
3716 CXX=$ac_cv_prog_CXX
3717 if test -n "$CXX"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3719 $as_echo "$CXX" >&6; }
3720 else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3726 test -n "$CXX" && break
3727 done
3729 if test -z "$CXX"; then
3730 ac_ct_CXX=$CXX
3731 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3733 # Extract the first word of "$ac_prog", so it can be a program name with args.
3734 set dummy $ac_prog; ac_word=$2
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736 $as_echo_n "checking for $ac_word... " >&6; }
3737 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3738 $as_echo_n "(cached) " >&6
3739 else
3740 if test -n "$ac_ct_CXX"; then
3741 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3750 ac_cv_prog_ac_ct_CXX="$ac_prog"
3751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3754 done
3755 done
3756 IFS=$as_save_IFS
3760 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3761 if test -n "$ac_ct_CXX"; then
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3763 $as_echo "$ac_ct_CXX" >&6; }
3764 else
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3770 test -n "$ac_ct_CXX" && break
3771 done
3773 if test "x$ac_ct_CXX" = x; then
3774 CXX="g++"
3775 else
3776 case $cross_compiling:$ac_tool_warned in
3777 yes:)
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3780 ac_tool_warned=yes ;;
3781 esac
3782 CXX=$ac_ct_CXX
3788 # Provide some information about the compiler.
3789 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3790 set X $ac_compile
3791 ac_compiler=$2
3792 for ac_option in --version -v -V -qversion; do
3793 { { ac_try="$ac_compiler $ac_option >&5"
3794 case "(($ac_try" in
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3797 esac
3798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799 $as_echo "$ac_try_echo"; } >&5
3800 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3801 ac_status=$?
3802 if test -s conftest.err; then
3803 sed '10a\
3804 ... rest of stderr output deleted ...
3805 10q' conftest.err >conftest.er1
3806 cat conftest.er1 >&5
3808 rm -f conftest.er1 conftest.err
3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }
3811 done
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3814 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3815 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3816 $as_echo_n "(cached) " >&6
3817 else
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3822 main ()
3824 #ifndef __GNUC__
3825 choke me
3826 #endif
3829 return 0;
3831 _ACEOF
3832 if ac_fn_cxx_try_compile "$LINENO"; then :
3833 ac_compiler_gnu=yes
3834 else
3835 ac_compiler_gnu=no
3837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3842 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3843 if test $ac_compiler_gnu = yes; then
3844 GXX=yes
3845 else
3846 GXX=
3848 ac_test_CXXFLAGS=${CXXFLAGS+set}
3849 ac_save_CXXFLAGS=$CXXFLAGS
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3851 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3852 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3853 $as_echo_n "(cached) " >&6
3854 else
3855 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3856 ac_cxx_werror_flag=yes
3857 ac_cv_prog_cxx_g=no
3858 CXXFLAGS="-g"
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3863 main ()
3867 return 0;
3869 _ACEOF
3870 if ac_fn_cxx_try_compile "$LINENO"; then :
3871 ac_cv_prog_cxx_g=yes
3872 else
3873 CXXFLAGS=""
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3878 main ()
3882 return 0;
3884 _ACEOF
3885 if ac_fn_cxx_try_compile "$LINENO"; then :
3887 else
3888 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3889 CXXFLAGS="-g"
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3894 main ()
3898 return 0;
3900 _ACEOF
3901 if ac_fn_cxx_try_compile "$LINENO"; then :
3902 ac_cv_prog_cxx_g=yes
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3912 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3913 if test "$ac_test_CXXFLAGS" = set; then
3914 CXXFLAGS=$ac_save_CXXFLAGS
3915 elif test $ac_cv_prog_cxx_g = yes; then
3916 if test "$GXX" = yes; then
3917 CXXFLAGS="-g -O2"
3918 else
3919 CXXFLAGS="-g"
3921 else
3922 if test "$GXX" = yes; then
3923 CXXFLAGS="-O2"
3924 else
3925 CXXFLAGS=
3928 ac_ext=c
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3934 if test -n "$ac_tool_prefix"; then
3935 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3936 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 if test -n "$CPPBIN"; then
3943 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3952 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 break 2
3956 done
3957 done
3958 IFS=$as_save_IFS
3962 CPPBIN=$ac_cv_prog_CPPBIN
3963 if test -n "$CPPBIN"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3965 $as_echo "$CPPBIN" >&6; }
3966 else
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3973 if test -z "$ac_cv_prog_CPPBIN"; then
3974 ac_ct_CPPBIN=$CPPBIN
3975 # Extract the first word of "cpp", so it can be a program name with args.
3976 set dummy cpp; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 if test -n "$ac_ct_CPPBIN"; then
3983 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992 ac_cv_prog_ac_ct_CPPBIN="cpp"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 break 2
3996 done
3997 done
3998 IFS=$as_save_IFS
4002 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4003 if test -n "$ac_ct_CPPBIN"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4005 $as_echo "$ac_ct_CPPBIN" >&6; }
4006 else
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4011 if test "x$ac_ct_CPPBIN" = x; then
4012 CPPBIN="cpp"
4013 else
4014 case $cross_compiling:$ac_tool_warned in
4015 yes:)
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4018 ac_tool_warned=yes ;;
4019 esac
4020 CPPBIN=$ac_ct_CPPBIN
4022 else
4023 CPPBIN="$ac_cv_prog_CPPBIN"
4027 cat >>confdefs.h <<_ACEOF
4028 #define EXEEXT "$ac_exeext"
4029 _ACEOF
4032 case $host in
4033 *-darwin*)
4034 if test "x$enable_win64" = "xyes"
4035 then
4036 CC="$CC -m64"
4037 CXX="$CXX -m64"
4038 LD="${LD:-ld} -arch x86_64"
4039 AS="${AS:-as} -arch x86_64"
4040 host_cpu="x86_64"
4041 notice_platform="64-bit "
4042 TARGETFLAGS="-m64"
4044 else
4045 CC="$CC -m32"
4046 CXX="$CXX -m32"
4047 LD="${LD:-ld} -arch i386"
4048 AS="${AS:-as} -arch i386"
4049 host_cpu="i386"
4050 notice_platform="32-bit "
4051 TARGETFLAGS="-m32"
4053 enable_win16=${enable_win16:-yes}
4056 x86_64*)
4057 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4058 then
4059 CC="$CC -m32"
4060 CXX="$CXX -m32"
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4062 $as_echo_n "checking whether $CC works... " >&6; }
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4068 main ()
4072 return 0;
4074 _ACEOF
4075 if ac_fn_c_try_link "$LINENO"; then :
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4077 $as_echo "yes" >&6; }
4078 else
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4081 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4083 rm -f core conftest.err conftest.$ac_objext \
4084 conftest$ac_exeext conftest.$ac_ext
4085 LD="${LD:-ld} -m elf_i386"
4086 AS="${AS:-as} --32"
4087 host_cpu="i386"
4088 notice_platform="32-bit "
4089 TARGETFLAGS="-m32"
4091 enable_win16=${enable_win16:-yes}
4092 else
4093 if test "x${GCC}" = "xyes"
4094 then
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4096 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4099 #include <stdarg.h>
4101 main ()
4103 void func(__builtin_ms_va_list *args);
4105 return 0;
4107 _ACEOF
4108 if ac_fn_c_try_compile "$LINENO"; then :
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4110 $as_echo "yes" >&6; }
4111 else
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4114 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118 TARGETFLAGS="-m64"
4122 *-mingw32*|*-cygwin*)
4123 enable_win16=${enable_win16:-no}
4124 CFLAGS="$CFLAGS -D_WIN32"
4126 i[3456789]86*)
4127 enable_win16=${enable_win16:-yes}
4129 esac
4131 enable_win16=${enable_win16:-no}
4133 enable_winetest=${enable_winetest:-$enable_tests}
4135 if test -n "$with_wine64"
4136 then
4137 if test "x$enable_win64" = "xyes"
4138 then
4139 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4140 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4142 WOW64_DISABLE=\#
4144 enable_fonts=${enable_fonts:-no}
4145 enable_server=${enable_server:-no}
4146 enable_tools=${enable_tools:-no}
4147 elif test "x$enable_win64" = "xyes"
4148 then
4149 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4153 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4154 if test "${wine_cv_toolsdir+set}" = set; then :
4155 $as_echo_n "(cached) " >&6
4156 else
4157 wine_cv_toolsdir="$with_wine_tools"
4158 if test -z "$with_wine_tools"; then
4159 if test "$cross_compiling" = "yes"; then
4160 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4161 elif test -n "$with_wine64"; then
4162 wine_cv_toolsdir="$with_wine64"
4165 if test -z "$wine_cv_toolsdir"; then
4166 wine_cv_toolsdir="\$(top_builddir)"
4167 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4168 case "$wine_cv_toolsdir" in
4169 /*) ;;
4170 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4171 esac
4172 else
4173 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4177 $as_echo "$wine_cv_toolsdir" >&6; }
4178 TOOLSDIR=$wine_cv_toolsdir
4180 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4181 then
4182 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4186 for ac_prog in flex
4188 # Extract the first word of "$ac_prog", so it can be a program name with args.
4189 set dummy $ac_prog; ac_word=$2
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if test "${ac_cv_prog_FLEX+set}" = set; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 if test -n "$FLEX"; then
4196 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4197 else
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205 ac_cv_prog_FLEX="$ac_prog"
4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 break 2
4209 done
4210 done
4211 IFS=$as_save_IFS
4215 FLEX=$ac_cv_prog_FLEX
4216 if test -n "$FLEX"; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4218 $as_echo "$FLEX" >&6; }
4219 else
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4225 test -n "$FLEX" && break
4226 done
4227 test -n "$FLEX" || FLEX="none"
4229 if test "$FLEX" = "none"
4230 then
4231 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4234 $as_echo_n "checking whether flex is recent enough... " >&6; }
4235 cat >conftest.l <<EOF
4236 %top{
4237 #include "prediluvian.h"
4241 if $FLEX -t conftest.l >/dev/null 2>&5
4242 then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4244 $as_echo "yes" >&6; }
4245 else
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4248 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4251 for ac_prog in bison
4253 # Extract the first word of "$ac_prog", so it can be a program name with args.
4254 set dummy $ac_prog; ac_word=$2
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256 $as_echo_n "checking for $ac_word... " >&6; }
4257 if test "${ac_cv_prog_BISON+set}" = set; then :
4258 $as_echo_n "(cached) " >&6
4259 else
4260 if test -n "$BISON"; then
4261 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4262 else
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4266 IFS=$as_save_IFS
4267 test -z "$as_dir" && as_dir=.
4268 for ac_exec_ext in '' $ac_executable_extensions; do
4269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4270 ac_cv_prog_BISON="$ac_prog"
4271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 break 2
4274 done
4275 done
4276 IFS=$as_save_IFS
4280 BISON=$ac_cv_prog_BISON
4281 if test -n "$BISON"; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4283 $as_echo "$BISON" >&6; }
4284 else
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4290 test -n "$BISON" && break
4291 done
4292 test -n "$BISON" || BISON="none"
4294 if test "$BISON" = "none"
4295 then
4296 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4299 if test -n "$ac_tool_prefix"; then
4300 for ac_prog in ar gar
4302 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305 $as_echo_n "checking for $ac_word... " >&6; }
4306 if test "${ac_cv_prog_AR+set}" = set; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 if test -n "$AR"; then
4310 ac_cv_prog_AR="$AR" # Let the user override the test.
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4319 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 break 2
4323 done
4324 done
4325 IFS=$as_save_IFS
4329 AR=$ac_cv_prog_AR
4330 if test -n "$AR"; then
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4332 $as_echo "$AR" >&6; }
4333 else
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335 $as_echo "no" >&6; }
4339 test -n "$AR" && break
4340 done
4342 if test -z "$AR"; then
4343 ac_ct_AR=$AR
4344 for ac_prog in ar gar
4346 # Extract the first word of "$ac_prog", so it can be a program name with args.
4347 set dummy $ac_prog; ac_word=$2
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4349 $as_echo_n "checking for $ac_word... " >&6; }
4350 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 if test -n "$ac_ct_AR"; then
4354 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4355 else
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 ac_cv_prog_ac_ct_AR="$ac_prog"
4364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 break 2
4367 done
4368 done
4369 IFS=$as_save_IFS
4373 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4374 if test -n "$ac_ct_AR"; then
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4376 $as_echo "$ac_ct_AR" >&6; }
4377 else
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4379 $as_echo "no" >&6; }
4383 test -n "$ac_ct_AR" && break
4384 done
4386 if test "x$ac_ct_AR" = x; then
4387 AR="ar"
4388 else
4389 case $cross_compiling:$ac_tool_warned in
4390 yes:)
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4393 ac_tool_warned=yes ;;
4394 esac
4395 AR=$ac_ct_AR
4399 ARFLAGS=rc
4401 if test -n "$ac_tool_prefix"; then
4402 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4403 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 if test -n "$RANLIB"; then
4410 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
4423 done
4424 done
4425 IFS=$as_save_IFS
4429 RANLIB=$ac_cv_prog_RANLIB
4430 if test -n "$RANLIB"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4432 $as_echo "$RANLIB" >&6; }
4433 else
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4440 if test -z "$ac_cv_prog_RANLIB"; then
4441 ac_ct_RANLIB=$RANLIB
4442 # Extract the first word of "ranlib", so it can be a program name with args.
4443 set dummy ranlib; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 if test -n "$ac_ct_RANLIB"; then
4450 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_prog_ac_ct_RANLIB="ranlib"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4463 done
4464 done
4465 IFS=$as_save_IFS
4469 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4470 if test -n "$ac_ct_RANLIB"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4472 $as_echo "$ac_ct_RANLIB" >&6; }
4473 else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4478 if test "x$ac_ct_RANLIB" = x; then
4479 RANLIB=":"
4480 else
4481 case $cross_compiling:$ac_tool_warned in
4482 yes:)
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned=yes ;;
4486 esac
4487 RANLIB=$ac_ct_RANLIB
4489 else
4490 RANLIB="$ac_cv_prog_RANLIB"
4493 if test -n "$ac_tool_prefix"; then
4494 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4495 set dummy ${ac_tool_prefix}strip; ac_word=$2
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497 $as_echo_n "checking for $ac_word... " >&6; }
4498 if test "${ac_cv_prog_STRIP+set}" = set; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 if test -n "$STRIP"; then
4502 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4503 else
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4511 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4515 done
4516 done
4517 IFS=$as_save_IFS
4521 STRIP=$ac_cv_prog_STRIP
4522 if test -n "$STRIP"; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4524 $as_echo "$STRIP" >&6; }
4525 else
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527 $as_echo "no" >&6; }
4532 if test -z "$ac_cv_prog_STRIP"; then
4533 ac_ct_STRIP=$STRIP
4534 # Extract the first word of "strip", so it can be a program name with args.
4535 set dummy strip; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -n "$ac_ct_STRIP"; then
4542 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_prog_ac_ct_STRIP="strip"
4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4555 done
4556 done
4557 IFS=$as_save_IFS
4561 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4562 if test -n "$ac_ct_STRIP"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4564 $as_echo "$ac_ct_STRIP" >&6; }
4565 else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4570 if test "x$ac_ct_STRIP" = x; then
4571 STRIP="strip"
4572 else
4573 case $cross_compiling:$ac_tool_warned in
4574 yes:)
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4577 ac_tool_warned=yes ;;
4578 esac
4579 STRIP=$ac_ct_STRIP
4581 else
4582 STRIP="$ac_cv_prog_STRIP"
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4586 $as_echo_n "checking whether ln -s works... " >&6; }
4587 LN_S=$as_ln_s
4588 if test "$LN_S" = "ln -s"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4590 $as_echo "yes" >&6; }
4591 else
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4593 $as_echo "no, using $LN_S" >&6; }
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4597 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4598 if test "${ac_cv_path_GREP+set}" = set; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 if test -z "$GREP"; then
4602 ac_path_GREP_found=false
4603 # Loop through the user's path and test for each of PROGNAME-LIST
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_prog in grep ggrep; do
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4612 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4613 # Check for GNU ac_path_GREP and select it if it is found.
4614 # Check for GNU $ac_path_GREP
4615 case `"$ac_path_GREP" --version 2>&1` in
4616 *GNU*)
4617 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4619 ac_count=0
4620 $as_echo_n 0123456789 >"conftest.in"
4621 while :
4623 cat "conftest.in" "conftest.in" >"conftest.tmp"
4624 mv "conftest.tmp" "conftest.in"
4625 cp "conftest.in" "conftest.nl"
4626 $as_echo 'GREP' >> "conftest.nl"
4627 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4629 as_fn_arith $ac_count + 1 && ac_count=$as_val
4630 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4631 # Best one so far, save it but keep looking for a better one
4632 ac_cv_path_GREP="$ac_path_GREP"
4633 ac_path_GREP_max=$ac_count
4635 # 10*(2^10) chars as input seems more than enough
4636 test $ac_count -gt 10 && break
4637 done
4638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4639 esac
4641 $ac_path_GREP_found && break 3
4642 done
4643 done
4644 done
4645 IFS=$as_save_IFS
4646 if test -z "$ac_cv_path_GREP"; then
4647 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4649 else
4650 ac_cv_path_GREP=$GREP
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4655 $as_echo "$ac_cv_path_GREP" >&6; }
4656 GREP="$ac_cv_path_GREP"
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4660 $as_echo_n "checking for egrep... " >&6; }
4661 if test "${ac_cv_path_EGREP+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4665 then ac_cv_path_EGREP="$GREP -E"
4666 else
4667 if test -z "$EGREP"; then
4668 ac_path_EGREP_found=false
4669 # Loop through the user's path and test for each of PROGNAME-LIST
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_prog in egrep; do
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4678 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4679 # Check for GNU ac_path_EGREP and select it if it is found.
4680 # Check for GNU $ac_path_EGREP
4681 case `"$ac_path_EGREP" --version 2>&1` in
4682 *GNU*)
4683 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4685 ac_count=0
4686 $as_echo_n 0123456789 >"conftest.in"
4687 while :
4689 cat "conftest.in" "conftest.in" >"conftest.tmp"
4690 mv "conftest.tmp" "conftest.in"
4691 cp "conftest.in" "conftest.nl"
4692 $as_echo 'EGREP' >> "conftest.nl"
4693 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4695 as_fn_arith $ac_count + 1 && ac_count=$as_val
4696 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4697 # Best one so far, save it but keep looking for a better one
4698 ac_cv_path_EGREP="$ac_path_EGREP"
4699 ac_path_EGREP_max=$ac_count
4701 # 10*(2^10) chars as input seems more than enough
4702 test $ac_count -gt 10 && break
4703 done
4704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4705 esac
4707 $ac_path_EGREP_found && break 3
4708 done
4709 done
4710 done
4711 IFS=$as_save_IFS
4712 if test -z "$ac_cv_path_EGREP"; then
4713 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4715 else
4716 ac_cv_path_EGREP=$EGREP
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4722 $as_echo "$ac_cv_path_EGREP" >&6; }
4723 EGREP="$ac_cv_path_EGREP"
4726 # Extract the first word of "ldconfig", so it can be a program name with args.
4727 set dummy ldconfig; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 case $LDCONFIG in
4734 [\\/]* | ?:[\\/]*)
4735 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in /sbin /usr/sbin $PATH
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4745 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 break 2
4749 done
4750 done
4751 IFS=$as_save_IFS
4753 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4755 esac
4757 LDCONFIG=$ac_cv_path_LDCONFIG
4758 if test -n "$LDCONFIG"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4760 $as_echo "$LDCONFIG" >&6; }
4761 else
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4767 # Find a good install program. We prefer a C program (faster),
4768 # so one script is as good as another. But avoid the broken or
4769 # incompatible versions:
4770 # SysV /etc/install, /usr/sbin/install
4771 # SunOS /usr/etc/install
4772 # IRIX /sbin/install
4773 # AIX /bin/install
4774 # AmigaOS /C/install, which installs bootblocks on floppy discs
4775 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4776 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4777 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4778 # OS/2's system install, which has a completely different semantic
4779 # ./install, which can be erroneously created by make from ./install.sh.
4780 # Reject install programs that cannot install multiple files.
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4782 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4783 if test -z "$INSTALL"; then
4784 if test "${ac_cv_path_install+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 # Account for people who put trailing slashes in PATH elements.
4793 case $as_dir/ in #((
4794 ./ | .// | /[cC]/* | \
4795 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4796 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4797 /usr/ucb/* ) ;;
4799 # OSF1 and SCO ODT 3.0 have their own names for install.
4800 # Don't use installbsd from OSF since it installs stuff as root
4801 # by default.
4802 for ac_prog in ginstall scoinst install; do
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4805 if test $ac_prog = install &&
4806 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4807 # AIX install. It has an incompatible calling convention.
4809 elif test $ac_prog = install &&
4810 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4811 # program-specific install script used by HP pwplus--don't use.
4813 else
4814 rm -rf conftest.one conftest.two conftest.dir
4815 echo one > conftest.one
4816 echo two > conftest.two
4817 mkdir conftest.dir
4818 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4819 test -s conftest.one && test -s conftest.two &&
4820 test -s conftest.dir/conftest.one &&
4821 test -s conftest.dir/conftest.two
4822 then
4823 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4824 break 3
4828 done
4829 done
4831 esac
4833 done
4834 IFS=$as_save_IFS
4836 rm -rf conftest.one conftest.two conftest.dir
4839 if test "${ac_cv_path_install+set}" = set; then
4840 INSTALL=$ac_cv_path_install
4841 else
4842 # As a last resort, use the slow shell script. Don't cache a
4843 # value for INSTALL within a source directory, because that will
4844 # break other packages using the cache if that directory is
4845 # removed, or if the value is a relative name.
4846 INSTALL=$ac_install_sh
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4850 $as_echo "$INSTALL" >&6; }
4852 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4853 # It thinks the first close brace ends the variable substitution.
4854 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4856 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4858 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4860 case "$INSTALL" in
4861 [\\/$]* | ?:[\\/]* ) ;;
4862 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4863 esac
4865 for ac_prog in lclint lint
4867 # Extract the first word of "$ac_prog", so it can be a program name with args.
4868 set dummy $ac_prog; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if test "${ac_cv_prog_LINT+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 if test -n "$LINT"; then
4875 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4876 else
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4880 IFS=$as_save_IFS
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_prog_LINT="$ac_prog"
4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 break 2
4888 done
4889 done
4890 IFS=$as_save_IFS
4894 LINT=$ac_cv_prog_LINT
4895 if test -n "$LINT"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4897 $as_echo "$LINT" >&6; }
4898 else
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4904 test -n "$LINT" && break
4905 done
4907 if test "$LINT" = "lint"
4908 then
4909 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4914 for ac_prog in fontforge
4916 # Extract the first word of "$ac_prog", so it can be a program name with args.
4917 set dummy $ac_prog; ac_word=$2
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919 $as_echo_n "checking for $ac_word... " >&6; }
4920 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4921 $as_echo_n "(cached) " >&6
4922 else
4923 if test -n "$FONTFORGE"; then
4924 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4925 else
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4929 IFS=$as_save_IFS
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4933 ac_cv_prog_FONTFORGE="$ac_prog"
4934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 break 2
4937 done
4938 done
4939 IFS=$as_save_IFS
4943 FONTFORGE=$ac_cv_prog_FONTFORGE
4944 if test -n "$FONTFORGE"; then
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4946 $as_echo "$FONTFORGE" >&6; }
4947 else
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949 $as_echo "no" >&6; }
4953 test -n "$FONTFORGE" && break
4954 done
4955 test -n "$FONTFORGE" || FONTFORGE="false"
4957 for ac_prog in pkg-config
4959 # Extract the first word of "$ac_prog", so it can be a program name with args.
4960 set dummy $ac_prog; ac_word=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if test -n "$PKG_CONFIG"; then
4967 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4968 else
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_prog_PKG_CONFIG="$ac_prog"
4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4980 done
4981 done
4982 IFS=$as_save_IFS
4986 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4987 if test -n "$PKG_CONFIG"; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4989 $as_echo "$PKG_CONFIG" >&6; }
4990 else
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4996 test -n "$PKG_CONFIG" && break
4997 done
4998 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
5000 for ac_prog in rsvg
5002 # Extract the first word of "$ac_prog", so it can be a program name with args.
5003 set dummy $ac_prog; ac_word=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_RSVG+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 if test -n "$RSVG"; then
5010 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_RSVG="$ac_prog"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5023 done
5024 done
5025 IFS=$as_save_IFS
5029 RSVG=$ac_cv_prog_RSVG
5030 if test -n "$RSVG"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5032 $as_echo "$RSVG" >&6; }
5033 else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5039 test -n "$RSVG" && break
5040 done
5041 test -n "$RSVG" || RSVG="false"
5043 for ac_prog in convert
5045 # Extract the first word of "$ac_prog", so it can be a program name with args.
5046 set dummy $ac_prog; ac_word=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if test "${ac_cv_prog_CONVERT+set}" = set; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if test -n "$CONVERT"; then
5053 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_prog_CONVERT="$ac_prog"
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5066 done
5067 done
5068 IFS=$as_save_IFS
5072 CONVERT=$ac_cv_prog_CONVERT
5073 if test -n "$CONVERT"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5075 $as_echo "$CONVERT" >&6; }
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5082 test -n "$CONVERT" && break
5083 done
5084 test -n "$CONVERT" || CONVERT="false"
5086 for ac_prog in icotool
5088 # Extract the first word of "$ac_prog", so it can be a program name with args.
5089 set dummy $ac_prog; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 if test -n "$ICOTOOL"; then
5096 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5097 else
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5105 ac_cv_prog_ICOTOOL="$ac_prog"
5106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 break 2
5109 done
5110 done
5111 IFS=$as_save_IFS
5115 ICOTOOL=$ac_cv_prog_ICOTOOL
5116 if test -n "$ICOTOOL"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5118 $as_echo "$ICOTOOL" >&6; }
5119 else
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5125 test -n "$ICOTOOL" && break
5126 done
5127 test -n "$ICOTOOL" || ICOTOOL="false"
5130 if test "x$enable_maintainer_mode" != "xyes"
5131 then
5132 MAINTAINER_MODE=\#
5134 else
5135 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5 ; fi
5136 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5 ; fi
5138 if test "$CONVERT" = false
5139 then
5140 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5143 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5144 convert_version=`convert --version | head -n1`
5145 if test "x$convert_version" != "x"
5146 then
5147 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5148 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5149 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5150 then
5151 CONVERT=false
5154 if test "$CONVERT" = false
5155 then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5157 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5158 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5159 else
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5161 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5165 if test "$ICOTOOL" = false
5166 then
5167 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5168 else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5170 $as_echo_n "checking for recent enough icotool... " >&6; }
5171 icotool_version=`icotool --version | head -n1`
5172 if test "x$icotool_version" != "x"
5173 then
5174 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5175 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5176 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5177 then
5178 ICOTOOL=false
5179 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5182 if test "$ICOTOOL" = false
5183 then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5185 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5186 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5187 else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5189 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5197 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5198 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5199 $as_echo_n "(cached) " >&6
5200 else
5201 ac_check_lib_save_LIBS=$LIBS
5202 LIBS="-li386 $LIBS"
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5206 /* Override any GCC internal prototype to avoid an error.
5207 Use char because int might match the return type of a GCC
5208 builtin and then its argument prototype would still apply. */
5209 #ifdef __cplusplus
5210 extern "C"
5211 #endif
5212 char i386_set_ldt ();
5214 main ()
5216 return i386_set_ldt ();
5218 return 0;
5220 _ACEOF
5221 if ac_fn_c_try_link "$LINENO"; then :
5222 ac_cv_lib_i386_i386_set_ldt=yes
5223 else
5224 ac_cv_lib_i386_i386_set_ldt=no
5226 rm -f core conftest.err conftest.$ac_objext \
5227 conftest$ac_exeext conftest.$ac_ext
5228 LIBS=$ac_check_lib_save_LIBS
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5231 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5232 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5233 cat >>confdefs.h <<_ACEOF
5234 #define HAVE_LIBI386 1
5235 _ACEOF
5237 LIBS="-li386 $LIBS"
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5242 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5243 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 ac_check_lib_save_LIBS=$LIBS
5247 LIBS="-lossaudio $LIBS"
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5251 /* Override any GCC internal prototype to avoid an error.
5252 Use char because int might match the return type of a GCC
5253 builtin and then its argument prototype would still apply. */
5254 #ifdef __cplusplus
5255 extern "C"
5256 #endif
5257 char _oss_ioctl ();
5259 main ()
5261 return _oss_ioctl ();
5263 return 0;
5265 _ACEOF
5266 if ac_fn_c_try_link "$LINENO"; then :
5267 ac_cv_lib_ossaudio__oss_ioctl=yes
5268 else
5269 ac_cv_lib_ossaudio__oss_ioctl=no
5271 rm -f core conftest.err conftest.$ac_objext \
5272 conftest$ac_exeext conftest.$ac_ext
5273 LIBS=$ac_check_lib_save_LIBS
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5276 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5277 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5278 cat >>confdefs.h <<_ACEOF
5279 #define HAVE_LIBOSSAUDIO 1
5280 _ACEOF
5282 LIBS="-lossaudio $LIBS"
5287 XLIB=""
5289 OPENGL_LIBS=""
5293 # Check whether --enable-largefile was given.
5294 if test "${enable_largefile+set}" = set; then :
5295 enableval=$enable_largefile;
5298 if test "$enable_largefile" != no; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5301 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5302 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 ac_cv_sys_largefile_CC=no
5306 if test "$GCC" != yes; then
5307 ac_save_CC=$CC
5308 while :; do
5309 # IRIX 6.2 and later do not support large files by default,
5310 # so use the C compiler's -n32 option if that helps.
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5313 #include <sys/types.h>
5314 /* Check that off_t can represent 2**63 - 1 correctly.
5315 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5316 since some C++ compilers masquerading as C compilers
5317 incorrectly reject 9223372036854775807. */
5318 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5319 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5320 && LARGE_OFF_T % 2147483647 == 1)
5321 ? 1 : -1];
5323 main ()
5327 return 0;
5329 _ACEOF
5330 if ac_fn_c_try_compile "$LINENO"; then :
5331 break
5333 rm -f core conftest.err conftest.$ac_objext
5334 CC="$CC -n32"
5335 if ac_fn_c_try_compile "$LINENO"; then :
5336 ac_cv_sys_largefile_CC=' -n32'; break
5338 rm -f core conftest.err conftest.$ac_objext
5339 break
5340 done
5341 CC=$ac_save_CC
5342 rm -f conftest.$ac_ext
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5346 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5347 if test "$ac_cv_sys_largefile_CC" != no; then
5348 CC=$CC$ac_cv_sys_largefile_CC
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5352 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5353 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 while :; do
5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h. */
5359 #include <sys/types.h>
5360 /* Check that off_t can represent 2**63 - 1 correctly.
5361 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5362 since some C++ compilers masquerading as C compilers
5363 incorrectly reject 9223372036854775807. */
5364 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5365 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5366 && LARGE_OFF_T % 2147483647 == 1)
5367 ? 1 : -1];
5369 main ()
5373 return 0;
5375 _ACEOF
5376 if ac_fn_c_try_compile "$LINENO"; then :
5377 ac_cv_sys_file_offset_bits=no; break
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5382 #define _FILE_OFFSET_BITS 64
5383 #include <sys/types.h>
5384 /* Check that off_t can represent 2**63 - 1 correctly.
5385 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5386 since some C++ compilers masquerading as C compilers
5387 incorrectly reject 9223372036854775807. */
5388 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5389 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5390 && LARGE_OFF_T % 2147483647 == 1)
5391 ? 1 : -1];
5393 main ()
5397 return 0;
5399 _ACEOF
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401 ac_cv_sys_file_offset_bits=64; break
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 ac_cv_sys_file_offset_bits=unknown
5405 break
5406 done
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5409 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5410 case $ac_cv_sys_file_offset_bits in #(
5411 no | unknown) ;;
5413 cat >>confdefs.h <<_ACEOF
5414 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5415 _ACEOF
5417 esac
5418 rm -rf conftest*
5419 if test $ac_cv_sys_file_offset_bits = unknown; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5421 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5422 if test "${ac_cv_sys_large_files+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 while :; do
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428 #include <sys/types.h>
5429 /* Check that off_t can represent 2**63 - 1 correctly.
5430 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5431 since some C++ compilers masquerading as C compilers
5432 incorrectly reject 9223372036854775807. */
5433 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5434 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5435 && LARGE_OFF_T % 2147483647 == 1)
5436 ? 1 : -1];
5438 main ()
5442 return 0;
5444 _ACEOF
5445 if ac_fn_c_try_compile "$LINENO"; then :
5446 ac_cv_sys_large_files=no; break
5448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5451 #define _LARGE_FILES 1
5452 #include <sys/types.h>
5453 /* Check that off_t can represent 2**63 - 1 correctly.
5454 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5455 since some C++ compilers masquerading as C compilers
5456 incorrectly reject 9223372036854775807. */
5457 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5458 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5459 && LARGE_OFF_T % 2147483647 == 1)
5460 ? 1 : -1];
5462 main ()
5466 return 0;
5468 _ACEOF
5469 if ac_fn_c_try_compile "$LINENO"; then :
5470 ac_cv_sys_large_files=1; break
5472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473 ac_cv_sys_large_files=unknown
5474 break
5475 done
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5478 $as_echo "$ac_cv_sys_large_files" >&6; }
5479 case $ac_cv_sys_large_files in #(
5480 no | unknown) ;;
5482 cat >>confdefs.h <<_ACEOF
5483 #define _LARGE_FILES $ac_cv_sys_large_files
5484 _ACEOF
5486 esac
5487 rm -rf conftest*
5492 ac_ext=c
5493 ac_cpp='$CPP $CPPFLAGS'
5494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5498 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5499 # On Suns, sometimes $CPP names a directory.
5500 if test -n "$CPP" && test -d "$CPP"; then
5501 CPP=
5503 if test -z "$CPP"; then
5504 if test "${ac_cv_prog_CPP+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 # Double quotes because CPP needs to be expanded
5508 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5510 ac_preproc_ok=false
5511 for ac_c_preproc_warn_flag in '' yes
5513 # Use a header file that comes with gcc, so configuring glibc
5514 # with a fresh cross-compiler works.
5515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5516 # <limits.h> exists even on freestanding compilers.
5517 # On the NeXT, cc -E runs the code through the compiler's parser,
5518 # not just through cpp. "Syntax error" is here to catch this case.
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 #ifdef __STDC__
5522 # include <limits.h>
5523 #else
5524 # include <assert.h>
5525 #endif
5526 Syntax error
5527 _ACEOF
5528 if ac_fn_c_try_cpp "$LINENO"; then :
5530 else
5531 # Broken: fails on valid input.
5532 continue
5534 rm -f conftest.err conftest.i conftest.$ac_ext
5536 # OK, works on sane cases. Now check whether nonexistent headers
5537 # can be detected and how.
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 #include <ac_nonexistent.h>
5541 _ACEOF
5542 if ac_fn_c_try_cpp "$LINENO"; then :
5543 # Broken: success on invalid input.
5544 continue
5545 else
5546 # Passes both tests.
5547 ac_preproc_ok=:
5548 break
5550 rm -f conftest.err conftest.i conftest.$ac_ext
5552 done
5553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5554 rm -f conftest.i conftest.err conftest.$ac_ext
5555 if $ac_preproc_ok; then :
5556 break
5559 done
5560 ac_cv_prog_CPP=$CPP
5563 CPP=$ac_cv_prog_CPP
5564 else
5565 ac_cv_prog_CPP=$CPP
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5568 $as_echo "$CPP" >&6; }
5569 ac_preproc_ok=false
5570 for ac_c_preproc_warn_flag in '' yes
5572 # Use a header file that comes with gcc, so configuring glibc
5573 # with a fresh cross-compiler works.
5574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5575 # <limits.h> exists even on freestanding compilers.
5576 # On the NeXT, cc -E runs the code through the compiler's parser,
5577 # not just through cpp. "Syntax error" is here to catch this case.
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5580 #ifdef __STDC__
5581 # include <limits.h>
5582 #else
5583 # include <assert.h>
5584 #endif
5585 Syntax error
5586 _ACEOF
5587 if ac_fn_c_try_cpp "$LINENO"; then :
5589 else
5590 # Broken: fails on valid input.
5591 continue
5593 rm -f conftest.err conftest.i conftest.$ac_ext
5595 # OK, works on sane cases. Now check whether nonexistent headers
5596 # can be detected and how.
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 #include <ac_nonexistent.h>
5600 _ACEOF
5601 if ac_fn_c_try_cpp "$LINENO"; then :
5602 # Broken: success on invalid input.
5603 continue
5604 else
5605 # Passes both tests.
5606 ac_preproc_ok=:
5607 break
5609 rm -f conftest.err conftest.i conftest.$ac_ext
5611 done
5612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5613 rm -f conftest.i conftest.err conftest.$ac_ext
5614 if $ac_preproc_ok; then :
5616 else
5617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5619 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5620 See \`config.log' for more details" "$LINENO" 5 ; }
5623 ac_ext=c
5624 ac_cpp='$CPP $CPPFLAGS'
5625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5631 $as_echo_n "checking for ANSI C header files... " >&6; }
5632 if test "${ac_cv_header_stdc+set}" = set; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 #include <stdlib.h>
5638 #include <stdarg.h>
5639 #include <string.h>
5640 #include <float.h>
5643 main ()
5647 return 0;
5649 _ACEOF
5650 if ac_fn_c_try_compile "$LINENO"; then :
5651 ac_cv_header_stdc=yes
5652 else
5653 ac_cv_header_stdc=no
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657 if test $ac_cv_header_stdc = yes; then
5658 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 #include <string.h>
5663 _ACEOF
5664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5665 $EGREP "memchr" >/dev/null 2>&1; then :
5667 else
5668 ac_cv_header_stdc=no
5670 rm -f conftest*
5674 if test $ac_cv_header_stdc = yes; then
5675 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5678 #include <stdlib.h>
5680 _ACEOF
5681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5682 $EGREP "free" >/dev/null 2>&1; then :
5684 else
5685 ac_cv_header_stdc=no
5687 rm -f conftest*
5691 if test $ac_cv_header_stdc = yes; then
5692 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5693 if test "$cross_compiling" = yes; then :
5695 else
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 #include <ctype.h>
5699 #include <stdlib.h>
5700 #if ((' ' & 0x0FF) == 0x020)
5701 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5702 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5703 #else
5704 # define ISLOWER(c) \
5705 (('a' <= (c) && (c) <= 'i') \
5706 || ('j' <= (c) && (c) <= 'r') \
5707 || ('s' <= (c) && (c) <= 'z'))
5708 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5709 #endif
5711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5713 main ()
5715 int i;
5716 for (i = 0; i < 256; i++)
5717 if (XOR (islower (i), ISLOWER (i))
5718 || toupper (i) != TOUPPER (i))
5719 return 2;
5720 return 0;
5722 _ACEOF
5723 if ac_fn_c_try_run "$LINENO"; then :
5725 else
5726 ac_cv_header_stdc=no
5728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5729 conftest.$ac_objext conftest.beam conftest.$ac_ext
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5735 $as_echo "$ac_cv_header_stdc" >&6; }
5736 if test $ac_cv_header_stdc = yes; then
5738 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5743 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5744 inttypes.h stdint.h unistd.h
5745 do :
5746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5747 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5749 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5750 cat >>confdefs.h <<_ACEOF
5751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5752 _ACEOF
5756 done
5759 for ac_header in \
5760 AL/al.h \
5761 AudioToolbox/AudioConverter.h \
5762 AudioUnit/AudioUnit.h \
5763 CL/opencl.h \
5764 Carbon/Carbon.h \
5765 CoreAudio/CoreAudio.h \
5766 DiskArbitration/DiskArbitration.h \
5767 IOKit/IOKitLib.h \
5768 IOKit/hid/IOHIDLib.h \
5769 OpenAL/al.h \
5770 OpenCL/opencl.h \
5771 alias.h \
5772 alsa/asoundlib.h \
5773 arpa/inet.h \
5774 arpa/nameser.h \
5775 asm/types.h \
5776 capi20.h \
5777 curses.h \
5778 direct.h \
5779 dirent.h \
5780 dlfcn.h \
5781 elf.h \
5782 float.h \
5783 fnmatch.h \
5784 fontconfig/fontconfig.h \
5785 getopt.h \
5786 grp.h \
5787 gsm.h \
5788 gsm/gsm.h \
5789 icns.h \
5790 ieeefp.h \
5791 inet/mib2.h \
5792 io.h \
5793 jack/jack.h \
5794 jpeglib.h \
5795 kstat.h \
5796 lber.h \
5797 lcms.h \
5798 lcms/lcms.h \
5799 ldap.h \
5800 link.h \
5801 linux/cdrom.h \
5802 linux/compiler.h \
5803 linux/hdreg.h \
5804 linux/input.h \
5805 linux/ioctl.h \
5806 linux/joystick.h \
5807 linux/major.h \
5808 linux/param.h \
5809 linux/serial.h \
5810 linux/types.h \
5811 linux/ucdrom.h \
5812 mach-o/nlist.h \
5813 mach-o/loader.h \
5814 mach/mach.h \
5815 mach/machine.h \
5816 machine/cpu.h \
5817 machine/limits.h \
5818 machine/soundcard.h \
5819 machine/sysarch.h \
5820 mntent.h \
5821 mpg123.h \
5822 ncurses.h \
5823 netdb.h \
5824 netinet/in.h \
5825 netinet/in_systm.h \
5826 netinet/tcp.h \
5827 netinet/tcp_fsm.h \
5828 openssl/err.h \
5829 openssl/ssl.h \
5830 png.h \
5831 poll.h \
5832 port.h \
5833 process.h \
5834 pthread.h \
5835 pwd.h \
5836 regex.h \
5837 sched.h \
5838 scsi/scsi.h \
5839 scsi/scsi_ioctl.h \
5840 scsi/sg.h \
5841 soundcard.h \
5842 stdbool.h \
5843 stdint.h \
5844 strings.h \
5845 stropts.h \
5846 sys/asoundlib.h \
5847 sys/cdio.h \
5848 sys/elf32.h \
5849 sys/epoll.h \
5850 sys/errno.h \
5851 sys/event.h \
5852 sys/exec_elf.h \
5853 sys/filio.h \
5854 sys/inotify.h \
5855 sys/ioctl.h \
5856 sys/ipc.h \
5857 sys/limits.h \
5858 sys/link.h \
5859 sys/mman.h \
5860 sys/modem.h \
5861 sys/msg.h \
5862 sys/mtio.h \
5863 sys/param.h \
5864 sys/poll.h \
5865 sys/prctl.h \
5866 sys/protosw.h \
5867 sys/ptrace.h \
5868 sys/resource.h \
5869 sys/scsiio.h \
5870 sys/shm.h \
5871 sys/signal.h \
5872 sys/socket.h \
5873 sys/socketvar.h \
5874 sys/sockio.h \
5875 sys/soundcard.h \
5876 sys/statvfs.h \
5877 sys/strtio.h \
5878 sys/syscall.h \
5879 sys/tihdr.h \
5880 sys/time.h \
5881 sys/timeout.h \
5882 sys/times.h \
5883 sys/uio.h \
5884 sys/un.h \
5885 sys/utsname.h \
5886 sys/vm86.h \
5887 sys/wait.h \
5888 syscall.h \
5889 termios.h \
5890 tiffio.h \
5891 unistd.h \
5892 utime.h \
5893 valgrind/memcheck.h \
5894 valgrind/valgrind.h \
5895 zlib.h
5897 do :
5898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5899 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5900 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5901 cat >>confdefs.h <<_ACEOF
5902 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5903 _ACEOF
5907 done
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5910 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5911 if test "${ac_cv_header_stat_broken+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5916 #include <sys/types.h>
5917 #include <sys/stat.h>
5919 #if defined S_ISBLK && defined S_IFDIR
5920 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5921 #endif
5923 #if defined S_ISBLK && defined S_IFCHR
5924 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5925 #endif
5927 #if defined S_ISLNK && defined S_IFREG
5928 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5929 #endif
5931 #if defined S_ISSOCK && defined S_IFREG
5932 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5933 #endif
5935 _ACEOF
5936 if ac_fn_c_try_compile "$LINENO"; then :
5937 ac_cv_header_stat_broken=no
5938 else
5939 ac_cv_header_stat_broken=yes
5941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5944 $as_echo "$ac_cv_header_stat_broken" >&6; }
5945 if test $ac_cv_header_stat_broken = yes; then
5947 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5953 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5954 do :
5955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5956 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5957 #ifdef HAVE_SYS_PARAM_H
5958 # include <sys/param.h>
5959 #endif
5961 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5962 cat >>confdefs.h <<_ACEOF
5963 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5964 _ACEOF
5968 done
5971 for ac_header in \
5972 netinet/ip.h \
5973 net/if.h \
5974 net/if_arp.h \
5975 net/if_dl.h \
5976 net/if_types.h \
5977 net/route.h \
5978 netinet/if_ether.h \
5979 netinet/if_inarp.h \
5980 netinet/in_pcb.h \
5981 netinet/ip_icmp.h \
5982 netinet/ip_var.h \
5983 netinet/udp.h \
5984 netipx/ipx.h \
5986 do :
5987 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5988 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5989 #ifdef HAVE_SYS_SOCKET_H
5990 # include <sys/socket.h>
5991 #endif
5992 #ifdef HAVE_SYS_SOCKETVAR_H
5993 # include <sys/socketvar.h>
5994 #endif
5995 #ifdef HAVE_NET_ROUTE_H
5996 # include <net/route.h>
5997 #endif
5998 #ifdef HAVE_NETINET_IN_H
5999 # include <netinet/in.h>
6000 #endif
6001 #ifdef HAVE_NETINET_IN_SYSTM_H
6002 # include <netinet/in_systm.h>
6003 #endif
6004 #ifdef HAVE_NET_IF_H
6005 # include <net/if.h>
6006 #endif
6007 #ifdef HAVE_NETINET_IP_H
6008 # include <netinet/ip.h>
6009 #endif
6011 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6012 cat >>confdefs.h <<_ACEOF
6013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6014 _ACEOF
6018 done
6021 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6022 do :
6023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6024 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6025 #ifdef HAVE_ALIAS_H
6026 # include <alias.h>
6027 #endif
6028 #ifdef HAVE_SYS_SOCKET_H
6029 # include <sys/socket.h>
6030 #endif
6031 #ifdef HAVE_SYS_SOCKETVAR_H
6032 # include <sys/socketvar.h>
6033 #endif
6034 #ifdef HAVE_SYS_TIMEOUT_H
6035 # include <sys/timeout.h>
6036 #endif
6037 #ifdef HAVE_NETINET_IN_H
6038 # include <netinet/in.h>
6039 #endif
6040 #ifdef HAVE_NETINET_IN_SYSTM_H
6041 # include <netinet/in_systm.h>
6042 #endif
6043 #ifdef HAVE_NETINET_IP_H
6044 # include <netinet/ip.h>
6045 #endif
6046 #ifdef HAVE_NETINET_IP_VAR_H
6047 # include <netinet/ip_var.h>
6048 #endif
6049 #ifdef HAVE_NETINET_IP_ICMP_H
6050 # include <netinet/ip_icmp.h>
6051 #endif
6052 #ifdef HAVE_NETINET_UDP_H
6053 # include <netinet/udp.h>
6054 #endif
6055 #ifdef HAVE_NETINET_TCP_H
6056 # include <netinet/tcp.h>
6057 #endif
6058 #ifdef HAVE_NETINET_TCP_TIMER_H
6059 #include <netinet/tcp_timer.h>
6060 #endif
6062 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6063 cat >>confdefs.h <<_ACEOF
6064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6065 _ACEOF
6069 done
6072 for ac_header in linux/ipx.h linux/irda.h
6073 do :
6074 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6075 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6076 #ifdef HAVE_ASM_TYPES_H
6077 # include <asm/types.h>
6078 #endif
6079 #ifdef HAVE_SYS_SOCKET_H
6080 # include <sys/socket.h>
6081 #endif
6082 #ifdef HAVE_LINUX_TYPES_H
6083 # include <linux/types.h>
6084 #endif
6086 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6087 cat >>confdefs.h <<_ACEOF
6088 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6089 _ACEOF
6093 done
6096 for ac_header in mach-o/dyld_images.h
6097 do :
6098 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6099 # include <stdbool.h>
6100 #endif
6101 #ifdef HAVE_STDINT_H
6102 # include <stdint.h>
6103 #endif
6105 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6106 cat >>confdefs.h <<_ACEOF
6107 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6108 _ACEOF
6112 done
6115 for ac_header in resolv.h
6116 do :
6117 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6118 #ifdef HAVE_SYS_SOCKET_H
6119 # include <sys/socket.h>
6120 #endif
6121 #ifdef HAVE_NETINET_IN_H
6122 # include <netinet/in.h>
6123 #endif
6124 #ifdef HAVE_ARPA_NAMESER_H
6125 # include <arpa/nameser.h>
6126 #endif
6128 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6129 cat >>confdefs.h <<_ACEOF
6130 #define HAVE_RESOLV_H 1
6131 _ACEOF
6135 done
6138 for ac_header in ifaddrs.h
6139 do :
6140 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6142 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6143 cat >>confdefs.h <<_ACEOF
6144 #define HAVE_IFADDRS_H 1
6145 _ACEOF
6149 done
6152 for ac_header in ucontext.h
6153 do :
6154 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6156 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6157 cat >>confdefs.h <<_ACEOF
6158 #define HAVE_UCONTEXT_H 1
6159 _ACEOF
6163 done
6166 for ac_header in sys/thr.h
6167 do :
6168 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6169 #ifdef HAVE_UCONTEXT_H
6170 #include <ucontext.h>
6171 #endif
6173 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6174 cat >>confdefs.h <<_ACEOF
6175 #define HAVE_SYS_THR_H 1
6176 _ACEOF
6180 done
6183 for ac_header in pthread_np.h
6184 do :
6185 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6186 #include <pthread.h>
6187 #endif
6189 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6190 cat >>confdefs.h <<_ACEOF
6191 #define HAVE_PTHREAD_NP_H 1
6192 _ACEOF
6196 done
6199 for ac_header in linux/videodev.h
6200 do :
6201 ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6202 #include <sys/time.h>
6203 #endif
6204 #include <sys/types.h>
6205 #ifdef HAVE_ASM_TYPES_H
6206 #include <asm/types.h>
6207 #endif
6209 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6210 cat >>confdefs.h <<_ACEOF
6211 #define HAVE_LINUX_VIDEODEV_H 1
6212 _ACEOF
6216 done
6219 for ac_header in linux/capi.h
6220 do :
6221 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6223 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6224 cat >>confdefs.h <<_ACEOF
6225 #define HAVE_LINUX_CAPI_H 1
6226 _ACEOF
6230 done
6234 DLLEXT=""
6236 DLLFLAGS="-D_REENTRANT"
6238 LDSHARED=""
6240 LDDLLFLAGS=""
6242 LIBEXT="so"
6244 IMPLIBEXT="def"
6246 LDRPATH_INSTALL=""
6248 LDRPATH_LOCAL=""
6250 STATIC_IMPLIBEXT="def.a"
6251 # Extract the first word of "ldd", so it can be a program name with args.
6252 set dummy ldd; ac_word=$2
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254 $as_echo_n "checking for $ac_word... " >&6; }
6255 if test "${ac_cv_path_LDD+set}" = set; then :
6256 $as_echo_n "(cached) " >&6
6257 else
6258 case $LDD in
6259 [\\/]* | ?:[\\/]*)
6260 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 as_dummy="/sbin:/usr/sbin:$PATH"
6265 for as_dir in $as_dummy
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6275 done
6276 done
6277 IFS=$as_save_IFS
6279 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6281 esac
6283 LDD=$ac_cv_path_LDD
6284 if test -n "$LDD"; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6286 $as_echo "$LDD" >&6; }
6287 else
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 $as_echo "no" >&6; }
6294 case $host_os in
6295 cygwin*|mingw32*)
6296 if test -n "$ac_tool_prefix"; then
6297 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6298 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6302 $as_echo_n "(cached) " >&6
6303 else
6304 if test -n "$DLLTOOL"; then
6305 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 break 2
6318 done
6319 done
6320 IFS=$as_save_IFS
6324 DLLTOOL=$ac_cv_prog_DLLTOOL
6325 if test -n "$DLLTOOL"; then
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6327 $as_echo "$DLLTOOL" >&6; }
6328 else
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 $as_echo "no" >&6; }
6335 if test -z "$ac_cv_prog_DLLTOOL"; then
6336 ac_ct_DLLTOOL=$DLLTOOL
6337 # Extract the first word of "dlltool", so it can be a program name with args.
6338 set dummy dlltool; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 if test -n "$ac_ct_DLLTOOL"; then
6345 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6358 done
6359 done
6360 IFS=$as_save_IFS
6364 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6365 if test -n "$ac_ct_DLLTOOL"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6367 $as_echo "$ac_ct_DLLTOOL" >&6; }
6368 else
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6373 if test "x$ac_ct_DLLTOOL" = x; then
6374 DLLTOOL="false"
6375 else
6376 case $cross_compiling:$ac_tool_warned in
6377 yes:)
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380 ac_tool_warned=yes ;;
6381 esac
6382 DLLTOOL=$ac_ct_DLLTOOL
6384 else
6385 DLLTOOL="$ac_cv_prog_DLLTOOL"
6388 if test -n "$ac_tool_prefix"; then
6389 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6390 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392 $as_echo_n "checking for $ac_word... " >&6; }
6393 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6394 $as_echo_n "(cached) " >&6
6395 else
6396 if test -n "$DLLWRAP"; then
6397 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6398 else
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 break 2
6410 done
6411 done
6412 IFS=$as_save_IFS
6416 DLLWRAP=$ac_cv_prog_DLLWRAP
6417 if test -n "$DLLWRAP"; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6419 $as_echo "$DLLWRAP" >&6; }
6420 else
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 $as_echo "no" >&6; }
6427 if test -z "$ac_cv_prog_DLLWRAP"; then
6428 ac_ct_DLLWRAP=$DLLWRAP
6429 # Extract the first word of "dllwrap", so it can be a program name with args.
6430 set dummy dllwrap; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436 if test -n "$ac_ct_DLLWRAP"; then
6437 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6442 IFS=$as_save_IFS
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 break 2
6450 done
6451 done
6452 IFS=$as_save_IFS
6456 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6457 if test -n "$ac_ct_DLLWRAP"; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6459 $as_echo "$ac_ct_DLLWRAP" >&6; }
6460 else
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6465 if test "x$ac_ct_DLLWRAP" = x; then
6466 DLLWRAP="false"
6467 else
6468 case $cross_compiling:$ac_tool_warned in
6469 yes:)
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6472 ac_tool_warned=yes ;;
6473 esac
6474 DLLWRAP=$ac_ct_DLLWRAP
6476 else
6477 DLLWRAP="$ac_cv_prog_DLLWRAP"
6480 if test "$DLLWRAP" = "false"; then
6481 LIBEXT="a"
6482 else
6483 LIBEXT="dll"
6485 IMPLIBEXT="a"
6486 STATIC_IMPLIBEXT="a"
6487 enable_iphlpapi=${enable_iphlpapi:-no}
6488 enable_kernel32=${enable_kernel32:-no}
6489 enable_msvcrt=${enable_msvcrt:-no}
6490 enable_ntdll=${enable_ntdll:-no}
6491 enable_ws2_32=${enable_ws2_32:-no}
6492 enable_loader=${enable_loader:-no}
6493 enable_server=${enable_server:-no}
6494 with_x=${with_x:-no}
6495 with_pthread=${with_pthread:-no}
6497 darwin*|macosx*)
6498 DLLEXT=".so"
6499 LIBEXT="dylib"
6500 DLLFLAGS="$DLLFLAGS -fPIC"
6501 LDDLLFLAGS="-bundle -multiply_defined suppress"
6502 LIBWINE_LDFLAGS="-multiply_defined suppress"
6503 LDSHARED="\$(CC) -dynamiclib"
6504 STRIP="$STRIP -x"
6505 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6506 SECURITYLIB="-framework Security -framework CoreFoundation"
6508 COREFOUNDATIONLIB="-framework CoreFoundation"
6510 IOKITLIB="-framework IOKit -framework CoreFoundation"
6512 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6514 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6516 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6517 then
6518 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6521 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6522 then
6523 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6526 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6527 then
6528 FRAMEWORK_OPENAL="-framework OpenAL"
6531 cat >>confdefs.h <<_ACEOF
6532 #define HAVE_OPENAL 1
6533 _ACEOF
6535 ac_cv_lib_openal=yes
6537 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6538 then
6539 LIBOPENCL="-framework OpenCL"
6541 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6543 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6544 then
6545 ac_save_LIBS="$LIBS"
6546 LIBS="$LIBS $IOKITLIB"
6547 for ac_func in IOHIDManagerCreate
6548 do :
6549 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6550 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6551 cat >>confdefs.h <<_ACEOF
6552 #define HAVE_IOHIDMANAGERCREATE 1
6553 _ACEOF
6556 done
6558 LIBS="$ac_save_LIBS"
6560 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6561 case $host_cpu in
6562 *powerpc*)
6563 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6564 esac
6565 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6566 then
6567 CARBONLIB="-framework Carbon"
6569 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6571 if test "x$enable_win16" = "xyes"
6572 then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6574 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6575 if test "$cross_compiling" = yes; then :
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6577 $as_echo "cross-compiling, assuming yes" >&6; }
6578 else
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6581 asm(".text\n"
6582 "bad:\tnop;nop\n"
6583 "good:\tnop;nop\n\t"
6584 ".globl _testfunc\n"
6585 "_testfunc:\tcallw good");
6586 extern void testfunc();
6588 main ()
6590 unsigned short *p = (unsigned short *)testfunc;
6591 return p[0] != 0xe866 || p[1] != 0xfffa
6593 return 0;
6595 _ACEOF
6596 if ac_fn_c_try_run "$LINENO"; then :
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6598 $as_echo "yes" >&6; }
6599 else
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601 $as_echo "no" >&6; }
6602 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
6604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6605 conftest.$ac_objext conftest.beam conftest.$ac_ext
6611 DLLFLAGS="$DLLFLAGS -fPIC"
6612 DLLEXT=".so"
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6614 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6615 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6618 ac_wine_try_cflags_saved=$CFLAGS
6619 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622 void myfunc() {}
6623 _ACEOF
6624 if ac_fn_c_try_link "$LINENO"; then :
6625 ac_cv_c_dll_gnuelf="yes"
6626 else
6627 ac_cv_c_dll_gnuelf="no"
6629 rm -f core conftest.err conftest.$ac_objext \
6630 conftest$ac_exeext conftest.$ac_ext
6631 CFLAGS=$ac_wine_try_cflags_saved
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6634 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6635 if test "$ac_cv_c_dll_gnuelf" = "yes"
6636 then
6637 LDSHARED="\$(CC) -shared"
6638 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6640 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6641 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 ac_wine_try_cflags_saved=$CFLAGS
6645 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647 /* end confdefs.h. */
6648 int main(int argc, char **argv) { return 0; }
6649 _ACEOF
6650 if ac_fn_c_try_link "$LINENO"; then :
6651 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6652 else
6653 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6655 rm -f core conftest.err conftest.$ac_objext \
6656 conftest$ac_exeext conftest.$ac_ext
6657 CFLAGS=$ac_wine_try_cflags_saved
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6660 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6661 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6662 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6663 else
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6665 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6666 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 ac_wine_try_cflags_saved=$CFLAGS
6670 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h. */
6673 int main(int argc, char **argv) { return 0; }
6674 _ACEOF
6675 if ac_fn_c_try_link "$LINENO"; then :
6676 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6677 else
6678 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6680 rm -f core conftest.err conftest.$ac_objext \
6681 conftest$ac_exeext conftest.$ac_ext
6682 CFLAGS=$ac_wine_try_cflags_saved
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6685 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6686 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6687 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6692 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6693 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6694 $as_echo_n "(cached) " >&6
6695 else
6696 ac_wine_try_cflags_saved=$CFLAGS
6697 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6700 int main(int argc, char **argv) { return 0; }
6701 _ACEOF
6702 if ac_fn_c_try_link "$LINENO"; then :
6703 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6704 else
6705 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6707 rm -f core conftest.err conftest.$ac_objext \
6708 conftest$ac_exeext conftest.$ac_ext
6709 CFLAGS=$ac_wine_try_cflags_saved
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6712 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6713 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6714 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6717 { $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
6718 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6719 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 ac_wine_try_cflags_saved=$CFLAGS
6723 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6726 int main(int argc, char **argv) { return 0; }
6727 _ACEOF
6728 if ac_fn_c_try_link "$LINENO"; then :
6729 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6730 else
6731 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6733 rm -f core conftest.err conftest.$ac_objext \
6734 conftest$ac_exeext conftest.$ac_ext
6735 CFLAGS=$ac_wine_try_cflags_saved
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6738 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6739 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6740 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6743 echo '{ global: *; };' >conftest.map
6744 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6746 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6747 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6748 $as_echo_n "(cached) " >&6
6749 else
6750 ac_wine_try_cflags_saved=$CFLAGS
6751 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753 /* end confdefs.h. */
6754 int main(int argc, char **argv) { return 0; }
6755 _ACEOF
6756 if ac_fn_c_try_link "$LINENO"; then :
6757 eval "$as_ac_var=yes"
6758 else
6759 eval "$as_ac_var=no"
6761 rm -f core conftest.err conftest.$ac_objext \
6762 conftest$ac_exeext conftest.$ac_ext
6763 CFLAGS=$ac_wine_try_cflags_saved
6765 eval ac_res=\$$as_ac_var
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6767 $as_echo "$ac_res" >&6; }
6768 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6769 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6771 rm -f conftest.map
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6774 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6775 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6776 $as_echo_n "(cached) " >&6
6777 else
6778 ac_wine_try_cflags_saved=$CFLAGS
6779 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782 int main(int argc, char **argv) { return 0; }
6783 _ACEOF
6784 if ac_fn_c_try_link "$LINENO"; then :
6785 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6786 else
6787 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6789 rm -f core conftest.err conftest.$ac_objext \
6790 conftest$ac_exeext conftest.$ac_ext
6791 CFLAGS=$ac_wine_try_cflags_saved
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6794 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6795 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6796 LDEXECFLAGS="-Wl,--export-dynamic"
6800 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6802 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6803 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6804 $as_echo_n "(cached) " >&6
6805 else
6806 ac_wine_try_cflags_saved=$CFLAGS
6807 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6810 int main(int argc, char **argv) { return 0; }
6811 _ACEOF
6812 if ac_fn_c_try_link "$LINENO"; then :
6813 eval "$as_ac_var=yes"
6814 else
6815 eval "$as_ac_var=no"
6817 rm -f core conftest.err conftest.$ac_objext \
6818 conftest$ac_exeext conftest.$ac_ext
6819 CFLAGS=$ac_wine_try_cflags_saved
6821 eval ac_res=\$$as_ac_var
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6823 $as_echo "$ac_res" >&6; }
6824 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6825 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6826 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6827 else
6828 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6830 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6831 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 ac_wine_try_cflags_saved=$CFLAGS
6835 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6838 int main(int argc, char **argv) { return 0; }
6839 _ACEOF
6840 if ac_fn_c_try_link "$LINENO"; then :
6841 eval "$as_ac_var=yes"
6842 else
6843 eval "$as_ac_var=no"
6845 rm -f core conftest.err conftest.$ac_objext \
6846 conftest$ac_exeext conftest.$ac_ext
6847 CFLAGS=$ac_wine_try_cflags_saved
6849 eval ac_res=\$$as_ac_var
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6851 $as_echo "$ac_res" >&6; }
6852 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6853 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6854 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6859 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6860 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 ac_wine_try_cflags_saved=$CFLAGS
6864 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6867 int main(int argc, char **argv) { return 0; }
6868 _ACEOF
6869 if ac_fn_c_try_link "$LINENO"; then :
6870 ac_cv_cflags__Wl___enable_new_dtags=yes
6871 else
6872 ac_cv_cflags__Wl___enable_new_dtags=no
6874 rm -f core conftest.err conftest.$ac_objext \
6875 conftest$ac_exeext conftest.$ac_ext
6876 CFLAGS=$ac_wine_try_cflags_saved
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6879 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6880 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6881 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6884 case $host_cpu in
6885 *i[3456789]86* | x86_64)
6886 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6888 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6889 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 ac_wine_try_cflags_saved=$CFLAGS
6893 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896 int main(int argc, char **argv) { return 0; }
6897 _ACEOF
6898 if ac_fn_c_try_link "$LINENO"; then :
6899 eval "$as_ac_var=yes"
6900 else
6901 eval "$as_ac_var=no"
6903 rm -f core conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6905 CFLAGS=$ac_wine_try_cflags_saved
6907 eval ac_res=\$$as_ac_var
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6909 $as_echo "$ac_res" >&6; }
6910 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6911 case $host_os in
6912 freebsd*) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6913 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6914 esac
6917 # Extract the first word of "prelink", so it can be a program name with args.
6918 set dummy prelink; ac_word=$2
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if test "${ac_cv_path_PRELINK+set}" = set; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 case $PRELINK in
6925 [\\/]* | ?:[\\/]*)
6926 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in /sbin /usr/sbin $PATH
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 break 2
6940 done
6941 done
6942 IFS=$as_save_IFS
6944 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6946 esac
6948 PRELINK=$ac_cv_path_PRELINK
6949 if test -n "$PRELINK"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6951 $as_echo "$PRELINK" >&6; }
6952 else
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6958 if test "x$PRELINK" = xfalse
6959 then
6960 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6963 esac
6965 else
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6967 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6968 if test "${ac_cv_c_dll_unixware+set}" = set; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 ac_wine_try_cflags_saved=$CFLAGS
6972 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6975 void myfunc() {}
6976 _ACEOF
6977 if ac_fn_c_try_link "$LINENO"; then :
6978 ac_cv_c_dll_unixware="yes"
6979 else
6980 ac_cv_c_dll_unixware="no"
6982 rm -f core conftest.err conftest.$ac_objext \
6983 conftest$ac_exeext conftest.$ac_ext
6984 CFLAGS=$ac_wine_try_cflags_saved
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6987 $as_echo "$ac_cv_c_dll_unixware" >&6; }
6988 if test "$ac_cv_c_dll_unixware" = "yes"
6989 then
6990 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6991 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6993 else
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
6995 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
6996 if test "${ac_cv_c_dll_hpux+set}" = set; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 ac_wine_try_cflags_saved=$CFLAGS
7000 CFLAGS="$CFLAGS -shared"
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7003 void myfunc() {}
7004 _ACEOF
7005 if ac_fn_c_try_link "$LINENO"; then :
7006 ac_cv_c_dll_hpux="yes"
7007 else
7008 ac_cv_c_dll_hpux="no"
7010 rm -f core conftest.err conftest.$ac_objext \
7011 conftest$ac_exeext conftest.$ac_ext
7012 CFLAGS=$ac_wine_try_cflags_saved
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7015 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7016 if test "$ac_cv_c_dll_hpux" = "yes"
7017 then
7018 LIBEXT="sl"
7019 DLLEXT=".sl"
7020 LDDLLFLAGS="-shared -fPIC"
7021 LDSHARED="\$(CC) -shared"
7026 esac
7028 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7029 enable_winequartz_drv=${enable_winequartz_drv:-no}
7031 if test "$LIBEXT" = "a"; then
7032 as_fn_error $? "could not find a way to build shared libraries.
7033 It is currently not possible to build Wine without shared library
7034 (.so) support to allow transparent switch between .so and .dll files.
7035 If you are using Linux, you will need a newer binutils.
7036 " "$LINENO" 5
7039 CROSSTEST_DISABLE=\#
7041 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7042 then
7043 case "$host_cpu" in
7044 i[3456789]86*)
7045 ac_prefix_list="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 " ;;
7046 x86_64)
7047 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 " ;;
7049 ac_prefix_list="" ;;
7050 esac
7051 for ac_prog in $ac_prefix_list
7053 # Extract the first word of "$ac_prog", so it can be a program name with args.
7054 set dummy $ac_prog; ac_word=$2
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056 $as_echo_n "checking for $ac_word... " >&6; }
7057 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 if test -n "$CROSSCC"; then
7061 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7062 else
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7070 ac_cv_prog_CROSSCC="$ac_prog"
7071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 break 2
7074 done
7075 done
7076 IFS=$as_save_IFS
7080 CROSSCC=$ac_cv_prog_CROSSCC
7081 if test -n "$CROSSCC"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7083 $as_echo "$CROSSCC" >&6; }
7084 else
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 $as_echo "no" >&6; }
7090 test -n "$CROSSCC" && break
7091 done
7092 test -n "$CROSSCC" || CROSSCC="false"
7094 if test "$CROSSCC" != "false"
7095 then
7096 ac_save_CC="$CC"
7097 CC="$CROSSCC"
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7099 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h. */
7104 main ()
7108 return 0;
7110 _ACEOF
7111 if ac_fn_c_try_compile "$LINENO"; then :
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7113 $as_echo "yes" >&6; }
7114 set x $CROSSCC
7115 shift
7116 target=""
7117 while test $# -ge 1
7119 case "$1" in
7120 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7121 esac
7122 shift
7123 done
7124 if test -n "$target"
7125 then
7126 CROSSTEST_DISABLE=""
7127 CROSSTARGET="$target"
7130 else
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135 CC="$ac_save_CC"
7140 if test "$ac_cv_header_pthread_h" = "yes"
7141 then
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7143 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7144 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
7145 $as_echo_n "(cached) " >&6
7146 else
7147 ac_check_lib_save_LIBS=$LIBS
7148 LIBS="-lpthread $LIBS"
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7152 /* Override any GCC internal prototype to avoid an error.
7153 Use char because int might match the return type of a GCC
7154 builtin and then its argument prototype would still apply. */
7155 #ifdef __cplusplus
7156 extern "C"
7157 #endif
7158 char pthread_create ();
7160 main ()
7162 return pthread_create ();
7164 return 0;
7166 _ACEOF
7167 if ac_fn_c_try_link "$LINENO"; then :
7168 ac_cv_lib_pthread_pthread_create=yes
7169 else
7170 ac_cv_lib_pthread_pthread_create=no
7172 rm -f core conftest.err conftest.$ac_objext \
7173 conftest$ac_exeext conftest.$ac_ext
7174 LIBS=$ac_check_lib_save_LIBS
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7177 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7178 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7179 LIBPTHREAD="-lpthread"
7184 if test "x$LIBPTHREAD" = "x"; then :
7185 case "x$with_pthread" in
7186 xno) ;;
7187 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7188 Wine cannot support threads without libpthread.
7189 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7190 esac
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7195 $as_echo_n "checking for X... " >&6; }
7198 # Check whether --with-x was given.
7199 if test "${with_x+set}" = set; then :
7200 withval=$with_x;
7203 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7204 if test "x$with_x" = xno; then
7205 # The user explicitly disabled X.
7206 have_x=disabled
7207 else
7208 case $x_includes,$x_libraries in #(
7209 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
7210 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 # One or both of the vars are not set, and there is no cached value.
7214 ac_x_includes=no ac_x_libraries=no
7215 rm -f -r conftest.dir
7216 if mkdir conftest.dir; then
7217 cd conftest.dir
7218 cat >Imakefile <<'_ACEOF'
7219 incroot:
7220 @echo incroot='${INCROOT}'
7221 usrlibdir:
7222 @echo usrlibdir='${USRLIBDIR}'
7223 libdir:
7224 @echo libdir='${LIBDIR}'
7225 _ACEOF
7226 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7227 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7228 for ac_var in incroot usrlibdir libdir; do
7229 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7230 done
7231 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7232 for ac_extension in a so sl dylib la dll; do
7233 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7234 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7235 ac_im_usrlibdir=$ac_im_libdir; break
7237 done
7238 # Screen out bogus values from the imake configuration. They are
7239 # bogus both because they are the default anyway, and because
7240 # using them would break gcc on systems where it needs fixed includes.
7241 case $ac_im_incroot in
7242 /usr/include) ac_x_includes= ;;
7243 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7244 esac
7245 case $ac_im_usrlibdir in
7246 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7247 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7248 esac
7250 cd ..
7251 rm -f -r conftest.dir
7254 # Standard set of common directories for X headers.
7255 # Check X11 before X11Rn because it is often a symlink to the current release.
7256 ac_x_header_dirs='
7257 /usr/X11/include
7258 /usr/X11R7/include
7259 /usr/X11R6/include
7260 /usr/X11R5/include
7261 /usr/X11R4/include
7263 /usr/include/X11
7264 /usr/include/X11R7
7265 /usr/include/X11R6
7266 /usr/include/X11R5
7267 /usr/include/X11R4
7269 /usr/local/X11/include
7270 /usr/local/X11R7/include
7271 /usr/local/X11R6/include
7272 /usr/local/X11R5/include
7273 /usr/local/X11R4/include
7275 /usr/local/include/X11
7276 /usr/local/include/X11R7
7277 /usr/local/include/X11R6
7278 /usr/local/include/X11R5
7279 /usr/local/include/X11R4
7281 /usr/X386/include
7282 /usr/x386/include
7283 /usr/XFree86/include/X11
7285 /usr/include
7286 /usr/local/include
7287 /usr/unsupported/include
7288 /usr/athena/include
7289 /usr/local/x11r5/include
7290 /usr/lpp/Xamples/include
7292 /usr/openwin/include
7293 /usr/openwin/share/include'
7295 if test "$ac_x_includes" = no; then
7296 # Guess where to find include files, by looking for Xlib.h.
7297 # First, try using that file with no special directory specified.
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7300 #include <X11/Xlib.h>
7301 _ACEOF
7302 if ac_fn_c_try_cpp "$LINENO"; then :
7303 # We can compile using X headers with no special include directory.
7304 ac_x_includes=
7305 else
7306 for ac_dir in $ac_x_header_dirs; do
7307 if test -r "$ac_dir/X11/Xlib.h"; then
7308 ac_x_includes=$ac_dir
7309 break
7311 done
7313 rm -f conftest.err conftest.i conftest.$ac_ext
7314 fi # $ac_x_includes = no
7316 if test "$ac_x_libraries" = no; then
7317 # Check for the libraries.
7318 # See if we find them without any special options.
7319 # Don't add to $LIBS permanently.
7320 ac_save_LIBS=$LIBS
7321 LIBS="-lX11 $LIBS"
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7324 #include <X11/Xlib.h>
7326 main ()
7328 XrmInitialize ()
7330 return 0;
7332 _ACEOF
7333 if ac_fn_c_try_link "$LINENO"; then :
7334 LIBS=$ac_save_LIBS
7335 # We can link X programs with no special library path.
7336 ac_x_libraries=
7337 else
7338 LIBS=$ac_save_LIBS
7339 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7341 # Don't even attempt the hair of trying to link an X program!
7342 for ac_extension in a so sl dylib la dll; do
7343 if test -r "$ac_dir/libX11.$ac_extension"; then
7344 ac_x_libraries=$ac_dir
7345 break 2
7347 done
7348 done
7350 rm -f core conftest.err conftest.$ac_objext \
7351 conftest$ac_exeext conftest.$ac_ext
7352 fi # $ac_x_libraries = no
7354 case $ac_x_includes,$ac_x_libraries in #(
7355 no,* | *,no | *\'*)
7356 # Didn't find X, or a directory has "'" in its name.
7357 ac_cv_have_x="have_x=no";; #(
7359 # Record where we found X for the cache.
7360 ac_cv_have_x="have_x=yes\
7361 ac_x_includes='$ac_x_includes'\
7362 ac_x_libraries='$ac_x_libraries'"
7363 esac
7365 ;; #(
7366 *) have_x=yes;;
7367 esac
7368 eval "$ac_cv_have_x"
7369 fi # $with_x != no
7371 if test "$have_x" != yes; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7373 $as_echo "$have_x" >&6; }
7374 no_x=yes
7375 else
7376 # If each of the values was on the command line, it overrides each guess.
7377 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7378 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7379 # Update the cache value to reflect the command line values.
7380 ac_cv_have_x="have_x=yes\
7381 ac_x_includes='$x_includes'\
7382 ac_x_libraries='$x_libraries'"
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7384 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7387 if test "$no_x" = yes; then
7388 # Not all programs may use this symbol, but it does not hurt to define it.
7390 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7392 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7393 else
7394 if test -n "$x_includes"; then
7395 X_CFLAGS="$X_CFLAGS -I$x_includes"
7398 # It would also be nice to do this for all -L options, not just this one.
7399 if test -n "$x_libraries"; then
7400 X_LIBS="$X_LIBS -L$x_libraries"
7401 # For Solaris; some versions of Sun CC require a space after -R and
7402 # others require no space. Words are not sufficient . . . .
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7404 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7405 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7406 ac_xsave_c_werror_flag=$ac_c_werror_flag
7407 ac_c_werror_flag=yes
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7412 main ()
7416 return 0;
7418 _ACEOF
7419 if ac_fn_c_try_link "$LINENO"; then :
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7422 X_LIBS="$X_LIBS -R$x_libraries"
7423 else
7424 LIBS="$ac_xsave_LIBS -R $x_libraries"
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7429 main ()
7433 return 0;
7435 _ACEOF
7436 if ac_fn_c_try_link "$LINENO"; then :
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7438 $as_echo "yes" >&6; }
7439 X_LIBS="$X_LIBS -R $x_libraries"
7440 else
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7442 $as_echo "neither works" >&6; }
7444 rm -f core conftest.err conftest.$ac_objext \
7445 conftest$ac_exeext conftest.$ac_ext
7447 rm -f core conftest.err conftest.$ac_objext \
7448 conftest$ac_exeext conftest.$ac_ext
7449 ac_c_werror_flag=$ac_xsave_c_werror_flag
7450 LIBS=$ac_xsave_LIBS
7453 # Check for system-dependent libraries X programs must link with.
7454 # Do this before checking for the system-independent R6 libraries
7455 # (-lICE), since we may need -lsocket or whatever for X linking.
7457 if test "$ISC" = yes; then
7458 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7459 else
7460 # Martyn Johnson says this is needed for Ultrix, if the X
7461 # libraries were built with DECnet support. And Karl Berry says
7462 # the Alpha needs dnet_stub (dnet does not exist).
7463 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7467 /* Override any GCC internal prototype to avoid an error.
7468 Use char because int might match the return type of a GCC
7469 builtin and then its argument prototype would still apply. */
7470 #ifdef __cplusplus
7471 extern "C"
7472 #endif
7473 char XOpenDisplay ();
7475 main ()
7477 return XOpenDisplay ();
7479 return 0;
7481 _ACEOF
7482 if ac_fn_c_try_link "$LINENO"; then :
7484 else
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7486 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7487 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 ac_check_lib_save_LIBS=$LIBS
7491 LIBS="-ldnet $LIBS"
7492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493 /* end confdefs.h. */
7495 /* Override any GCC internal prototype to avoid an error.
7496 Use char because int might match the return type of a GCC
7497 builtin and then its argument prototype would still apply. */
7498 #ifdef __cplusplus
7499 extern "C"
7500 #endif
7501 char dnet_ntoa ();
7503 main ()
7505 return dnet_ntoa ();
7507 return 0;
7509 _ACEOF
7510 if ac_fn_c_try_link "$LINENO"; then :
7511 ac_cv_lib_dnet_dnet_ntoa=yes
7512 else
7513 ac_cv_lib_dnet_dnet_ntoa=no
7515 rm -f core conftest.err conftest.$ac_objext \
7516 conftest$ac_exeext conftest.$ac_ext
7517 LIBS=$ac_check_lib_save_LIBS
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7520 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7521 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7522 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7525 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7527 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7528 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531 ac_check_lib_save_LIBS=$LIBS
7532 LIBS="-ldnet_stub $LIBS"
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h. */
7536 /* Override any GCC internal prototype to avoid an error.
7537 Use char because int might match the return type of a GCC
7538 builtin and then its argument prototype would still apply. */
7539 #ifdef __cplusplus
7540 extern "C"
7541 #endif
7542 char dnet_ntoa ();
7544 main ()
7546 return dnet_ntoa ();
7548 return 0;
7550 _ACEOF
7551 if ac_fn_c_try_link "$LINENO"; then :
7552 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7553 else
7554 ac_cv_lib_dnet_stub_dnet_ntoa=no
7556 rm -f core conftest.err conftest.$ac_objext \
7557 conftest$ac_exeext conftest.$ac_ext
7558 LIBS=$ac_check_lib_save_LIBS
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7561 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7562 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7563 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7568 rm -f core conftest.err conftest.$ac_objext \
7569 conftest$ac_exeext conftest.$ac_ext
7570 LIBS="$ac_xsave_LIBS"
7572 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7573 # to get the SysV transport functions.
7574 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7575 # needs -lnsl.
7576 # The nsl library prevents programs from opening the X display
7577 # on Irix 5.2, according to T.E. Dickey.
7578 # The functions gethostbyname, getservbyname, and inet_addr are
7579 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7580 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7581 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7585 if test $ac_cv_func_gethostbyname = no; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7587 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7588 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 ac_check_lib_save_LIBS=$LIBS
7592 LIBS="-lnsl $LIBS"
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7596 /* Override any GCC internal prototype to avoid an error.
7597 Use char because int might match the return type of a GCC
7598 builtin and then its argument prototype would still apply. */
7599 #ifdef __cplusplus
7600 extern "C"
7601 #endif
7602 char gethostbyname ();
7604 main ()
7606 return gethostbyname ();
7608 return 0;
7610 _ACEOF
7611 if ac_fn_c_try_link "$LINENO"; then :
7612 ac_cv_lib_nsl_gethostbyname=yes
7613 else
7614 ac_cv_lib_nsl_gethostbyname=no
7616 rm -f core conftest.err conftest.$ac_objext \
7617 conftest$ac_exeext conftest.$ac_ext
7618 LIBS=$ac_check_lib_save_LIBS
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7621 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7622 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7623 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7626 if test $ac_cv_lib_nsl_gethostbyname = no; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7628 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7629 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 ac_check_lib_save_LIBS=$LIBS
7633 LIBS="-lbsd $LIBS"
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7637 /* Override any GCC internal prototype to avoid an error.
7638 Use char because int might match the return type of a GCC
7639 builtin and then its argument prototype would still apply. */
7640 #ifdef __cplusplus
7641 extern "C"
7642 #endif
7643 char gethostbyname ();
7645 main ()
7647 return gethostbyname ();
7649 return 0;
7651 _ACEOF
7652 if ac_fn_c_try_link "$LINENO"; then :
7653 ac_cv_lib_bsd_gethostbyname=yes
7654 else
7655 ac_cv_lib_bsd_gethostbyname=no
7657 rm -f core conftest.err conftest.$ac_objext \
7658 conftest$ac_exeext conftest.$ac_ext
7659 LIBS=$ac_check_lib_save_LIBS
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7662 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7663 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7664 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7670 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7671 # socket/setsockopt and other routines are undefined under SCO ODT
7672 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7673 # on later versions), says Simon Leinen: it contains gethostby*
7674 # variants that don't use the name server (or something). -lsocket
7675 # must be given before -lnsl if both are needed. We assume that
7676 # if connect needs -lnsl, so does gethostbyname.
7677 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7678 if test "x$ac_cv_func_connect" = x""yes; then :
7682 if test $ac_cv_func_connect = no; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7684 $as_echo_n "checking for connect in -lsocket... " >&6; }
7685 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688 ac_check_lib_save_LIBS=$LIBS
7689 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h. */
7693 /* Override any GCC internal prototype to avoid an error.
7694 Use char because int might match the return type of a GCC
7695 builtin and then its argument prototype would still apply. */
7696 #ifdef __cplusplus
7697 extern "C"
7698 #endif
7699 char connect ();
7701 main ()
7703 return connect ();
7705 return 0;
7707 _ACEOF
7708 if ac_fn_c_try_link "$LINENO"; then :
7709 ac_cv_lib_socket_connect=yes
7710 else
7711 ac_cv_lib_socket_connect=no
7713 rm -f core conftest.err conftest.$ac_objext \
7714 conftest$ac_exeext conftest.$ac_ext
7715 LIBS=$ac_check_lib_save_LIBS
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7718 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7719 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7720 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7725 # Guillermo Gomez says -lposix is necessary on A/UX.
7726 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7727 if test "x$ac_cv_func_remove" = x""yes; then :
7731 if test $ac_cv_func_remove = no; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7733 $as_echo_n "checking for remove in -lposix... " >&6; }
7734 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 ac_check_lib_save_LIBS=$LIBS
7738 LIBS="-lposix $LIBS"
7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h. */
7742 /* Override any GCC internal prototype to avoid an error.
7743 Use char because int might match the return type of a GCC
7744 builtin and then its argument prototype would still apply. */
7745 #ifdef __cplusplus
7746 extern "C"
7747 #endif
7748 char remove ();
7750 main ()
7752 return remove ();
7754 return 0;
7756 _ACEOF
7757 if ac_fn_c_try_link "$LINENO"; then :
7758 ac_cv_lib_posix_remove=yes
7759 else
7760 ac_cv_lib_posix_remove=no
7762 rm -f core conftest.err conftest.$ac_objext \
7763 conftest$ac_exeext conftest.$ac_ext
7764 LIBS=$ac_check_lib_save_LIBS
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7767 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7768 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7769 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7774 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7775 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7776 if test "x$ac_cv_func_shmat" = x""yes; then :
7780 if test $ac_cv_func_shmat = no; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7782 $as_echo_n "checking for shmat in -lipc... " >&6; }
7783 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7784 $as_echo_n "(cached) " >&6
7785 else
7786 ac_check_lib_save_LIBS=$LIBS
7787 LIBS="-lipc $LIBS"
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7791 /* Override any GCC internal prototype to avoid an error.
7792 Use char because int might match the return type of a GCC
7793 builtin and then its argument prototype would still apply. */
7794 #ifdef __cplusplus
7795 extern "C"
7796 #endif
7797 char shmat ();
7799 main ()
7801 return shmat ();
7803 return 0;
7805 _ACEOF
7806 if ac_fn_c_try_link "$LINENO"; then :
7807 ac_cv_lib_ipc_shmat=yes
7808 else
7809 ac_cv_lib_ipc_shmat=no
7811 rm -f core conftest.err conftest.$ac_objext \
7812 conftest$ac_exeext conftest.$ac_ext
7813 LIBS=$ac_check_lib_save_LIBS
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7816 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7817 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7818 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7824 # Check for libraries that X11R6 Xt/Xaw programs need.
7825 ac_save_LDFLAGS=$LDFLAGS
7826 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7827 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7828 # check for ICE first), but we must link in the order -lSM -lICE or
7829 # we get undefined symbols. So assume we have SM if we have ICE.
7830 # These have to be linked with before -lX11, unlike the other
7831 # libraries we check for below, so use a different variable.
7832 # John Interrante, Karl Berry
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7834 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7835 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 ac_check_lib_save_LIBS=$LIBS
7839 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h. */
7843 /* Override any GCC internal prototype to avoid an error.
7844 Use char because int might match the return type of a GCC
7845 builtin and then its argument prototype would still apply. */
7846 #ifdef __cplusplus
7847 extern "C"
7848 #endif
7849 char IceConnectionNumber ();
7851 main ()
7853 return IceConnectionNumber ();
7855 return 0;
7857 _ACEOF
7858 if ac_fn_c_try_link "$LINENO"; then :
7859 ac_cv_lib_ICE_IceConnectionNumber=yes
7860 else
7861 ac_cv_lib_ICE_IceConnectionNumber=no
7863 rm -f core conftest.err conftest.$ac_objext \
7864 conftest$ac_exeext conftest.$ac_ext
7865 LIBS=$ac_check_lib_save_LIBS
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7868 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7869 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7870 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7873 LDFLAGS=$ac_save_LDFLAGS
7878 if test "$have_x" = "yes"
7879 then
7880 XLIB="-lX11"
7881 ac_save_CPPFLAGS="$CPPFLAGS"
7882 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7885 $as_echo_n "checking for -lX11... " >&6; }
7886 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 ac_check_soname_save_LIBS=$LIBS
7890 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7894 /* Override any GCC internal prototype to avoid an error.
7895 Use char because int might match the return type of a GCC
7896 builtin and then its argument prototype would still apply. */
7897 #ifdef __cplusplus
7898 extern "C"
7899 #endif
7900 char XCreateWindow ();
7902 main ()
7904 return XCreateWindow ();
7906 return 0;
7908 _ACEOF
7909 if ac_fn_c_try_link "$LINENO"; then :
7910 case "$LIBEXT" in
7911 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7912 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'` ;;
7913 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7914 esac
7916 rm -f core conftest.err conftest.$ac_objext \
7917 conftest$ac_exeext conftest.$ac_ext
7918 LIBS=$ac_check_soname_save_LIBS
7920 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7922 $as_echo "not found" >&6; }
7924 else
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7926 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7928 cat >>confdefs.h <<_ACEOF
7929 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7930 _ACEOF
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7935 $as_echo_n "checking for -lXext... " >&6; }
7936 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7937 $as_echo_n "(cached) " >&6
7938 else
7939 ac_check_soname_save_LIBS=$LIBS
7940 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7944 /* Override any GCC internal prototype to avoid an error.
7945 Use char because int might match the return type of a GCC
7946 builtin and then its argument prototype would still apply. */
7947 #ifdef __cplusplus
7948 extern "C"
7949 #endif
7950 char XextCreateExtension ();
7952 main ()
7954 return XextCreateExtension ();
7956 return 0;
7958 _ACEOF
7959 if ac_fn_c_try_link "$LINENO"; then :
7960 case "$LIBEXT" in
7961 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7962 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'` ;;
7963 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7964 esac
7966 rm -f core conftest.err conftest.$ac_objext \
7967 conftest$ac_exeext conftest.$ac_ext
7968 LIBS=$ac_check_soname_save_LIBS
7970 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7972 $as_echo "not found" >&6; }
7974 else
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7976 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7978 cat >>confdefs.h <<_ACEOF
7979 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7980 _ACEOF
7982 XLIB="-lXext $XLIB"
7985 for ac_header in X11/Xlib.h \
7986 X11/XKBlib.h \
7987 X11/Xutil.h \
7988 X11/Xcursor/Xcursor.h \
7989 X11/extensions/shape.h \
7990 X11/extensions/XInput.h \
7991 X11/extensions/XShm.h \
7992 X11/extensions/Xcomposite.h \
7993 X11/extensions/Xinerama.h \
7994 X11/extensions/Xrandr.h \
7995 X11/extensions/Xrender.h \
7996 X11/extensions/xf86vmode.h \
7997 X11/extensions/xf86vmproto.h
7998 do :
7999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8000 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8001 # include <X11/Xlib.h>
8002 #endif
8003 #ifdef HAVE_X11_XUTIL_H
8004 # include <X11/Xutil.h>
8005 #endif
8007 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8008 cat >>confdefs.h <<_ACEOF
8009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8010 _ACEOF
8014 done
8017 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8018 then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8020 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8021 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
8022 $as_echo_n "(cached) " >&6
8023 else
8024 ac_check_lib_save_LIBS=$LIBS
8025 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027 /* end confdefs.h. */
8029 /* Override any GCC internal prototype to avoid an error.
8030 Use char because int might match the return type of a GCC
8031 builtin and then its argument prototype would still apply. */
8032 #ifdef __cplusplus
8033 extern "C"
8034 #endif
8035 char XkbQueryExtension ();
8037 main ()
8039 return XkbQueryExtension ();
8041 return 0;
8043 _ACEOF
8044 if ac_fn_c_try_link "$LINENO"; then :
8045 ac_cv_lib_X11_XkbQueryExtension=yes
8046 else
8047 ac_cv_lib_X11_XkbQueryExtension=no
8049 rm -f core conftest.err conftest.$ac_objext \
8050 conftest$ac_exeext conftest.$ac_ext
8051 LIBS=$ac_check_lib_save_LIBS
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8054 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8055 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
8057 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8063 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8064 then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8066 $as_echo_n "checking for -lXcursor... " >&6; }
8067 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 ac_check_soname_save_LIBS=$LIBS
8071 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8075 /* Override any GCC internal prototype to avoid an error.
8076 Use char because int might match the return type of a GCC
8077 builtin and then its argument prototype would still apply. */
8078 #ifdef __cplusplus
8079 extern "C"
8080 #endif
8081 char XcursorImageLoadCursor ();
8083 main ()
8085 return XcursorImageLoadCursor ();
8087 return 0;
8089 _ACEOF
8090 if ac_fn_c_try_link "$LINENO"; then :
8091 case "$LIBEXT" in
8092 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8093 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'` ;;
8094 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8095 esac
8097 rm -f core conftest.err conftest.$ac_objext \
8098 conftest$ac_exeext conftest.$ac_ext
8099 LIBS=$ac_check_soname_save_LIBS
8101 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8103 $as_echo "not found" >&6; }
8105 else
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8107 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8109 cat >>confdefs.h <<_ACEOF
8110 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8111 _ACEOF
8116 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8117 case "x$with_xcursor" in
8118 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8119 xno) ;;
8120 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8121 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8122 esac
8125 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8126 then
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8128 $as_echo_n "checking for -lXi... " >&6; }
8129 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
8130 $as_echo_n "(cached) " >&6
8131 else
8132 ac_check_soname_save_LIBS=$LIBS
8133 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8137 /* Override any GCC internal prototype to avoid an error.
8138 Use char because int might match the return type of a GCC
8139 builtin and then its argument prototype would still apply. */
8140 #ifdef __cplusplus
8141 extern "C"
8142 #endif
8143 char XOpenDevice ();
8145 main ()
8147 return XOpenDevice ();
8149 return 0;
8151 _ACEOF
8152 if ac_fn_c_try_link "$LINENO"; then :
8153 case "$LIBEXT" in
8154 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8155 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'` ;;
8156 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8157 esac
8159 rm -f core conftest.err conftest.$ac_objext \
8160 conftest$ac_exeext conftest.$ac_ext
8161 LIBS=$ac_check_soname_save_LIBS
8163 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8165 $as_echo "not found" >&6; }
8167 else
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8169 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8171 cat >>confdefs.h <<_ACEOF
8172 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8173 _ACEOF
8178 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8179 case "x$with_xinput" in
8180 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8181 xno) ;;
8182 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8183 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8184 esac
8187 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8188 then
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8190 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8191 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8192 $as_echo_n "(cached) " >&6
8193 else
8194 ac_check_lib_save_LIBS=$LIBS
8195 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8199 /* Override any GCC internal prototype to avoid an error.
8200 Use char because int might match the return type of a GCC
8201 builtin and then its argument prototype would still apply. */
8202 #ifdef __cplusplus
8203 extern "C"
8204 #endif
8205 char XShmQueryExtension ();
8207 main ()
8209 return XShmQueryExtension ();
8211 return 0;
8213 _ACEOF
8214 if ac_fn_c_try_link "$LINENO"; then :
8215 ac_cv_lib_Xext_XShmQueryExtension=yes
8216 else
8217 ac_cv_lib_Xext_XShmQueryExtension=no
8219 rm -f core conftest.err conftest.$ac_objext \
8220 conftest$ac_exeext conftest.$ac_ext
8221 LIBS=$ac_check_lib_save_LIBS
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8224 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8225 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8227 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8232 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8233 case "x$with_xshm" in
8234 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8235 xno) ;;
8236 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8237 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8238 esac
8241 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8242 then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8244 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8245 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 ac_check_lib_save_LIBS=$LIBS
8249 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8253 /* Override any GCC internal prototype to avoid an error.
8254 Use char because int might match the return type of a GCC
8255 builtin and then its argument prototype would still apply. */
8256 #ifdef __cplusplus
8257 extern "C"
8258 #endif
8259 char XShapeQueryExtension ();
8261 main ()
8263 return XShapeQueryExtension ();
8265 return 0;
8267 _ACEOF
8268 if ac_fn_c_try_link "$LINENO"; then :
8269 ac_cv_lib_Xext_XShapeQueryExtension=yes
8270 else
8271 ac_cv_lib_Xext_XShapeQueryExtension=no
8273 rm -f core conftest.err conftest.$ac_objext \
8274 conftest$ac_exeext conftest.$ac_ext
8275 LIBS=$ac_check_lib_save_LIBS
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8278 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8279 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8281 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8286 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8287 case "x$with_xshape" in
8288 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8289 xno) ;;
8290 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8291 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8292 esac
8295 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8296 then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8298 $as_echo_n "checking for -lXxf86vm... " >&6; }
8299 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 ac_check_soname_save_LIBS=$LIBS
8303 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8307 /* Override any GCC internal prototype to avoid an error.
8308 Use char because int might match the return type of a GCC
8309 builtin and then its argument prototype would still apply. */
8310 #ifdef __cplusplus
8311 extern "C"
8312 #endif
8313 char XF86VidModeQueryExtension ();
8315 main ()
8317 return XF86VidModeQueryExtension ();
8319 return 0;
8321 _ACEOF
8322 if ac_fn_c_try_link "$LINENO"; then :
8323 case "$LIBEXT" in
8324 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8325 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'` ;;
8326 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8327 esac
8329 rm -f core conftest.err conftest.$ac_objext \
8330 conftest$ac_exeext conftest.$ac_ext
8331 LIBS=$ac_check_soname_save_LIBS
8333 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8335 $as_echo "not found" >&6; }
8337 else
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8339 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8341 cat >>confdefs.h <<_ACEOF
8342 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8343 _ACEOF
8348 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8349 case "x$with_xxf86vm" in
8350 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8351 xno) ;;
8352 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8353 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8354 esac
8357 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"
8358 then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8360 $as_echo_n "checking for -lXrender... " >&6; }
8361 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8362 $as_echo_n "(cached) " >&6
8363 else
8364 ac_check_soname_save_LIBS=$LIBS
8365 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367 /* end confdefs.h. */
8369 /* Override any GCC internal prototype to avoid an error.
8370 Use char because int might match the return type of a GCC
8371 builtin and then its argument prototype would still apply. */
8372 #ifdef __cplusplus
8373 extern "C"
8374 #endif
8375 char XRenderQueryExtension ();
8377 main ()
8379 return XRenderQueryExtension ();
8381 return 0;
8383 _ACEOF
8384 if ac_fn_c_try_link "$LINENO"; then :
8385 case "$LIBEXT" in
8386 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8387 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'` ;;
8388 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8389 esac
8391 rm -f core conftest.err conftest.$ac_objext \
8392 conftest$ac_exeext conftest.$ac_ext
8393 LIBS=$ac_check_soname_save_LIBS
8395 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8397 $as_echo "not found" >&6; }
8399 else
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8401 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8403 cat >>confdefs.h <<_ACEOF
8404 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8405 _ACEOF
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8408 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8409 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 ac_check_lib_save_LIBS=$LIBS
8413 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h. */
8417 /* Override any GCC internal prototype to avoid an error.
8418 Use char because int might match the return type of a GCC
8419 builtin and then its argument prototype would still apply. */
8420 #ifdef __cplusplus
8421 extern "C"
8422 #endif
8423 char XRenderSetPictureTransform ();
8425 main ()
8427 return XRenderSetPictureTransform ();
8429 return 0;
8431 _ACEOF
8432 if ac_fn_c_try_link "$LINENO"; then :
8433 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8434 else
8435 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8437 rm -f core conftest.err conftest.$ac_objext \
8438 conftest$ac_exeext conftest.$ac_ext
8439 LIBS=$ac_check_lib_save_LIBS
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8442 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8443 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8445 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8452 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8453 case "x$with_xrender" in
8454 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8455 xno) ;;
8456 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8457 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8458 esac
8461 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8462 then
8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h. */
8465 #include <X11/Xlib.h>
8466 #include <X11/extensions/Xrandr.h>
8468 main ()
8470 static typeof(XRRSetScreenConfigAndRate) * func;
8472 return 0;
8474 _ACEOF
8475 if ac_fn_c_try_compile "$LINENO"; then :
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8477 $as_echo_n "checking for -lXrandr... " >&6; }
8478 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8479 $as_echo_n "(cached) " >&6
8480 else
8481 ac_check_soname_save_LIBS=$LIBS
8482 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8486 /* Override any GCC internal prototype to avoid an error.
8487 Use char because int might match the return type of a GCC
8488 builtin and then its argument prototype would still apply. */
8489 #ifdef __cplusplus
8490 extern "C"
8491 #endif
8492 char XRRQueryExtension ();
8494 main ()
8496 return XRRQueryExtension ();
8498 return 0;
8500 _ACEOF
8501 if ac_fn_c_try_link "$LINENO"; then :
8502 case "$LIBEXT" in
8503 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8504 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'` ;;
8505 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8506 esac
8508 rm -f core conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
8510 LIBS=$ac_check_soname_save_LIBS
8512 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8514 $as_echo "not found" >&6; }
8516 else
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8518 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8520 cat >>confdefs.h <<_ACEOF
8521 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8522 _ACEOF
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8530 case "x$with_xrandr" in
8531 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8532 xno) ;;
8533 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8534 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8535 esac
8538 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8539 then
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8542 #include <X11/Xlib.h>
8543 #include <X11/extensions/Xinerama.h>
8545 main ()
8547 static typeof(XineramaQueryScreens) * func;
8549 return 0;
8551 _ACEOF
8552 if ac_fn_c_try_compile "$LINENO"; then :
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8554 $as_echo_n "checking for -lXinerama... " >&6; }
8555 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 ac_check_soname_save_LIBS=$LIBS
8559 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561 /* end confdefs.h. */
8563 /* Override any GCC internal prototype to avoid an error.
8564 Use char because int might match the return type of a GCC
8565 builtin and then its argument prototype would still apply. */
8566 #ifdef __cplusplus
8567 extern "C"
8568 #endif
8569 char XineramaQueryScreens ();
8571 main ()
8573 return XineramaQueryScreens ();
8575 return 0;
8577 _ACEOF
8578 if ac_fn_c_try_link "$LINENO"; then :
8579 case "$LIBEXT" in
8580 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8581 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'` ;;
8582 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8583 esac
8585 rm -f core conftest.err conftest.$ac_objext \
8586 conftest$ac_exeext conftest.$ac_ext
8587 LIBS=$ac_check_soname_save_LIBS
8589 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8591 $as_echo "not found" >&6; }
8593 else
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8595 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8597 cat >>confdefs.h <<_ACEOF
8598 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8599 _ACEOF
8604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8606 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8607 case "x$with_xinerama" in
8608 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8609 xno) ;;
8610 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8611 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8612 esac
8615 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8616 then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8618 $as_echo_n "checking for -lXcomposite... " >&6; }
8619 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 ac_check_soname_save_LIBS=$LIBS
8623 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8627 /* Override any GCC internal prototype to avoid an error.
8628 Use char because int might match the return type of a GCC
8629 builtin and then its argument prototype would still apply. */
8630 #ifdef __cplusplus
8631 extern "C"
8632 #endif
8633 char XCompositeRedirectWindow ();
8635 main ()
8637 return XCompositeRedirectWindow ();
8639 return 0;
8641 _ACEOF
8642 if ac_fn_c_try_link "$LINENO"; then :
8643 case "$LIBEXT" in
8644 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8645 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'` ;;
8646 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8647 esac
8649 rm -f core conftest.err conftest.$ac_objext \
8650 conftest$ac_exeext conftest.$ac_ext
8651 LIBS=$ac_check_soname_save_LIBS
8653 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8655 $as_echo "not found" >&6; }
8657 else
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8659 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8661 cat >>confdefs.h <<_ACEOF
8662 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8663 _ACEOF
8668 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8669 case "x$with_xcomposite" in
8670 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8671 xno) ;;
8672 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8673 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8674 esac
8677 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8678 #include <X11/Xlib.h>
8679 #endif
8681 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8683 cat >>confdefs.h <<_ACEOF
8684 #define HAVE_XICCALLBACK_CALLBACK 1
8685 _ACEOF
8692 opengl_msg=""
8693 if test "x$with_opengl" != "xno"
8694 then
8695 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8696 do :
8697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8698 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8699 # include <GL/glx.h>
8700 #endif
8702 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8703 cat >>confdefs.h <<_ACEOF
8704 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8705 _ACEOF
8709 done
8711 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8712 then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8714 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8715 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8716 $as_echo_n "(cached) " >&6
8717 else
8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8720 #include <GL/gl.h>
8722 main ()
8724 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8726 return 0;
8728 _ACEOF
8729 if ac_fn_c_try_compile "$LINENO"; then :
8730 wine_cv_opengl_header_version_OK="yes"
8731 else
8732 wine_cv_opengl_header_version_OK="no"
8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8737 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8739 if test "$wine_cv_opengl_header_version_OK" = "yes"
8740 then
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8742 $as_echo_n "checking for -lGL... " >&6; }
8743 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8744 $as_echo_n "(cached) " >&6
8745 else
8746 ac_check_soname_save_LIBS=$LIBS
8747 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8751 /* Override any GCC internal prototype to avoid an error.
8752 Use char because int might match the return type of a GCC
8753 builtin and then its argument prototype would still apply. */
8754 #ifdef __cplusplus
8755 extern "C"
8756 #endif
8757 char glXCreateContext ();
8759 main ()
8761 return glXCreateContext ();
8763 return 0;
8765 _ACEOF
8766 if ac_fn_c_try_link "$LINENO"; then :
8767 case "$LIBEXT" in
8768 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8769 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'` ;;
8770 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8771 esac
8773 rm -f core conftest.err conftest.$ac_objext \
8774 conftest$ac_exeext conftest.$ac_ext
8775 LIBS=$ac_check_soname_save_LIBS
8777 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8779 $as_echo "not found" >&6; }
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8781 $as_echo_n "checking for -lGL... " >&6; }
8782 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 ac_check_soname_save_LIBS=$LIBS
8786 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"
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8790 /* Override any GCC internal prototype to avoid an error.
8791 Use char because int might match the return type of a GCC
8792 builtin and then its argument prototype would still apply. */
8793 #ifdef __cplusplus
8794 extern "C"
8795 #endif
8796 char glXCreateContext ();
8798 main ()
8800 return glXCreateContext ();
8802 return 0;
8804 _ACEOF
8805 if ac_fn_c_try_link "$LINENO"; then :
8806 case "$LIBEXT" in
8807 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8808 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'` ;;
8809 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8810 esac
8812 rm -f core conftest.err conftest.$ac_objext \
8813 conftest$ac_exeext conftest.$ac_ext
8814 LIBS=$ac_check_soname_save_LIBS
8816 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8818 $as_echo "not found" >&6; }
8819 if test -f /usr/X11R6/lib/libGL.a
8820 then
8821 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8822 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8823 else
8824 opengl_msg="No OpenGL library found on this system."
8826 else
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8828 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8830 cat >>confdefs.h <<_ACEOF
8831 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8832 _ACEOF
8834 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"
8836 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8839 else
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8841 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8843 cat >>confdefs.h <<_ACEOF
8844 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8845 _ACEOF
8847 OPENGL_LIBS="-lGL"
8849 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8852 if test "$ac_cv_header_GL_glu_h" = "yes"
8853 then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8855 $as_echo_n "checking for -lGLU... " >&6; }
8856 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8857 $as_echo_n "(cached) " >&6
8858 else
8859 ac_check_soname_save_LIBS=$LIBS
8860 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8864 /* Override any GCC internal prototype to avoid an error.
8865 Use char because int might match the return type of a GCC
8866 builtin and then its argument prototype would still apply. */
8867 #ifdef __cplusplus
8868 extern "C"
8869 #endif
8870 char gluLookAt ();
8872 main ()
8874 return gluLookAt ();
8876 return 0;
8878 _ACEOF
8879 if ac_fn_c_try_link "$LINENO"; then :
8880 case "$LIBEXT" in
8881 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8882 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'` ;;
8883 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8884 esac
8886 rm -f core conftest.err conftest.$ac_objext \
8887 conftest$ac_exeext conftest.$ac_ext
8888 LIBS=$ac_check_soname_save_LIBS
8890 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8892 $as_echo "not found" >&6; }
8894 else
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8896 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8898 cat >>confdefs.h <<_ACEOF
8899 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8900 _ACEOF
8905 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8906 case "x$with_glu" in
8907 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8908 xno) ;;
8909 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8910 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8911 esac
8913 else
8914 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8916 else
8917 opengl_msg="OpenGL development headers not found."
8919 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8920 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8921 else
8922 enable_opengl32=${enable_opengl32:-no}
8923 enable_glu32=${enable_glu32:-no}
8925 if test -n "$opengl_msg"; then :
8926 case "x$with_opengl" in
8927 x) as_fn_append wine_warnings "|$opengl_msg
8928 OpenGL and Direct3D won't be supported." ;;
8929 xno) ;;
8930 *) as_fn_error $? "$opengl_msg
8931 OpenGL and Direct3D won't be supported.
8932 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8933 esac
8936 NASLIBS=""
8938 for ac_header in audio/audiolib.h
8939 do :
8940 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8941 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8942 cat >>confdefs.h <<_ACEOF
8943 #define HAVE_AUDIO_AUDIOLIB_H 1
8944 _ACEOF
8945 for ac_header in audio/soundlib.h
8946 do :
8947 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8949 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8950 cat >>confdefs.h <<_ACEOF
8951 #define HAVE_AUDIO_SOUNDLIB_H 1
8952 _ACEOF
8956 done
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8959 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8960 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
8961 $as_echo_n "(cached) " >&6
8962 else
8963 ac_check_lib_save_LIBS=$LIBS
8964 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h. */
8968 /* Override any GCC internal prototype to avoid an error.
8969 Use char because int might match the return type of a GCC
8970 builtin and then its argument prototype would still apply. */
8971 #ifdef __cplusplus
8972 extern "C"
8973 #endif
8974 char AuCreateFlow ();
8976 main ()
8978 return AuCreateFlow ();
8980 return 0;
8982 _ACEOF
8983 if ac_fn_c_try_link "$LINENO"; then :
8984 ac_cv_lib_audio_AuCreateFlow=yes
8985 else
8986 ac_cv_lib_audio_AuCreateFlow=no
8988 rm -f core conftest.err conftest.$ac_objext \
8989 conftest$ac_exeext conftest.$ac_ext
8990 LIBS=$ac_check_lib_save_LIBS
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8993 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
8994 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
8996 $as_echo "#define HAVE_NAS 1" >>confdefs.h
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
8999 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
9000 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
9001 $as_echo_n "(cached) " >&6
9002 else
9003 ac_check_lib_save_LIBS=$LIBS
9004 LIBS="-lXau $X_LIBS $LIBS"
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9008 /* Override any GCC internal prototype to avoid an error.
9009 Use char because int might match the return type of a GCC
9010 builtin and then its argument prototype would still apply. */
9011 #ifdef __cplusplus
9012 extern "C"
9013 #endif
9014 char XauGetBestAuthByAddr ();
9016 main ()
9018 return XauGetBestAuthByAddr ();
9020 return 0;
9022 _ACEOF
9023 if ac_fn_c_try_link "$LINENO"; then :
9024 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9025 else
9026 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
9028 rm -f core conftest.err conftest.$ac_objext \
9029 conftest$ac_exeext conftest.$ac_ext
9030 LIBS=$ac_check_lib_save_LIBS
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
9033 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
9034 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
9035 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9036 else
9037 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9045 done
9048 CPPFLAGS="$ac_save_CPPFLAGS"
9049 else
9050 XLIB=""
9051 X_CFLAGS=""
9052 X_LIBS=""
9053 enable_winex11_drv=${enable_winex11_drv:-no}
9054 enable_opengl32=${enable_opengl32:-no}
9055 enable_glu32=${enable_glu32:-no}
9057 if test "x$XLIB" = "x"; then :
9058 case "x$with_x" in
9059 xno) ;;
9060 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9061 without X support, which probably isn't what you want. You will need
9062 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9063 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9064 esac
9067 if test "$ac_cv_header_CL_opencl_h" = "yes"
9068 then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9070 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9071 if test "${ac_cv_lib_OpenCL_clGetPlatformInfo+set}" = set; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 ac_check_lib_save_LIBS=$LIBS
9075 LIBS="-lOpenCL $LIBS"
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9079 /* Override any GCC internal prototype to avoid an error.
9080 Use char because int might match the return type of a GCC
9081 builtin and then its argument prototype would still apply. */
9082 #ifdef __cplusplus
9083 extern "C"
9084 #endif
9085 char clGetPlatformInfo ();
9087 main ()
9089 return clGetPlatformInfo ();
9091 return 0;
9093 _ACEOF
9094 if ac_fn_c_try_link "$LINENO"; then :
9095 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9096 else
9097 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9099 rm -f core conftest.err conftest.$ac_objext \
9100 conftest$ac_exeext conftest.$ac_ext
9101 LIBS=$ac_check_lib_save_LIBS
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9104 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9105 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = x""yes; then :
9106 LIBOPENCL="-lOpenCL"
9111 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9112 case "x$with_opencl" in
9113 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9114 xno) ;;
9115 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9116 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9117 esac
9119 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9122 XML2LIBS=""
9124 XML2INCL=""
9126 XSLTINCL=""
9128 if test "x$with_xml" != "xno"
9129 then
9130 ac_save_CPPFLAGS="$CPPFLAGS"
9131 if test "$PKG_CONFIG" != "false"
9132 then
9133 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9134 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9135 else
9136 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9137 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9139 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9140 for ac_header in libxml/parser.h
9141 do :
9142 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9143 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
9144 cat >>confdefs.h <<_ACEOF
9145 #define HAVE_LIBXML_PARSER_H 1
9146 _ACEOF
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9148 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9149 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
9150 $as_echo_n "(cached) " >&6
9151 else
9152 ac_check_lib_save_LIBS=$LIBS
9153 LIBS="-lxml2 $ac_xml_libs $LIBS"
9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h. */
9157 /* Override any GCC internal prototype to avoid an error.
9158 Use char because int might match the return type of a GCC
9159 builtin and then its argument prototype would still apply. */
9160 #ifdef __cplusplus
9161 extern "C"
9162 #endif
9163 char xmlParseMemory ();
9165 main ()
9167 return xmlParseMemory ();
9169 return 0;
9171 _ACEOF
9172 if ac_fn_c_try_link "$LINENO"; then :
9173 ac_cv_lib_xml2_xmlParseMemory=yes
9174 else
9175 ac_cv_lib_xml2_xmlParseMemory=no
9177 rm -f core conftest.err conftest.$ac_objext \
9178 conftest$ac_exeext conftest.$ac_ext
9179 LIBS=$ac_check_lib_save_LIBS
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9182 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9183 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
9185 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9187 XML2LIBS="$ac_xml_libs"
9188 XML2INCL="$ac_xml_cflags"
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9192 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9193 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
9194 $as_echo_n "(cached) " >&6
9195 else
9196 ac_check_lib_save_LIBS=$LIBS
9197 LIBS="-lxml2 $ac_xml_libs $LIBS"
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9201 /* Override any GCC internal prototype to avoid an error.
9202 Use char because int might match the return type of a GCC
9203 builtin and then its argument prototype would still apply. */
9204 #ifdef __cplusplus
9205 extern "C"
9206 #endif
9207 char xmlReadMemory ();
9209 main ()
9211 return xmlReadMemory ();
9213 return 0;
9215 _ACEOF
9216 if ac_fn_c_try_link "$LINENO"; then :
9217 ac_cv_lib_xml2_xmlReadMemory=yes
9218 else
9219 ac_cv_lib_xml2_xmlReadMemory=no
9221 rm -f core conftest.err conftest.$ac_objext \
9222 conftest$ac_exeext conftest.$ac_ext
9223 LIBS=$ac_check_lib_save_LIBS
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9226 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9227 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9229 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9234 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9235 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 ac_check_lib_save_LIBS=$LIBS
9239 LIBS="-lxml2 $ac_xml_libs $LIBS"
9240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h. */
9243 /* Override any GCC internal prototype to avoid an error.
9244 Use char because int might match the return type of a GCC
9245 builtin and then its argument prototype would still apply. */
9246 #ifdef __cplusplus
9247 extern "C"
9248 #endif
9249 char xmlNewDocPI ();
9251 main ()
9253 return xmlNewDocPI ();
9255 return 0;
9257 _ACEOF
9258 if ac_fn_c_try_link "$LINENO"; then :
9259 ac_cv_lib_xml2_xmlNewDocPI=yes
9260 else
9261 ac_cv_lib_xml2_xmlNewDocPI=no
9263 rm -f core conftest.err conftest.$ac_objext \
9264 conftest$ac_exeext conftest.$ac_ext
9265 LIBS=$ac_check_lib_save_LIBS
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9268 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9269 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9271 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9276 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9277 if test "${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+set}" = set; then :
9278 $as_echo_n "(cached) " >&6
9279 else
9280 ac_check_lib_save_LIBS=$LIBS
9281 LIBS="-lxml2 $ac_xml_libs $LIBS"
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9285 /* Override any GCC internal prototype to avoid an error.
9286 Use char because int might match the return type of a GCC
9287 builtin and then its argument prototype would still apply. */
9288 #ifdef __cplusplus
9289 extern "C"
9290 #endif
9291 char xmlSchemaSetParserStructuredErrors ();
9293 main ()
9295 return xmlSchemaSetParserStructuredErrors ();
9297 return 0;
9299 _ACEOF
9300 if ac_fn_c_try_link "$LINENO"; then :
9301 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9302 else
9303 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9305 rm -f core conftest.err conftest.$ac_objext \
9306 conftest$ac_exeext conftest.$ac_ext
9307 LIBS=$ac_check_lib_save_LIBS
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9310 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9311 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = x""yes; then :
9313 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9318 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9319 if test "${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+set}" = set; then :
9320 $as_echo_n "(cached) " >&6
9321 else
9322 ac_check_lib_save_LIBS=$LIBS
9323 LIBS="-lxml2 $ac_xml_libs $LIBS"
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9327 /* Override any GCC internal prototype to avoid an error.
9328 Use char because int might match the return type of a GCC
9329 builtin and then its argument prototype would still apply. */
9330 #ifdef __cplusplus
9331 extern "C"
9332 #endif
9333 char xmlSchemaSetValidStructuredErrors ();
9335 main ()
9337 return xmlSchemaSetValidStructuredErrors ();
9339 return 0;
9341 _ACEOF
9342 if ac_fn_c_try_link "$LINENO"; then :
9343 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9344 else
9345 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9347 rm -f core conftest.err conftest.$ac_objext \
9348 conftest$ac_exeext conftest.$ac_ext
9349 LIBS=$ac_check_lib_save_LIBS
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9352 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9353 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = x""yes; then :
9355 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9360 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9361 if test "${ac_cv_lib_xml2_xmlFirstElementChild+set}" = set; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 ac_check_lib_save_LIBS=$LIBS
9365 LIBS="-lxml2 $ac_xml_libs $LIBS"
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9369 /* Override any GCC internal prototype to avoid an error.
9370 Use char because int might match the return type of a GCC
9371 builtin and then its argument prototype would still apply. */
9372 #ifdef __cplusplus
9373 extern "C"
9374 #endif
9375 char xmlFirstElementChild ();
9377 main ()
9379 return xmlFirstElementChild ();
9381 return 0;
9383 _ACEOF
9384 if ac_fn_c_try_link "$LINENO"; then :
9385 ac_cv_lib_xml2_xmlFirstElementChild=yes
9386 else
9387 ac_cv_lib_xml2_xmlFirstElementChild=no
9389 rm -f core conftest.err conftest.$ac_objext \
9390 conftest$ac_exeext conftest.$ac_ext
9391 LIBS=$ac_check_lib_save_LIBS
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9394 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9395 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = x""yes; then :
9397 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9401 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9403 if test "x$ac_cv_type_xmlDocProperties" = x""yes; then :
9405 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9412 done
9414 CPPFLAGS="$ac_save_CPPFLAGS"
9416 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9417 case "x$with_xml" in
9418 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
9419 xno) ;;
9420 *) as_fn_error $? "libxml2 ${notice_platform}development files not found, XML won't be supported.
9421 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9422 esac
9425 if test "x$with_xslt" != "xno"
9426 then
9427 if test "$PKG_CONFIG" != "false"
9428 then
9429 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9430 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9431 else
9432 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9433 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9435 ac_save_CPPFLAGS="$CPPFLAGS"
9436 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9437 for ac_header in libxslt/pattern.h libxslt/transform.h
9438 do :
9439 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9440 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9441 # include <libxslt/pattern.h>
9442 #endif
9444 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9445 cat >>confdefs.h <<_ACEOF
9446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9447 _ACEOF
9451 done
9453 CPPFLAGS="$ac_save_CPPFLAGS"
9454 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9455 then
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9457 $as_echo_n "checking for -lxslt... " >&6; }
9458 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9459 $as_echo_n "(cached) " >&6
9460 else
9461 ac_check_soname_save_LIBS=$LIBS
9462 LIBS="-lxslt $ac_xslt_libs $LIBS"
9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h. */
9466 /* Override any GCC internal prototype to avoid an error.
9467 Use char because int might match the return type of a GCC
9468 builtin and then its argument prototype would still apply. */
9469 #ifdef __cplusplus
9470 extern "C"
9471 #endif
9472 char xsltCompilePattern ();
9474 main ()
9476 return xsltCompilePattern ();
9478 return 0;
9480 _ACEOF
9481 if ac_fn_c_try_link "$LINENO"; then :
9482 case "$LIBEXT" in
9483 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9484 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'` ;;
9485 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9486 esac
9488 rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9490 LIBS=$ac_check_soname_save_LIBS
9492 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9494 $as_echo "not found" >&6; }
9496 else
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9498 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9500 cat >>confdefs.h <<_ACEOF
9501 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9502 _ACEOF
9504 XSLTINCL="$ac_xslt_cflags"
9508 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9509 case "x$with_xslt" in
9510 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9511 xno) ;;
9512 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9513 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9514 esac
9517 HALINCL=""
9519 if test "x$with_hal" != "xno"
9520 then
9521 ac_save_CPPFLAGS="$CPPFLAGS"
9522 if test "$PKG_CONFIG" != "false"
9523 then
9524 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9525 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9526 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9528 for ac_header in dbus/dbus.h hal/libhal.h
9529 do :
9530 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9531 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9532 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9533 cat >>confdefs.h <<_ACEOF
9534 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9535 _ACEOF
9539 done
9541 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9542 then
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9544 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9545 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9546 $as_echo_n "(cached) " >&6
9547 else
9548 ac_check_lib_save_LIBS=$LIBS
9549 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9553 /* Override any GCC internal prototype to avoid an error.
9554 Use char because int might match the return type of a GCC
9555 builtin and then its argument prototype would still apply. */
9556 #ifdef __cplusplus
9557 extern "C"
9558 #endif
9559 char dbus_connection_close ();
9561 main ()
9563 return dbus_connection_close ();
9565 return 0;
9567 _ACEOF
9568 if ac_fn_c_try_link "$LINENO"; then :
9569 ac_cv_lib_dbus_1_dbus_connection_close=yes
9570 else
9571 ac_cv_lib_dbus_1_dbus_connection_close=no
9573 rm -f core conftest.err conftest.$ac_objext \
9574 conftest$ac_exeext conftest.$ac_ext
9575 LIBS=$ac_check_lib_save_LIBS
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9578 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9579 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9581 $as_echo_n "checking for -lhal... " >&6; }
9582 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 ac_check_soname_save_LIBS=$LIBS
9586 LIBS="-lhal $ac_hal_libs $LIBS"
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9590 /* Override any GCC internal prototype to avoid an error.
9591 Use char because int might match the return type of a GCC
9592 builtin and then its argument prototype would still apply. */
9593 #ifdef __cplusplus
9594 extern "C"
9595 #endif
9596 char libhal_ctx_new ();
9598 main ()
9600 return libhal_ctx_new ();
9602 return 0;
9604 _ACEOF
9605 if ac_fn_c_try_link "$LINENO"; then :
9606 case "$LIBEXT" in
9607 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9608 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'` ;;
9609 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9610 esac
9612 rm -f core conftest.err conftest.$ac_objext \
9613 conftest$ac_exeext conftest.$ac_ext
9614 LIBS=$ac_check_soname_save_LIBS
9616 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9618 $as_echo "not found" >&6; }
9620 else
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9622 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9624 cat >>confdefs.h <<_ACEOF
9625 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9626 _ACEOF
9628 HALINCL="$ac_hal_cflags"
9633 CPPFLAGS="$ac_save_CPPFLAGS"
9635 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9636 case "x$with_hal" in
9637 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9638 xno) ;;
9639 *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9640 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9641 esac
9644 if test "x$with_gnutls" != "xno"
9645 then
9646 ac_save_CPPFLAGS="$CPPFLAGS"
9647 if test "$PKG_CONFIG" != "false"
9648 then
9649 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9650 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9651 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9653 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9654 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9656 /* end confdefs.h. */
9657 #include <gnutls/gnutls.h>
9659 main ()
9661 typeof(gnutls_mac_get_key_size) *pfunc;
9663 return 0;
9665 _ACEOF
9666 if ac_fn_c_try_compile "$LINENO"; then :
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9668 $as_echo_n "checking for -lgnutls... " >&6; }
9669 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9670 $as_echo_n "(cached) " >&6
9671 else
9672 ac_check_soname_save_LIBS=$LIBS
9673 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9677 /* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
9680 #ifdef __cplusplus
9681 extern "C"
9682 #endif
9683 char gnutls_global_init ();
9685 main ()
9687 return gnutls_global_init ();
9689 return 0;
9691 _ACEOF
9692 if ac_fn_c_try_link "$LINENO"; then :
9693 case "$LIBEXT" in
9694 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9695 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'` ;;
9696 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9697 esac
9699 rm -f core conftest.err conftest.$ac_objext \
9700 conftest$ac_exeext conftest.$ac_ext
9701 LIBS=$ac_check_soname_save_LIBS
9703 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9705 $as_echo "not found" >&6; }
9707 else
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9709 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9711 cat >>confdefs.h <<_ACEOF
9712 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9713 _ACEOF
9715 GNUTLSINCL="$ac_gnutls_cflags"
9719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9723 CPPFLAGS="$ac_save_CPPFLAGS"
9725 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9726 case "x$with_gnutls" in
9727 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9728 xno) ;;
9729 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9730 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9731 esac
9734 CURSESLIBS=""
9735 if test "$ac_cv_header_ncurses_h" = "yes"
9736 then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9738 $as_echo_n "checking for -lncurses... " >&6; }
9739 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9740 $as_echo_n "(cached) " >&6
9741 else
9742 ac_check_soname_save_LIBS=$LIBS
9743 LIBS="-lncurses $LIBS"
9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9747 /* Override any GCC internal prototype to avoid an error.
9748 Use char because int might match the return type of a GCC
9749 builtin and then its argument prototype would still apply. */
9750 #ifdef __cplusplus
9751 extern "C"
9752 #endif
9753 char waddch ();
9755 main ()
9757 return waddch ();
9759 return 0;
9761 _ACEOF
9762 if ac_fn_c_try_link "$LINENO"; then :
9763 case "$LIBEXT" in
9764 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9765 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'` ;;
9766 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9767 esac
9769 rm -f core conftest.err conftest.$ac_objext \
9770 conftest$ac_exeext conftest.$ac_ext
9771 LIBS=$ac_check_soname_save_LIBS
9773 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9775 $as_echo "not found" >&6; }
9777 else
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9779 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9781 cat >>confdefs.h <<_ACEOF
9782 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9783 _ACEOF
9785 CURSESLIBS="-lncurses"
9787 elif test "$ac_cv_header_curses_h" = "yes"
9788 then
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9790 $as_echo_n "checking for -lcurses... " >&6; }
9791 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 ac_check_soname_save_LIBS=$LIBS
9795 LIBS="-lcurses $LIBS"
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9799 /* Override any GCC internal prototype to avoid an error.
9800 Use char because int might match the return type of a GCC
9801 builtin and then its argument prototype would still apply. */
9802 #ifdef __cplusplus
9803 extern "C"
9804 #endif
9805 char waddch ();
9807 main ()
9809 return waddch ();
9811 return 0;
9813 _ACEOF
9814 if ac_fn_c_try_link "$LINENO"; then :
9815 case "$LIBEXT" in
9816 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9817 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'` ;;
9818 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9819 esac
9821 rm -f core conftest.err conftest.$ac_objext \
9822 conftest$ac_exeext conftest.$ac_ext
9823 LIBS=$ac_check_soname_save_LIBS
9825 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9827 $as_echo "not found" >&6; }
9829 else
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9831 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9833 cat >>confdefs.h <<_ACEOF
9834 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9835 _ACEOF
9837 CURSESLIBS="-lcurses"
9840 ac_save_LIBS="$LIBS"
9841 LIBS="$LIBS $CURSESLIBS"
9842 for ac_func in mousemask
9843 do :
9844 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9845 if test "x$ac_cv_func_mousemask" = x""yes; then :
9846 cat >>confdefs.h <<_ACEOF
9847 #define HAVE_MOUSEMASK 1
9848 _ACEOF
9851 done
9853 LIBS="$ac_save_LIBS"
9854 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9855 case "x$with_curses" in
9856 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9857 xno) ;;
9858 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9859 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9860 esac
9863 if test "x$with_sane" != "xno"
9864 then
9865 ac_save_CPPFLAGS="$CPPFLAGS"
9866 # Extract the first word of "sane-config", so it can be a program name with args.
9867 set dummy sane-config; ac_word=$2
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9869 $as_echo_n "checking for $ac_word... " >&6; }
9870 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9871 $as_echo_n "(cached) " >&6
9872 else
9873 if test -n "$sane_devel"; then
9874 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9875 else
9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877 for as_dir in $PATH
9879 IFS=$as_save_IFS
9880 test -z "$as_dir" && as_dir=.
9881 for ac_exec_ext in '' $ac_executable_extensions; do
9882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9883 ac_cv_prog_sane_devel="sane-config"
9884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9885 break 2
9887 done
9888 done
9889 IFS=$as_save_IFS
9891 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9894 sane_devel=$ac_cv_prog_sane_devel
9895 if test -n "$sane_devel"; then
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9897 $as_echo "$sane_devel" >&6; }
9898 else
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900 $as_echo "no" >&6; }
9904 if test "$sane_devel" != "no"
9905 then
9906 ac_sane_incl="`$sane_devel --cflags`"
9907 ac_sane_libs="`$sane_devel --ldflags`"
9908 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9910 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9911 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9913 $as_echo_n "checking for -lsane... " >&6; }
9914 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9915 $as_echo_n "(cached) " >&6
9916 else
9917 ac_check_soname_save_LIBS=$LIBS
9918 LIBS="-lsane $ac_sane_libs $LIBS"
9919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920 /* end confdefs.h. */
9922 /* Override any GCC internal prototype to avoid an error.
9923 Use char because int might match the return type of a GCC
9924 builtin and then its argument prototype would still apply. */
9925 #ifdef __cplusplus
9926 extern "C"
9927 #endif
9928 char sane_init ();
9930 main ()
9932 return sane_init ();
9934 return 0;
9936 _ACEOF
9937 if ac_fn_c_try_link "$LINENO"; then :
9938 case "$LIBEXT" in
9939 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9940 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'` ;;
9941 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9942 esac
9944 rm -f core conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946 LIBS=$ac_check_soname_save_LIBS
9948 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9950 $as_echo "not found" >&6; }
9952 else
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9954 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9956 cat >>confdefs.h <<_ACEOF
9957 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9958 _ACEOF
9960 SANEINCL="$ac_sane_incl"
9966 CPPFLAGS="$ac_save_CPPFLAGS"
9968 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9969 case "x$with_sane" in
9970 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9971 xno) ;;
9972 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9973 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9974 esac
9977 if test "x$with_v4l" != "xno"
9978 then
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9980 $as_echo_n "checking for -lv4l1... " >&6; }
9981 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9982 $as_echo_n "(cached) " >&6
9983 else
9984 ac_check_soname_save_LIBS=$LIBS
9985 LIBS="-lv4l1 $LIBS"
9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h. */
9989 /* Override any GCC internal prototype to avoid an error.
9990 Use char because int might match the return type of a GCC
9991 builtin and then its argument prototype would still apply. */
9992 #ifdef __cplusplus
9993 extern "C"
9994 #endif
9995 char v4l1_open ();
9997 main ()
9999 return v4l1_open ();
10001 return 0;
10003 _ACEOF
10004 if ac_fn_c_try_link "$LINENO"; then :
10005 case "$LIBEXT" in
10006 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10007 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'` ;;
10008 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10009 esac
10011 rm -f core conftest.err conftest.$ac_objext \
10012 conftest$ac_exeext conftest.$ac_ext
10013 LIBS=$ac_check_soname_save_LIBS
10015 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10017 $as_echo "not found" >&6; }
10019 else
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10021 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10023 cat >>confdefs.h <<_ACEOF
10024 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10025 _ACEOF
10030 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10031 case "x$with_v4l" in
10032 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10033 xno) ;;
10034 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10035 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10036 esac
10039 if test "x$with_gphoto" != "xno"
10040 then
10041 ac_save_CPPFLAGS="$CPPFLAGS"
10042 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10043 set dummy gphoto2-config; ac_word=$2
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10045 $as_echo_n "checking for $ac_word... " >&6; }
10046 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
10047 $as_echo_n "(cached) " >&6
10048 else
10049 if test -n "$gphoto2_devel"; then
10050 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10051 else
10052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053 for as_dir in $PATH
10055 IFS=$as_save_IFS
10056 test -z "$as_dir" && as_dir=.
10057 for ac_exec_ext in '' $ac_executable_extensions; do
10058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10059 ac_cv_prog_gphoto2_devel="gphoto2-config"
10060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10061 break 2
10063 done
10064 done
10065 IFS=$as_save_IFS
10067 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10070 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10071 if test -n "$gphoto2_devel"; then
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10073 $as_echo "$gphoto2_devel" >&6; }
10074 else
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10080 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10081 set dummy gphoto2-port-config; ac_word=$2
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10083 $as_echo_n "checking for $ac_word... " >&6; }
10084 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
10085 $as_echo_n "(cached) " >&6
10086 else
10087 if test -n "$gphoto2port_devel"; then
10088 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10089 else
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in $PATH
10093 IFS=$as_save_IFS
10094 test -z "$as_dir" && as_dir=.
10095 for ac_exec_ext in '' $ac_executable_extensions; do
10096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10097 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10099 break 2
10101 done
10102 done
10103 IFS=$as_save_IFS
10105 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10108 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10109 if test -n "$gphoto2port_devel"; then
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10111 $as_echo "$gphoto2port_devel" >&6; }
10112 else
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114 $as_echo "no" >&6; }
10118 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10119 then
10120 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10121 ac_gphoto2_libs=""
10122 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10124 case "$i" in
10125 -L/usr/lib|-L/usr/lib64) ;;
10126 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10127 esac
10128 done
10129 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10131 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10132 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10133 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10135 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10136 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
10137 $as_echo_n "(cached) " >&6
10138 else
10139 ac_check_lib_save_LIBS=$LIBS
10140 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10144 /* Override any GCC internal prototype to avoid an error.
10145 Use char because int might match the return type of a GCC
10146 builtin and then its argument prototype would still apply. */
10147 #ifdef __cplusplus
10148 extern "C"
10149 #endif
10150 char gp_camera_new ();
10152 main ()
10154 return gp_camera_new ();
10156 return 0;
10158 _ACEOF
10159 if ac_fn_c_try_link "$LINENO"; then :
10160 ac_cv_lib_gphoto2_gp_camera_new=yes
10161 else
10162 ac_cv_lib_gphoto2_gp_camera_new=no
10164 rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 LIBS=$ac_check_lib_save_LIBS
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10169 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10170 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
10172 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10174 GPHOTO2LIBS="$ac_gphoto2_libs"
10176 GPHOTO2INCL="$ac_gphoto2_incl"
10183 CPPFLAGS="$ac_save_CPPFLAGS"
10185 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10186 case "x$with_gphoto" in
10187 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10188 xno) ;;
10189 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10190 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10191 esac
10195 if test "$ac_cv_header_resolv_h" = "yes"
10196 then
10197 ac_save_LIBS="$LIBS"
10198 for lib in '' -lresolv
10200 LIBS="$lib $ac_save_LIBS"
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10203 #ifdef HAVE_NETINET_IN_H
10204 #include <netinet/in.h>
10205 #endif
10206 #include <resolv.h>
10208 main ()
10210 res_query("foo",ns_c_in,0,0,0);
10212 return 0;
10214 _ACEOF
10215 if ac_fn_c_try_link "$LINENO"; then :
10217 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10219 RESOLVLIBS="$lib"
10222 rm -f core conftest.err conftest.$ac_objext \
10223 conftest$ac_exeext conftest.$ac_ext
10224 if test "${RESOLVLIBS+set}" = set; then
10225 break
10227 done
10228 LIBS="$ac_save_LIBS"
10231 LCMSLIBS=""
10233 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10234 then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10236 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10237 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
10238 $as_echo_n "(cached) " >&6
10239 else
10240 ac_check_lib_save_LIBS=$LIBS
10241 LIBS="-llcms $LIBS"
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10245 /* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
10248 #ifdef __cplusplus
10249 extern "C"
10250 #endif
10251 char cmsOpenProfileFromFile ();
10253 main ()
10255 return cmsOpenProfileFromFile ();
10257 return 0;
10259 _ACEOF
10260 if ac_fn_c_try_link "$LINENO"; then :
10261 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10262 else
10263 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10265 rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10267 LIBS=$ac_check_lib_save_LIBS
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10270 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10271 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
10273 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10275 LCMSLIBS="-llcms"
10279 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10280 case "x$with_cms" in
10281 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10282 xno) ;;
10283 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10284 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10285 esac
10288 if test "x$with_freetype" != "xno"
10289 then
10290 for ac_prog in freetype-config freetype2-config
10292 # Extract the first word of "$ac_prog", so it can be a program name with args.
10293 set dummy $ac_prog; ac_word=$2
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10295 $as_echo_n "checking for $ac_word... " >&6; }
10296 if test "${ac_cv_prog_ft_devel+set}" = set; then :
10297 $as_echo_n "(cached) " >&6
10298 else
10299 if test -n "$ft_devel"; then
10300 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10301 else
10302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303 for as_dir in $PATH
10305 IFS=$as_save_IFS
10306 test -z "$as_dir" && as_dir=.
10307 for ac_exec_ext in '' $ac_executable_extensions; do
10308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10309 ac_cv_prog_ft_devel="$ac_prog"
10310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10311 break 2
10313 done
10314 done
10315 IFS=$as_save_IFS
10319 ft_devel=$ac_cv_prog_ft_devel
10320 if test -n "$ft_devel"; then
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10322 $as_echo "$ft_devel" >&6; }
10323 else
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10325 $as_echo "no" >&6; }
10329 test -n "$ft_devel" && break
10330 done
10331 test -n "$ft_devel" || ft_devel="no"
10333 if test "$ft_devel" != "no"
10334 then
10335 ac_freetype_incl=`$ft_devel --cflags`
10336 ac_freetype_libs=`$ft_devel --libs`
10338 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10340 $as_echo_n "checking for -lfreetype... " >&6; }
10341 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10342 $as_echo_n "(cached) " >&6
10343 else
10344 ac_check_soname_save_LIBS=$LIBS
10345 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h. */
10349 /* Override any GCC internal prototype to avoid an error.
10350 Use char because int might match the return type of a GCC
10351 builtin and then its argument prototype would still apply. */
10352 #ifdef __cplusplus
10353 extern "C"
10354 #endif
10355 char FT_Init_FreeType ();
10357 main ()
10359 return FT_Init_FreeType ();
10361 return 0;
10363 _ACEOF
10364 if ac_fn_c_try_link "$LINENO"; then :
10365 case "$LIBEXT" in
10366 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10367 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'` ;;
10368 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10369 esac
10371 rm -f core conftest.err conftest.$ac_objext \
10372 conftest$ac_exeext conftest.$ac_ext
10373 LIBS=$ac_check_soname_save_LIBS
10375 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10377 $as_echo "not found" >&6; }
10378 ft_lib=no
10379 else
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10381 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10383 cat >>confdefs.h <<_ACEOF
10384 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10385 _ACEOF
10387 ft_lib=yes
10389 if test "$ft_lib" = "yes"
10390 then
10391 ac_save_CPPFLAGS="$CPPFLAGS"
10392 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10393 for ac_header in ft2build.h \
10394 freetype/freetype.h \
10395 freetype/ftglyph.h \
10396 freetype/fttypes.h \
10397 freetype/tttables.h \
10398 freetype/ftsnames.h \
10399 freetype/ttnameid.h \
10400 freetype/ftoutln.h \
10401 freetype/ftwinfnt.h \
10402 freetype/ftmodapi.h \
10403 freetype/ftlcdfil.h \
10404 freetype/internal/sfnt.h
10405 do :
10406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10407 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10408 # include <ft2build.h>
10409 #endif
10411 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10412 cat >>confdefs.h <<_ACEOF
10413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10414 _ACEOF
10418 done
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10422 #include <ft2build.h>
10423 #include <freetype/fttrigon.h>
10424 _ACEOF
10425 if ac_fn_c_try_cpp "$LINENO"; then :
10427 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10429 wine_cv_fttrigon=yes
10430 else
10431 wine_cv_fttrigon=no
10433 rm -f conftest.err conftest.i conftest.$ac_ext
10434 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10436 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10438 cat >>confdefs.h <<_ACEOF
10439 #define HAVE_FT_TRUETYPEENGINETYPE 1
10440 _ACEOF
10445 ac_save_CFLAGS="$CFLAGS"
10446 CFLAGS="$CFLAGS $ac_freetype_libs"
10447 for ac_func in FT_Load_Sfnt_Table
10448 do :
10449 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10450 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10451 cat >>confdefs.h <<_ACEOF
10452 #define HAVE_FT_LOAD_SFNT_TABLE 1
10453 _ACEOF
10456 done
10458 CFLAGS="$ac_save_CFLAGS"
10459 CPPFLAGS="$ac_save_CPPFLAGS"
10460 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10461 then
10463 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10465 FREETYPELIBS="$ac_freetype_libs"
10467 FREETYPEINCL="$ac_freetype_incl"
10472 if test "x$FREETYPELIBS" = "x"; then :
10473 case "x$with_freetype" in
10474 xno) ;;
10475 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10476 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10477 esac
10479 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10482 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10483 if test "${ac_cv_c_ppdev+set}" = set; then :
10484 $as_echo_n "(cached) " >&6
10485 else
10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10488 #ifdef HAVE_SYS_IOCTL_H
10489 # include <sys/ioctl.h>
10490 #endif
10491 #include <linux/ppdev.h>
10493 main ()
10495 ioctl (1,PPCLAIM,0)
10497 return 0;
10499 _ACEOF
10500 if ac_fn_c_try_compile "$LINENO"; then :
10501 ac_cv_c_ppdev="yes"
10502 else
10503 ac_cv_c_ppdev="no"
10505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10508 $as_echo "$ac_cv_c_ppdev" >&6; }
10509 if test "$ac_cv_c_ppdev" = "yes"
10510 then
10512 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10516 ac_wine_check_funcs_save_LIBS="$LIBS"
10517 LIBS="$LIBS $LIBPTHREAD"
10518 for ac_func in \
10519 pthread_attr_get_np \
10520 pthread_getattr_np \
10521 pthread_get_stackaddr_np \
10522 pthread_get_stacksize_np
10523 do :
10524 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10525 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10526 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10527 cat >>confdefs.h <<_ACEOF
10528 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10529 _ACEOF
10532 done
10534 LIBS="$ac_wine_check_funcs_save_LIBS"
10536 if test "$ac_cv_header_zlib_h" = "yes"
10537 then
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10539 $as_echo_n "checking for inflate in -lz... " >&6; }
10540 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10541 $as_echo_n "(cached) " >&6
10542 else
10543 ac_check_lib_save_LIBS=$LIBS
10544 LIBS="-lz $LIBS"
10545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10546 /* end confdefs.h. */
10548 /* Override any GCC internal prototype to avoid an error.
10549 Use char because int might match the return type of a GCC
10550 builtin and then its argument prototype would still apply. */
10551 #ifdef __cplusplus
10552 extern "C"
10553 #endif
10554 char inflate ();
10556 main ()
10558 return inflate ();
10560 return 0;
10562 _ACEOF
10563 if ac_fn_c_try_link "$LINENO"; then :
10564 ac_cv_lib_z_inflate=yes
10565 else
10566 ac_cv_lib_z_inflate=no
10568 rm -f core conftest.err conftest.$ac_objext \
10569 conftest$ac_exeext conftest.$ac_ext
10570 LIBS=$ac_check_lib_save_LIBS
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10573 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10574 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10576 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10578 ZLIB="-lz"
10584 if test "x$with_esd" != xno
10585 then
10586 save_CFLAGS="$CFLAGS"
10587 # Extract the first word of "esd-config", so it can be a program name with args.
10588 set dummy esd-config; ac_word=$2
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10590 $as_echo_n "checking for $ac_word... " >&6; }
10591 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10592 $as_echo_n "(cached) " >&6
10593 else
10594 case $ESDCONFIG in
10595 [\\/]* | ?:[\\/]*)
10596 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600 for as_dir in $PATH
10602 IFS=$as_save_IFS
10603 test -z "$as_dir" && as_dir=.
10604 for ac_exec_ext in '' $ac_executable_extensions; do
10605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10606 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10608 break 2
10610 done
10611 done
10612 IFS=$as_save_IFS
10614 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10616 esac
10618 ESDCONFIG=$ac_cv_path_ESDCONFIG
10619 if test -n "$ESDCONFIG"; then
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10621 $as_echo "$ESDCONFIG" >&6; }
10622 else
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 $as_echo "no" >&6; }
10628 if test "x$ESDCONFIG" != "xno"
10629 then
10630 ac_esd_incl=""
10631 for i in `$ESDCONFIG --cflags`
10633 case "$i" in
10634 -I*) ac_esd_incl="$ac_esd_incl $i";;
10635 esac
10636 done
10637 ac_esd_libs=`$ESDCONFIG --libs`
10638 CFLAGS="$CFLAGS $ac_esd_incl"
10640 ac_esd_libs=${ac_esd_libs:-"-lesd"}
10641 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10642 if test "x$ac_cv_header_esd_h" = x""yes; then :
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10644 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10645 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10646 $as_echo_n "(cached) " >&6
10647 else
10648 ac_check_lib_save_LIBS=$LIBS
10649 LIBS="-lesd $ac_esd_libs $LIBS"
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10653 /* Override any GCC internal prototype to avoid an error.
10654 Use char because int might match the return type of a GCC
10655 builtin and then its argument prototype would still apply. */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 char esd_open_sound ();
10661 main ()
10663 return esd_open_sound ();
10665 return 0;
10667 _ACEOF
10668 if ac_fn_c_try_link "$LINENO"; then :
10669 ac_cv_lib_esd_esd_open_sound=yes
10670 else
10671 ac_cv_lib_esd_esd_open_sound=no
10673 rm -f core conftest.err conftest.$ac_objext \
10674 conftest$ac_exeext conftest.$ac_ext
10675 LIBS=$ac_check_lib_save_LIBS
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10678 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10679 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10680 ESDINCL="$ac_esd_incl"
10682 ESDLIBS="$ac_esd_libs"
10685 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10692 CFLAGS="$save_CFLAGS"
10695 if test "x$with_gstreamer" != "xno"
10696 then
10697 ac_save_CPPFLAGS="$CPPFLAGS"
10698 if test "$PKG_CONFIG" != "false"; then
10699 ac_gst_incl=""
10700 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10702 case "$i" in
10703 -I*) ac_gst_incl="$ac_gst_incl $i";;
10704 esac
10705 done
10706 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10707 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10708 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10709 if test "x$ac_cv_header_gst_gstpad_h" = x""yes; then :
10710 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10711 if test "x$ac_cv_header_gst_app_gstappsink_h" = x""yes; then :
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10713 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10714 if test "${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+set}" = set; then :
10715 $as_echo_n "(cached) " >&6
10716 else
10717 ac_check_lib_save_LIBS=$LIBS
10718 LIBS="-lgstreamer-0.10 $LIBS"
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10722 /* Override any GCC internal prototype to avoid an error.
10723 Use char because int might match the return type of a GCC
10724 builtin and then its argument prototype would still apply. */
10725 #ifdef __cplusplus
10726 extern "C"
10727 #endif
10728 char gst_pad_get_caps_reffed ();
10730 main ()
10732 return gst_pad_get_caps_reffed ();
10734 return 0;
10736 _ACEOF
10737 if ac_fn_c_try_link "$LINENO"; then :
10738 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10739 else
10740 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10742 rm -f core conftest.err conftest.$ac_objext \
10743 conftest$ac_exeext conftest.$ac_ext
10744 LIBS=$ac_check_lib_save_LIBS
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10747 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10748 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = x""yes; then :
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10750 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10751 if test "${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+set}" = set; then :
10752 $as_echo_n "(cached) " >&6
10753 else
10754 ac_check_lib_save_LIBS=$LIBS
10755 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10759 /* Override any GCC internal prototype to avoid an error.
10760 Use char because int might match the return type of a GCC
10761 builtin and then its argument prototype would still apply. */
10762 #ifdef __cplusplus
10763 extern "C"
10764 #endif
10765 char gst_app_buffer_new ();
10767 main ()
10769 return gst_app_buffer_new ();
10771 return 0;
10773 _ACEOF
10774 if ac_fn_c_try_link "$LINENO"; then :
10775 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10776 else
10777 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10779 rm -f core conftest.err conftest.$ac_objext \
10780 conftest$ac_exeext conftest.$ac_ext
10781 LIBS=$ac_check_lib_save_LIBS
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10784 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10785 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = x""yes; then :
10786 GSTREAMER_LIBS="$ac_gst_libs"
10788 GSTREAMER_INCL="$ac_gst_incl"
10801 CPPFLAGS="$ac_save_CPPFLAGS"
10803 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes; then :
10804 case "x$with_gstreamer" in
10805 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10806 xno) ;;
10807 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10808 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10809 esac
10811 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10813 ALSALIBS=""
10815 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10816 then
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
10818 $as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
10819 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10822 ac_check_lib_save_LIBS=$LIBS
10823 LIBS="-lasound $LIBS"
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10827 /* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
10830 #ifdef __cplusplus
10831 extern "C"
10832 #endif
10833 char snd_pcm_hw_params_get_access ();
10835 main ()
10837 return snd_pcm_hw_params_get_access ();
10839 return 0;
10841 _ACEOF
10842 if ac_fn_c_try_link "$LINENO"; then :
10843 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
10844 else
10845 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
10847 rm -f core conftest.err conftest.$ac_objext \
10848 conftest$ac_exeext conftest.$ac_ext
10849 LIBS=$ac_check_lib_save_LIBS
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
10852 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
10853 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10856 #ifdef HAVE_ALSA_ASOUNDLIB_H
10857 #include <alsa/asoundlib.h>
10858 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10859 #include <sys/asoundlib.h>
10860 #endif
10862 main ()
10864 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10866 return 0;
10868 _ACEOF
10869 if ac_fn_c_try_compile "$LINENO"; then :
10871 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10873 ALSALIBS="-lasound"
10875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10881 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10882 then
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10884 $as_echo_n "checking for -lcapi20... " >&6; }
10885 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
10886 $as_echo_n "(cached) " >&6
10887 else
10888 ac_check_soname_save_LIBS=$LIBS
10889 LIBS="-lcapi20 $LIBS"
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10893 /* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
10896 #ifdef __cplusplus
10897 extern "C"
10898 #endif
10899 char capi20_register ();
10901 main ()
10903 return capi20_register ();
10905 return 0;
10907 _ACEOF
10908 if ac_fn_c_try_link "$LINENO"; then :
10909 case "$LIBEXT" in
10910 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10911 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'` ;;
10912 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10913 esac
10915 rm -f core conftest.err conftest.$ac_objext \
10916 conftest$ac_exeext conftest.$ac_ext
10917 LIBS=$ac_check_soname_save_LIBS
10919 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10921 $as_echo "not found" >&6; }
10923 else
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10925 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10927 cat >>confdefs.h <<_ACEOF
10928 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10929 _ACEOF
10934 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10935 case "x$with_capi" in
10936 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10937 xno) ;;
10938 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10939 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10940 esac
10943 CUPSINCL=""
10945 if test "x$with_cups" != "xno"
10946 then
10947 ac_save_CPPFLAGS="$CPPFLAGS"
10948 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10949 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10950 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10951 for ac_header in cups/cups.h
10952 do :
10953 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10954 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
10955 cat >>confdefs.h <<_ACEOF
10956 #define HAVE_CUPS_CUPS_H 1
10957 _ACEOF
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10959 $as_echo_n "checking for -lcups... " >&6; }
10960 if test "${ac_cv_lib_soname_cups+set}" = set; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 ac_check_soname_save_LIBS=$LIBS
10964 LIBS="-lcups $ac_cups_libs $LIBS"
10965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h. */
10968 /* Override any GCC internal prototype to avoid an error.
10969 Use char because int might match the return type of a GCC
10970 builtin and then its argument prototype would still apply. */
10971 #ifdef __cplusplus
10972 extern "C"
10973 #endif
10974 char cupsGetDefault ();
10976 main ()
10978 return cupsGetDefault ();
10980 return 0;
10982 _ACEOF
10983 if ac_fn_c_try_link "$LINENO"; then :
10984 case "$LIBEXT" in
10985 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10986 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'` ;;
10987 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10988 esac
10990 rm -f core conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
10992 LIBS=$ac_check_soname_save_LIBS
10994 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10996 $as_echo "not found" >&6; }
10998 else
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11000 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11002 cat >>confdefs.h <<_ACEOF
11003 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11004 _ACEOF
11006 CUPSINCL="$ac_cups_cflags"
11010 done
11012 CPPFLAGS="$ac_save_CPPFLAGS"
11014 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11015 case "x$with_cups" in
11016 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11017 xno) ;;
11018 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11019 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11020 esac
11023 if test "$ac_cv_header_jack_jack_h" = "yes"
11024 then
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
11026 $as_echo_n "checking for -ljack... " >&6; }
11027 if test "${ac_cv_lib_soname_jack+set}" = set; then :
11028 $as_echo_n "(cached) " >&6
11029 else
11030 ac_check_soname_save_LIBS=$LIBS
11031 LIBS="-ljack $LIBS"
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h. */
11035 /* Override any GCC internal prototype to avoid an error.
11036 Use char because int might match the return type of a GCC
11037 builtin and then its argument prototype would still apply. */
11038 #ifdef __cplusplus
11039 extern "C"
11040 #endif
11041 char jack_client_new ();
11043 main ()
11045 return jack_client_new ();
11047 return 0;
11049 _ACEOF
11050 if ac_fn_c_try_link "$LINENO"; then :
11051 case "$LIBEXT" in
11052 dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11053 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'` ;;
11054 *) 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'` ;;
11055 esac
11057 rm -f core conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11059 LIBS=$ac_check_soname_save_LIBS
11061 if test "x$ac_cv_lib_soname_jack" = "x"; then :
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11063 $as_echo "not found" >&6; }
11065 else
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
11067 $as_echo "$ac_cv_lib_soname_jack" >&6; }
11069 cat >>confdefs.h <<_ACEOF
11070 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
11071 _ACEOF
11077 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11078 then
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11080 $as_echo_n "checking for -lfontconfig... " >&6; }
11081 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
11082 $as_echo_n "(cached) " >&6
11083 else
11084 ac_check_soname_save_LIBS=$LIBS
11085 LIBS="-lfontconfig $LIBS"
11086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11087 /* end confdefs.h. */
11089 /* Override any GCC internal prototype to avoid an error.
11090 Use char because int might match the return type of a GCC
11091 builtin and then its argument prototype would still apply. */
11092 #ifdef __cplusplus
11093 extern "C"
11094 #endif
11095 char FcInit ();
11097 main ()
11099 return FcInit ();
11101 return 0;
11103 _ACEOF
11104 if ac_fn_c_try_link "$LINENO"; then :
11105 case "$LIBEXT" in
11106 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11107 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'` ;;
11108 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11109 esac
11111 rm -f core conftest.err conftest.$ac_objext \
11112 conftest$ac_exeext conftest.$ac_ext
11113 LIBS=$ac_check_soname_save_LIBS
11115 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11117 $as_echo "not found" >&6; }
11119 else
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11121 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11123 cat >>confdefs.h <<_ACEOF
11124 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11125 _ACEOF
11129 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11130 then
11131 ac_save_CPPFLAGS="$CPPFLAGS"
11132 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11133 $as_unset ac_cv_header_fontconfig_fontconfig_h
11134 for ac_header in fontconfig/fontconfig.h
11135 do :
11136 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11137 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
11138 cat >>confdefs.h <<_ACEOF
11139 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11140 _ACEOF
11144 done
11146 CPPFLAGS="$ac_save_CPPFLAGS"
11147 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11148 then
11149 FONTCONFIGINCL="$X_CFLAGS"
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11152 $as_echo_n "checking for -lfontconfig... " >&6; }
11153 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
11154 $as_echo_n "(cached) " >&6
11155 else
11156 ac_check_soname_save_LIBS=$LIBS
11157 LIBS="-lfontconfig $X_LIBS $LIBS"
11158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159 /* end confdefs.h. */
11161 /* Override any GCC internal prototype to avoid an error.
11162 Use char because int might match the return type of a GCC
11163 builtin and then its argument prototype would still apply. */
11164 #ifdef __cplusplus
11165 extern "C"
11166 #endif
11167 char FcInit ();
11169 main ()
11171 return FcInit ();
11173 return 0;
11175 _ACEOF
11176 if ac_fn_c_try_link "$LINENO"; then :
11177 case "$LIBEXT" in
11178 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11179 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'` ;;
11180 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11181 esac
11183 rm -f core conftest.err conftest.$ac_objext \
11184 conftest$ac_exeext conftest.$ac_ext
11185 LIBS=$ac_check_soname_save_LIBS
11187 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11189 $as_echo "not found" >&6; }
11191 else
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11193 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11195 cat >>confdefs.h <<_ACEOF
11196 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11197 _ACEOF
11203 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11204 case "x$with_fontconfig" in
11205 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11206 xno) ;;
11207 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11208 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11209 esac
11212 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11213 then
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11215 $as_echo_n "checking for -lssl... " >&6; }
11216 if test "${ac_cv_lib_soname_ssl+set}" = set; then :
11217 $as_echo_n "(cached) " >&6
11218 else
11219 ac_check_soname_save_LIBS=$LIBS
11220 LIBS="-lssl $LIBS"
11221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222 /* end confdefs.h. */
11224 /* Override any GCC internal prototype to avoid an error.
11225 Use char because int might match the return type of a GCC
11226 builtin and then its argument prototype would still apply. */
11227 #ifdef __cplusplus
11228 extern "C"
11229 #endif
11230 char SSL_library_init ();
11232 main ()
11234 return SSL_library_init ();
11236 return 0;
11238 _ACEOF
11239 if ac_fn_c_try_link "$LINENO"; then :
11240 case "$LIBEXT" in
11241 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11242 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'` ;;
11243 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11244 esac
11246 rm -f core conftest.err conftest.$ac_objext \
11247 conftest$ac_exeext conftest.$ac_ext
11248 LIBS=$ac_check_soname_save_LIBS
11250 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11252 $as_echo "not found" >&6; }
11254 else
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11256 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11258 cat >>confdefs.h <<_ACEOF
11259 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11260 _ACEOF
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11265 $as_echo_n "checking for -lcrypto... " >&6; }
11266 if test "${ac_cv_lib_soname_crypto+set}" = set; then :
11267 $as_echo_n "(cached) " >&6
11268 else
11269 ac_check_soname_save_LIBS=$LIBS
11270 LIBS="-lcrypto $LIBS"
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11274 /* Override any GCC internal prototype to avoid an error.
11275 Use char because int might match the return type of a GCC
11276 builtin and then its argument prototype would still apply. */
11277 #ifdef __cplusplus
11278 extern "C"
11279 #endif
11280 char BIO_new_socket ();
11282 main ()
11284 return BIO_new_socket ();
11286 return 0;
11288 _ACEOF
11289 if ac_fn_c_try_link "$LINENO"; then :
11290 case "$LIBEXT" in
11291 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11292 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'` ;;
11293 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11294 esac
11296 rm -f core conftest.err conftest.$ac_objext \
11297 conftest$ac_exeext conftest.$ac_ext
11298 LIBS=$ac_check_soname_save_LIBS
11300 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11302 $as_echo "not found" >&6; }
11304 else
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11306 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11308 cat >>confdefs.h <<_ACEOF
11309 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11310 _ACEOF
11315 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11316 case "x$with_openssl" in
11317 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11318 xno) ;;
11319 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11320 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11321 esac
11324 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11325 then
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11327 $as_echo_n "checking for -lgsm... " >&6; }
11328 if test "${ac_cv_lib_soname_gsm+set}" = set; then :
11329 $as_echo_n "(cached) " >&6
11330 else
11331 ac_check_soname_save_LIBS=$LIBS
11332 LIBS="-lgsm $LIBS"
11333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334 /* end confdefs.h. */
11336 /* Override any GCC internal prototype to avoid an error.
11337 Use char because int might match the return type of a GCC
11338 builtin and then its argument prototype would still apply. */
11339 #ifdef __cplusplus
11340 extern "C"
11341 #endif
11342 char gsm_create ();
11344 main ()
11346 return gsm_create ();
11348 return 0;
11350 _ACEOF
11351 if ac_fn_c_try_link "$LINENO"; then :
11352 case "$LIBEXT" in
11353 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11354 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'` ;;
11355 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11356 esac
11358 rm -f core conftest.err conftest.$ac_objext \
11359 conftest$ac_exeext conftest.$ac_ext
11360 LIBS=$ac_check_soname_save_LIBS
11362 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11364 $as_echo "not found" >&6; }
11366 else
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11368 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11370 cat >>confdefs.h <<_ACEOF
11371 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11372 _ACEOF
11377 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11378 case "x$with_gsm" in
11379 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11380 xno) ;;
11381 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11382 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11383 esac
11386 if test "$ac_cv_header_icns_h" = "yes"
11387 then
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -licns" >&5
11389 $as_echo_n "checking for -licns... " >&6; }
11390 if test "${ac_cv_lib_soname_icns+set}" = set; then :
11391 $as_echo_n "(cached) " >&6
11392 else
11393 ac_check_soname_save_LIBS=$LIBS
11394 LIBS="-licns $LIBS"
11395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11398 /* Override any GCC internal prototype to avoid an error.
11399 Use char because int might match the return type of a GCC
11400 builtin and then its argument prototype would still apply. */
11401 #ifdef __cplusplus
11402 extern "C"
11403 #endif
11404 char icns_write_family_to_file ();
11406 main ()
11408 return icns_write_family_to_file ();
11410 return 0;
11412 _ACEOF
11413 if ac_fn_c_try_link "$LINENO"; then :
11414 case "$LIBEXT" in
11415 dll) ac_cv_lib_soname_icns=`$ac_cv_path_LDD conftest.exe | grep "icns" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11416 dylib) ac_cv_lib_soname_icns=`otool -L conftest$ac_exeext | grep "libicns\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libicns\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11417 *) ac_cv_lib_soname_icns=`$ac_cv_path_LDD conftest$ac_exeext | grep "libicns\\.$LIBEXT" | sed -e "s/^.*\(libicns\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11418 esac
11420 rm -f core conftest.err conftest.$ac_objext \
11421 conftest$ac_exeext conftest.$ac_ext
11422 LIBS=$ac_check_soname_save_LIBS
11424 if test "x$ac_cv_lib_soname_icns" = "x"; then :
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11426 $as_echo "not found" >&6; }
11428 else
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_icns" >&5
11430 $as_echo "$ac_cv_lib_soname_icns" >&6; }
11432 cat >>confdefs.h <<_ACEOF
11433 #define SONAME_LIBICNS "$ac_cv_lib_soname_icns"
11434 _ACEOF
11439 case $host_os in
11440 darwin*|macosx*)
11441 if test "x$ac_cv_lib_soname_icns" = "x"; then :
11442 case "x$with_icns" in
11443 x) as_fn_append wine_notices "|libicns ${notice_platform}development files not found, ICNS icons won't be supported." ;;
11444 xno) ;;
11445 *) as_fn_error $? "libicns ${notice_platform}development files not found, ICNS icons won't be supported.
11446 This is an error since --with-icns was requested." "$LINENO" 5 ;;
11447 esac
11448 fi ;;
11449 esac
11451 if test "$ac_cv_header_jpeglib_h" = "yes"
11452 then
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11454 $as_echo_n "checking for -ljpeg... " >&6; }
11455 if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11458 ac_check_soname_save_LIBS=$LIBS
11459 LIBS="-ljpeg $LIBS"
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11463 /* Override any GCC internal prototype to avoid an error.
11464 Use char because int might match the return type of a GCC
11465 builtin and then its argument prototype would still apply. */
11466 #ifdef __cplusplus
11467 extern "C"
11468 #endif
11469 char jpeg_start_decompress ();
11471 main ()
11473 return jpeg_start_decompress ();
11475 return 0;
11477 _ACEOF
11478 if ac_fn_c_try_link "$LINENO"; then :
11479 case "$LIBEXT" in
11480 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11481 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'` ;;
11482 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11483 esac
11485 rm -f core conftest.err conftest.$ac_objext \
11486 conftest$ac_exeext conftest.$ac_ext
11487 LIBS=$ac_check_soname_save_LIBS
11489 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11491 $as_echo "not found" >&6; }
11493 else
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11495 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11497 cat >>confdefs.h <<_ACEOF
11498 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11499 _ACEOF
11504 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11505 case "x$with_jpeg" in
11506 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11507 xno) ;;
11508 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11509 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11510 esac
11513 if test "$ac_cv_header_png_h" = "yes"
11514 then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11516 $as_echo_n "checking for -lpng... " >&6; }
11517 if test "${ac_cv_lib_soname_png+set}" = set; then :
11518 $as_echo_n "(cached) " >&6
11519 else
11520 ac_check_soname_save_LIBS=$LIBS
11521 LIBS="-lpng -lm -lz $LIBS"
11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11525 /* Override any GCC internal prototype to avoid an error.
11526 Use char because int might match the return type of a GCC
11527 builtin and then its argument prototype would still apply. */
11528 #ifdef __cplusplus
11529 extern "C"
11530 #endif
11531 char png_create_read_struct ();
11533 main ()
11535 return png_create_read_struct ();
11537 return 0;
11539 _ACEOF
11540 if ac_fn_c_try_link "$LINENO"; then :
11541 case "$LIBEXT" in
11542 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11543 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'` ;;
11544 *) 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'` ;;
11545 esac
11547 rm -f core conftest.err conftest.$ac_objext \
11548 conftest$ac_exeext conftest.$ac_ext
11549 LIBS=$ac_check_soname_save_LIBS
11551 if test "x$ac_cv_lib_soname_png" = "x"; then :
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11553 $as_echo "not found" >&6; }
11555 else
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11557 $as_echo "$ac_cv_lib_soname_png" >&6; }
11559 cat >>confdefs.h <<_ACEOF
11560 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11561 _ACEOF
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11566 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11567 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11568 $as_echo_n "(cached) " >&6
11569 else
11570 ac_check_lib_save_LIBS=$LIBS
11571 LIBS="-lpng -lm -lz $LIBS"
11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11575 /* Override any GCC internal prototype to avoid an error.
11576 Use char because int might match the return type of a GCC
11577 builtin and then its argument prototype would still apply. */
11578 #ifdef __cplusplus
11579 extern "C"
11580 #endif
11581 char png_set_expand_gray_1_2_4_to_8 ();
11583 main ()
11585 return png_set_expand_gray_1_2_4_to_8 ();
11587 return 0;
11589 _ACEOF
11590 if ac_fn_c_try_link "$LINENO"; then :
11591 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11592 else
11593 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11595 rm -f core conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
11597 LIBS=$ac_check_lib_save_LIBS
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11600 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11601 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11603 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11608 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11609 then
11610 ac_save_CPPFLAGS="$CPPFLAGS"
11611 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11612 $as_unset ac_cv_header_png_h
11613 for ac_header in png.h
11614 do :
11615 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11616 if test "x$ac_cv_header_png_h" = x""yes; then :
11617 cat >>confdefs.h <<_ACEOF
11618 #define HAVE_PNG_H 1
11619 _ACEOF
11623 done
11625 CPPFLAGS="$ac_save_CPPFLAGS"
11626 if test "$ac_cv_header_png_h" = "yes"
11627 then
11628 PNGINCL="$X_CFLAGS"
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11631 $as_echo_n "checking for -lpng... " >&6; }
11632 if test "${ac_cv_lib_soname_png+set}" = set; then :
11633 $as_echo_n "(cached) " >&6
11634 else
11635 ac_check_soname_save_LIBS=$LIBS
11636 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h. */
11640 /* Override any GCC internal prototype to avoid an error.
11641 Use char because int might match the return type of a GCC
11642 builtin and then its argument prototype would still apply. */
11643 #ifdef __cplusplus
11644 extern "C"
11645 #endif
11646 char png_create_read_struct ();
11648 main ()
11650 return png_create_read_struct ();
11652 return 0;
11654 _ACEOF
11655 if ac_fn_c_try_link "$LINENO"; then :
11656 case "$LIBEXT" in
11657 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11658 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'` ;;
11659 *) 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'` ;;
11660 esac
11662 rm -f core conftest.err conftest.$ac_objext \
11663 conftest$ac_exeext conftest.$ac_ext
11664 LIBS=$ac_check_soname_save_LIBS
11666 if test "x$ac_cv_lib_soname_png" = "x"; then :
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11668 $as_echo "not found" >&6; }
11670 else
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11672 $as_echo "$ac_cv_lib_soname_png" >&6; }
11674 cat >>confdefs.h <<_ACEOF
11675 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11676 _ACEOF
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11681 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11682 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11683 $as_echo_n "(cached) " >&6
11684 else
11685 ac_check_lib_save_LIBS=$LIBS
11686 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11690 /* Override any GCC internal prototype to avoid an error.
11691 Use char because int might match the return type of a GCC
11692 builtin and then its argument prototype would still apply. */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 char png_set_expand_gray_1_2_4_to_8 ();
11698 main ()
11700 return png_set_expand_gray_1_2_4_to_8 ();
11702 return 0;
11704 _ACEOF
11705 if ac_fn_c_try_link "$LINENO"; then :
11706 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11707 else
11708 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11710 rm -f core conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11712 LIBS=$ac_check_lib_save_LIBS
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11715 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11716 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11717 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11723 if test "x$ac_cv_lib_soname_png" = "x"; then :
11724 case "x$with_png" in
11725 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11726 xno) ;;
11727 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11728 This is an error since --with-png was requested." "$LINENO" 5 ;;
11729 esac
11732 if test "$ac_cv_header_tiffio_h" = "yes"
11733 then
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11735 $as_echo_n "checking for -ltiff... " >&6; }
11736 if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11737 $as_echo_n "(cached) " >&6
11738 else
11739 ac_check_soname_save_LIBS=$LIBS
11740 LIBS="-ltiff $LIBS"
11741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11742 /* end confdefs.h. */
11744 /* Override any GCC internal prototype to avoid an error.
11745 Use char because int might match the return type of a GCC
11746 builtin and then its argument prototype would still apply. */
11747 #ifdef __cplusplus
11748 extern "C"
11749 #endif
11750 char TIFFClientOpen ();
11752 main ()
11754 return TIFFClientOpen ();
11756 return 0;
11758 _ACEOF
11759 if ac_fn_c_try_link "$LINENO"; then :
11760 case "$LIBEXT" in
11761 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11762 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'` ;;
11763 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11764 esac
11766 rm -f core conftest.err conftest.$ac_objext \
11767 conftest$ac_exeext conftest.$ac_ext
11768 LIBS=$ac_check_soname_save_LIBS
11770 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11772 $as_echo "not found" >&6; }
11774 else
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11776 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11778 cat >>confdefs.h <<_ACEOF
11779 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11780 _ACEOF
11785 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11786 case "x$with_tiff" in
11787 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11788 xno) ;;
11789 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11790 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11791 esac
11794 if test "$ac_cv_header_mpg123_h" = "yes"
11795 then
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11797 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11798 if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 ac_check_lib_save_LIBS=$LIBS
11802 LIBS="-lmpg123 $LIBS"
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h. */
11806 /* Override any GCC internal prototype to avoid an error.
11807 Use char because int might match the return type of a GCC
11808 builtin and then its argument prototype would still apply. */
11809 #ifdef __cplusplus
11810 extern "C"
11811 #endif
11812 char mpg123_feed ();
11814 main ()
11816 return mpg123_feed ();
11818 return 0;
11820 _ACEOF
11821 if ac_fn_c_try_link "$LINENO"; then :
11822 ac_cv_lib_mpg123_mpg123_feed=yes
11823 else
11824 ac_cv_lib_mpg123_mpg123_feed=no
11826 rm -f core conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
11828 LIBS=$ac_check_lib_save_LIBS
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11831 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11832 if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
11833 LIBMPG123="-lmpg123"
11838 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11839 case "x$with_mpg123" in
11840 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11841 xno) ;;
11842 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11843 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11844 esac
11846 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}
11848 if test "$ac_cv_header_AL_al_h" = "yes"
11849 then
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11851 $as_echo_n "checking for -lopenal... " >&6; }
11852 if test "${ac_cv_lib_soname_openal+set}" = set; then :
11853 $as_echo_n "(cached) " >&6
11854 else
11855 ac_check_soname_save_LIBS=$LIBS
11856 LIBS="-lopenal $LIBS"
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h. */
11860 /* Override any GCC internal prototype to avoid an error.
11861 Use char because int might match the return type of a GCC
11862 builtin and then its argument prototype would still apply. */
11863 #ifdef __cplusplus
11864 extern "C"
11865 #endif
11866 char alGetSource3i ();
11868 main ()
11870 return alGetSource3i ();
11872 return 0;
11874 _ACEOF
11875 if ac_fn_c_try_link "$LINENO"; then :
11876 case "$LIBEXT" in
11877 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11878 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'` ;;
11879 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11880 esac
11882 rm -f core conftest.err conftest.$ac_objext \
11883 conftest$ac_exeext conftest.$ac_ext
11884 LIBS=$ac_check_soname_save_LIBS
11886 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11888 $as_echo "not found" >&6; }
11890 else
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11892 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11894 cat >>confdefs.h <<_ACEOF
11895 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11896 _ACEOF
11898 LIBOPENAL="-lopenal"
11900 ac_cv_lib_openal=yes
11902 cat >>confdefs.h <<_ACEOF
11903 #define HAVE_OPENAL 1
11904 _ACEOF
11908 if test "x$ac_cv_lib_openal" != xyes; then :
11909 case "x$with_openal" in
11910 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11911 xno) ;;
11912 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11913 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11914 esac
11916 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11918 if test "$ac_cv_header_kstat_h" = "yes"
11919 then
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11921 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11922 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11923 $as_echo_n "(cached) " >&6
11924 else
11925 ac_check_lib_save_LIBS=$LIBS
11926 LIBS="-lkstat $LIBS"
11927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h. */
11930 /* Override any GCC internal prototype to avoid an error.
11931 Use char because int might match the return type of a GCC
11932 builtin and then its argument prototype would still apply. */
11933 #ifdef __cplusplus
11934 extern "C"
11935 #endif
11936 char kstat_open ();
11938 main ()
11940 return kstat_open ();
11942 return 0;
11944 _ACEOF
11945 if ac_fn_c_try_link "$LINENO"; then :
11946 ac_cv_lib_kstat_kstat_open=yes
11947 else
11948 ac_cv_lib_kstat_kstat_open=no
11950 rm -f core conftest.err conftest.$ac_objext \
11951 conftest$ac_exeext conftest.$ac_ext
11952 LIBS=$ac_check_lib_save_LIBS
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11955 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11956 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11958 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11960 LIBKSTAT="-lkstat"
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11967 $as_echo_n "checking for -lodbc... " >&6; }
11968 if test "${ac_cv_lib_soname_odbc+set}" = set; then :
11969 $as_echo_n "(cached) " >&6
11970 else
11971 ac_check_soname_save_LIBS=$LIBS
11972 LIBS="-lodbc $LIBS"
11973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11974 /* end confdefs.h. */
11976 /* Override any GCC internal prototype to avoid an error.
11977 Use char because int might match the return type of a GCC
11978 builtin and then its argument prototype would still apply. */
11979 #ifdef __cplusplus
11980 extern "C"
11981 #endif
11982 char SQLConnect ();
11984 main ()
11986 return SQLConnect ();
11988 return 0;
11990 _ACEOF
11991 if ac_fn_c_try_link "$LINENO"; then :
11992 case "$LIBEXT" in
11993 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11994 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'` ;;
11995 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11996 esac
11998 rm -f core conftest.err conftest.$ac_objext \
11999 conftest$ac_exeext conftest.$ac_ext
12000 LIBS=$ac_check_soname_save_LIBS
12002 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12004 $as_echo "not found" >&6; }
12005 cat >>confdefs.h <<_ACEOF
12006 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12007 _ACEOF
12009 else
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12011 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12013 cat >>confdefs.h <<_ACEOF
12014 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12015 _ACEOF
12020 if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
12021 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
12022 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
12023 "$ac_cv_header_soundcard_h" != "yes" -a \
12024 "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono
12025 then
12026 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12030 EXTRACFLAGS=""
12032 if test "x${GCC}" = "xyes"
12033 then
12034 EXTRACFLAGS="-Wall -pipe"
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12037 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12038 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
12039 $as_echo_n "(cached) " >&6
12040 else
12041 if test "$cross_compiling" = yes; then :
12042 ac_cv_c_gcc_strength_bug="yes"
12043 else
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12046 int L[4] = {0,1,2,3};
12048 main ()
12050 static int Array[3];
12051 unsigned int B = 3;
12052 int i;
12053 for(i=0; i<B; i++) Array[i] = i - 3;
12054 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12055 L[i] = 4;
12056 return (Array[1] != -2 || L[2] != 3)
12058 return 0;
12060 _ACEOF
12061 if ac_fn_c_try_run "$LINENO"; then :
12062 ac_cv_c_gcc_strength_bug="no"
12063 else
12064 ac_cv_c_gcc_strength_bug="yes"
12066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12067 conftest.$ac_objext conftest.beam conftest.$ac_ext
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12072 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12073 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12074 then
12075 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12079 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12080 if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
12081 $as_echo_n "(cached) " >&6
12082 else
12083 ac_wine_try_cflags_saved=$CFLAGS
12084 CFLAGS="$CFLAGS -fno-builtin"
12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h. */
12087 int main(int argc, char **argv) { return 0; }
12088 _ACEOF
12089 if ac_fn_c_try_link "$LINENO"; then :
12090 ac_cv_cflags__fno_builtin=yes
12091 else
12092 ac_cv_cflags__fno_builtin=no
12094 rm -f core conftest.err conftest.$ac_objext \
12095 conftest$ac_exeext conftest.$ac_ext
12096 CFLAGS=$ac_wine_try_cflags_saved
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12099 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12100 if test $ac_cv_cflags__fno_builtin = yes; then :
12101 BUILTINFLAG="-fno-builtin"
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12105 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12106 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
12107 $as_echo_n "(cached) " >&6
12108 else
12109 ac_wine_try_cflags_saved=$CFLAGS
12110 CFLAGS="$CFLAGS -fno-strict-aliasing"
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h. */
12113 int main(int argc, char **argv) { return 0; }
12114 _ACEOF
12115 if ac_fn_c_try_link "$LINENO"; then :
12116 ac_cv_cflags__fno_strict_aliasing=yes
12117 else
12118 ac_cv_cflags__fno_strict_aliasing=no
12120 rm -f core conftest.err conftest.$ac_objext \
12121 conftest$ac_exeext conftest.$ac_ext
12122 CFLAGS=$ac_wine_try_cflags_saved
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12125 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12126 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12127 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12130 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12131 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
12132 $as_echo_n "(cached) " >&6
12133 else
12134 ac_wine_try_cflags_saved=$CFLAGS
12135 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137 /* end confdefs.h. */
12138 int main(int argc, char **argv) { return 0; }
12139 _ACEOF
12140 if ac_fn_c_try_link "$LINENO"; then :
12141 ac_cv_cflags__Wdeclaration_after_statement=yes
12142 else
12143 ac_cv_cflags__Wdeclaration_after_statement=no
12145 rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12147 CFLAGS=$ac_wine_try_cflags_saved
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12150 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12151 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12152 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12155 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12156 if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 ac_wine_try_cflags_saved=$CFLAGS
12160 CFLAGS="$CFLAGS -Wstrict-prototypes"
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12163 int main(int argc, char **argv) { return 0; }
12164 _ACEOF
12165 if ac_fn_c_try_link "$LINENO"; then :
12166 ac_cv_cflags__Wstrict_prototypes=yes
12167 else
12168 ac_cv_cflags__Wstrict_prototypes=no
12170 rm -f core conftest.err conftest.$ac_objext \
12171 conftest$ac_exeext conftest.$ac_ext
12172 CFLAGS=$ac_wine_try_cflags_saved
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12175 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12176 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12177 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12180 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12181 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
12182 $as_echo_n "(cached) " >&6
12183 else
12184 ac_wine_try_cflags_saved=$CFLAGS
12185 CFLAGS="$CFLAGS -Wtype-limits"
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12188 int main(int argc, char **argv) { return 0; }
12189 _ACEOF
12190 if ac_fn_c_try_link "$LINENO"; then :
12191 ac_cv_cflags__Wtype_limits=yes
12192 else
12193 ac_cv_cflags__Wtype_limits=no
12195 rm -f core conftest.err conftest.$ac_objext \
12196 conftest$ac_exeext conftest.$ac_ext
12197 CFLAGS=$ac_wine_try_cflags_saved
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12200 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12201 if test $ac_cv_cflags__Wtype_limits = yes; then :
12202 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12205 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12206 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
12207 $as_echo_n "(cached) " >&6
12208 else
12209 ac_wine_try_cflags_saved=$CFLAGS
12210 CFLAGS="$CFLAGS -Wwrite-strings"
12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12213 int main(int argc, char **argv) { return 0; }
12214 _ACEOF
12215 if ac_fn_c_try_link "$LINENO"; then :
12216 ac_cv_cflags__Wwrite_strings=yes
12217 else
12218 ac_cv_cflags__Wwrite_strings=no
12220 rm -f core conftest.err conftest.$ac_objext \
12221 conftest$ac_exeext conftest.$ac_ext
12222 CFLAGS=$ac_wine_try_cflags_saved
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12225 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12226 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12227 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12230 saved_CFLAGS="$CFLAGS"
12231 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12233 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12234 if test "${ac_cv_c_string_h_warnings+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12239 #include <string.h>
12241 main ()
12245 return 0;
12247 _ACEOF
12248 if ac_fn_c_try_compile "$LINENO"; then :
12249 ac_cv_c_string_h_warnings=no
12250 else
12251 ac_cv_c_string_h_warnings=yes
12253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12256 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12257 CFLAGS="$saved_CFLAGS"
12258 if test "$ac_cv_c_string_h_warnings" = "no"
12259 then
12260 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12263 saved_CFLAGS="$CFLAGS"
12264 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12266 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12267 if test "${ac_cv_c_logicalop_noisy+set}" = set; then :
12268 $as_echo_n "(cached) " >&6
12269 else
12270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12271 /* end confdefs.h. */
12272 #include <string.h>
12274 main ()
12276 char*f(const char *h,char n) {return strchr(h,n);}
12278 return 0;
12280 _ACEOF
12281 if ac_fn_c_try_compile "$LINENO"; then :
12282 ac_cv_c_logicalop_noisy=no
12283 else
12284 ac_cv_c_logicalop_noisy=yes
12286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12289 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12290 CFLAGS="$saved_CFLAGS"
12291 if test "$ac_cv_c_logicalop_noisy" = "no"
12292 then
12293 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12296 if test "x$enable_maintainer_mode" = "xyes"
12297 then
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12299 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12300 if test "${ac_cv_cflags__Werror+set}" = set; then :
12301 $as_echo_n "(cached) " >&6
12302 else
12303 ac_wine_try_cflags_saved=$CFLAGS
12304 CFLAGS="$CFLAGS -Werror"
12305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306 /* end confdefs.h. */
12307 int main(int argc, char **argv) { return 0; }
12308 _ACEOF
12309 if ac_fn_c_try_link "$LINENO"; then :
12310 ac_cv_cflags__Werror=yes
12311 else
12312 ac_cv_cflags__Werror=no
12314 rm -f core conftest.err conftest.$ac_objext \
12315 conftest$ac_exeext conftest.$ac_ext
12316 CFLAGS=$ac_wine_try_cflags_saved
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12319 $as_echo "$ac_cv_cflags__Werror" >&6; }
12320 if test $ac_cv_cflags__Werror = yes; then :
12321 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12325 saved_CFLAGS="$CFLAGS"
12326 CFLAGS="$CFLAGS -Werror"
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12328 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12329 if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h. */
12334 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12336 main ()
12340 return 0;
12342 _ACEOF
12343 if ac_fn_c_try_compile "$LINENO"; then :
12344 ac_cv_have_ms_hook_prologue="yes"
12345 else
12346 ac_cv_have_ms_hook_prologue="no"
12348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12351 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12352 CFLAGS="$saved_CFLAGS"
12353 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12354 then
12356 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12358 else
12359 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12366 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12367 if test "${ac_cv_c_fortify_enabled+set}" = set; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371 /* end confdefs.h. */
12372 #include <string.h>
12374 main ()
12376 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12377 #error Fortify enabled
12378 #endif
12380 return 0;
12382 _ACEOF
12383 if ac_fn_c_try_compile "$LINENO"; then :
12384 ac_cv_c_fortify_enabled=no
12385 else
12386 ac_cv_c_fortify_enabled=yes
12388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12391 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12392 if test "$ac_cv_c_fortify_enabled" = yes
12393 then
12394 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12399 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12400 if test "${ac_cv_c_extern_prefix+set}" = set; then :
12401 $as_echo_n "(cached) " >&6
12402 else
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12405 extern int ac_test;
12407 main ()
12409 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12411 return 0;
12413 _ACEOF
12414 if ac_fn_c_try_link "$LINENO"; then :
12415 ac_cv_c_extern_prefix="yes"
12416 else
12417 ac_cv_c_extern_prefix="no"
12419 rm -f core conftest.err conftest.$ac_objext \
12420 conftest$ac_exeext conftest.$ac_ext
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12423 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12425 case $host_cpu in
12426 *i[3456789]86*)
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12428 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12429 if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
12430 $as_echo_n "(cached) " >&6
12431 else
12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12434 #ifndef _MSC_VER
12435 #define __stdcall __attribute__((__stdcall__))
12436 #endif
12437 int __stdcall ac_test(int i) { return i; }
12439 main ()
12441 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12443 return 0;
12445 _ACEOF
12446 if ac_fn_c_try_link "$LINENO"; then :
12447 ac_cv_c_stdcall_suffix="yes"
12448 else
12449 ac_cv_c_stdcall_suffix="no"
12451 rm -f core conftest.err conftest.$ac_objext \
12452 conftest$ac_exeext conftest.$ac_ext
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12455 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12456 *) ac_cv_c_stdcall_suffix="no" ;;
12457 esac
12460 if test "$ac_cv_c_extern_prefix" = "yes"
12461 then
12462 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12464 asm_name_prefix="_"
12465 else
12466 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12468 asm_name_prefix=""
12472 if test "$ac_cv_c_stdcall_suffix" = "yes"
12473 then
12474 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12476 else
12477 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12483 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12484 if test "${ac_cv_asm_func_def+set}" = set; then :
12485 $as_echo_n "(cached) " >&6
12486 else
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12491 main ()
12493 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12495 return 0;
12497 _ACEOF
12498 if ac_fn_c_try_link "$LINENO"; then :
12499 ac_cv_asm_func_def=".def"
12500 else
12501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h. */
12505 main ()
12507 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12509 return 0;
12511 _ACEOF
12512 if ac_fn_c_try_link "$LINENO"; then :
12513 ac_cv_asm_func_def=".type @function"
12514 else
12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h. */
12519 main ()
12521 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12523 return 0;
12525 _ACEOF
12526 if ac_fn_c_try_link "$LINENO"; then :
12527 ac_cv_asm_func_def=".type 2"
12528 else
12529 ac_cv_asm_func_def="unknown"
12531 rm -f core conftest.err conftest.$ac_objext \
12532 conftest$ac_exeext conftest.$ac_ext
12534 rm -f core conftest.err conftest.$ac_objext \
12535 conftest$ac_exeext conftest.$ac_ext
12537 rm -f core conftest.err conftest.$ac_objext \
12538 conftest$ac_exeext conftest.$ac_ext
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12541 $as_echo "$ac_cv_asm_func_def" >&6; }
12544 case "$ac_cv_asm_func_def" in
12545 ".def")
12546 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12548 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12549 ".type @function")
12550 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12552 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12553 ".type 2")
12554 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12556 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12558 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12560 asm_func_header="" ;;
12561 esac
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12564 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12565 if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
12566 $as_echo_n "(cached) " >&6
12567 else
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12570 asm(".text\n\t.long 0");
12572 main ()
12576 return 0;
12578 _ACEOF
12579 if ac_fn_c_try_compile "$LINENO"; then :
12580 ac_cv_c_asm_outside_funcs="yes"
12581 else
12582 ac_cv_c_asm_outside_funcs="no"
12584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12587 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12590 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12591 if test "${ac_cv_c_dot_previous+set}" = set; then :
12592 $as_echo_n "(cached) " >&6
12593 else
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12598 main ()
12600 asm(".text\nac_test:\t.long 0\n\t.previous");
12602 return 0;
12604 _ACEOF
12605 if ac_fn_c_try_link "$LINENO"; then :
12606 ac_cv_c_dot_previous="yes"
12607 else
12608 ac_cv_c_dot_previous="no"
12610 rm -f core conftest.err conftest.$ac_objext \
12611 conftest$ac_exeext conftest.$ac_ext
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12614 $as_echo "$ac_cv_c_dot_previous" >&6; }
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12617 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12618 if test "${ac_cv_c_cfi_support+set}" = set; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h. */
12623 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12625 main ()
12629 return 0;
12631 _ACEOF
12632 if ac_fn_c_try_compile "$LINENO"; then :
12633 ac_cv_c_cfi_support="yes"
12634 else
12635 ac_cv_c_cfi_support="no"
12637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12640 $as_echo "$ac_cv_c_cfi_support" >&6; }
12642 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12643 asm_func_trailer=""
12644 if test "$ac_cv_c_dot_previous" = "yes"
12645 then
12646 asm_func_trailer="\\n\\t.previous"
12648 if test "$ac_cv_c_cfi_support" = "yes"
12649 then
12650 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12651 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12653 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12655 UNWINDFLAGS=-fasynchronous-unwind-tables
12657 else
12658 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12662 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12665 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12666 then
12667 cat >>confdefs.h <<_ACEOF
12668 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12669 _ACEOF
12671 else
12672 cat >>confdefs.h <<_ACEOF
12673 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12674 _ACEOF
12678 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12681 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12685 LDPATH=""
12687 case $build_os in
12688 cygwin*|mingw32*)
12689 TOOLSEXT=".exe"
12691 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12693 darwin*|macosx*)
12696 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12698 esac
12700 case $host_os in
12701 mingw32*)
12702 CRTLIBS="-lmsvcrt"
12704 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12707 esac
12709 MAIN_BINARY="wine"
12711 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12713 case $host_os in
12714 linux*)
12715 case $host_cpu in
12716 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12718 x86_64*) EXTRA_BINARIES="wine64-preloader"
12720 esac
12722 esac
12725 ac_save_CFLAGS="$CFLAGS"
12726 CFLAGS="$CFLAGS $BUILTINFLAG"
12727 for ac_func in \
12728 _pclose \
12729 _popen \
12730 _snprintf \
12731 _spawnvp \
12732 _strdup \
12733 _stricmp \
12734 _strnicmp \
12735 _strtoi64 \
12736 _strtoui64 \
12737 _vsnprintf \
12738 asctime_r \
12739 chsize \
12740 dlopen \
12741 epoll_create \
12742 ffs \
12743 finite \
12744 fnmatch \
12745 fork \
12746 fpclass \
12747 fstatfs \
12748 fstatvfs \
12749 ftruncate \
12750 futimes \
12751 futimesat \
12752 getdirentries \
12753 getopt_long \
12754 getpagesize \
12755 getpwuid \
12756 gettid \
12757 gettimeofday \
12758 getuid \
12759 kqueue \
12760 lstat \
12761 memmove \
12762 mmap \
12763 pclose \
12764 pipe2 \
12765 poll \
12766 popen \
12767 port_create \
12768 prctl \
12769 pread \
12770 pwrite \
12771 readdir \
12772 readlink \
12773 sched_setaffinity \
12774 sched_yield \
12775 select \
12776 setproctitle \
12777 setrlimit \
12778 settimeofday \
12779 sigaltstack \
12780 sigprocmask \
12781 snprintf \
12782 spawnvp \
12783 statfs \
12784 statvfs \
12785 strcasecmp \
12786 strdup \
12787 strerror \
12788 strncasecmp \
12789 strtold \
12790 strtoll \
12791 strtoull \
12792 symlink \
12793 tcgetattr \
12794 thr_kill2 \
12795 timegm \
12796 usleep \
12797 vsnprintf \
12798 wait4 \
12799 waitpid \
12801 do :
12802 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12803 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12804 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12805 cat >>confdefs.h <<_ACEOF
12806 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12807 _ACEOF
12810 done
12812 CFLAGS="$ac_save_CFLAGS"
12814 if test "$ac_cv_func_dlopen" = no
12815 then
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12817 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12818 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12819 $as_echo_n "(cached) " >&6
12820 else
12821 ac_check_lib_save_LIBS=$LIBS
12822 LIBS="-ldl $LIBS"
12823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12824 /* end confdefs.h. */
12826 /* Override any GCC internal prototype to avoid an error.
12827 Use char because int might match the return type of a GCC
12828 builtin and then its argument prototype would still apply. */
12829 #ifdef __cplusplus
12830 extern "C"
12831 #endif
12832 char dlopen ();
12834 main ()
12836 return dlopen ();
12838 return 0;
12840 _ACEOF
12841 if ac_fn_c_try_link "$LINENO"; then :
12842 ac_cv_lib_dl_dlopen=yes
12843 else
12844 ac_cv_lib_dl_dlopen=no
12846 rm -f core conftest.err conftest.$ac_objext \
12847 conftest$ac_exeext conftest.$ac_ext
12848 LIBS=$ac_check_lib_save_LIBS
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12851 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12852 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12853 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12854 LIBDL="-ldl"
12859 ac_wine_check_funcs_save_LIBS="$LIBS"
12860 LIBS="$LIBS $LIBDL"
12861 for ac_func in dladdr
12862 do :
12863 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12864 if test "x$ac_cv_func_dladdr" = x""yes; then :
12865 cat >>confdefs.h <<_ACEOF
12866 #define HAVE_DLADDR 1
12867 _ACEOF
12870 done
12872 LIBS="$ac_wine_check_funcs_save_LIBS"
12874 if test "$ac_cv_func_poll" = no
12875 then
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12877 $as_echo_n "checking for poll in -lpoll... " >&6; }
12878 if test "${ac_cv_lib_poll_poll+set}" = set; then :
12879 $as_echo_n "(cached) " >&6
12880 else
12881 ac_check_lib_save_LIBS=$LIBS
12882 LIBS="-lpoll $LIBS"
12883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884 /* end confdefs.h. */
12886 /* Override any GCC internal prototype to avoid an error.
12887 Use char because int might match the return type of a GCC
12888 builtin and then its argument prototype would still apply. */
12889 #ifdef __cplusplus
12890 extern "C"
12891 #endif
12892 char poll ();
12894 main ()
12896 return poll ();
12898 return 0;
12900 _ACEOF
12901 if ac_fn_c_try_link "$LINENO"; then :
12902 ac_cv_lib_poll_poll=yes
12903 else
12904 ac_cv_lib_poll_poll=no
12906 rm -f core conftest.err conftest.$ac_objext \
12907 conftest$ac_exeext conftest.$ac_ext
12908 LIBS=$ac_check_lib_save_LIBS
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12911 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12912 if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12913 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12914 LIBPOLL="-lpoll"
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12921 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12922 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12923 $as_echo_n "(cached) " >&6
12924 else
12925 ac_func_search_save_LIBS=$LIBS
12926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12927 /* end confdefs.h. */
12929 /* Override any GCC internal prototype to avoid an error.
12930 Use char because int might match the return type of a GCC
12931 builtin and then its argument prototype would still apply. */
12932 #ifdef __cplusplus
12933 extern "C"
12934 #endif
12935 char gethostbyname ();
12937 main ()
12939 return gethostbyname ();
12941 return 0;
12943 _ACEOF
12944 for ac_lib in '' nsl; do
12945 if test -z "$ac_lib"; then
12946 ac_res="none required"
12947 else
12948 ac_res=-l$ac_lib
12949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12951 if ac_fn_c_try_link "$LINENO"; then :
12952 ac_cv_search_gethostbyname=$ac_res
12954 rm -f core conftest.err conftest.$ac_objext \
12955 conftest$ac_exeext
12956 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12957 break
12959 done
12960 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12962 else
12963 ac_cv_search_gethostbyname=no
12965 rm conftest.$ac_ext
12966 LIBS=$ac_func_search_save_LIBS
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12969 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12970 ac_res=$ac_cv_search_gethostbyname
12971 if test "$ac_res" != no; then :
12972 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12978 $as_echo_n "checking for library containing connect... " >&6; }
12979 if test "${ac_cv_search_connect+set}" = set; then :
12980 $as_echo_n "(cached) " >&6
12981 else
12982 ac_func_search_save_LIBS=$LIBS
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h. */
12986 /* Override any GCC internal prototype to avoid an error.
12987 Use char because int might match the return type of a GCC
12988 builtin and then its argument prototype would still apply. */
12989 #ifdef __cplusplus
12990 extern "C"
12991 #endif
12992 char connect ();
12994 main ()
12996 return connect ();
12998 return 0;
13000 _ACEOF
13001 for ac_lib in '' socket; do
13002 if test -z "$ac_lib"; then
13003 ac_res="none required"
13004 else
13005 ac_res=-l$ac_lib
13006 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13008 if ac_fn_c_try_link "$LINENO"; then :
13009 ac_cv_search_connect=$ac_res
13011 rm -f core conftest.err conftest.$ac_objext \
13012 conftest$ac_exeext
13013 if test "${ac_cv_search_connect+set}" = set; then :
13014 break
13016 done
13017 if test "${ac_cv_search_connect+set}" = set; then :
13019 else
13020 ac_cv_search_connect=no
13022 rm conftest.$ac_ext
13023 LIBS=$ac_func_search_save_LIBS
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13026 $as_echo "$ac_cv_search_connect" >&6; }
13027 ac_res=$ac_cv_search_connect
13028 if test "$ac_res" != no; then :
13029 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13035 $as_echo_n "checking for library containing inet_aton... " >&6; }
13036 if test "${ac_cv_search_inet_aton+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
13038 else
13039 ac_func_search_save_LIBS=$LIBS
13040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041 /* end confdefs.h. */
13043 /* Override any GCC internal prototype to avoid an error.
13044 Use char because int might match the return type of a GCC
13045 builtin and then its argument prototype would still apply. */
13046 #ifdef __cplusplus
13047 extern "C"
13048 #endif
13049 char inet_aton ();
13051 main ()
13053 return inet_aton ();
13055 return 0;
13057 _ACEOF
13058 for ac_lib in '' resolv; do
13059 if test -z "$ac_lib"; then
13060 ac_res="none required"
13061 else
13062 ac_res=-l$ac_lib
13063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13065 if ac_fn_c_try_link "$LINENO"; then :
13066 ac_cv_search_inet_aton=$ac_res
13068 rm -f core conftest.err conftest.$ac_objext \
13069 conftest$ac_exeext
13070 if test "${ac_cv_search_inet_aton+set}" = set; then :
13071 break
13073 done
13074 if test "${ac_cv_search_inet_aton+set}" = set; then :
13076 else
13077 ac_cv_search_inet_aton=no
13079 rm conftest.$ac_ext
13080 LIBS=$ac_func_search_save_LIBS
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13083 $as_echo "$ac_cv_search_inet_aton" >&6; }
13084 ac_res=$ac_cv_search_inet_aton
13085 if test "$ac_res" != no; then :
13086 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13091 for ac_func in \
13092 getaddrinfo \
13093 getnameinfo \
13094 getnetbyname \
13095 getprotobyname \
13096 getprotobynumber \
13097 getservbyport \
13098 inet_network \
13099 inet_ntop \
13100 inet_pton \
13101 sendmsg \
13102 socketpair \
13104 do :
13105 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13106 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13107 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13108 cat >>confdefs.h <<_ACEOF
13109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13110 _ACEOF
13113 done
13116 LDAPLIBS=""
13118 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13119 then
13120 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13122 if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13124 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13125 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
13126 $as_echo_n "(cached) " >&6
13127 else
13128 ac_check_lib_save_LIBS=$LIBS
13129 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13133 /* Override any GCC internal prototype to avoid an error.
13134 Use char because int might match the return type of a GCC
13135 builtin and then its argument prototype would still apply. */
13136 #ifdef __cplusplus
13137 extern "C"
13138 #endif
13139 char ldap_initialize ();
13141 main ()
13143 return ldap_initialize ();
13145 return 0;
13147 _ACEOF
13148 if ac_fn_c_try_link "$LINENO"; then :
13149 ac_cv_lib_ldap_r_ldap_initialize=yes
13150 else
13151 ac_cv_lib_ldap_r_ldap_initialize=no
13153 rm -f core conftest.err conftest.$ac_objext \
13154 conftest$ac_exeext conftest.$ac_ext
13155 LIBS=$ac_check_lib_save_LIBS
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13158 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13159 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13161 $as_echo_n "checking for ber_init in -llber... " >&6; }
13162 if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
13163 $as_echo_n "(cached) " >&6
13164 else
13165 ac_check_lib_save_LIBS=$LIBS
13166 LIBS="-llber $LIBPTHREAD $LIBS"
13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13170 /* Override any GCC internal prototype to avoid an error.
13171 Use char because int might match the return type of a GCC
13172 builtin and then its argument prototype would still apply. */
13173 #ifdef __cplusplus
13174 extern "C"
13175 #endif
13176 char ber_init ();
13178 main ()
13180 return ber_init ();
13182 return 0;
13184 _ACEOF
13185 if ac_fn_c_try_link "$LINENO"; then :
13186 ac_cv_lib_lber_ber_init=yes
13187 else
13188 ac_cv_lib_lber_ber_init=no
13190 rm -f core conftest.err conftest.$ac_objext \
13191 conftest$ac_exeext conftest.$ac_ext
13192 LIBS=$ac_check_lib_save_LIBS
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13195 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13196 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
13198 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13200 LDAPLIBS="-lldap_r -llber"
13207 ac_wine_check_funcs_save_LIBS="$LIBS"
13208 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13209 for ac_func in \
13210 ldap_count_references \
13211 ldap_first_reference \
13212 ldap_next_reference \
13213 ldap_parse_reference \
13214 ldap_parse_sort_control \
13215 ldap_parse_sortresponse_control \
13216 ldap_parse_vlv_control \
13217 ldap_parse_vlvresponse_control
13218 do :
13219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13220 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13221 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13222 cat >>confdefs.h <<_ACEOF
13223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13224 _ACEOF
13227 done
13229 LIBS="$ac_wine_check_funcs_save_LIBS"
13231 if test "x$LDAPLIBS" = "x"; then :
13232 case "x$with_ldap" in
13233 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13234 xno) ;;
13235 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13236 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13237 esac
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13241 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13242 if test "${wine_cv_one_arg_mkdir+set}" = set; then :
13243 $as_echo_n "(cached) " >&6
13244 else
13245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246 /* end confdefs.h. */
13247 #include <sys/stat.h>
13249 main ()
13251 mkdir("foo");
13253 return 0;
13255 _ACEOF
13256 if ac_fn_c_try_compile "$LINENO"; then :
13257 wine_cv_one_arg_mkdir=yes
13258 else
13259 wine_cv_one_arg_mkdir=no
13261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13264 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13265 if test "$wine_cv_one_arg_mkdir" = "yes"
13266 then
13268 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13274 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13275 if test "${ac_cv_c_const+set}" = set; then :
13276 $as_echo_n "(cached) " >&6
13277 else
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13282 main ()
13284 /* FIXME: Include the comments suggested by Paul. */
13285 #ifndef __cplusplus
13286 /* Ultrix mips cc rejects this. */
13287 typedef int charset[2];
13288 const charset cs;
13289 /* SunOS 4.1.1 cc rejects this. */
13290 char const *const *pcpcc;
13291 char **ppc;
13292 /* NEC SVR4.0.2 mips cc rejects this. */
13293 struct point {int x, y;};
13294 static struct point const zero = {0,0};
13295 /* AIX XL C 1.02.0.0 rejects this.
13296 It does not let you subtract one const X* pointer from another in
13297 an arm of an if-expression whose if-part is not a constant
13298 expression */
13299 const char *g = "string";
13300 pcpcc = &g + (g ? g-g : 0);
13301 /* HPUX 7.0 cc rejects these. */
13302 ++pcpcc;
13303 ppc = (char**) pcpcc;
13304 pcpcc = (char const *const *) ppc;
13305 { /* SCO 3.2v4 cc rejects this. */
13306 char *t;
13307 char const *s = 0 ? (char *) 0 : (char const *) 0;
13309 *t++ = 0;
13310 if (s) return 0;
13312 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13313 int x[] = {25, 17};
13314 const int *foo = &x[0];
13315 ++foo;
13317 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13318 typedef const int *iptr;
13319 iptr p = 0;
13320 ++p;
13322 { /* AIX XL C 1.02.0.0 rejects this saying
13323 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13324 struct s { int j; const int *ap[3]; };
13325 struct s *b; b->j = 5;
13327 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13328 const int foo = 10;
13329 if (!foo) return 0;
13331 return !cs[0] && !zero.x;
13332 #endif
13335 return 0;
13337 _ACEOF
13338 if ac_fn_c_try_compile "$LINENO"; then :
13339 ac_cv_c_const=yes
13340 else
13341 ac_cv_c_const=no
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13346 $as_echo "$ac_cv_c_const" >&6; }
13347 if test $ac_cv_c_const = no; then
13349 $as_echo "#define const /**/" >>confdefs.h
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13354 $as_echo_n "checking for inline... " >&6; }
13355 if test "${ac_cv_c_inline+set}" = set; then :
13356 $as_echo_n "(cached) " >&6
13357 else
13358 ac_cv_c_inline=no
13359 for ac_kw in inline __inline__ __inline; do
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13362 #ifndef __cplusplus
13363 typedef int foo_t;
13364 static $ac_kw foo_t static_foo () {return 0; }
13365 $ac_kw foo_t foo () {return 0; }
13366 #endif
13368 _ACEOF
13369 if ac_fn_c_try_compile "$LINENO"; then :
13370 ac_cv_c_inline=$ac_kw
13372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13373 test "$ac_cv_c_inline" != no && break
13374 done
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13378 $as_echo "$ac_cv_c_inline" >&6; }
13380 case $ac_cv_c_inline in
13381 inline | yes) ;;
13383 case $ac_cv_c_inline in
13384 no) ac_val=;;
13385 *) ac_val=$ac_cv_c_inline;;
13386 esac
13387 cat >>confdefs.h <<_ACEOF
13388 #ifndef __cplusplus
13389 #define inline $ac_val
13390 #endif
13391 _ACEOF
13393 esac
13395 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13396 if test "x$ac_cv_type_mode_t" = x""yes; then :
13398 cat >>confdefs.h <<_ACEOF
13399 #define HAVE_MODE_T 1
13400 _ACEOF
13404 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13405 if test "x$ac_cv_type_off_t" = x""yes; then :
13407 cat >>confdefs.h <<_ACEOF
13408 #define HAVE_OFF_T 1
13409 _ACEOF
13413 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13414 if test "x$ac_cv_type_pid_t" = x""yes; then :
13416 cat >>confdefs.h <<_ACEOF
13417 #define HAVE_PID_T 1
13418 _ACEOF
13422 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13423 if test "x$ac_cv_type_size_t" = x""yes; then :
13425 cat >>confdefs.h <<_ACEOF
13426 #define HAVE_SIZE_T 1
13427 _ACEOF
13431 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13432 if test "x$ac_cv_type_ssize_t" = x""yes; then :
13434 cat >>confdefs.h <<_ACEOF
13435 #define HAVE_SSIZE_T 1
13436 _ACEOF
13440 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13441 if test "x$ac_cv_type_long_long" = x""yes; then :
13443 cat >>confdefs.h <<_ACEOF
13444 #define HAVE_LONG_LONG 1
13445 _ACEOF
13449 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13450 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
13452 cat >>confdefs.h <<_ACEOF
13453 #define HAVE_FSBLKCNT_T 1
13454 _ACEOF
13458 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13459 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
13461 cat >>confdefs.h <<_ACEOF
13462 #define HAVE_FSFILCNT_T 1
13463 _ACEOF
13468 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13469 #include <signal.h>
13471 if test "x$ac_cv_type_sigset_t" = x""yes; then :
13473 cat >>confdefs.h <<_ACEOF
13474 #define HAVE_SIGSET_T 1
13475 _ACEOF
13480 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13482 if test "x$ac_cv_type_request_sense" = x""yes; then :
13484 cat >>confdefs.h <<_ACEOF
13485 #define HAVE_REQUEST_SENSE 1
13486 _ACEOF
13492 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13493 #ifdef HAVE_SYS_SOCKET_H
13494 #include <sys/socket.h>
13495 #endif
13496 #ifdef HAVE_SYS_SOCKETVAR_H
13497 #include <sys/socketvar.h>
13498 #endif
13499 #ifdef HAVE_NET_ROUTE_H
13500 #include <net/route.h>
13501 #endif
13502 #ifdef HAVE_NETINET_IN_H
13503 #include <netinet/in.h>
13504 #endif
13505 #ifdef HAVE_NETINET_IN_SYSTM_H
13506 #include <netinet/in_systm.h>
13507 #endif
13508 #ifdef HAVE_NETINET_IP_H
13509 #include <netinet/ip.h>
13510 #endif
13511 #ifdef HAVE_NETINET_IN_PCB_H
13512 #include <netinet/in_pcb.h>
13513 #endif
13515 if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
13517 cat >>confdefs.h <<_ACEOF
13518 #define HAVE_STRUCT_XINPGEN 1
13519 _ACEOF
13525 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13526 #include <linux/input.h>
13527 #endif
13529 if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
13531 cat >>confdefs.h <<_ACEOF
13532 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13533 _ACEOF
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13540 $as_echo_n "checking for sigaddset... " >&6; }
13541 if test "${wine_cv_have_sigaddset+set}" = set; then :
13542 $as_echo_n "(cached) " >&6
13543 else
13544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h. */
13546 #include <signal.h>
13548 main ()
13550 sigset_t set; sigaddset(&set,SIGTERM);
13552 return 0;
13554 _ACEOF
13555 if ac_fn_c_try_link "$LINENO"; then :
13556 wine_cv_have_sigaddset=yes
13557 else
13558 wine_cv_have_sigaddset=no
13560 rm -f core conftest.err conftest.$ac_objext \
13561 conftest$ac_exeext conftest.$ac_ext
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13564 $as_echo "$wine_cv_have_sigaddset" >&6; }
13565 if test "$wine_cv_have_sigaddset" = "yes"
13566 then
13568 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13574 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13575 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13576 $as_echo_n "(cached) " >&6
13577 else
13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579 /* end confdefs.h. */
13580 #include <netdb.h>
13582 main ()
13585 char *name=0;
13586 struct hostent he;
13587 struct hostent *result;
13588 char *buf=0;
13589 int bufsize=0;
13590 int res,errnr;
13591 char *addr=0;
13592 int addrlen=0;
13593 int addrtype=0;
13594 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13595 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13598 return 0;
13600 _ACEOF
13601 if ac_fn_c_try_link "$LINENO"; then :
13602 wine_cv_linux_gethostbyname_r_6=yes
13603 else
13604 wine_cv_linux_gethostbyname_r_6=no
13607 rm -f core conftest.err conftest.$ac_objext \
13608 conftest$ac_exeext conftest.$ac_ext
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13612 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13613 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13614 then
13616 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13620 if test "$ac_cv_header_linux_joystick_h" = "yes"
13621 then
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13623 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13624 if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
13625 $as_echo_n "(cached) " >&6
13626 else
13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h. */
13630 #include <sys/ioctl.h>
13631 #include <sys/types.h>
13632 #include <linux/joystick.h>
13634 struct js_event blub;
13635 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13636 #error "no 2.2 header"
13637 #endif
13640 main ()
13642 /*empty*/
13644 return 0;
13646 _ACEOF
13647 if ac_fn_c_try_compile "$LINENO"; then :
13648 wine_cv_linux_joystick_22_api=yes
13649 else
13650 wine_cv_linux_joystick_22_api=no
13652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13656 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13657 if test "$wine_cv_linux_joystick_22_api" = "yes"
13658 then
13660 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13666 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13667 #ifdef HAVE_SYS_PARAM_H
13668 # include <sys/param.h>
13669 #endif
13670 #ifdef HAVE_SYS_MOUNT_H
13671 # include <sys/mount.h>
13672 #endif
13673 #ifdef HAVE_SYS_VFS_H
13674 # include <sys/vfs.h>
13675 #endif
13676 #ifdef HAVE_SYS_STATFS_H
13677 # include <sys/statfs.h>
13678 #endif
13680 if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
13682 cat >>confdefs.h <<_ACEOF
13683 #define HAVE_STRUCT_STATFS_F_BFREE 1
13684 _ACEOF
13688 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13689 #ifdef HAVE_SYS_PARAM_H
13690 # include <sys/param.h>
13691 #endif
13692 #ifdef HAVE_SYS_MOUNT_H
13693 # include <sys/mount.h>
13694 #endif
13695 #ifdef HAVE_SYS_VFS_H
13696 # include <sys/vfs.h>
13697 #endif
13698 #ifdef HAVE_SYS_STATFS_H
13699 # include <sys/statfs.h>
13700 #endif
13702 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
13704 cat >>confdefs.h <<_ACEOF
13705 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13706 _ACEOF
13710 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13711 #ifdef HAVE_SYS_PARAM_H
13712 # include <sys/param.h>
13713 #endif
13714 #ifdef HAVE_SYS_MOUNT_H
13715 # include <sys/mount.h>
13716 #endif
13717 #ifdef HAVE_SYS_VFS_H
13718 # include <sys/vfs.h>
13719 #endif
13720 #ifdef HAVE_SYS_STATFS_H
13721 # include <sys/statfs.h>
13722 #endif
13724 if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
13726 cat >>confdefs.h <<_ACEOF
13727 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13728 _ACEOF
13732 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13733 #ifdef HAVE_SYS_PARAM_H
13734 # include <sys/param.h>
13735 #endif
13736 #ifdef HAVE_SYS_MOUNT_H
13737 # include <sys/mount.h>
13738 #endif
13739 #ifdef HAVE_SYS_VFS_H
13740 # include <sys/vfs.h>
13741 #endif
13742 #ifdef HAVE_SYS_STATFS_H
13743 # include <sys/statfs.h>
13744 #endif
13746 if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
13748 cat >>confdefs.h <<_ACEOF
13749 #define HAVE_STRUCT_STATFS_F_FFREE 1
13750 _ACEOF
13754 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13755 #ifdef HAVE_SYS_PARAM_H
13756 # include <sys/param.h>
13757 #endif
13758 #ifdef HAVE_SYS_MOUNT_H
13759 # include <sys/mount.h>
13760 #endif
13761 #ifdef HAVE_SYS_VFS_H
13762 # include <sys/vfs.h>
13763 #endif
13764 #ifdef HAVE_SYS_STATFS_H
13765 # include <sys/statfs.h>
13766 #endif
13768 if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
13770 cat >>confdefs.h <<_ACEOF
13771 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13772 _ACEOF
13776 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13777 #ifdef HAVE_SYS_PARAM_H
13778 # include <sys/param.h>
13779 #endif
13780 #ifdef HAVE_SYS_MOUNT_H
13781 # include <sys/mount.h>
13782 #endif
13783 #ifdef HAVE_SYS_VFS_H
13784 # include <sys/vfs.h>
13785 #endif
13786 #ifdef HAVE_SYS_STATFS_H
13787 # include <sys/statfs.h>
13788 #endif
13790 if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
13792 cat >>confdefs.h <<_ACEOF
13793 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13794 _ACEOF
13800 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13801 #include <sys/statvfs.h>
13802 #endif
13804 if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
13806 cat >>confdefs.h <<_ACEOF
13807 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13808 _ACEOF
13814 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13815 #ifdef HAVE_SYS_SOCKET_H
13816 # include <sys/socket.h>
13817 #endif
13818 #ifdef HAVE_SYS_UN_H
13819 # include <sys/un.h>
13820 #endif
13822 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
13824 cat >>confdefs.h <<_ACEOF
13825 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13826 _ACEOF
13830 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13831 #ifdef HAVE_SYS_SOCKET_H
13832 # include <sys/socket.h>
13833 #endif
13834 #ifdef HAVE_SYS_UN_H
13835 # include <sys/un.h>
13836 #endif
13838 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13840 cat >>confdefs.h <<_ACEOF
13841 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13842 _ACEOF
13846 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13847 #ifdef HAVE_SYS_SOCKET_H
13848 # include <sys/socket.h>
13849 #endif
13850 #ifdef HAVE_SYS_UN_H
13851 # include <sys/un.h>
13852 #endif
13854 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
13856 cat >>confdefs.h <<_ACEOF
13857 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13858 _ACEOF
13864 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13865 #ifdef HAVE_SCSI_SG_H
13866 #include <scsi/sg.h>
13867 #endif
13869 if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
13871 cat >>confdefs.h <<_ACEOF
13872 #define HAVE_SCSIREQ_T_CMD 1
13873 _ACEOF
13877 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>
13878 #ifdef HAVE_SCSI_SG_H
13879 #include <scsi/sg.h>
13880 #endif
13882 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
13884 cat >>confdefs.h <<_ACEOF
13885 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13886 _ACEOF
13892 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13894 if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
13896 cat >>confdefs.h <<_ACEOF
13897 #define HAVE_SIGINFO_T_SI_FD 1
13898 _ACEOF
13904 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13905 #ifdef HAVE_SYS_MTIO_H
13906 #include <sys/mtio.h>
13907 #endif
13909 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
13911 cat >>confdefs.h <<_ACEOF
13912 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13913 _ACEOF
13917 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13918 #ifdef HAVE_SYS_MTIO_H
13919 #include <sys/mtio.h>
13920 #endif
13922 if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
13924 cat >>confdefs.h <<_ACEOF
13925 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13926 _ACEOF
13930 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13931 #ifdef HAVE_SYS_MTIO_H
13932 #include <sys/mtio.h>
13933 #endif
13935 if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
13937 cat >>confdefs.h <<_ACEOF
13938 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13939 _ACEOF
13945 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13946 #include <getopt.h>
13947 #endif
13949 if test "x$ac_cv_member_struct_option_name" = x""yes; then :
13951 cat >>confdefs.h <<_ACEOF
13952 #define HAVE_STRUCT_OPTION_NAME 1
13953 _ACEOF
13959 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13960 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
13962 cat >>confdefs.h <<_ACEOF
13963 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13964 _ACEOF
13968 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13969 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
13971 cat >>confdefs.h <<_ACEOF
13972 #define HAVE_STRUCT_STAT_ST_MTIM 1
13973 _ACEOF
13977 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13978 if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
13980 cat >>confdefs.h <<_ACEOF
13981 #define HAVE_STRUCT_STAT_ST_CTIM 1
13982 _ACEOF
13986 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13987 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
13989 cat >>confdefs.h <<_ACEOF
13990 #define HAVE_STRUCT_STAT_ST_ATIM 1
13991 _ACEOF
13997 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
13998 #include <sys/types.h>
13999 #endif
14000 #ifdef HAVE_NETINET_IN_H
14001 #include <netinet/in.h>
14002 #endif
14004 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
14006 cat >>confdefs.h <<_ACEOF
14007 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14008 _ACEOF
14014 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14015 #include <sys/types.h>
14016 #endif
14017 #ifdef HAVE_NETINET_IN_H
14018 # include <netinet/in.h>
14019 #endif
14020 #ifdef HAVE_ARPA_NAMESER_H
14021 # include <arpa/nameser.h>
14022 #endif
14024 if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
14026 cat >>confdefs.h <<_ACEOF
14027 #define HAVE_NS_MSG__MSG_PTR 1
14028 _ACEOF
14034 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14035 #include <sys/types.h>
14036 #endif
14037 #ifdef HAVE_ALIAS_H
14038 #include <alias.h>
14039 #endif
14040 #ifdef HAVE_SYS_SOCKET_H
14041 #include <sys/socket.h>
14042 #endif
14043 #ifdef HAVE_SYS_SOCKETVAR_H
14044 #include <sys/socketvar.h>
14045 #endif
14046 #ifdef HAVE_SYS_TIMEOUT_H
14047 #include <sys/timeout.h>
14048 #endif
14049 #ifdef HAVE_NETINET_IN_H
14050 #include <netinet/in.h>
14051 #endif
14052 #ifdef HAVE_NETINET_IN_SYSTM_H
14053 #include <netinet/in_systm.h>
14054 #endif
14055 #ifdef HAVE_NETINET_IP_H
14056 #include <netinet/ip.h>
14057 #endif
14058 #ifdef HAVE_NETINET_IP_VAR_H
14059 #include <netinet/ip_var.h>
14060 #endif
14061 #ifdef HAVE_NETINET_IP_ICMP_H
14062 #include <netinet/ip_icmp.h>
14063 #endif
14064 #ifdef HAVE_NETINET_ICMP_VAR
14065 #include <netinet/icmp_var.h>
14066 #endif
14068 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
14070 cat >>confdefs.h <<_ACEOF
14071 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14072 _ACEOF
14078 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14079 #include <sys/types.h>
14080 #endif
14081 #ifdef HAVE_NET_IF_H
14082 # include <net/if.h>
14083 #endif
14085 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
14087 cat >>confdefs.h <<_ACEOF
14088 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14089 _ACEOF
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14096 $as_echo_n "checking for timezone variable... " >&6; }
14097 if test "${ac_cv_have_timezone+set}" = set; then :
14098 $as_echo_n "(cached) " >&6
14099 else
14100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14102 #include <time.h>
14104 main ()
14106 timezone = 1
14108 return 0;
14110 _ACEOF
14111 if ac_fn_c_try_link "$LINENO"; then :
14112 ac_cv_have_timezone="yes"
14113 else
14114 ac_cv_have_timezone="no"
14116 rm -f core conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14120 $as_echo "$ac_cv_have_timezone" >&6; }
14121 if test "$ac_cv_have_timezone" = "yes"
14122 then
14124 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14128 $as_echo_n "checking for daylight variable... " >&6; }
14129 if test "${ac_cv_have_daylight+set}" = set; then :
14130 $as_echo_n "(cached) " >&6
14131 else
14132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14133 /* end confdefs.h. */
14134 #include <time.h>
14136 main ()
14138 daylight = 1
14140 return 0;
14142 _ACEOF
14143 if ac_fn_c_try_link "$LINENO"; then :
14144 ac_cv_have_daylight="yes"
14145 else
14146 ac_cv_have_daylight="no"
14148 rm -f core conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14152 $as_echo "$ac_cv_have_daylight" >&6; }
14153 if test "$ac_cv_have_daylight" = "yes"
14154 then
14156 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14161 $as_echo_n "checking for isinf... " >&6; }
14162 if test "${ac_cv_have_isinf+set}" = set; then :
14163 $as_echo_n "(cached) " >&6
14164 else
14165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14167 #include <math.h>
14169 main ()
14171 float f = 0.0; int i=isinf(f)
14173 return 0;
14175 _ACEOF
14176 if ac_fn_c_try_link "$LINENO"; then :
14177 ac_cv_have_isinf="yes"
14178 else
14179 ac_cv_have_isinf="no"
14181 rm -f core conftest.err conftest.$ac_objext \
14182 conftest$ac_exeext conftest.$ac_ext
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14185 $as_echo "$ac_cv_have_isinf" >&6; }
14186 if test "$ac_cv_have_isinf" = "yes"
14187 then
14189 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14194 $as_echo_n "checking for isnan... " >&6; }
14195 if test "${ac_cv_have_isnan+set}" = set; then :
14196 $as_echo_n "(cached) " >&6
14197 else
14198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h. */
14200 #include <math.h>
14202 main ()
14204 float f = 0.0; int i=isnan(f)
14206 return 0;
14208 _ACEOF
14209 if ac_fn_c_try_link "$LINENO"; then :
14210 ac_cv_have_isnan="yes"
14211 else
14212 ac_cv_have_isnan="no"
14214 rm -f core conftest.err conftest.$ac_objext \
14215 conftest$ac_exeext conftest.$ac_ext
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14218 $as_echo "$ac_cv_have_isnan" >&6; }
14219 if test "$ac_cv_have_isnan" = "yes"
14220 then
14222 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14227 case $host_cpu in
14228 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14229 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14230 if test "${ac_cv_cpp_def___i386__+set}" = set; then :
14231 $as_echo_n "(cached) " >&6
14232 else
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14235 #ifndef __i386__
14237 #endif
14238 _ACEOF
14239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14240 $EGREP "yes" >/dev/null 2>&1; then :
14241 ac_cv_cpp_def___i386__=yes
14242 else
14243 ac_cv_cpp_def___i386__=no
14245 rm -f conftest*
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14249 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14250 if test $ac_cv_cpp_def___i386__ = yes; then :
14251 CFLAGS="$CFLAGS -D__i386__"
14252 LINTFLAGS="$LINTFLAGS -D__i386__"
14253 fi ;;
14254 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14255 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14256 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
14257 $as_echo_n "(cached) " >&6
14258 else
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14261 #ifndef __x86_64__
14263 #endif
14264 _ACEOF
14265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14266 $EGREP "yes" >/dev/null 2>&1; then :
14267 ac_cv_cpp_def___x86_64__=yes
14268 else
14269 ac_cv_cpp_def___x86_64__=no
14271 rm -f conftest*
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14275 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14276 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14277 CFLAGS="$CFLAGS -D__x86_64__"
14278 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14279 fi ;;
14280 *alpha*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
14281 $as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
14282 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
14283 $as_echo_n "(cached) " >&6
14284 else
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h. */
14287 #ifndef __ALPHA__
14289 #endif
14290 _ACEOF
14291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14292 $EGREP "yes" >/dev/null 2>&1; then :
14293 ac_cv_cpp_def___ALPHA__=yes
14294 else
14295 ac_cv_cpp_def___ALPHA__=no
14297 rm -f conftest*
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
14301 $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
14302 if test $ac_cv_cpp_def___ALPHA__ = yes; then :
14303 CFLAGS="$CFLAGS -D__ALPHA__"
14304 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
14305 fi ;;
14306 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14307 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14308 if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
14309 $as_echo_n "(cached) " >&6
14310 else
14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h. */
14313 #ifndef __sparc__
14315 #endif
14316 _ACEOF
14317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14318 $EGREP "yes" >/dev/null 2>&1; then :
14319 ac_cv_cpp_def___sparc__=yes
14320 else
14321 ac_cv_cpp_def___sparc__=no
14323 rm -f conftest*
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14327 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14328 if test $ac_cv_cpp_def___sparc__ = yes; then :
14329 CFLAGS="$CFLAGS -D__sparc__"
14330 LINTFLAGS="$LINTFLAGS -D__sparc__"
14331 fi ;;
14332 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14333 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14334 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
14335 $as_echo_n "(cached) " >&6
14336 else
14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h. */
14339 #ifndef __powerpc__
14341 #endif
14342 _ACEOF
14343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14344 $EGREP "yes" >/dev/null 2>&1; then :
14345 ac_cv_cpp_def___powerpc__=yes
14346 else
14347 ac_cv_cpp_def___powerpc__=no
14349 rm -f conftest*
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14353 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14354 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14355 CFLAGS="$CFLAGS -D__powerpc__"
14356 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14357 fi ;;
14358 esac
14360 case $host_vendor in
14361 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14362 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14363 if test "${ac_cv_cpp_def___sun__+set}" = set; then :
14364 $as_echo_n "(cached) " >&6
14365 else
14366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14367 /* end confdefs.h. */
14368 #ifndef __sun__
14370 #endif
14371 _ACEOF
14372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14373 $EGREP "yes" >/dev/null 2>&1; then :
14374 ac_cv_cpp_def___sun__=yes
14375 else
14376 ac_cv_cpp_def___sun__=no
14378 rm -f conftest*
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14382 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14383 if test $ac_cv_cpp_def___sun__ = yes; then :
14384 CFLAGS="$CFLAGS -D__sun__"
14385 LINTFLAGS="$LINTFLAGS -D__sun__"
14386 fi ;;
14387 esac
14393 ac_config_commands="$ac_config_commands include/stamp-h"
14396 ALL_MAKEFILE_DEPENDS="
14397 # Rules automatically generated by configure
14399 .INIT: Makefile
14400 .MAKEFILEDEPS:
14401 all: Makefile
14402 Makefile: Makefile.in Make.vars.in Make.rules config.status
14403 @./config.status Make.tmp Makefile"
14405 ALL_WINETEST_DEPENDS="# Test binaries"
14407 ALL_TEST_BINARIES=""
14410 wine_fn_append_file ()
14412 as_fn_append $1 " \\$as_nl $2"
14415 wine_fn_append_rule ()
14417 as_fn_append $1 "$as_nl$2"
14420 wine_fn_all_dir_rules ()
14422 ac_dir=$1
14423 ac_alldeps=$2
14424 ac_makedep="\$(MAKEDEP)"
14425 ac_input=Make.vars.in:$ac_dir/Makefile.in
14426 if test $ac_dir != tools
14427 then
14428 ac_alldeps="$2 $ac_makedep"
14430 case $2 in
14431 *.in) ac_input=$ac_input:$2 ;;
14432 *) ac_makedep="$2 $ac_makedep" ;;
14433 esac
14435 wine_fn_append_file ALL_DIRS $ac_dir
14436 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14437 "__clean__: $ac_dir/__clean__
14438 .PHONY: $ac_dir/__clean__
14439 $ac_dir/__clean__: $ac_dir/Makefile
14440 @cd $ac_dir && \$(MAKE) clean
14441 \$(RM) $ac_dir/Makefile
14442 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14443 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14444 depend: $ac_dir/__depend__
14445 .PHONY: $ac_dir/__depend__
14446 $ac_dir/__depend__: $ac_makedep dummy
14447 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14450 wine_fn_config_makefile ()
14452 ac_dir=$1
14453 ac_enable=$2
14454 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14455 return 0
14458 wine_fn_all_dir_rules $ac_dir Make.rules
14459 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14460 "all: $ac_dir
14461 .PHONY: $ac_dir
14462 $ac_dir: $ac_dir/Makefile dummy
14463 @cd $ac_dir && \$(MAKE)
14464 install:: $ac_dir
14465 @cd $ac_dir && \$(MAKE) install
14466 install-lib:: $ac_dir
14467 @cd $ac_dir && \$(MAKE) install-lib
14468 install-dev:: $ac_dir
14469 @cd $ac_dir && \$(MAKE) install-dev
14470 uninstall:: $ac_dir/Makefile
14471 @cd $ac_dir && \$(MAKE) uninstall"
14474 wine_fn_config_lib ()
14476 ac_name=$1
14477 ac_dir=dlls/$ac_name
14478 wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules
14479 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14480 "all __builddeps__: $ac_dir
14481 $ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
14482 @cd $ac_dir && \$(MAKE)
14483 install install-dev:: $ac_dir
14484 @cd $ac_dir && \$(MAKE) install
14485 uninstall:: $ac_dir/Makefile
14486 @cd $ac_dir && \$(MAKE) uninstall"
14489 wine_fn_config_dll ()
14491 ac_name=$1
14492 ac_dir=dlls/$ac_name
14493 ac_enable=$2
14494 ac_implib=$3
14495 ac_implibsrc=$4
14496 ac_file=$ac_dir/lib$ac_implib
14497 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14498 ac_implibflags=""
14500 case $ac_name in
14501 *16) ac_implibflags=" -m16" ;;
14502 esac
14504 wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14506 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14507 test "$ac_enable" != enable_win16 || return 0
14508 else
14509 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14510 "all: $ac_dir
14511 .PHONY: $ac_dir
14512 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14513 @cd $ac_dir && \$(MAKE)
14514 install:: $ac_dir/Makefile __builddeps__
14515 @cd $ac_dir && \$(MAKE) install
14516 install-lib:: $ac_dir/Makefile __builddeps__
14517 @cd $ac_dir && \$(MAKE) install-lib
14518 uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14519 @cd $ac_dir && \$(MAKE) \$@"
14522 if test -n "$ac_implibsrc"
14523 then
14524 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14525 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14526 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14527 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14528 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14529 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14530 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14531 install-dev:: $ac_dir/Makefile __builddeps__
14532 @cd $ac_dir && \$(MAKE) install-dev"
14533 if test "x$CROSSTEST_DISABLE" = x
14534 then
14535 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14536 "__builddeps__: $ac_file.cross.a
14537 $ac_file.cross.a: $ac_dir/Makefile dummy
14538 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14541 elif test -n "$ac_implib"
14542 then
14543 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14544 "__builddeps__: $ac_file.$IMPLIBEXT
14545 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14546 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14547 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14548 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14549 install-dev:: $ac_dir/Makefile __builddeps__
14550 @cd $ac_dir && \$(MAKE) install-dev"
14551 if test "x$CROSSTEST_DISABLE" = x
14552 then
14553 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14554 "__builddeps__: $ac_file.cross.a
14555 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14556 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14559 if test "$ac_name" != "$ac_implib"
14560 then
14561 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14562 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14563 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14564 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14565 clean::
14566 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14567 if test "x$CROSSTEST_DISABLE" = x
14568 then
14569 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14570 "__builddeps__: dlls/lib$ac_implib.cross.a
14571 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14572 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14578 wine_fn_config_program ()
14580 ac_name=$1
14581 ac_dir=programs/$ac_name
14582 ac_enable=$2
14583 ac_install=$3
14584 wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules
14586 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14588 else
14589 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14590 "all: $ac_dir
14591 .PHONY: $ac_dir
14592 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14593 @cd $ac_dir && \$(MAKE)"
14595 test -n "$ac_install" || return
14596 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14597 "install install-lib:: $ac_dir/Makefile __builddeps__
14598 @cd $ac_dir && \$(MAKE) install
14599 uninstall:: $ac_dir/Makefile
14600 @cd $ac_dir && \$(MAKE) uninstall"
14601 if test "$ac_install" = installbin -a -n "$DLLEXT" -a "x$enable_tools" != xno
14602 then
14603 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14604 "install install-lib:: tools \$(DESTDIR)\$(bindir)
14605 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14606 uninstall::
14607 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14612 wine_fn_config_test ()
14614 ac_dir=$1
14615 ac_name=$2
14616 wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14617 wine_fn_append_rule ALL_WINETEST_DEPENDS \
14618 "$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT
14619 cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14620 $ac_name.rc:
14621 echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14622 $ac_name.res: $ac_name.rc $ac_name.exe"
14623 wine_fn_all_dir_rules $ac_dir Maketest.rules
14625 if test "x$enable_tests" = x""no; then :
14627 else
14628 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14629 "all programs/winetest: $ac_dir
14630 .PHONY: $ac_dir
14631 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14632 @cd $ac_dir && \$(MAKE)
14633 test: $ac_dir/__test__
14634 .PHONY: $ac_dir/__test__
14635 $ac_dir/__test__: dummy
14636 @cd $ac_dir && \$(MAKE) test
14637 testclean::
14638 \$(RM) $ac_dir/*.ok"
14640 if test "x$CROSSTEST_DISABLE" = x
14641 then
14642 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14643 "crosstest: $ac_dir/__crosstest__
14644 .PHONY: $ac_dir/__crosstest__
14645 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14646 @cd $ac_dir && \$(MAKE) crosstest"
14651 wine_fn_config_tool ()
14653 ac_dir=$1
14654 wine_fn_all_dir_rules $ac_dir Make.rules
14656 if test "x$enable_tools" = x""no; then :
14658 else
14659 case $ac_dir in
14660 tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14661 "install:: $ac_dir
14662 @cd $ac_dir && \$(MAKE) install
14663 install-lib:: $ac_dir
14664 @cd $ac_dir && \$(MAKE) install-lib
14665 install-dev:: $ac_dir
14666 @cd $ac_dir && \$(MAKE) install-dev" ;;
14667 *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14668 "install install-dev:: $ac_dir
14669 @cd $ac_dir && \$(MAKE) install" ;;
14670 esac
14671 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14672 "uninstall:: $ac_dir/Makefile
14673 @cd $ac_dir && \$(MAKE) uninstall
14674 all __tooldeps__: $ac_dir
14675 .PHONY: $ac_dir
14676 $ac_dir: $ac_dir/Makefile libs/port dummy
14677 @cd $ac_dir && \$(MAKE)"
14678 case $ac_dir in
14679 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14680 esac
14684 wine_fn_config_makerules ()
14686 ac_rules=$1
14687 ac_deps=$2
14688 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14689 "$ac_rules: $ac_rules.in $ac_deps config.status
14690 @./config.status $ac_rules
14691 distclean::
14692 \$(RM) $ac_rules"
14695 wine_fn_config_symlink ()
14697 ac_link=$1
14698 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14699 "$ac_link:
14700 @./config.status $ac_link
14701 distclean::
14702 \$(RM) $ac_link"
14705 if test "x$CROSSTEST_DISABLE" != x
14706 then
14707 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14708 "crosstest:
14709 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14711 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14712 wine_fn_config_symlink dlls/shell32/AUTHORS
14713 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14714 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14715 if test "x$enable_fonts" != xno; then
14716 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14717 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14719 if test "x$enable_fonts" != xno; then
14720 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14721 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14723 if test "x$enable_fonts" != xno; then
14724 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14725 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14727 if test "x$enable_fonts" != xno; then
14728 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14729 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14731 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14732 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14733 ac_config_links="$ac_config_links wine:tools/winewrapper"
14734 wine_fn_config_symlink wine
14736 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14738 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14740 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14742 ac_config_commands="$ac_config_commands dlls/user32/resources"
14744 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14746 ac_config_commands="$ac_config_commands include/wine"
14749 wine_fn_config_makerules Make.rules
14750 MAKE_RULES=Make.rules
14751 ac_config_files="$ac_config_files Make.rules"
14753 wine_fn_config_makerules Maketest.rules Make.rules
14754 MAKE_TEST_RULES=Maketest.rules
14755 ac_config_files="$ac_config_files Maketest.rules"
14757 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14758 MAKE_DLL_RULES=dlls/Makedll.rules
14759 ac_config_files="$ac_config_files dlls/Makedll.rules"
14761 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14762 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14763 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14765 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14766 MAKE_PROG_RULES=programs/Makeprog.rules
14767 ac_config_files="$ac_config_files programs/Makeprog.rules"
14770 wine_fn_config_dll acledit enable_acledit
14771 wine_fn_config_dll aclui enable_aclui aclui
14772 wine_fn_config_dll activeds enable_activeds activeds
14773 wine_fn_config_dll actxprxy enable_actxprxy
14774 wine_fn_config_lib adsiid
14775 wine_fn_config_dll advapi32 enable_advapi32 advapi32
14776 wine_fn_config_test dlls/advapi32/tests advapi32_test
14777 wine_fn_config_dll advpack enable_advpack advpack
14778 wine_fn_config_test dlls/advpack/tests advpack_test
14779 wine_fn_config_dll amstream enable_amstream
14780 wine_fn_config_test dlls/amstream/tests amstream_test
14781 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl
14782 wine_fn_config_dll atl enable_atl atl
14783 wine_fn_config_test dlls/atl/tests atl_test
14784 wine_fn_config_dll authz enable_authz
14785 wine_fn_config_dll avicap32 enable_avicap32 avicap32
14786 wine_fn_config_dll avifil32 enable_avifil32 avifil32
14787 wine_fn_config_test dlls/avifil32/tests avifil32_test
14788 wine_fn_config_dll avifile.dll16 enable_win16
14789 wine_fn_config_dll avrt enable_avrt avrt
14790 wine_fn_config_dll bcrypt enable_bcrypt
14791 wine_fn_config_dll browseui enable_browseui
14792 wine_fn_config_test dlls/browseui/tests browseui_test
14793 wine_fn_config_dll cabinet enable_cabinet cabinet
14794 wine_fn_config_test dlls/cabinet/tests cabinet_test
14795 wine_fn_config_dll capi2032 enable_capi2032 capi2032
14796 wine_fn_config_dll cards enable_cards cards
14797 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 cfgmgr32
14798 wine_fn_config_dll clusapi enable_clusapi clusapi
14799 wine_fn_config_dll comcat enable_comcat
14800 wine_fn_config_test dlls/comcat/tests comcat_test
14801 wine_fn_config_dll comctl32 enable_comctl32 comctl32
14802 wine_fn_config_test dlls/comctl32/tests comctl32_test
14803 wine_fn_config_dll comdlg32 enable_comdlg32 comdlg32
14804 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14805 wine_fn_config_dll comm.drv16 enable_win16
14806 wine_fn_config_dll commdlg.dll16 enable_win16
14807 wine_fn_config_dll compobj.dll16 enable_win16
14808 wine_fn_config_dll compstui enable_compstui compstui
14809 wine_fn_config_dll credui enable_credui credui
14810 wine_fn_config_test dlls/credui/tests credui_test
14811 wine_fn_config_dll crtdll enable_crtdll crtdll
14812 wine_fn_config_dll crypt32 enable_crypt32 crypt32
14813 wine_fn_config_test dlls/crypt32/tests crypt32_test
14814 wine_fn_config_dll cryptdlg enable_cryptdlg
14815 wine_fn_config_dll cryptdll enable_cryptdll cryptdll
14816 wine_fn_config_dll cryptnet enable_cryptnet cryptnet
14817 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14818 wine_fn_config_dll cryptui enable_cryptui cryptui
14819 wine_fn_config_test dlls/cryptui/tests cryptui_test
14820 wine_fn_config_dll ctapi32 enable_ctapi32
14821 wine_fn_config_dll ctl3d.dll16 enable_win16
14822 wine_fn_config_dll ctl3d32 enable_ctl3d32 ctl3d32
14823 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14824 wine_fn_config_dll d3d10 enable_d3d10 d3d10
14825 wine_fn_config_test dlls/d3d10/tests d3d10_test
14826 wine_fn_config_dll d3d10core enable_d3d10core d3d10core
14827 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14828 wine_fn_config_dll d3d8 enable_d3d8 d3d8
14829 wine_fn_config_test dlls/d3d8/tests d3d8_test
14830 wine_fn_config_dll d3d9 enable_d3d9 d3d9
14831 wine_fn_config_test dlls/d3d9/tests d3d9_test
14832 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14833 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14834 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14835 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14836 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14837 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14838 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14839 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14840 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14841 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14842 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 d3dcompiler
14843 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14844 wine_fn_config_dll d3dim enable_d3dim d3dim
14845 wine_fn_config_dll d3drm enable_d3drm d3drm
14846 wine_fn_config_test dlls/d3drm/tests d3drm_test
14847 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14848 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14849 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14850 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14851 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14852 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14853 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14854 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14855 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14856 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14857 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14858 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14859 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14860 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14861 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14862 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14863 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14864 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14865 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14866 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14867 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14868 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14869 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14870 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 d3dx9
14871 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14872 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14873 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14874 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14875 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14876 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14877 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14878 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
14879 wine_fn_config_dll d3dxof enable_d3dxof d3dxof
14880 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14881 wine_fn_config_dll dbgeng enable_dbgeng dbgeng
14882 wine_fn_config_dll dbghelp enable_dbghelp dbghelp
14883 wine_fn_config_dll dciman32 enable_dciman32 dciman32
14884 wine_fn_config_dll ddeml.dll16 enable_win16
14885 wine_fn_config_dll ddraw enable_ddraw ddraw
14886 wine_fn_config_test dlls/ddraw/tests ddraw_test
14887 wine_fn_config_dll ddrawex enable_ddrawex
14888 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14889 wine_fn_config_dll devenum enable_devenum
14890 wine_fn_config_dll dinput enable_dinput dinput "data_formats.c"
14891 wine_fn_config_test dlls/dinput/tests dinput_test
14892 wine_fn_config_dll dinput8 enable_dinput8 dinput8
14893 wine_fn_config_dll dispdib.dll16 enable_win16
14894 wine_fn_config_dll dispex enable_dispex
14895 wine_fn_config_test dlls/dispex/tests dispex_test
14896 wine_fn_config_dll display.drv16 enable_win16
14897 wine_fn_config_dll dmband enable_dmband
14898 wine_fn_config_dll dmcompos enable_dmcompos
14899 wine_fn_config_dll dmime enable_dmime
14900 wine_fn_config_test dlls/dmime/tests dmime_test
14901 wine_fn_config_dll dmloader enable_dmloader
14902 wine_fn_config_test dlls/dmloader/tests dmloader_test
14903 wine_fn_config_dll dmscript enable_dmscript
14904 wine_fn_config_dll dmstyle enable_dmstyle
14905 wine_fn_config_dll dmsynth enable_dmsynth
14906 wine_fn_config_dll dmusic enable_dmusic
14907 wine_fn_config_dll dmusic32 enable_dmusic32 dmusic32
14908 wine_fn_config_dll dnsapi enable_dnsapi dnsapi
14909 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14910 wine_fn_config_dll dplay enable_dplay dplay
14911 wine_fn_config_dll dplayx enable_dplayx dplayx
14912 wine_fn_config_test dlls/dplayx/tests dplayx_test
14913 wine_fn_config_dll dpnaddr enable_dpnaddr
14914 wine_fn_config_dll dpnet enable_dpnet dpnet
14915 wine_fn_config_dll dpnhpast enable_dpnhpast
14916 wine_fn_config_dll dpnlobby enable_dpnlobby
14917 wine_fn_config_dll dpwsockx enable_dpwsockx
14918 wine_fn_config_dll drmclien enable_drmclien
14919 wine_fn_config_dll dsound enable_dsound dsound
14920 wine_fn_config_test dlls/dsound/tests dsound_test
14921 wine_fn_config_dll dssenh enable_dssenh
14922 wine_fn_config_dll dswave enable_dswave
14923 wine_fn_config_dll dwmapi enable_dwmapi dwmapi
14924 wine_fn_config_dll dxdiagn enable_dxdiagn
14925 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
14926 wine_fn_config_lib dxerr8
14927 wine_fn_config_lib dxerr9
14928 wine_fn_config_dll dxgi enable_dxgi dxgi
14929 wine_fn_config_test dlls/dxgi/tests dxgi_test
14930 wine_fn_config_lib dxguid
14931 wine_fn_config_dll explorerframe enable_explorerframe
14932 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
14933 wine_fn_config_dll faultrep enable_faultrep faultrep
14934 wine_fn_config_test dlls/faultrep/tests faultrep_test
14935 wine_fn_config_dll fltlib enable_fltlib
14936 wine_fn_config_dll fusion enable_fusion
14937 wine_fn_config_test dlls/fusion/tests fusion_test
14938 wine_fn_config_dll fwpuclnt enable_fwpuclnt
14939 wine_fn_config_dll gameux enable_gameux
14940 wine_fn_config_test dlls/gameux/tests gameux_test
14941 wine_fn_config_dll gdi.exe16 enable_win16
14942 wine_fn_config_dll gdi32 enable_gdi32 gdi32
14943 wine_fn_config_test dlls/gdi32/tests gdi32_test
14944 wine_fn_config_dll gdiplus enable_gdiplus gdiplus
14945 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
14946 wine_fn_config_dll glu32 enable_glu32 glu32
14947 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14948 wine_fn_config_dll gpkcsp enable_gpkcsp
14949 wine_fn_config_dll hal enable_hal
14950 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx
14951 wine_fn_config_dll hid enable_hid hid
14952 wine_fn_config_dll hlink enable_hlink hlink
14953 wine_fn_config_test dlls/hlink/tests hlink_test
14954 wine_fn_config_dll hnetcfg enable_hnetcfg
14955 wine_fn_config_dll httpapi enable_httpapi
14956 wine_fn_config_dll iccvid enable_iccvid
14957 wine_fn_config_dll icmp enable_icmp
14958 wine_fn_config_dll ifsmgr.vxd enable_win16
14959 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14960 wine_fn_config_dll imagehlp enable_imagehlp imagehlp
14961 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
14962 wine_fn_config_dll imm.dll16 enable_win16
14963 wine_fn_config_dll imm32 enable_imm32 imm32
14964 wine_fn_config_test dlls/imm32/tests imm32_test
14965 wine_fn_config_dll inetcomm enable_inetcomm inetcomm
14966 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
14967 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl
14968 wine_fn_config_dll inetmib1 enable_inetmib1
14969 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
14970 wine_fn_config_dll infosoft enable_infosoft
14971 wine_fn_config_test dlls/infosoft/tests infosoft_test
14972 wine_fn_config_dll initpki enable_initpki
14973 wine_fn_config_dll inkobj enable_inkobj
14974 wine_fn_config_dll inseng enable_inseng
14975 wine_fn_config_dll iphlpapi enable_iphlpapi iphlpapi
14976 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
14977 wine_fn_config_dll itircl enable_itircl
14978 wine_fn_config_dll itss enable_itss
14979 wine_fn_config_test dlls/itss/tests itss_test
14980 wine_fn_config_dll jscript enable_jscript
14981 wine_fn_config_test dlls/jscript/tests jscript_test
14982 wine_fn_config_dll kernel32 enable_kernel32 kernel32
14983 wine_fn_config_test dlls/kernel32/tests kernel32_test
14984 wine_fn_config_dll keyboard.drv16 enable_win16
14985 wine_fn_config_dll krnl386.exe16 enable_win16 kernel
14986 wine_fn_config_dll ktmw32 enable_ktmw32
14987 wine_fn_config_dll loadperf enable_loadperf loadperf
14988 wine_fn_config_dll localspl enable_localspl
14989 wine_fn_config_test dlls/localspl/tests localspl_test
14990 wine_fn_config_dll localui enable_localui
14991 wine_fn_config_test dlls/localui/tests localui_test
14992 wine_fn_config_dll lz32 enable_lz32 lz32
14993 wine_fn_config_test dlls/lz32/tests lz32_test
14994 wine_fn_config_dll lzexpand.dll16 enable_win16
14995 wine_fn_config_dll mapi32 enable_mapi32 mapi32
14996 wine_fn_config_test dlls/mapi32/tests mapi32_test
14997 wine_fn_config_dll mapistub enable_mapistub
14998 wine_fn_config_dll mciavi32 enable_mciavi32
14999 wine_fn_config_dll mcicda enable_mcicda
15000 wine_fn_config_dll mciqtz32 enable_mciqtz32
15001 wine_fn_config_dll mciseq enable_mciseq
15002 wine_fn_config_dll mciwave enable_mciwave
15003 wine_fn_config_dll midimap enable_midimap
15004 wine_fn_config_dll mlang enable_mlang mlang
15005 wine_fn_config_test dlls/mlang/tests mlang_test
15006 wine_fn_config_dll mmdevapi enable_mmdevapi
15007 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15008 wine_fn_config_dll mmdevldr.vxd enable_win16
15009 wine_fn_config_dll mmsystem.dll16 enable_win16
15010 wine_fn_config_dll monodebg.vxd enable_win16
15011 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15012 wine_fn_config_dll mouse.drv16 enable_win16
15013 wine_fn_config_dll mpr enable_mpr mpr
15014 wine_fn_config_dll mprapi enable_mprapi mprapi
15015 wine_fn_config_dll msacm.dll16 enable_win16
15016 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15017 wine_fn_config_dll msacm32 enable_msacm32 msacm32
15018 wine_fn_config_test dlls/msacm32/tests msacm32_test
15019 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15020 wine_fn_config_dll mscat32 enable_mscat32
15021 wine_fn_config_dll mscms enable_mscms mscms
15022 wine_fn_config_test dlls/mscms/tests mscms_test
15023 wine_fn_config_dll mscoree enable_mscoree
15024 wine_fn_config_test dlls/mscoree/tests mscoree_test
15025 wine_fn_config_dll msctf enable_msctf
15026 wine_fn_config_test dlls/msctf/tests msctf_test
15027 wine_fn_config_dll msdaps enable_msdaps
15028 wine_fn_config_dll msdmo enable_msdmo msdmo
15029 wine_fn_config_dll msftedit enable_msftedit
15030 wine_fn_config_dll msg711.acm enable_msg711_acm
15031 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15032 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15033 wine_fn_config_dll mshtml enable_mshtml mshtml
15034 wine_fn_config_test dlls/mshtml/tests mshtml_test
15035 wine_fn_config_dll msi enable_msi msi
15036 wine_fn_config_test dlls/msi/tests msi_test
15037 wine_fn_config_dll msimg32 enable_msimg32 msimg32
15038 wine_fn_config_dll msimtf enable_msimtf
15039 wine_fn_config_dll msisip enable_msisip
15040 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15041 wine_fn_config_dll msnet32 enable_msnet32
15042 wine_fn_config_dll msrle32 enable_msrle32
15043 wine_fn_config_dll mssign32 enable_mssign32
15044 wine_fn_config_dll mssip32 enable_mssip32
15045 wine_fn_config_dll mstask enable_mstask
15046 wine_fn_config_test dlls/mstask/tests mstask_test
15047 wine_fn_config_dll msvcirt enable_msvcirt
15048 wine_fn_config_dll msvcp80 enable_msvcp80
15049 wine_fn_config_dll msvcp90 enable_msvcp90
15050 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15051 wine_fn_config_dll msvcr100 enable_msvcr100
15052 wine_fn_config_dll msvcr70 enable_msvcr70 msvcr70
15053 wine_fn_config_dll msvcr71 enable_msvcr71 msvcr71
15054 wine_fn_config_dll msvcr80 enable_msvcr80
15055 wine_fn_config_dll msvcr90 enable_msvcr90
15056 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15057 wine_fn_config_dll msvcrt enable_msvcrt msvcrt
15058 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15059 wine_fn_config_dll msvcrt20 enable_msvcrt20 msvcrt20
15060 wine_fn_config_dll msvcrt40 enable_msvcrt40 msvcrt40
15061 wine_fn_config_dll msvcrtd enable_msvcrtd msvcrtd
15062 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15063 wine_fn_config_dll msvfw32 enable_msvfw32 msvfw32
15064 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15065 wine_fn_config_dll msvidc32 enable_msvidc32
15066 wine_fn_config_dll msvideo.dll16 enable_win16
15067 wine_fn_config_dll mswsock enable_mswsock mswsock
15068 wine_fn_config_dll msxml enable_msxml
15069 wine_fn_config_dll msxml2 enable_msxml2
15070 wine_fn_config_dll msxml3 enable_msxml3
15071 wine_fn_config_test dlls/msxml3/tests msxml3_test
15072 wine_fn_config_dll msxml4 enable_msxml4
15073 wine_fn_config_dll msxml6 enable_msxml6
15074 wine_fn_config_dll nddeapi enable_nddeapi nddeapi
15075 wine_fn_config_dll netapi32 enable_netapi32 netapi32
15076 wine_fn_config_test dlls/netapi32/tests netapi32_test
15077 wine_fn_config_dll newdev enable_newdev newdev
15078 wine_fn_config_dll npmshtml enable_npmshtml
15079 wine_fn_config_dll ntdll enable_ntdll ntdll
15080 wine_fn_config_test dlls/ntdll/tests ntdll_test
15081 wine_fn_config_dll ntdsapi enable_ntdsapi ntdsapi
15082 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15083 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe ntoskrnl.exe
15084 wine_fn_config_dll ntprint enable_ntprint
15085 wine_fn_config_test dlls/ntprint/tests ntprint_test
15086 wine_fn_config_dll objsel enable_objsel
15087 wine_fn_config_dll odbc32 enable_odbc32 odbc32
15088 wine_fn_config_dll odbccp32 enable_odbccp32 odbccp32
15089 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15090 wine_fn_config_dll ole2.dll16 enable_win16
15091 wine_fn_config_dll ole2conv.dll16 enable_win16
15092 wine_fn_config_dll ole2disp.dll16 enable_win16
15093 wine_fn_config_dll ole2nls.dll16 enable_win16
15094 wine_fn_config_dll ole2prox.dll16 enable_win16
15095 wine_fn_config_dll ole2thk.dll16 enable_win16
15096 wine_fn_config_dll ole32 enable_ole32 ole32
15097 wine_fn_config_test dlls/ole32/tests ole32_test
15098 wine_fn_config_dll oleacc enable_oleacc oleacc
15099 wine_fn_config_test dlls/oleacc/tests oleacc_test
15100 wine_fn_config_dll oleaut32 enable_oleaut32 oleaut32
15101 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15102 wine_fn_config_dll olecli.dll16 enable_win16
15103 wine_fn_config_dll olecli32 enable_olecli32 olecli32
15104 wine_fn_config_dll oledb32 enable_oledb32
15105 wine_fn_config_test dlls/oledb32/tests oledb32_test
15106 wine_fn_config_dll oledlg enable_oledlg oledlg
15107 wine_fn_config_dll olepro32 enable_olepro32 olepro32
15108 wine_fn_config_dll olesvr.dll16 enable_win16
15109 wine_fn_config_dll olesvr32 enable_olesvr32 olesvr32
15110 wine_fn_config_dll olethk32 enable_olethk32
15111 wine_fn_config_dll openal32 enable_openal32
15112 wine_fn_config_dll opencl enable_opencl
15113 wine_fn_config_dll opengl32 enable_opengl32 opengl32
15114 wine_fn_config_test dlls/opengl32/tests opengl32_test
15115 wine_fn_config_dll pdh enable_pdh pdh
15116 wine_fn_config_test dlls/pdh/tests pdh_test
15117 wine_fn_config_dll pidgen enable_pidgen
15118 wine_fn_config_dll powrprof enable_powrprof powrprof
15119 wine_fn_config_dll printui enable_printui
15120 wine_fn_config_dll propsys enable_propsys propsys
15121 wine_fn_config_test dlls/propsys/tests propsys_test
15122 wine_fn_config_dll psapi enable_psapi psapi
15123 wine_fn_config_test dlls/psapi/tests psapi_test
15124 wine_fn_config_dll pstorec enable_pstorec
15125 wine_fn_config_dll qcap enable_qcap
15126 wine_fn_config_dll qedit enable_qedit
15127 wine_fn_config_test dlls/qedit/tests qedit_test
15128 wine_fn_config_dll qmgr enable_qmgr
15129 wine_fn_config_test dlls/qmgr/tests qmgr_test
15130 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15131 wine_fn_config_dll quartz enable_quartz quartz
15132 wine_fn_config_test dlls/quartz/tests quartz_test
15133 wine_fn_config_dll query enable_query
15134 wine_fn_config_dll rasapi16.dll16 enable_win16
15135 wine_fn_config_dll rasapi32 enable_rasapi32 rasapi32
15136 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15137 wine_fn_config_dll rasdlg enable_rasdlg rasdlg
15138 wine_fn_config_dll resutils enable_resutils resutils
15139 wine_fn_config_dll riched20 enable_riched20 riched20
15140 wine_fn_config_test dlls/riched20/tests riched20_test
15141 wine_fn_config_dll riched32 enable_riched32
15142 wine_fn_config_test dlls/riched32/tests riched32_test
15143 wine_fn_config_dll rpcrt4 enable_rpcrt4 rpcrt4
15144 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15145 wine_fn_config_dll rsabase enable_rsabase
15146 wine_fn_config_dll rsaenh enable_rsaenh rsaenh
15147 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15148 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15149 wine_fn_config_dll rtutils enable_rtutils rtutils
15150 wine_fn_config_dll samlib enable_samlib
15151 wine_fn_config_dll sane.ds enable_sane_ds
15152 wine_fn_config_dll sccbase enable_sccbase
15153 wine_fn_config_dll schannel enable_schannel
15154 wine_fn_config_test dlls/schannel/tests schannel_test
15155 wine_fn_config_dll secur32 enable_secur32 secur32
15156 wine_fn_config_test dlls/secur32/tests secur32_test
15157 wine_fn_config_dll security enable_security
15158 wine_fn_config_dll sensapi enable_sensapi sensapi
15159 wine_fn_config_dll serialui enable_serialui serialui
15160 wine_fn_config_test dlls/serialui/tests serialui_test
15161 wine_fn_config_dll setupapi enable_setupapi setupapi
15162 wine_fn_config_test dlls/setupapi/tests setupapi_test
15163 wine_fn_config_dll setupx.dll16 enable_win16
15164 wine_fn_config_dll sfc enable_sfc sfc
15165 wine_fn_config_dll sfc_os enable_sfc_os sfc_os
15166 wine_fn_config_dll shdoclc enable_shdoclc
15167 wine_fn_config_dll shdocvw enable_shdocvw shdocvw
15168 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15169 wine_fn_config_dll shell.dll16 enable_win16
15170 wine_fn_config_dll shell32 enable_shell32 shell32
15171 wine_fn_config_test dlls/shell32/tests shell32_test
15172 wine_fn_config_dll shfolder enable_shfolder shfolder
15173 wine_fn_config_dll shlwapi enable_shlwapi shlwapi
15174 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15175 wine_fn_config_dll slbcsp enable_slbcsp
15176 wine_fn_config_dll slc enable_slc slc
15177 wine_fn_config_dll snmpapi enable_snmpapi snmpapi
15178 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15179 wine_fn_config_dll softpub enable_softpub
15180 wine_fn_config_dll sound.drv16 enable_win16
15181 wine_fn_config_dll spoolss enable_spoolss spoolss
15182 wine_fn_config_test dlls/spoolss/tests spoolss_test
15183 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15184 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15185 wine_fn_config_dll sti enable_sti sti
15186 wine_fn_config_test dlls/sti/tests sti_test
15187 wine_fn_config_dll storage.dll16 enable_win16
15188 wine_fn_config_dll stress.dll16 enable_win16
15189 wine_fn_config_lib strmbase
15190 wine_fn_config_lib strmiids
15191 wine_fn_config_dll svrapi enable_svrapi
15192 wine_fn_config_dll sxs enable_sxs
15193 wine_fn_config_dll system.drv16 enable_win16
15194 wine_fn_config_dll t2embed enable_t2embed
15195 wine_fn_config_dll tapi32 enable_tapi32 tapi32
15196 wine_fn_config_dll toolhelp.dll16 enable_win16
15197 wine_fn_config_dll traffic enable_traffic
15198 wine_fn_config_dll twain.dll16 enable_win16
15199 wine_fn_config_dll twain_32 enable_twain_32
15200 wine_fn_config_test dlls/twain_32/tests twain_32_test
15201 wine_fn_config_dll typelib.dll16 enable_win16
15202 wine_fn_config_dll unicows enable_unicows unicows
15203 wine_fn_config_dll updspapi enable_updspapi
15204 wine_fn_config_dll url enable_url url
15205 wine_fn_config_dll urlmon enable_urlmon urlmon
15206 wine_fn_config_test dlls/urlmon/tests urlmon_test
15207 wine_fn_config_dll usbd.sys enable_usbd_sys usbd.sys
15208 wine_fn_config_dll user.exe16 enable_win16
15209 wine_fn_config_dll user32 enable_user32 user32
15210 wine_fn_config_test dlls/user32/tests user32_test
15211 wine_fn_config_dll userenv enable_userenv userenv
15212 wine_fn_config_test dlls/userenv/tests userenv_test
15213 wine_fn_config_dll usp10 enable_usp10 usp10
15214 wine_fn_config_test dlls/usp10/tests usp10_test
15215 wine_fn_config_lib uuid
15216 wine_fn_config_dll uxtheme enable_uxtheme uxtheme
15217 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15218 wine_fn_config_dll vdhcp.vxd enable_win16
15219 wine_fn_config_dll vdmdbg enable_vdmdbg vdmdbg
15220 wine_fn_config_dll ver.dll16 enable_win16
15221 wine_fn_config_dll version enable_version version
15222 wine_fn_config_test dlls/version/tests version_test
15223 wine_fn_config_dll vmm.vxd enable_win16
15224 wine_fn_config_dll vnbt.vxd enable_win16
15225 wine_fn_config_dll vnetbios.vxd enable_win16
15226 wine_fn_config_dll vtdapi.vxd enable_win16
15227 wine_fn_config_dll vwin32.vxd enable_win16
15228 wine_fn_config_dll w32skrnl enable_win16
15229 wine_fn_config_dll w32sys.dll16 enable_win16
15230 wine_fn_config_dll wbemprox enable_wbemprox
15231 wine_fn_config_dll wer enable_wer wer
15232 wine_fn_config_test dlls/wer/tests wer_test
15233 wine_fn_config_dll wiaservc enable_wiaservc
15234 wine_fn_config_dll win32s16.dll16 enable_win16
15235 wine_fn_config_dll win87em.dll16 enable_win16
15236 wine_fn_config_dll winaspi.dll16 enable_win16
15237 wine_fn_config_dll windebug.dll16 enable_win16
15238 wine_fn_config_dll windowscodecs enable_windowscodecs windowscodecs
15239 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15240 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15241 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15242 wine_fn_config_lib winecrt0
15243 wine_fn_config_dll wined3d enable_wined3d wined3d
15244 wine_fn_config_dll wineesd.drv enable_wineesd_drv
15245 wine_fn_config_dll winegstreamer enable_winegstreamer
15246 wine_fn_config_dll winejack.drv enable_winejack_drv
15247 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15248 wine_fn_config_dll winemapi enable_winemapi
15249 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15250 wine_fn_config_dll winenas.drv enable_winenas_drv
15251 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15252 wine_fn_config_dll wineps.drv enable_wineps_drv
15253 wine_fn_config_dll wineps16.drv16 enable_win16
15254 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15255 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15256 wine_fn_config_dll winex11.drv enable_winex11_drv
15257 wine_fn_config_dll wing.dll16 enable_win16
15258 wine_fn_config_dll wing32 enable_wing32
15259 wine_fn_config_dll winhttp enable_winhttp winhttp
15260 wine_fn_config_test dlls/winhttp/tests winhttp_test
15261 wine_fn_config_dll wininet enable_wininet wininet
15262 wine_fn_config_test dlls/wininet/tests wininet_test
15263 wine_fn_config_dll winmm enable_winmm winmm
15264 wine_fn_config_test dlls/winmm/tests winmm_test
15265 wine_fn_config_dll winnls.dll16 enable_win16
15266 wine_fn_config_dll winnls32 enable_winnls32 winnls32
15267 wine_fn_config_dll winscard enable_winscard winscard
15268 wine_fn_config_dll winsock.dll16 enable_win16
15269 wine_fn_config_dll winspool.drv enable_winspool_drv winspool
15270 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15271 wine_fn_config_dll wintab.dll16 enable_win16
15272 wine_fn_config_dll wintab32 enable_wintab32 wintab32
15273 wine_fn_config_test dlls/wintab32/tests wintab32_test
15274 wine_fn_config_dll wintrust enable_wintrust wintrust
15275 wine_fn_config_test dlls/wintrust/tests wintrust_test
15276 wine_fn_config_dll wlanapi enable_wlanapi
15277 wine_fn_config_dll wldap32 enable_wldap32 wldap32
15278 wine_fn_config_test dlls/wldap32/tests wldap32_test
15279 wine_fn_config_dll wmi enable_wmi
15280 wine_fn_config_dll wmiutils enable_wmiutils
15281 wine_fn_config_dll wnaspi32 enable_wnaspi32 wnaspi32
15282 wine_fn_config_dll wow32 enable_win16 wow32
15283 wine_fn_config_dll ws2_32 enable_ws2_32 ws2_32
15284 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15285 wine_fn_config_dll wsock32 enable_wsock32 wsock32
15286 wine_fn_config_dll wtsapi32 enable_wtsapi32 wtsapi32
15287 wine_fn_config_dll wuapi enable_wuapi
15288 wine_fn_config_dll wuaueng enable_wuaueng
15289 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15290 wine_fn_config_dll xinput1_1 enable_xinput1_1
15291 wine_fn_config_dll xinput1_2 enable_xinput1_2
15292 wine_fn_config_dll xinput1_3 enable_xinput1_3 xinput
15293 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15294 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15295 wine_fn_config_dll xmllite enable_xmllite
15296 wine_fn_config_test dlls/xmllite/tests xmllite_test
15297 wine_fn_config_makefile documentation enable_documentation
15298 wine_fn_config_makefile fonts enable_fonts
15299 wine_fn_config_makefile include enable_include
15300 wine_fn_config_makefile libs/port enable_libs_port
15301 wine_fn_config_makefile libs/wine enable_libs_wine
15302 wine_fn_config_makefile libs/wpp enable_libs_wpp
15303 wine_fn_config_makefile loader enable_loader
15304 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15305 wine_fn_config_program attrib enable_attrib install
15306 wine_fn_config_program cacls enable_cacls install
15307 wine_fn_config_program clock enable_clock install
15308 wine_fn_config_program cmd enable_cmd install
15309 wine_fn_config_test programs/cmd/tests cmd.exe_test
15310 wine_fn_config_program cmdlgtst enable_cmdlgtst
15311 wine_fn_config_program control enable_control install
15312 wine_fn_config_program dxdiag enable_dxdiag install
15313 wine_fn_config_program eject enable_eject install
15314 wine_fn_config_program expand enable_expand install
15315 wine_fn_config_program explorer enable_explorer install
15316 wine_fn_config_program extrac32 enable_extrac32 install
15317 wine_fn_config_program hh enable_hh install
15318 wine_fn_config_program icinfo enable_icinfo install
15319 wine_fn_config_program iexplore enable_iexplore install
15320 wine_fn_config_program ipconfig enable_ipconfig install
15321 wine_fn_config_program lodctr enable_lodctr install
15322 wine_fn_config_program mofcomp enable_mofcomp install
15323 wine_fn_config_program mshta enable_mshta install
15324 wine_fn_config_program msiexec enable_msiexec installbin
15325 wine_fn_config_program net enable_net install
15326 wine_fn_config_program netsh enable_netsh install
15327 wine_fn_config_program ngen enable_ngen install
15328 wine_fn_config_program notepad enable_notepad installbin
15329 wine_fn_config_program oleview enable_oleview install
15330 wine_fn_config_program ping enable_ping install
15331 wine_fn_config_program progman enable_progman install
15332 wine_fn_config_program reg enable_reg install
15333 wine_fn_config_program regedit enable_regedit installbin
15334 wine_fn_config_test programs/regedit/tests regedit.exe_test
15335 wine_fn_config_program regsvcs enable_regsvcs install
15336 wine_fn_config_program regsvr32 enable_regsvr32 installbin
15337 wine_fn_config_program rpcss enable_rpcss install
15338 wine_fn_config_program rundll.exe16 enable_win16 install
15339 wine_fn_config_program rundll32 enable_rundll32 install
15340 wine_fn_config_program sc enable_sc install
15341 wine_fn_config_program secedit enable_secedit install
15342 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15343 wine_fn_config_program services enable_services install
15344 wine_fn_config_program spoolsv enable_spoolsv install
15345 wine_fn_config_program start enable_start install
15346 wine_fn_config_program svchost enable_svchost install
15347 wine_fn_config_program taskkill enable_taskkill install
15348 wine_fn_config_program taskmgr enable_taskmgr install
15349 wine_fn_config_program termsv enable_termsv install
15350 wine_fn_config_program uninstaller enable_uninstaller install
15351 wine_fn_config_program unlodctr enable_unlodctr install
15352 wine_fn_config_program view enable_view
15353 wine_fn_config_program wineboot enable_wineboot installbin
15354 wine_fn_config_program winebrowser enable_winebrowser install
15355 wine_fn_config_program winecfg enable_winecfg installbin
15356 wine_fn_config_program wineconsole enable_wineconsole installbin
15357 wine_fn_config_program winedbg enable_winedbg installbin
15358 wine_fn_config_program winedevice enable_winedevice install
15359 wine_fn_config_program winefile enable_winefile installbin
15360 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15361 wine_fn_config_program winemine enable_winemine installbin
15362 wine_fn_config_program winepath enable_winepath installbin
15363 wine_fn_config_program winetest enable_winetest
15364 wine_fn_config_program winevdm enable_win16 install
15365 wine_fn_config_program winhelp.exe16 enable_win16 install
15366 wine_fn_config_program winhlp32 enable_winhlp32 install
15367 wine_fn_config_program winoldap.mod16 enable_win16 install
15368 wine_fn_config_program winver enable_winver install
15369 wine_fn_config_program wmic enable_wmic install
15370 wine_fn_config_program wordpad enable_wordpad install
15371 wine_fn_config_program write enable_write install
15372 wine_fn_config_program wscript enable_wscript install
15373 wine_fn_config_program xcopy enable_xcopy install
15374 wine_fn_config_makefile server enable_server
15375 wine_fn_config_tool tools
15376 wine_fn_config_tool tools/widl
15377 wine_fn_config_tool tools/winebuild
15378 wine_fn_config_tool tools/winedump
15379 wine_fn_config_tool tools/winegcc
15380 wine_fn_config_tool tools/wmc
15381 wine_fn_config_tool tools/wrc
15383 ac_config_commands="$ac_config_commands Makefile"
15386 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15390 if test -n "$with_wine64"
15391 then
15392 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine
15393 fonts server:
15394 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15395 $with_wine64/loader/wine:
15396 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15397 clean::
15398 \$(RM) fonts server $with_wine64/loader/wine"
15401 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
15402 -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
15404 cat >confcache <<\_ACEOF
15405 # This file is a shell script that caches the results of configure
15406 # tests run on this system so they can be shared between configure
15407 # scripts and configure runs, see configure's option --config-cache.
15408 # It is not useful on other systems. If it contains results you don't
15409 # want to keep, you may remove or edit it.
15411 # config.status only pays attention to the cache file if you give it
15412 # the --recheck option to rerun configure.
15414 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15415 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15416 # following values.
15418 _ACEOF
15420 # The following way of writing the cache mishandles newlines in values,
15421 # but we know of no workaround that is simple, portable, and efficient.
15422 # So, we kill variables containing newlines.
15423 # Ultrix sh set writes to stderr and can't be redirected directly,
15424 # and sets the high bit in the cache file unless we assign to the vars.
15426 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15427 eval ac_val=\$$ac_var
15428 case $ac_val in #(
15429 *${as_nl}*)
15430 case $ac_var in #(
15431 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15432 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15433 esac
15434 case $ac_var in #(
15435 _ | IFS | as_nl) ;; #(
15436 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15437 *) { eval $ac_var=; unset $ac_var;} ;;
15438 esac ;;
15439 esac
15440 done
15442 (set) 2>&1 |
15443 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15444 *${as_nl}ac_space=\ *)
15445 # `set' does not quote correctly, so add quotes: double-quote
15446 # substitution turns \\\\ into \\, and sed turns \\ into \.
15447 sed -n \
15448 "s/'/'\\\\''/g;
15449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15450 ;; #(
15452 # `set' quotes correctly as required by POSIX, so do not add quotes.
15453 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15455 esac |
15456 sort
15458 sed '
15459 /^ac_cv_env_/b end
15460 t clear
15461 :clear
15462 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15463 t end
15464 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15465 :end' >>confcache
15466 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15467 if test -w "$cache_file"; then
15468 test "x$cache_file" != "x/dev/null" &&
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15470 $as_echo "$as_me: updating cache $cache_file" >&6;}
15471 cat confcache >$cache_file
15472 else
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15474 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15477 rm -f confcache
15479 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15480 # Let make expand exec_prefix.
15481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15483 DEFS=-DHAVE_CONFIG_H
15485 ac_libobjs=
15486 ac_ltlibobjs=
15488 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15489 # 1. Remove the extension, and $U if already installed.
15490 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15491 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15492 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15493 # will be set to the directory where LIBOBJS objects are built.
15494 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15495 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15496 done
15497 LIBOBJS=$ac_libobjs
15499 LTLIBOBJS=$ac_ltlibobjs
15503 : ${CONFIG_STATUS=./config.status}
15504 ac_write_fail=0
15505 ac_clean_files_save=$ac_clean_files
15506 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15508 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15509 as_write_fail=0
15510 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15511 #! $SHELL
15512 # Generated by $as_me.
15513 # Run this file to recreate the current configuration.
15514 # Compiler output produced by configure, useful for debugging
15515 # configure, is in config.log if it exists.
15517 debug=false
15518 ac_cs_recheck=false
15519 ac_cs_silent=false
15521 SHELL=\${CONFIG_SHELL-$SHELL}
15522 export SHELL
15523 _ASEOF
15524 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15525 ## -------------------- ##
15526 ## M4sh Initialization. ##
15527 ## -------------------- ##
15529 # Be more Bourne compatible
15530 DUALCASE=1; export DUALCASE # for MKS sh
15531 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15532 emulate sh
15533 NULLCMD=:
15534 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15535 # is contrary to our usage. Disable this feature.
15536 alias -g '${1+"$@"}'='"$@"'
15537 setopt NO_GLOB_SUBST
15538 else
15539 case `(set -o) 2>/dev/null` in #(
15540 *posix*) :
15541 set -o posix ;; #(
15542 *) :
15544 esac
15548 as_nl='
15550 export as_nl
15551 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15552 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15553 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15554 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15555 # Prefer a ksh shell builtin over an external printf program on Solaris,
15556 # but without wasting forks for bash or zsh.
15557 if test -z "$BASH_VERSION$ZSH_VERSION" \
15558 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15559 as_echo='print -r --'
15560 as_echo_n='print -rn --'
15561 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15562 as_echo='printf %s\n'
15563 as_echo_n='printf %s'
15564 else
15565 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15566 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15567 as_echo_n='/usr/ucb/echo -n'
15568 else
15569 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15570 as_echo_n_body='eval
15571 arg=$1;
15572 case $arg in #(
15573 *"$as_nl"*)
15574 expr "X$arg" : "X\\(.*\\)$as_nl";
15575 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15576 esac;
15577 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15579 export as_echo_n_body
15580 as_echo_n='sh -c $as_echo_n_body as_echo'
15582 export as_echo_body
15583 as_echo='sh -c $as_echo_body as_echo'
15586 # The user is always right.
15587 if test "${PATH_SEPARATOR+set}" != set; then
15588 PATH_SEPARATOR=:
15589 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15590 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15591 PATH_SEPARATOR=';'
15596 # IFS
15597 # We need space, tab and new line, in precisely that order. Quoting is
15598 # there to prevent editors from complaining about space-tab.
15599 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15600 # splitting by setting IFS to empty value.)
15601 IFS=" "" $as_nl"
15603 # Find who we are. Look in the path if we contain no directory separator.
15604 case $0 in #((
15605 *[\\/]* ) as_myself=$0 ;;
15606 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15607 for as_dir in $PATH
15609 IFS=$as_save_IFS
15610 test -z "$as_dir" && as_dir=.
15611 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15612 done
15613 IFS=$as_save_IFS
15616 esac
15617 # We did not find ourselves, most probably we were run as `sh COMMAND'
15618 # in which case we are not to be found in the path.
15619 if test "x$as_myself" = x; then
15620 as_myself=$0
15622 if test ! -f "$as_myself"; then
15623 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15624 exit 1
15627 # Unset variables that we do not need and which cause bugs (e.g. in
15628 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15629 # suppresses any "Segmentation fault" message there. '((' could
15630 # trigger a bug in pdksh 5.2.14.
15631 for as_var in BASH_ENV ENV MAIL MAILPATH
15632 do eval test x\${$as_var+set} = xset \
15633 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15634 done
15635 PS1='$ '
15636 PS2='> '
15637 PS4='+ '
15639 # NLS nuisances.
15640 LC_ALL=C
15641 export LC_ALL
15642 LANGUAGE=C
15643 export LANGUAGE
15645 # CDPATH.
15646 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15649 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15650 # ----------------------------------------
15651 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15652 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15653 # script with STATUS, using 1 if that was 0.
15654 as_fn_error ()
15656 as_status=$1; test $as_status -eq 0 && as_status=1
15657 if test "$4"; then
15658 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15659 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15661 $as_echo "$as_me: error: $2" >&2
15662 as_fn_exit $as_status
15663 } # as_fn_error
15666 # as_fn_set_status STATUS
15667 # -----------------------
15668 # Set $? to STATUS, without forking.
15669 as_fn_set_status ()
15671 return $1
15672 } # as_fn_set_status
15674 # as_fn_exit STATUS
15675 # -----------------
15676 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15677 as_fn_exit ()
15679 set +e
15680 as_fn_set_status $1
15681 exit $1
15682 } # as_fn_exit
15684 # as_fn_unset VAR
15685 # ---------------
15686 # Portably unset VAR.
15687 as_fn_unset ()
15689 { eval $1=; unset $1;}
15691 as_unset=as_fn_unset
15692 # as_fn_append VAR VALUE
15693 # ----------------------
15694 # Append the text in VALUE to the end of the definition contained in VAR. Take
15695 # advantage of any shell optimizations that allow amortized linear growth over
15696 # repeated appends, instead of the typical quadratic growth present in naive
15697 # implementations.
15698 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15699 eval 'as_fn_append ()
15701 eval $1+=\$2
15703 else
15704 as_fn_append ()
15706 eval $1=\$$1\$2
15708 fi # as_fn_append
15710 # as_fn_arith ARG...
15711 # ------------------
15712 # Perform arithmetic evaluation on the ARGs, and store the result in the
15713 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15714 # must be portable across $(()) and expr.
15715 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15716 eval 'as_fn_arith ()
15718 as_val=$(( $* ))
15720 else
15721 as_fn_arith ()
15723 as_val=`expr "$@" || test $? -eq 1`
15725 fi # as_fn_arith
15728 if expr a : '\(a\)' >/dev/null 2>&1 &&
15729 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15730 as_expr=expr
15731 else
15732 as_expr=false
15735 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15736 as_basename=basename
15737 else
15738 as_basename=false
15741 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15742 as_dirname=dirname
15743 else
15744 as_dirname=false
15747 as_me=`$as_basename -- "$0" ||
15748 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15749 X"$0" : 'X\(//\)$' \| \
15750 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15751 $as_echo X/"$0" |
15752 sed '/^.*\/\([^/][^/]*\)\/*$/{
15753 s//\1/
15756 /^X\/\(\/\/\)$/{
15757 s//\1/
15760 /^X\/\(\/\).*/{
15761 s//\1/
15764 s/.*/./; q'`
15766 # Avoid depending upon Character Ranges.
15767 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15768 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15769 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15770 as_cr_digits='0123456789'
15771 as_cr_alnum=$as_cr_Letters$as_cr_digits
15773 ECHO_C= ECHO_N= ECHO_T=
15774 case `echo -n x` in #(((((
15775 -n*)
15776 case `echo 'xy\c'` in
15777 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15778 xy) ECHO_C='\c';;
15779 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15780 ECHO_T=' ';;
15781 esac;;
15783 ECHO_N='-n';;
15784 esac
15786 rm -f conf$$ conf$$.exe conf$$.file
15787 if test -d conf$$.dir; then
15788 rm -f conf$$.dir/conf$$.file
15789 else
15790 rm -f conf$$.dir
15791 mkdir conf$$.dir 2>/dev/null
15793 if (echo >conf$$.file) 2>/dev/null; then
15794 if ln -s conf$$.file conf$$ 2>/dev/null; then
15795 as_ln_s='ln -s'
15796 # ... but there are two gotchas:
15797 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15798 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15799 # In both cases, we have to default to `cp -p'.
15800 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15801 as_ln_s='cp -p'
15802 elif ln conf$$.file conf$$ 2>/dev/null; then
15803 as_ln_s=ln
15804 else
15805 as_ln_s='cp -p'
15807 else
15808 as_ln_s='cp -p'
15810 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15811 rmdir conf$$.dir 2>/dev/null
15814 # as_fn_mkdir_p
15815 # -------------
15816 # Create "$as_dir" as a directory, including parents if necessary.
15817 as_fn_mkdir_p ()
15820 case $as_dir in #(
15821 -*) as_dir=./$as_dir;;
15822 esac
15823 test -d "$as_dir" || eval $as_mkdir_p || {
15824 as_dirs=
15825 while :; do
15826 case $as_dir in #(
15827 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15828 *) as_qdir=$as_dir;;
15829 esac
15830 as_dirs="'$as_qdir' $as_dirs"
15831 as_dir=`$as_dirname -- "$as_dir" ||
15832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15833 X"$as_dir" : 'X\(//\)[^/]' \| \
15834 X"$as_dir" : 'X\(//\)$' \| \
15835 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15836 $as_echo X"$as_dir" |
15837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15838 s//\1/
15841 /^X\(\/\/\)[^/].*/{
15842 s//\1/
15845 /^X\(\/\/\)$/{
15846 s//\1/
15849 /^X\(\/\).*/{
15850 s//\1/
15853 s/.*/./; q'`
15854 test -d "$as_dir" && break
15855 done
15856 test -z "$as_dirs" || eval "mkdir $as_dirs"
15857 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15860 } # as_fn_mkdir_p
15861 if mkdir -p . 2>/dev/null; then
15862 as_mkdir_p='mkdir -p "$as_dir"'
15863 else
15864 test -d ./-p && rmdir ./-p
15865 as_mkdir_p=false
15868 if test -x / >/dev/null 2>&1; then
15869 as_test_x='test -x'
15870 else
15871 if ls -dL / >/dev/null 2>&1; then
15872 as_ls_L_option=L
15873 else
15874 as_ls_L_option=
15876 as_test_x='
15877 eval sh -c '\''
15878 if test -d "$1"; then
15879 test -d "$1/.";
15880 else
15881 case $1 in #(
15882 -*)set "./$1";;
15883 esac;
15884 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15885 ???[sx]*):;;*)false;;esac;fi
15886 '\'' sh
15889 as_executable_p=$as_test_x
15891 # Sed expression to map a string onto a valid CPP name.
15892 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15894 # Sed expression to map a string onto a valid variable name.
15895 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15898 exec 6>&1
15899 ## ----------------------------------- ##
15900 ## Main body of $CONFIG_STATUS script. ##
15901 ## ----------------------------------- ##
15902 _ASEOF
15903 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15906 # Save the log message, to keep $0 and so on meaningful, and to
15907 # report actual input values of CONFIG_FILES etc. instead of their
15908 # values after options handling.
15909 ac_log="
15910 This file was extended by Wine $as_me 1.3.9, which was
15911 generated by GNU Autoconf 2.67. Invocation command line was
15913 CONFIG_FILES = $CONFIG_FILES
15914 CONFIG_HEADERS = $CONFIG_HEADERS
15915 CONFIG_LINKS = $CONFIG_LINKS
15916 CONFIG_COMMANDS = $CONFIG_COMMANDS
15917 $ $0 $@
15919 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15922 _ACEOF
15924 case $ac_config_files in *"
15925 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15926 esac
15928 case $ac_config_headers in *"
15929 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15930 esac
15933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15934 # Files that config.status was made for.
15935 config_files="$ac_config_files"
15936 config_headers="$ac_config_headers"
15937 config_links="$ac_config_links"
15938 config_commands="$ac_config_commands"
15940 _ACEOF
15942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15943 ac_cs_usage="\
15944 \`$as_me' instantiates files and other configuration actions
15945 from templates according to the current configuration. Unless the files
15946 and actions are specified as TAGs, all are instantiated by default.
15948 Usage: $0 [OPTION]... [TAG]...
15950 -h, --help print this help, then exit
15951 -V, --version print version number and configuration settings, then exit
15952 --config print configuration, then exit
15953 -q, --quiet, --silent
15954 do not print progress messages
15955 -d, --debug don't remove temporary files
15956 --recheck update $as_me by reconfiguring in the same conditions
15957 --file=FILE[:TEMPLATE]
15958 instantiate the configuration file FILE
15959 --header=FILE[:TEMPLATE]
15960 instantiate the configuration header FILE
15962 Configuration files:
15963 $config_files
15965 Configuration headers:
15966 $config_headers
15968 Configuration links:
15969 $config_links
15971 Configuration commands:
15972 $config_commands
15974 Report bugs to <wine-devel@winehq.org>.
15975 Wine home page: <http://www.winehq.org>."
15977 _ACEOF
15978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15979 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15980 ac_cs_version="\\
15981 Wine config.status 1.3.9
15982 configured by $0, generated by GNU Autoconf 2.67,
15983 with options \\"\$ac_cs_config\\"
15985 Copyright (C) 2010 Free Software Foundation, Inc.
15986 This config.status script is free software; the Free Software Foundation
15987 gives unlimited permission to copy, distribute and modify it."
15989 ac_pwd='$ac_pwd'
15990 srcdir='$srcdir'
15991 INSTALL='$INSTALL'
15992 test -n "\$AWK" || AWK=awk
15993 _ACEOF
15995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15996 # The default lists apply if the user does not specify any file.
15997 ac_need_defaults=:
15998 while test $# != 0
16000 case $1 in
16001 --*=?*)
16002 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16003 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16004 ac_shift=:
16006 --*=)
16007 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16008 ac_optarg=
16009 ac_shift=:
16012 ac_option=$1
16013 ac_optarg=$2
16014 ac_shift=shift
16016 esac
16018 case $ac_option in
16019 # Handling of the options.
16020 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16021 ac_cs_recheck=: ;;
16022 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16023 $as_echo "$ac_cs_version"; exit ;;
16024 --config | --confi | --conf | --con | --co | --c )
16025 $as_echo "$ac_cs_config"; exit ;;
16026 --debug | --debu | --deb | --de | --d | -d )
16027 debug=: ;;
16028 --file | --fil | --fi | --f )
16029 $ac_shift
16030 case $ac_optarg in
16031 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16032 '') as_fn_error $? "missing file argument" ;;
16033 esac
16034 as_fn_append CONFIG_FILES " '$ac_optarg'"
16035 ac_need_defaults=false;;
16036 --header | --heade | --head | --hea )
16037 $ac_shift
16038 case $ac_optarg in
16039 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16040 esac
16041 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16042 ac_need_defaults=false;;
16043 --he | --h)
16044 # Conflict between --help and --header
16045 as_fn_error $? "ambiguous option: \`$1'
16046 Try \`$0 --help' for more information.";;
16047 --help | --hel | -h )
16048 $as_echo "$ac_cs_usage"; exit ;;
16049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16050 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16051 ac_cs_silent=: ;;
16053 # This is an error.
16054 -*) as_fn_error $? "unrecognized option: \`$1'
16055 Try \`$0 --help' for more information." ;;
16057 *) as_fn_append ac_config_targets " $1"
16058 ac_need_defaults=false ;;
16060 esac
16061 shift
16062 done
16064 ac_configure_extra_args=
16066 if $ac_cs_silent; then
16067 exec 6>/dev/null
16068 ac_configure_extra_args="$ac_configure_extra_args --silent"
16071 _ACEOF
16072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16073 if \$ac_cs_recheck; then
16074 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16075 shift
16076 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16077 CONFIG_SHELL='$SHELL'
16078 export CONFIG_SHELL
16079 exec "\$@"
16082 _ACEOF
16083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16084 exec 5>>config.log
16086 echo
16087 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16088 ## Running $as_me. ##
16089 _ASBOX
16090 $as_echo "$ac_log"
16091 } >&5
16093 _ACEOF
16094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16096 # INIT-COMMANDS
16098 wine_fn_output_makefile ()
16100 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16101 $ALL_MAKEFILE_DEPENDS
16102 _WINE_EOF
16103 as_fn_error $? "could not create Makefile" "$LINENO" 5
16106 _ACEOF
16108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16110 # Handling of arguments.
16111 for ac_config_target in $ac_config_targets
16113 case $ac_config_target in
16114 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16115 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16116 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16117 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16118 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16119 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16120 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16121 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16122 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16123 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16124 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16125 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16126 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16127 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16128 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16129 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16130 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16131 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16132 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16133 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16134 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16135 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16136 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16138 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16139 esac
16140 done
16143 # If the user did not use the arguments to specify the items to instantiate,
16144 # then the envvar interface is used. Set only those that are not.
16145 # We use the long form for the default assignment because of an extremely
16146 # bizarre bug on SunOS 4.1.3.
16147 if $ac_need_defaults; then
16148 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16149 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16150 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16151 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16154 # Have a temporary directory for convenience. Make it in the build tree
16155 # simply because there is no reason against having it here, and in addition,
16156 # creating and moving files from /tmp can sometimes cause problems.
16157 # Hook for its removal unless debugging.
16158 # Note that there is a small window in which the directory will not be cleaned:
16159 # after its creation but before its name has been assigned to `$tmp'.
16160 $debug ||
16162 tmp=
16163 trap 'exit_status=$?
16164 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16166 trap 'as_fn_exit 1' 1 2 13 15
16168 # Create a (secure) tmp directory for tmp files.
16171 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16172 test -n "$tmp" && test -d "$tmp"
16173 } ||
16175 tmp=./conf$$-$RANDOM
16176 (umask 077 && mkdir "$tmp")
16177 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16179 # Set up the scripts for CONFIG_FILES section.
16180 # No need to generate them if there are no CONFIG_FILES.
16181 # This happens for instance with `./config.status config.h'.
16182 if test -n "$CONFIG_FILES"; then
16184 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16185 ac_cs_awk_getline=:
16186 ac_cs_awk_pipe_init=
16187 ac_cs_awk_read_file='
16188 while ((getline aline < (F[key])) > 0)
16189 print(aline)
16190 close(F[key])'
16191 ac_cs_awk_pipe_fini=
16192 else
16193 ac_cs_awk_getline=false
16194 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16195 ac_cs_awk_read_file='
16196 print "|#_!!_#|"
16197 print "cat " F[key] " &&"
16198 '$ac_cs_awk_pipe_init
16199 # The final `:' finishes the AND list.
16200 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16202 ac_cr=`echo X | tr X '\015'`
16203 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16204 # But we know of no other shell where ac_cr would be empty at this
16205 # point, so we can use a bashism as a fallback.
16206 if test "x$ac_cr" = x; then
16207 eval ac_cr=\$\'\\r\'
16209 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16210 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16211 ac_cs_awk_cr='\\r'
16212 else
16213 ac_cs_awk_cr=$ac_cr
16216 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16217 _ACEOF
16219 # Create commands to substitute file output variables.
16221 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16222 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16223 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16224 echo "_ACAWK" &&
16225 echo "_ACEOF"
16226 } >conf$$files.sh &&
16227 . ./conf$$files.sh ||
16228 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16229 rm -f conf$$files.sh
16232 echo "cat >conf$$subs.awk <<_ACEOF" &&
16233 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16234 echo "_ACEOF"
16235 } >conf$$subs.sh ||
16236 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16237 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16238 ac_delim='%!_!# '
16239 for ac_last_try in false false false false false :; do
16240 . ./conf$$subs.sh ||
16241 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16243 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16244 if test $ac_delim_n = $ac_delim_num; then
16245 break
16246 elif $ac_last_try; then
16247 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16248 else
16249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16251 done
16252 rm -f conf$$subs.sh
16254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16255 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16256 _ACEOF
16257 sed -n '
16259 s/^/S["/; s/!.*/"]=/
16262 s/^[^!]*!//
16263 :repl
16264 t repl
16265 s/'"$ac_delim"'$//
16266 t delim
16269 s/\(.\{148\}\)..*/\1/
16270 t more1
16271 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16274 b repl
16275 :more1
16276 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16279 s/.\{148\}//
16280 t nl
16281 :delim
16283 s/\(.\{148\}\)..*/\1/
16284 t more2
16285 s/["\\]/\\&/g; s/^/"/; s/$/"/
16288 :more2
16289 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16292 s/.\{148\}//
16293 t delim
16294 ' <conf$$subs.awk | sed '
16295 /^[^""]/{
16297 s/\n//
16299 ' >>$CONFIG_STATUS || ac_write_fail=1
16300 rm -f conf$$subs.awk
16301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16302 _ACAWK
16303 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16304 for (key in S) S_is_set[key] = 1
16305 FS = "\a"
16306 \$ac_cs_awk_pipe_init
16309 line = $ 0
16310 nfields = split(line, field, "@")
16311 substed = 0
16312 len = length(field[1])
16313 for (i = 2; i < nfields; i++) {
16314 key = field[i]
16315 keylen = length(key)
16316 if (S_is_set[key]) {
16317 value = S[key]
16318 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16319 len += length(value) + length(field[++i])
16320 substed = 1
16321 } else
16322 len += 1 + keylen
16324 if (nfields == 3 && !substed) {
16325 key = field[2]
16326 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16327 \$ac_cs_awk_read_file
16328 next
16331 print line
16333 \$ac_cs_awk_pipe_fini
16334 _ACAWK
16335 _ACEOF
16336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16337 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16338 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16339 else
16341 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16342 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16343 _ACEOF
16345 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16346 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16347 # trailing colons and then remove the whole line if VPATH becomes empty
16348 # (actually we leave an empty line to preserve line numbers).
16349 if test "x$srcdir" = x.; then
16350 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16352 s///
16353 s/^/:/
16354 s/[ ]*$/:/
16355 s/:\$(srcdir):/:/g
16356 s/:\${srcdir}:/:/g
16357 s/:@srcdir@:/:/g
16358 s/^:*//
16359 s/:*$//
16361 s/\(=[ ]*\).*/\1/
16363 s/\n//
16364 s/^[^=]*=[ ]*$//
16368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16369 fi # test -n "$CONFIG_FILES"
16371 # Set up the scripts for CONFIG_HEADERS section.
16372 # No need to generate them if there are no CONFIG_HEADERS.
16373 # This happens for instance with `./config.status Makefile'.
16374 if test -n "$CONFIG_HEADERS"; then
16375 cat >"$tmp/defines.awk" <<\_ACAWK ||
16376 BEGIN {
16377 _ACEOF
16379 # Transform confdefs.h into an awk script `defines.awk', embedded as
16380 # here-document in config.status, that substitutes the proper values into
16381 # config.h.in to produce config.h.
16383 # Create a delimiter string that does not exist in confdefs.h, to ease
16384 # handling of long lines.
16385 ac_delim='%!_!# '
16386 for ac_last_try in false false :; do
16387 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16388 if test -z "$ac_t"; then
16389 break
16390 elif $ac_last_try; then
16391 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16392 else
16393 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16395 done
16397 # For the awk script, D is an array of macro values keyed by name,
16398 # likewise P contains macro parameters if any. Preserve backslash
16399 # newline sequences.
16401 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16402 sed -n '
16403 s/.\{148\}/&'"$ac_delim"'/g
16404 t rset
16405 :rset
16406 s/^[ ]*#[ ]*define[ ][ ]*/ /
16407 t def
16409 :def
16410 s/\\$//
16411 t bsnl
16412 s/["\\]/\\&/g
16413 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16414 D["\1"]=" \3"/p
16415 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16417 :bsnl
16418 s/["\\]/\\&/g
16419 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16420 D["\1"]=" \3\\\\\\n"\\/p
16421 t cont
16422 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16423 t cont
16425 :cont
16427 s/.\{148\}/&'"$ac_delim"'/g
16428 t clear
16429 :clear
16430 s/\\$//
16431 t bsnlc
16432 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16434 :bsnlc
16435 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16436 b cont
16437 ' <confdefs.h | sed '
16438 s/'"$ac_delim"'/"\\\
16439 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16442 for (key in D) D_is_set[key] = 1
16443 FS = "\a"
16445 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16446 line = \$ 0
16447 split(line, arg, " ")
16448 if (arg[1] == "#") {
16449 defundef = arg[2]
16450 mac1 = arg[3]
16451 } else {
16452 defundef = substr(arg[1], 2)
16453 mac1 = arg[2]
16455 split(mac1, mac2, "(") #)
16456 macro = mac2[1]
16457 prefix = substr(line, 1, index(line, defundef) - 1)
16458 if (D_is_set[macro]) {
16459 # Preserve the white space surrounding the "#".
16460 print prefix "define", macro P[macro] D[macro]
16461 next
16462 } else {
16463 # Replace #undef with comments. This is necessary, for example,
16464 # in the case of _POSIX_SOURCE, which is predefined and required
16465 # on some systems where configure will not decide to define it.
16466 if (defundef == "undef") {
16467 print "/*", prefix defundef, macro, "*/"
16468 next
16472 { print }
16473 _ACAWK
16474 _ACEOF
16475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16476 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16477 fi # test -n "$CONFIG_HEADERS"
16480 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16481 shift
16482 for ac_tag
16484 case $ac_tag in
16485 :[FHLC]) ac_mode=$ac_tag; continue;;
16486 esac
16487 case $ac_mode$ac_tag in
16488 :[FHL]*:*);;
16489 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16490 :[FH]-) ac_tag=-:-;;
16491 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16492 esac
16493 ac_save_IFS=$IFS
16494 IFS=:
16495 set x $ac_tag
16496 IFS=$ac_save_IFS
16497 shift
16498 ac_file=$1
16499 shift
16501 case $ac_mode in
16502 :L) ac_source=$1;;
16503 :[FH])
16504 ac_file_inputs=
16505 for ac_f
16507 case $ac_f in
16508 -) ac_f="$tmp/stdin";;
16509 *) # Look for the file first in the build tree, then in the source tree
16510 # (if the path is not absolute). The absolute path cannot be DOS-style,
16511 # because $ac_f cannot contain `:'.
16512 test -f "$ac_f" ||
16513 case $ac_f in
16514 [\\/$]*) false;;
16515 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16516 esac ||
16517 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16518 esac
16519 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16520 as_fn_append ac_file_inputs " '$ac_f'"
16521 done
16523 # Let's still pretend it is `configure' which instantiates (i.e., don't
16524 # use $as_me), people would be surprised to read:
16525 # /* config.h. Generated by config.status. */
16526 configure_input='Generated from '`
16527 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16528 `' by configure.'
16529 if test x"$ac_file" != x-; then
16530 configure_input="$ac_file. $configure_input"
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16532 $as_echo "$as_me: creating $ac_file" >&6;}
16534 # Neutralize special characters interpreted by sed in replacement strings.
16535 case $configure_input in #(
16536 *\&* | *\|* | *\\* )
16537 ac_sed_conf_input=`$as_echo "$configure_input" |
16538 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16539 *) ac_sed_conf_input=$configure_input;;
16540 esac
16542 case $ac_tag in
16543 *:-:* | *:-) cat >"$tmp/stdin" \
16544 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16545 esac
16547 esac
16549 ac_dir=`$as_dirname -- "$ac_file" ||
16550 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16551 X"$ac_file" : 'X\(//\)[^/]' \| \
16552 X"$ac_file" : 'X\(//\)$' \| \
16553 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16554 $as_echo X"$ac_file" |
16555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16556 s//\1/
16559 /^X\(\/\/\)[^/].*/{
16560 s//\1/
16563 /^X\(\/\/\)$/{
16564 s//\1/
16567 /^X\(\/\).*/{
16568 s//\1/
16571 s/.*/./; q'`
16572 as_dir="$ac_dir"; as_fn_mkdir_p
16573 ac_builddir=.
16575 case "$ac_dir" in
16576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16579 # A ".." for each directory in $ac_dir_suffix.
16580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16581 case $ac_top_builddir_sub in
16582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16584 esac ;;
16585 esac
16586 ac_abs_top_builddir=$ac_pwd
16587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16588 # for backward compatibility:
16589 ac_top_builddir=$ac_top_build_prefix
16591 case $srcdir in
16592 .) # We are building in place.
16593 ac_srcdir=.
16594 ac_top_srcdir=$ac_top_builddir_sub
16595 ac_abs_top_srcdir=$ac_pwd ;;
16596 [\\/]* | ?:[\\/]* ) # Absolute name.
16597 ac_srcdir=$srcdir$ac_dir_suffix;
16598 ac_top_srcdir=$srcdir
16599 ac_abs_top_srcdir=$srcdir ;;
16600 *) # Relative name.
16601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16602 ac_top_srcdir=$ac_top_build_prefix$srcdir
16603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16604 esac
16605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16608 case $ac_mode in
16611 # CONFIG_FILE
16614 case $INSTALL in
16615 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16616 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16617 esac
16618 _ACEOF
16620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16621 # If the template does not know about datarootdir, expand it.
16622 # FIXME: This hack should be removed a few years after 2.60.
16623 ac_datarootdir_hack=; ac_datarootdir_seen=
16624 ac_sed_dataroot='
16625 /datarootdir/ {
16629 /@datadir@/p
16630 /@docdir@/p
16631 /@infodir@/p
16632 /@localedir@/p
16633 /@mandir@/p'
16634 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16635 *datarootdir*) ac_datarootdir_seen=yes;;
16636 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16638 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16639 _ACEOF
16640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16641 ac_datarootdir_hack='
16642 s&@datadir@&$datadir&g
16643 s&@docdir@&$docdir&g
16644 s&@infodir@&$infodir&g
16645 s&@localedir@&$localedir&g
16646 s&@mandir@&$mandir&g
16647 s&\\\${datarootdir}&$datarootdir&g' ;;
16648 esac
16649 _ACEOF
16651 # Neutralize VPATH when `$srcdir' = `.'.
16652 # Shell code in configure.ac might set extrasub.
16653 # FIXME: do we really want to maintain this feature?
16654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16655 ac_sed_extra="$ac_vpsub
16656 $extrasub
16657 _ACEOF
16658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16660 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16661 s|@configure_input@|$ac_sed_conf_input|;t t
16662 s&@top_builddir@&$ac_top_builddir_sub&;t t
16663 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16664 s&@srcdir@&$ac_srcdir&;t t
16665 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16666 s&@top_srcdir@&$ac_top_srcdir&;t t
16667 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16668 s&@builddir@&$ac_builddir&;t t
16669 s&@abs_builddir@&$ac_abs_builddir&;t t
16670 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16671 s&@INSTALL@&$ac_INSTALL&;t t
16672 $ac_datarootdir_hack
16674 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16675 if $ac_cs_awk_getline; then
16676 $AWK -f "$tmp/subs.awk"
16677 else
16678 $AWK -f "$tmp/subs.awk" | $SHELL
16679 fi >$tmp/out \
16680 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16682 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16683 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16684 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16686 which seems to be undefined. Please make sure it is defined" >&5
16687 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16688 which seems to be undefined. Please make sure it is defined" >&2;}
16690 rm -f "$tmp/stdin"
16691 case $ac_file in
16692 -) cat "$tmp/out" && rm -f "$tmp/out";;
16693 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16694 esac \
16695 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16699 # CONFIG_HEADER
16701 if test x"$ac_file" != x-; then
16703 $as_echo "/* $configure_input */" \
16704 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16705 } >"$tmp/config.h" \
16706 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16707 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16709 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16710 else
16711 rm -f "$ac_file"
16712 mv "$tmp/config.h" "$ac_file" \
16713 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16715 else
16716 $as_echo "/* $configure_input */" \
16717 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16718 || as_fn_error $? "could not create -" "$LINENO" 5
16723 # CONFIG_LINK
16726 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16728 else
16729 # Prefer the file from the source tree if names are identical.
16730 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16731 ac_source=$srcdir/$ac_source
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16735 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16737 if test ! -r "$ac_source"; then
16738 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16740 rm -f "$ac_file"
16742 # Try a relative symlink, then a hard link, then a copy.
16743 case $ac_source in
16744 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16745 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16746 esac
16747 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16748 ln "$ac_source" "$ac_file" 2>/dev/null ||
16749 cp -p "$ac_source" "$ac_file" ||
16750 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16753 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16754 $as_echo "$as_me: executing $ac_file commands" >&6;}
16756 esac
16759 case $ac_file$ac_mode in
16760 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16761 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16762 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16763 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16764 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16765 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16766 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16767 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16768 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16769 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16770 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16771 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16772 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16773 "Makefile":C) wine_fn_output_makefile Makefile ;;
16775 esac
16776 done # for ac_tag
16779 as_fn_exit 0
16780 _ACEOF
16781 ac_clean_files=$ac_clean_files_save
16783 test $ac_write_fail = 0 ||
16784 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16787 # configure is writing to config.log, and then calls config.status.
16788 # config.status does its own redirection, appending to config.log.
16789 # Unfortunately, on DOS this fails, as config.log is still kept open
16790 # by configure, so config.status won't be able to write to it; its
16791 # output is simply discarded. So we exec the FD to /dev/null,
16792 # effectively closing config.log, so it can be properly (re)opened and
16793 # appended to by config.status. When coming back to configure, we
16794 # need to make the FD available again.
16795 if test "$no_create" != yes; then
16796 ac_cs_success=:
16797 ac_config_status_args=
16798 test "$silent" = yes &&
16799 ac_config_status_args="$ac_config_status_args --quiet"
16800 exec 5>/dev/null
16801 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16802 exec 5>>config.log
16803 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16804 # would make configure fail if this is the last instruction.
16805 $ac_cs_success || as_fn_exit 1
16807 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16809 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16813 if test "$no_create" = "yes"
16814 then
16815 exit 0
16818 ac_save_IFS="$IFS"
16819 if test "x$wine_notices != "x; then
16820 echo >&6
16821 IFS="|"
16822 for msg in $wine_notices; do
16823 IFS="$ac_save_IFS"
16824 if test -n "$msg"; then
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
16826 $as_echo "$as_me: $msg" >&6;}
16828 done
16830 IFS="|"
16831 for msg in $wine_warnings; do
16832 IFS="$ac_save_IFS"
16833 if test -n "$msg"; then
16834 echo >&2
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16836 $as_echo "$as_me: WARNING: $msg" >&2;}
16838 done
16839 IFS="$ac_save_IFS"
16841 echo "
16842 $as_me: Finished. Do '${ac_make}' to compile Wine.
16843 " >&6