dvdmedia.h: Added MPEG2VIDEOINFO declaration.
[wine.git] / configure
blobdf7e9712ed23e1d8937426f606094c4d75bfa853
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for Wine 1.3.13.
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.13'
556 PACKAGE_STRING='Wine 1.3.13'
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 LINGUAS
600 ALL_TEST_BINARIES
601 ALL_WINETEST_DEPENDS
602 LDAPLIBS
603 LIBPOLL
604 LIBDL
605 EXTRA_BINARIES
606 MAIN_BINARY
607 SOCKETLIBS
608 CRTLIBS
609 TOOLSEXT
610 LDPATH
611 UNWINDFLAGS
612 BUILTINFLAG
613 EXTRACFLAGS
614 LIBKSTAT
615 LIBOPENAL
616 LIBMPG123
617 PNGINCL
618 FONTCONFIGINCL
619 CUPSINCL
620 ALSALIBS
621 GSTREAMER_INCL
622 GSTREAMER_LIBS
623 ESDLIBS
624 ESDINCL
625 ESDCONFIG
626 LIBGETTEXTPO
627 ZLIB
628 FREETYPEINCL
629 FREETYPELIBS
630 ft_devel
631 LCMSLIBS
632 RESOLVLIBS
633 GPHOTO2INCL
634 GPHOTO2LIBS
635 gphoto2port_devel
636 gphoto2_devel
637 SANEINCL
638 sane_devel
639 GNUTLSINCL
640 HALINCL
641 XSLTINCL
642 XML2INCL
643 XML2LIBS
644 NASLIBS
645 X_EXTRA_LIBS
646 X_LIBS
647 X_PRE_LIBS
648 X_CFLAGS
649 XMKMF
650 LIBPTHREAD
651 CROSSTARGET
652 CROSSCC
653 CROSSTEST_DISABLE
654 PRELINK
655 CARBONLIB
656 QUICKTIMELIB
657 LIBOPENCL
658 FRAMEWORK_OPENAL
659 COREAUDIO
660 DISKARBITRATIONLIB
661 LDEXECFLAGS
662 APPLICATIONSERVICESLIB
663 IOKITLIB
664 COREFOUNDATIONLIB
665 SECURITYLIB
666 DLLWRAP
667 DLLTOOL
669 LDRPATH_LOCAL
670 LDRPATH_INSTALL
671 IMPLIBEXT
672 LIBEXT
673 LDDLLFLAGS
674 LDSHARED
675 DLLFLAGS
676 DLLEXT
678 OPENGL_LIBS
679 XLIB
680 MAINTAINER_MODE
681 ICOTOOL
682 CONVERT
683 RSVG
684 PKG_CONFIG
685 FONTFORGE
686 LINTFLAGS
687 LINT
688 INSTALL_DATA
689 INSTALL_SCRIPT
690 INSTALL_PROGRAM
691 LDCONFIG
692 EGREP
693 GREP
694 LN_S
695 STRIP
696 RANLIB
697 ARFLAGS
698 ac_ct_AR
700 BISON
701 FLEX
702 TOOLSDIR
703 WOW64_DISABLE
704 TARGETFLAGS
705 CPPBIN
706 ac_ct_CXX
707 CXXFLAGS
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
716 SET_MAKE
717 host_os
718 host_vendor
719 host_cpu
720 host
721 build_os
722 build_vendor
723 build_cpu
724 build
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 localstatedir
745 sharedstatedir
746 sysconfdir
747 datadir
748 datarootdir
749 libexecdir
750 sbindir
751 bindir
752 program_transform_name
753 prefix
754 exec_prefix
755 PACKAGE_URL
756 PACKAGE_BUGREPORT
757 PACKAGE_STRING
758 PACKAGE_VERSION
759 PACKAGE_TARNAME
760 PACKAGE_NAME
761 PATH_SEPARATOR
762 SHELL'
763 ac_subst_files='MAKE_RULES
764 MAKE_TEST_RULES
765 MAKE_DLL_RULES
766 MAKE_IMPLIB_RULES
767 MAKE_PROG_RULES'
768 ac_user_opts='
769 enable_option_checking
770 enable_win16
771 enable_win64
772 enable_tests
773 enable_maintainer_mode
774 with_alsa
775 with_capi
776 with_cms
777 with_coreaudio
778 with_cups
779 with_curses
780 with_esd
781 with_fontconfig
782 with_freetype
783 with_gettextpo
784 with_gphoto
785 with_glu
786 with_gnutls
787 with_gsm
788 with_gstreamer
789 with_hal
790 with_jack
791 with_jpeg
792 with_ldap
793 with_mpg123
794 with_nas
795 with_openal
796 with_opencl
797 with_opengl
798 with_openssl
799 with_oss
800 with_png
801 with_pthread
802 with_sane
803 with_tiff
804 with_v4l
805 with_xcomposite
806 with_xcursor
807 with_xinerama
808 with_xinput
809 with_xml
810 with_xrandr
811 with_xrender
812 with_xshape
813 with_xshm
814 with_xslt
815 with_xxf86vm
816 with_wine_tools
817 with_wine64
818 enable_largefile
819 with_x
821 ac_precious_vars='build_alias
822 host_alias
823 target_alias
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
830 CXXFLAGS
833 XMKMF'
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir='${datarootdir}/info'
876 htmldir='${docdir}'
877 dvidir='${docdir}'
878 pdfdir='${docdir}'
879 psdir='${docdir}'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
884 ac_prev=
885 ac_dashdash=
886 for ac_option
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
891 ac_prev=
892 continue
895 case $ac_option in
896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 *=) ac_optarg= ;;
898 *) ac_optarg=yes ;;
899 esac
901 # Accept the important Cygnus configure options, so we can diagnose typos.
903 case $ac_dashdash$ac_option in
905 ac_dashdash=yes ;;
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910 bindir=$ac_optarg ;;
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
924 --config-cache | -C)
925 cache_file=config.cache ;;
927 -datadir | --datadir | --datadi | --datad)
928 ac_prev=datadir ;;
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=\$ac_optarg ;;
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1059 no_create=yes ;;
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
1128 sbindir=$ac_optarg ;;
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
1139 sharedstatedir=$ac_optarg ;;
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
1144 site=$ac_optarg ;;
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1169 -with-* | --with-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=\$ac_optarg ;;
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1219 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229 esac
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1241 esac
1242 done
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error $? "missing argument to $ac_option"
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 esac
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1290 If a cross compiler is detected then cross compile mode will be used" >&2
1291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299 test "$silent" = yes && exec 6>/dev/null
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error $? "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error $? "pwd does not report name of working directory"
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1328 /^X\(\/\/\)$/{
1329 s//\1/
1332 /^X\(\/\).*/{
1333 s//\1/
1336 s/.*/./; q'`
1337 srcdir=$ac_confdir
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 srcdir=..
1341 else
1342 ac_srcdir_defaulted=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1351 pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 done
1370 # Report the --help message.
1372 if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1375 cat <<_ACEOF
1376 \`configure' configures Wine 1.3.13 to adapt to many kinds of systems.
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE. See below for descriptions of some of the useful variables.
1383 Defaults for the options are specified in brackets.
1385 Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking ...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396 Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 [PREFIX]
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1407 For better control, use the options below.
1409 Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1429 _ACEOF
1431 cat <<\_ACEOF
1433 X features:
1434 --x-includes=DIR X include files are in DIR
1435 --x-libraries=DIR X library files are in DIR
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of Wine 1.3.13:";;
1446 esac
1447 cat <<\_ACEOF
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --disable-win16 do not include Win16 support
1454 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1455 binaries)
1456 --disable-tests do not build the regression tests
1457 --enable-maintainer-mode
1458 enable maintainer-specific build rules
1459 --disable-largefile omit support for large files
1461 Optional Packages:
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --without-alsa do not use the Alsa sound support
1465 --without-capi do not use CAPI (ISDN support)
1466 --without-cms do not use CMS (color management support)
1467 --without-coreaudio do not use the CoreAudio sound support
1468 --without-cups do not use CUPS
1469 --without-curses do not use (n)curses
1470 --without-esd do not use the EsounD sound support
1471 --without-fontconfig do not use fontconfig
1472 --without-freetype do not use the FreeType library
1473 --without-gettextpo do not use the GetTextPO library
1474 --without-gphoto do not use gphoto (Digital Camera support)
1475 --without-glu do not use the GLU library
1476 --without-gnutls do not use GnuTLS (schannel support)
1477 --without-gsm do not use libgsm (GSM 06.10 codec support)
1478 --without-gstreamer do not use GStreamer (codecs support)
1479 --without-hal do not use HAL (dynamic device support)
1480 --without-jack do not use the Jack sound support
1481 --without-jpeg do not use JPEG
1482 --without-ldap do not use LDAP
1483 --without-mpg123 do not use the mpg123 library
1484 --without-nas do not use the NAS sound support
1485 --without-openal do not use OpenAL
1486 --without-opencl do not use OpenCL
1487 --without-opengl do not use OpenGL
1488 --without-openssl do not use OpenSSL
1489 --without-oss do not use the OSS sound support
1490 --without-png do not use PNG
1491 --without-pthread do not use the pthread library
1492 --without-sane do not use SANE (scanner support)
1493 --without-tiff do not use TIFF
1494 --without-v4l do not use v4l1 (v4l support)
1495 --without-xcomposite do not use the Xcomposite extension
1496 --without-xcursor do not use the Xcursor extension
1497 --without-xinerama do not use Xinerama (multi-monitor support)
1498 --without-xinput do not use the Xinput extension
1499 --without-xml do not use XML
1500 --without-xrandr do not use Xrandr (resolution changes)
1501 --without-xrender do not use the Xrender extension
1502 --without-xshape do not use the Xshape extension
1503 --without-xshm do not use XShm (shared memory extension)
1504 --without-xslt do not use XSLT
1505 --without-xxf86vm do not use XFree video mode extension
1506 --with-wine-tools=DIR use Wine tools from directory DIR
1507 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1508 --with-x use the X Window System
1510 Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 CXX C++ compiler command
1519 CXXFLAGS C++ compiler flags
1520 CPP C preprocessor
1521 XMKMF Path to xmkmf, Makefile generator for X Window System
1523 Use these variables to override the choices made by `configure' or to help
1524 it to find libraries and programs with nonstandard names/locations.
1526 Report bugs to <wine-devel@winehq.org>.
1527 Wine home page: <http://www.winehq.org>.
1528 _ACEOF
1529 ac_status=$?
1532 if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535 test -d "$ac_dir" ||
1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537 continue
1538 ac_builddir=.
1540 case "$ac_dir" in
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549 esac ;;
1550 esac
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1556 case $srcdir in
1557 .) # We are building in place.
1558 ac_srcdir=.
1559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
1562 ac_srcdir=$srcdir$ac_dir_suffix;
1563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1565 *) # Relative name.
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 esac
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for guested configure.
1574 if test -f "$ac_srcdir/configure.gnu"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure" --help=recursive
1580 else
1581 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 fi || ac_status=$?
1583 cd "$ac_pwd" || { ac_status=$?; break; }
1584 done
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1589 cat <<\_ACEOF
1590 Wine configure 1.3.13
1591 generated by GNU Autoconf 2.67
1593 Copyright (C) 2010 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1596 _ACEOF
1597 exit
1600 ## ------------------------ ##
1601 ## Autoconf initialization. ##
1602 ## ------------------------ ##
1604 # ac_fn_c_try_compile LINENO
1605 # --------------------------
1606 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_compile ()
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext
1611 if { { ac_try="$ac_compile"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_compile") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest.$ac_objext; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1635 ac_retval=1
1637 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638 as_fn_set_status $ac_retval
1640 } # ac_fn_c_try_compile
1642 # ac_fn_cxx_try_compile LINENO
1643 # ----------------------------
1644 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_cxx_try_compile ()
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext
1649 if { { ac_try="$ac_compile"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_compile") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_cxx_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest.$ac_objext; then :
1668 ac_retval=0
1669 else
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1673 ac_retval=1
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676 as_fn_set_status $ac_retval
1678 } # ac_fn_cxx_try_compile
1680 # ac_fn_c_try_link LINENO
1681 # -----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_link ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext conftest$ac_exeext
1687 if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest$ac_exeext && {
1706 test "$cross_compiling" = yes ||
1707 $as_test_x conftest$ac_exeext
1708 }; then :
1709 ac_retval=0
1710 else
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1714 ac_retval=1
1716 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718 # interfere with the next link command; also delete a directory that is
1719 # left behind by Apple's compiler. We do this before executing the actions.
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722 as_fn_set_status $ac_retval
1724 } # ac_fn_c_try_link
1726 # ac_fn_c_try_cpp LINENO
1727 # ----------------------
1728 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_cpp ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_cpp conftest.$ac_ext"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } > conftest.i && {
1748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 }; then :
1751 ac_retval=0
1752 else
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1756 ac_retval=1
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 as_fn_set_status $ac_retval
1761 } # ac_fn_c_try_cpp
1763 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1766 # the include files in INCLUDES and setting the cache variable VAR
1767 # accordingly.
1768 ac_fn_c_check_header_mongrel ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 if eval "test \"\${$3+set}\"" = set; then :
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval "test \"\${$3+set}\"" = set; then :
1775 $as_echo_n "(cached) " >&6
1777 eval ac_res=\$$3
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780 else
1781 # Is the header compilable?
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1783 $as_echo_n "checking $2 usability... " >&6; }
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1787 #include <$2>
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790 ac_header_compiler=yes
1791 else
1792 ac_header_compiler=no
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1796 $as_echo "$ac_header_compiler" >&6; }
1798 # Is the header present?
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1800 $as_echo_n "checking $2 presence... " >&6; }
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1803 #include <$2>
1804 _ACEOF
1805 if ac_fn_c_try_cpp "$LINENO"; then :
1806 ac_header_preproc=yes
1807 else
1808 ac_header_preproc=no
1810 rm -f conftest.err conftest.i conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1812 $as_echo "$ac_header_preproc" >&6; }
1814 # So? What about this header?
1815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1816 yes:no: )
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1818 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 no:yes:* )
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1824 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1826 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1828 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1830 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 ( $as_echo "## ------------------------------------ ##
1834 ## Report this to wine-devel@winehq.org ##
1835 ## ------------------------------------ ##"
1836 ) | sed "s/^/$as_me: WARNING: /" >&2
1838 esac
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval "test \"\${$3+set}\"" = set; then :
1842 $as_echo_n "(cached) " >&6
1843 else
1844 eval "$3=\$ac_header_compiler"
1846 eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 } # ac_fn_c_check_header_mongrel
1854 # ac_fn_c_try_run LINENO
1855 # ----------------------
1856 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1857 # that executables *can* be run.
1858 ac_fn_c_try_run ()
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 if { { ac_try="$ac_link"
1862 case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_link") 2>&5
1869 ac_status=$?
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1872 { { case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_try") 2>&5
1879 ac_status=$?
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; }; }; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: program exited with status $ac_status" >&5
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1888 ac_retval=$ac_status
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 as_fn_set_status $ac_retval
1894 } # ac_fn_c_try_run
1896 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1897 # -------------------------------------------------------
1898 # Tests whether HEADER exists and can be compiled using the include files in
1899 # INCLUDES, setting the cache variable VAR accordingly.
1900 ac_fn_c_check_header_compile ()
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if eval "test \"\${$3+set}\"" = set; then :
1906 $as_echo_n "(cached) " >&6
1907 else
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1911 #include <$2>
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 eval "$3=yes"
1915 else
1916 eval "$3=no"
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 eval ac_res=\$$3
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925 } # ac_fn_c_check_header_compile
1927 # ac_fn_c_check_func LINENO FUNC VAR
1928 # ----------------------------------
1929 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1930 ac_fn_c_check_func ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if eval "test \"\${$3+set}\"" = set; then :
1936 $as_echo_n "(cached) " >&6
1937 else
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1942 #define $2 innocuous_$2
1944 /* System header to define __stub macros and hopefully few prototypes,
1945 which can conflict with char $2 (); below.
1946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1947 <limits.h> exists even on freestanding compilers. */
1949 #ifdef __STDC__
1950 # include <limits.h>
1951 #else
1952 # include <assert.h>
1953 #endif
1955 #undef $2
1957 /* Override any GCC internal prototype to avoid an error.
1958 Use char because int might match the return type of a GCC
1959 builtin and then its argument prototype would still apply. */
1960 #ifdef __cplusplus
1961 extern "C"
1962 #endif
1963 char $2 ();
1964 /* The GNU C library defines this for functions which it implements
1965 to always fail with ENOSYS. Some functions are actually named
1966 something starting with __ and the normal name is an alias. */
1967 #if defined __stub_$2 || defined __stub___$2
1968 choke me
1969 #endif
1972 main ()
1974 return $2 ();
1976 return 0;
1978 _ACEOF
1979 if ac_fn_c_try_link "$LINENO"; then :
1980 eval "$3=yes"
1981 else
1982 eval "$3=no"
1984 rm -f core conftest.err conftest.$ac_objext \
1985 conftest$ac_exeext conftest.$ac_ext
1987 eval ac_res=\$$3
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 } # ac_fn_c_check_func
1994 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1995 # ----------------------------------------------------
1996 # Tries to find if the field MEMBER exists in type AGGR, after including
1997 # INCLUDES, setting cache variable VAR accordingly.
1998 ac_fn_c_check_member ()
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2002 $as_echo_n "checking for $2.$3... " >&6; }
2003 if eval "test \"\${$4+set}\"" = set; then :
2004 $as_echo_n "(cached) " >&6
2005 else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2010 main ()
2012 static $2 ac_aggr;
2013 if (ac_aggr.$3)
2014 return 0;
2016 return 0;
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020 eval "$4=yes"
2021 else
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2026 main ()
2028 static $2 ac_aggr;
2029 if (sizeof ac_aggr.$3)
2030 return 0;
2032 return 0;
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036 eval "$4=yes"
2037 else
2038 eval "$4=no"
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 eval ac_res=\$$4
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2049 } # ac_fn_c_check_member
2051 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2052 # -------------------------------------------
2053 # Tests whether TYPE exists after having included INCLUDES, setting cache
2054 # variable VAR accordingly.
2055 ac_fn_c_check_type ()
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059 $as_echo_n "checking for $2... " >&6; }
2060 if eval "test \"\${$3+set}\"" = set; then :
2061 $as_echo_n "(cached) " >&6
2062 else
2063 eval "$3=no"
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2068 main ()
2070 if (sizeof ($2))
2071 return 0;
2073 return 0;
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2081 main ()
2083 if (sizeof (($2)))
2084 return 0;
2086 return 0;
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2091 else
2092 eval "$3=yes"
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103 } # ac_fn_c_check_type
2104 cat >config.log <<_ACEOF
2105 This file contains any messages produced by compilers while
2106 running configure, to aid debugging if configure makes a mistake.
2108 It was created by Wine $as_me 1.3.13, which was
2109 generated by GNU Autoconf 2.67. Invocation command line was
2111 $ $0 $@
2113 _ACEOF
2114 exec 5>>config.log
2116 cat <<_ASUNAME
2117 ## --------- ##
2118 ## Platform. ##
2119 ## --------- ##
2121 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2122 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2123 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2124 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2125 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2127 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2128 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2130 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2131 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2132 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2133 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2134 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2135 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2136 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2138 _ASUNAME
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 $as_echo "PATH: $as_dir"
2146 done
2147 IFS=$as_save_IFS
2149 } >&5
2151 cat >&5 <<_ACEOF
2154 ## ----------- ##
2155 ## Core tests. ##
2156 ## ----------- ##
2158 _ACEOF
2161 # Keep a trace of the command line.
2162 # Strip out --no-create and --no-recursion so they do not pile up.
2163 # Strip out --silent because we don't want to record it for future runs.
2164 # Also quote any args containing shell meta-characters.
2165 # Make two passes to allow for proper duplicate-argument suppression.
2166 ac_configure_args=
2167 ac_configure_args0=
2168 ac_configure_args1=
2169 ac_must_keep_next=false
2170 for ac_pass in 1 2
2172 for ac_arg
2174 case $ac_arg in
2175 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2177 | -silent | --silent | --silen | --sile | --sil)
2178 continue ;;
2179 *\'*)
2180 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2181 esac
2182 case $ac_pass in
2183 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2185 as_fn_append ac_configure_args1 " '$ac_arg'"
2186 if test $ac_must_keep_next = true; then
2187 ac_must_keep_next=false # Got value, back to normal.
2188 else
2189 case $ac_arg in
2190 *=* | --config-cache | -C | -disable-* | --disable-* \
2191 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2192 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2193 | -with-* | --with-* | -without-* | --without-* | --x)
2194 case "$ac_configure_args0 " in
2195 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2196 esac
2198 -* ) ac_must_keep_next=true ;;
2199 esac
2201 as_fn_append ac_configure_args " '$ac_arg'"
2203 esac
2204 done
2205 done
2206 { ac_configure_args0=; unset ac_configure_args0;}
2207 { ac_configure_args1=; unset ac_configure_args1;}
2209 # When interrupted or exit'd, cleanup temporary files, and complete
2210 # config.log. We remove comments because anyway the quotes in there
2211 # would cause problems or look ugly.
2212 # WARNING: Use '\'' to represent an apostrophe within the trap.
2213 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2214 trap 'exit_status=$?
2215 # Save into config.log some information that might help in debugging.
2217 echo
2219 $as_echo "## ---------------- ##
2220 ## Cache variables. ##
2221 ## ---------------- ##"
2222 echo
2223 # The following way of writing the cache mishandles newlines in values,
2225 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2226 eval ac_val=\$$ac_var
2227 case $ac_val in #(
2228 *${as_nl}*)
2229 case $ac_var in #(
2230 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2231 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2232 esac
2233 case $ac_var in #(
2234 _ | IFS | as_nl) ;; #(
2235 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2236 *) { eval $ac_var=; unset $ac_var;} ;;
2237 esac ;;
2238 esac
2239 done
2240 (set) 2>&1 |
2241 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2242 *${as_nl}ac_space=\ *)
2243 sed -n \
2244 "s/'\''/'\''\\\\'\'''\''/g;
2245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2246 ;; #(
2248 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2250 esac |
2251 sort
2253 echo
2255 $as_echo "## ----------------- ##
2256 ## Output variables. ##
2257 ## ----------------- ##"
2258 echo
2259 for ac_var in $ac_subst_vars
2261 eval ac_val=\$$ac_var
2262 case $ac_val in
2263 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2264 esac
2265 $as_echo "$ac_var='\''$ac_val'\''"
2266 done | sort
2267 echo
2269 if test -n "$ac_subst_files"; then
2270 $as_echo "## ------------------- ##
2271 ## File substitutions. ##
2272 ## ------------------- ##"
2273 echo
2274 for ac_var in $ac_subst_files
2276 eval ac_val=\$$ac_var
2277 case $ac_val in
2278 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2279 esac
2280 $as_echo "$ac_var='\''$ac_val'\''"
2281 done | sort
2282 echo
2285 if test -s confdefs.h; then
2286 $as_echo "## ----------- ##
2287 ## confdefs.h. ##
2288 ## ----------- ##"
2289 echo
2290 cat confdefs.h
2291 echo
2293 test "$ac_signal" != 0 &&
2294 $as_echo "$as_me: caught signal $ac_signal"
2295 $as_echo "$as_me: exit $exit_status"
2296 } >&5
2297 rm -f core *.core core.conftest.* &&
2298 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2299 exit $exit_status
2301 for ac_signal in 1 2 13 15; do
2302 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2303 done
2304 ac_signal=0
2306 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2307 rm -f -r conftest* confdefs.h
2309 $as_echo "/* confdefs.h */" > confdefs.h
2311 # Predefined preprocessor variables.
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_NAME "$PACKAGE_NAME"
2315 _ACEOF
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2319 _ACEOF
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2323 _ACEOF
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_STRING "$PACKAGE_STRING"
2327 _ACEOF
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2331 _ACEOF
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_URL "$PACKAGE_URL"
2335 _ACEOF
2338 # Let the site file select an alternate cache file if it wants to.
2339 # Prefer an explicitly selected file to automatically selected ones.
2340 ac_site_file1=NONE
2341 ac_site_file2=NONE
2342 if test -n "$CONFIG_SITE"; then
2343 # We do not want a PATH search for config.site.
2344 case $CONFIG_SITE in #((
2345 -*) ac_site_file1=./$CONFIG_SITE;;
2346 */*) ac_site_file1=$CONFIG_SITE;;
2347 *) ac_site_file1=./$CONFIG_SITE;;
2348 esac
2349 elif test "x$prefix" != xNONE; then
2350 ac_site_file1=$prefix/share/config.site
2351 ac_site_file2=$prefix/etc/config.site
2352 else
2353 ac_site_file1=$ac_default_prefix/share/config.site
2354 ac_site_file2=$ac_default_prefix/etc/config.site
2356 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2358 test "x$ac_site_file" = xNONE && continue
2359 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2361 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2362 sed 's/^/| /' "$ac_site_file" >&5
2363 . "$ac_site_file" \
2364 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2366 as_fn_error $? "failed to load site script $ac_site_file
2367 See \`config.log' for more details" "$LINENO" 5 ; }
2369 done
2371 if test -r "$cache_file"; then
2372 # Some versions of bash will fail to source /dev/null (special files
2373 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2374 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2376 $as_echo "$as_me: loading cache $cache_file" >&6;}
2377 case $cache_file in
2378 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2379 *) . "./$cache_file";;
2380 esac
2382 else
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2384 $as_echo "$as_me: creating cache $cache_file" >&6;}
2385 >$cache_file
2388 # Check that the precious variables saved in the cache have kept the same
2389 # value.
2390 ac_cache_corrupted=false
2391 for ac_var in $ac_precious_vars; do
2392 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2393 eval ac_new_set=\$ac_env_${ac_var}_set
2394 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2395 eval ac_new_val=\$ac_env_${ac_var}_value
2396 case $ac_old_set,$ac_new_set in
2397 set,)
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2399 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2400 ac_cache_corrupted=: ;;
2401 ,set)
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2403 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2404 ac_cache_corrupted=: ;;
2405 ,);;
2407 if test "x$ac_old_val" != "x$ac_new_val"; then
2408 # differences in whitespace do not lead to failure.
2409 ac_old_val_w=`echo x $ac_old_val`
2410 ac_new_val_w=`echo x $ac_new_val`
2411 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2413 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2414 ac_cache_corrupted=:
2415 else
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2417 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2418 eval $ac_var=\$ac_old_val
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2421 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2423 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2424 fi;;
2425 esac
2426 # Pass precious variables to config.status.
2427 if test "$ac_new_set" = set; then
2428 case $ac_new_val in
2429 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2430 *) ac_arg=$ac_var=$ac_new_val ;;
2431 esac
2432 case " $ac_configure_args " in
2433 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2434 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2435 esac
2437 done
2438 if $ac_cache_corrupted; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2442 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2443 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2445 ## -------------------- ##
2446 ## Main body of script. ##
2447 ## -------------------- ##
2449 ac_ext=c
2450 ac_cpp='$CPP $CPPFLAGS'
2451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2457 ac_config_headers="$ac_config_headers include/config.h"
2459 ac_aux_dir=
2460 for ac_dir in tools "$srcdir"/tools; do
2461 if test -f "$ac_dir/install-sh"; then
2462 ac_aux_dir=$ac_dir
2463 ac_install_sh="$ac_aux_dir/install-sh -c"
2464 break
2465 elif test -f "$ac_dir/install.sh"; then
2466 ac_aux_dir=$ac_dir
2467 ac_install_sh="$ac_aux_dir/install.sh -c"
2468 break
2469 elif test -f "$ac_dir/shtool"; then
2470 ac_aux_dir=$ac_dir
2471 ac_install_sh="$ac_aux_dir/shtool install -c"
2472 break
2474 done
2475 if test -z "$ac_aux_dir"; then
2476 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2479 # These three variables are undocumented and unsupported,
2480 # and are intended to be withdrawn in a future Autoconf release.
2481 # They can cause serious problems if a builder's source tree is in a directory
2482 # whose full name contains unusual characters.
2483 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2484 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2485 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2491 # Check whether --enable-win16 was given.
2492 if test "${enable_win16+set}" = set; then :
2493 enableval=$enable_win16;
2496 # Check whether --enable-win64 was given.
2497 if test "${enable_win64+set}" = set; then :
2498 enableval=$enable_win64;
2501 # Check whether --enable-tests was given.
2502 if test "${enable_tests+set}" = set; then :
2503 enableval=$enable_tests;
2506 # Check whether --enable-maintainer-mode was given.
2507 if test "${enable_maintainer_mode+set}" = set; then :
2508 enableval=$enable_maintainer_mode;
2513 # Check whether --with-alsa was given.
2514 if test "${with_alsa+set}" = set; then :
2515 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2519 # Check whether --with-capi was given.
2520 if test "${with_capi+set}" = set; then :
2521 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2525 # Check whether --with-cms was given.
2526 if test "${with_cms+set}" = set; then :
2527 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2531 # Check whether --with-coreaudio was given.
2532 if test "${with_coreaudio+set}" = set; then :
2533 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2537 # Check whether --with-cups was given.
2538 if test "${with_cups+set}" = set; then :
2539 withval=$with_cups;
2543 # Check whether --with-curses was given.
2544 if test "${with_curses+set}" = set; then :
2545 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2549 # Check whether --with-esd was given.
2550 if test "${with_esd+set}" = set; then :
2551 withval=$with_esd;
2555 # Check whether --with-fontconfig was given.
2556 if test "${with_fontconfig+set}" = set; then :
2557 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2561 # Check whether --with-freetype was given.
2562 if test "${with_freetype+set}" = set; then :
2563 withval=$with_freetype;
2567 # Check whether --with-gettextpo was given.
2568 if test "${with_gettextpo+set}" = set; then :
2569 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2573 # Check whether --with-gphoto was given.
2574 if test "${with_gphoto+set}" = set; then :
2575 withval=$with_gphoto;
2579 # Check whether --with-glu was given.
2580 if test "${with_glu+set}" = set; then :
2581 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2585 # Check whether --with-gnutls was given.
2586 if test "${with_gnutls+set}" = set; then :
2587 withval=$with_gnutls;
2591 # Check whether --with-gsm was given.
2592 if test "${with_gsm+set}" = set; then :
2593 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2597 # Check whether --with-gstreamer was given.
2598 if test "${with_gstreamer+set}" = set; then :
2599 withval=$with_gstreamer;
2603 # Check whether --with-hal was given.
2604 if test "${with_hal+set}" = set; then :
2605 withval=$with_hal;
2609 # Check whether --with-jack was given.
2610 if test "${with_jack+set}" = set; then :
2611 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2615 # Check whether --with-jpeg was given.
2616 if test "${with_jpeg+set}" = set; then :
2617 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2621 # Check whether --with-ldap was given.
2622 if test "${with_ldap+set}" = set; then :
2623 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2627 # Check whether --with-mpg123 was given.
2628 if test "${with_mpg123+set}" = set; then :
2629 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2633 # Check whether --with-nas was given.
2634 if test "${with_nas+set}" = set; then :
2635 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2639 # Check whether --with-openal was given.
2640 if test "${with_openal+set}" = set; then :
2641 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2645 # Check whether --with-opencl was given.
2646 if test "${with_opencl+set}" = set; then :
2647 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2651 # Check whether --with-opengl was given.
2652 if test "${with_opengl+set}" = set; then :
2653 withval=$with_opengl;
2657 # Check whether --with-openssl was given.
2658 if test "${with_openssl+set}" = set; then :
2659 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2663 # Check whether --with-oss was given.
2664 if test "${with_oss+set}" = set; then :
2665 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
2669 # Check whether --with-png was given.
2670 if test "${with_png+set}" = set; then :
2671 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2675 # Check whether --with-pthread was given.
2676 if test "${with_pthread+set}" = set; then :
2677 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2681 # Check whether --with-sane was given.
2682 if test "${with_sane+set}" = set; then :
2683 withval=$with_sane;
2687 # Check whether --with-tiff was given.
2688 if test "${with_tiff+set}" = set; then :
2689 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2693 # Check whether --with-v4l was given.
2694 if test "${with_v4l+set}" = set; then :
2695 withval=$with_v4l;
2699 # Check whether --with-xcomposite was given.
2700 if test "${with_xcomposite+set}" = set; then :
2701 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2705 # Check whether --with-xcursor was given.
2706 if test "${with_xcursor+set}" = set; then :
2707 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2711 # Check whether --with-xinerama was given.
2712 if test "${with_xinerama+set}" = set; then :
2713 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2717 # Check whether --with-xinput was given.
2718 if test "${with_xinput+set}" = set; then :
2719 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2723 # Check whether --with-xml was given.
2724 if test "${with_xml+set}" = set; then :
2725 withval=$with_xml;
2729 # Check whether --with-xrandr was given.
2730 if test "${with_xrandr+set}" = set; then :
2731 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2735 # Check whether --with-xrender was given.
2736 if test "${with_xrender+set}" = set; then :
2737 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2741 # Check whether --with-xshape was given.
2742 if test "${with_xshape+set}" = set; then :
2743 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2747 # Check whether --with-xshm was given.
2748 if test "${with_xshm+set}" = set; then :
2749 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2753 # Check whether --with-xslt was given.
2754 if test "${with_xslt+set}" = set; then :
2755 withval=$with_xslt;
2759 # Check whether --with-xxf86vm was given.
2760 if test "${with_xxf86vm+set}" = set; then :
2761 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
2766 # Check whether --with-wine-tools was given.
2767 if test "${with_wine_tools+set}" = set; then :
2768 withval=$with_wine_tools;
2772 # Check whether --with-wine64 was given.
2773 if test "${with_wine64+set}" = set; then :
2774 withval=$with_wine64;
2778 # Make sure we can run config.sub.
2779 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2780 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2783 $as_echo_n "checking build system type... " >&6; }
2784 if test "${ac_cv_build+set}" = set; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 ac_build_alias=$build_alias
2788 test "x$ac_build_alias" = x &&
2789 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2790 test "x$ac_build_alias" = x &&
2791 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2792 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2793 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2797 $as_echo "$ac_cv_build" >&6; }
2798 case $ac_cv_build in
2799 *-*-*) ;;
2800 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2801 esac
2802 build=$ac_cv_build
2803 ac_save_IFS=$IFS; IFS='-'
2804 set x $ac_cv_build
2805 shift
2806 build_cpu=$1
2807 build_vendor=$2
2808 shift; shift
2809 # Remember, the first character of IFS is used to create $*,
2810 # except with old shells:
2811 build_os=$*
2812 IFS=$ac_save_IFS
2813 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2817 $as_echo_n "checking host system type... " >&6; }
2818 if test "${ac_cv_host+set}" = set; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 if test "x$host_alias" = x; then
2822 ac_cv_host=$ac_cv_build
2823 else
2824 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2825 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2830 $as_echo "$ac_cv_host" >&6; }
2831 case $ac_cv_host in
2832 *-*-*) ;;
2833 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2834 esac
2835 host=$ac_cv_host
2836 ac_save_IFS=$IFS; IFS='-'
2837 set x $ac_cv_host
2838 shift
2839 host_cpu=$1
2840 host_vendor=$2
2841 shift; shift
2842 # Remember, the first character of IFS is used to create $*,
2843 # except with old shells:
2844 host_os=$*
2845 IFS=$ac_save_IFS
2846 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2850 case "$srcdir" in
2851 .) ;;
2852 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2853 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2854 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2855 fi ;;
2856 esac
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2860 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2861 set x ${MAKE-make}
2862 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2863 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2864 $as_echo_n "(cached) " >&6
2865 else
2866 cat >conftest.make <<\_ACEOF
2867 SHELL = /bin/sh
2868 all:
2869 @echo '@@@%%%=$(MAKE)=@@@%%%'
2870 _ACEOF
2871 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2872 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2873 *@@@%%%=?*=@@@%%%*)
2874 eval ac_cv_prog_make_${ac_make}_set=yes;;
2876 eval ac_cv_prog_make_${ac_make}_set=no;;
2877 esac
2878 rm -f conftest.make
2880 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2882 $as_echo "yes" >&6; }
2883 SET_MAKE=
2884 else
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886 $as_echo "no" >&6; }
2887 SET_MAKE="MAKE=${MAKE-make}"
2890 ac_ext=c
2891 ac_cpp='$CPP $CPPFLAGS'
2892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2895 if test -n "$ac_tool_prefix"; then
2896 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2897 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if test "${ac_cv_prog_CC+set}" = set; then :
2901 $as_echo_n "(cached) " >&6
2902 else
2903 if test -n "$CC"; then
2904 ac_cv_prog_CC="$CC" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2917 done
2918 done
2919 IFS=$as_save_IFS
2923 CC=$ac_cv_prog_CC
2924 if test -n "$CC"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2926 $as_echo "$CC" >&6; }
2927 else
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2934 if test -z "$ac_cv_prog_CC"; then
2935 ac_ct_CC=$CC
2936 # Extract the first word of "gcc", so it can be a program name with args.
2937 set dummy gcc; ac_word=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2941 $as_echo_n "(cached) " >&6
2942 else
2943 if test -n "$ac_ct_CC"; then
2944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953 ac_cv_prog_ac_ct_CC="gcc"
2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2957 done
2958 done
2959 IFS=$as_save_IFS
2963 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2964 if test -n "$ac_ct_CC"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2966 $as_echo "$ac_ct_CC" >&6; }
2967 else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2972 if test "x$ac_ct_CC" = x; then
2973 CC=""
2974 else
2975 case $cross_compiling:$ac_tool_warned in
2976 yes:)
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2979 ac_tool_warned=yes ;;
2980 esac
2981 CC=$ac_ct_CC
2983 else
2984 CC="$ac_cv_prog_CC"
2987 if test -z "$CC"; then
2988 if test -n "$ac_tool_prefix"; then
2989 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2990 set dummy ${ac_tool_prefix}cc; ac_word=$2
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if test "${ac_cv_prog_CC+set}" = set; then :
2994 $as_echo_n "(cached) " >&6
2995 else
2996 if test -n "$CC"; then
2997 ac_cv_prog_CC="$CC" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 ac_cv_prog_CC="${ac_tool_prefix}cc"
3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3010 done
3011 done
3012 IFS=$as_save_IFS
3016 CC=$ac_cv_prog_CC
3017 if test -n "$CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3019 $as_echo "$CC" >&6; }
3020 else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3028 if test -z "$CC"; then
3029 # Extract the first word of "cc", so it can be a program name with args.
3030 set dummy cc; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if test "${ac_cv_prog_CC+set}" = set; then :
3034 $as_echo_n "(cached) " >&6
3035 else
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC="$CC" # Let the user override the test.
3038 else
3039 ac_prog_rejected=no
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3048 ac_prog_rejected=yes
3049 continue
3051 ac_cv_prog_CC="cc"
3052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 break 2
3055 done
3056 done
3057 IFS=$as_save_IFS
3059 if test $ac_prog_rejected = yes; then
3060 # We found a bogon in the path, so make sure we never use it.
3061 set dummy $ac_cv_prog_CC
3062 shift
3063 if test $# != 0; then
3064 # We chose a different compiler from the bogus one.
3065 # However, it has the same basename, so the bogon will be chosen
3066 # first if we set CC to just the basename; use the full file name.
3067 shift
3068 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3073 CC=$ac_cv_prog_CC
3074 if test -n "$CC"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3076 $as_echo "$CC" >&6; }
3077 else
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3084 if test -z "$CC"; then
3085 if test -n "$ac_tool_prefix"; then
3086 for ac_prog in cl.exe
3088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if test "${ac_cv_prog_CC+set}" = set; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test -n "$CC"; then
3096 ac_cv_prog_CC="$CC" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3109 done
3110 done
3111 IFS=$as_save_IFS
3115 CC=$ac_cv_prog_CC
3116 if test -n "$CC"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3118 $as_echo "$CC" >&6; }
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3125 test -n "$CC" && break
3126 done
3128 if test -z "$CC"; then
3129 ac_ct_CC=$CC
3130 for ac_prog in cl.exe
3132 # Extract the first word of "$ac_prog", so it can be a program name with args.
3133 set dummy $ac_prog; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3137 $as_echo_n "(cached) " >&6
3138 else
3139 if test -n "$ac_ct_CC"; then
3140 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3145 IFS=$as_save_IFS
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149 ac_cv_prog_ac_ct_CC="$ac_prog"
3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 break 2
3153 done
3154 done
3155 IFS=$as_save_IFS
3159 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3160 if test -n "$ac_ct_CC"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3162 $as_echo "$ac_ct_CC" >&6; }
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3169 test -n "$ac_ct_CC" && break
3170 done
3172 if test "x$ac_ct_CC" = x; then
3173 CC=""
3174 else
3175 case $cross_compiling:$ac_tool_warned in
3176 yes:)
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3179 ac_tool_warned=yes ;;
3180 esac
3181 CC=$ac_ct_CC
3188 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190 as_fn_error $? "no acceptable C compiler found in \$PATH
3191 See \`config.log' for more details" "$LINENO" 5 ; }
3193 # Provide some information about the compiler.
3194 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3195 set X $ac_compile
3196 ac_compiler=$2
3197 for ac_option in --version -v -V -qversion; do
3198 { { ac_try="$ac_compiler $ac_option >&5"
3199 case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202 esac
3203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3204 $as_echo "$ac_try_echo"; } >&5
3205 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3206 ac_status=$?
3207 if test -s conftest.err; then
3208 sed '10a\
3209 ... rest of stderr output deleted ...
3210 10q' conftest.err >conftest.er1
3211 cat conftest.er1 >&5
3213 rm -f conftest.er1 conftest.err
3214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215 test $ac_status = 0; }
3216 done
3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219 /* end confdefs.h. */
3222 main ()
3226 return 0;
3228 _ACEOF
3229 ac_clean_files_save=$ac_clean_files
3230 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3231 # Try to create an executable without -o first, disregard a.out.
3232 # It will help us diagnose broken compilers, and finding out an intuition
3233 # of exeext.
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3235 $as_echo_n "checking whether the C compiler works... " >&6; }
3236 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3238 # The possible output files:
3239 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3241 ac_rmfiles=
3242 for ac_file in $ac_files
3244 case $ac_file in
3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3246 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3247 esac
3248 done
3249 rm -f $ac_rmfiles
3251 if { { ac_try="$ac_link_default"
3252 case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255 esac
3256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257 $as_echo "$ac_try_echo"; } >&5
3258 (eval "$ac_link_default") 2>&5
3259 ac_status=$?
3260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261 test $ac_status = 0; }; then :
3262 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3263 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3264 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3265 # so that the user can short-circuit this test for compilers unknown to
3266 # Autoconf.
3267 for ac_file in $ac_files ''
3269 test -f "$ac_file" || continue
3270 case $ac_file in
3271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3273 [ab].out )
3274 # We found the default executable, but exeext='' is most
3275 # certainly right.
3276 break;;
3277 *.* )
3278 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3279 then :; else
3280 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3282 # We set ac_cv_exeext here because the later test for it is not
3283 # safe: cross compilers may not add the suffix if given an `-o'
3284 # argument, so we may need to know it at that point already.
3285 # Even if this section looks crufty: it has the advantage of
3286 # actually working.
3287 break;;
3289 break;;
3290 esac
3291 done
3292 test "$ac_cv_exeext" = no && ac_cv_exeext=
3294 else
3295 ac_file=''
3297 if test -z "$ac_file"; then :
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 $as_echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305 as_fn_error 77 "C compiler cannot create executables
3306 See \`config.log' for more details" "$LINENO" 5 ; }
3307 else
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3309 $as_echo "yes" >&6; }
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3312 $as_echo_n "checking for C compiler default output file name... " >&6; }
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3314 $as_echo "$ac_file" >&6; }
3315 ac_exeext=$ac_cv_exeext
3317 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3318 ac_clean_files=$ac_clean_files_save
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3320 $as_echo_n "checking for suffix of executables... " >&6; }
3321 if { { ac_try="$ac_link"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_link") 2>&5
3329 ac_status=$?
3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331 test $ac_status = 0; }; then :
3332 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3333 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3334 # work properly (i.e., refer to `conftest.exe'), while it won't with
3335 # `rm'.
3336 for ac_file in conftest.exe conftest conftest.*; do
3337 test -f "$ac_file" || continue
3338 case $ac_file in
3339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3340 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3341 break;;
3342 * ) break;;
3343 esac
3344 done
3345 else
3346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3349 See \`config.log' for more details" "$LINENO" 5 ; }
3351 rm -f conftest conftest$ac_cv_exeext
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3353 $as_echo "$ac_cv_exeext" >&6; }
3355 rm -f conftest.$ac_ext
3356 EXEEXT=$ac_cv_exeext
3357 ac_exeext=$EXEEXT
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3360 #include <stdio.h>
3362 main ()
3364 FILE *f = fopen ("conftest.out", "w");
3365 return ferror (f) || fclose (f) != 0;
3368 return 0;
3370 _ACEOF
3371 ac_clean_files="$ac_clean_files conftest.out"
3372 # Check that the compiler produces executables we can run. If not, either
3373 # the compiler is broken, or we cross compile.
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3375 $as_echo_n "checking whether we are cross compiling... " >&6; }
3376 if test "$cross_compiling" != yes; then
3377 { { ac_try="$ac_link"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384 (eval "$ac_link") 2>&5
3385 ac_status=$?
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }
3388 if { ac_try='./conftest$ac_cv_exeext'
3389 { { case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_try") 2>&5
3396 ac_status=$?
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }; }; then
3399 cross_compiling=no
3400 else
3401 if test "$cross_compiling" = maybe; then
3402 cross_compiling=yes
3403 else
3404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406 as_fn_error $? "cannot run C compiled programs.
3407 If you meant to cross compile, use \`--host'.
3408 See \`config.log' for more details" "$LINENO" 5 ; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3413 $as_echo "$cross_compiling" >&6; }
3415 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3416 ac_clean_files=$ac_clean_files_save
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3418 $as_echo_n "checking for suffix of object files... " >&6; }
3419 if test "${ac_cv_objext+set}" = set; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3426 main ()
3430 return 0;
3432 _ACEOF
3433 rm -f conftest.o conftest.obj
3434 if { { ac_try="$ac_compile"
3435 case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438 esac
3439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440 $as_echo "$ac_try_echo"; } >&5
3441 (eval "$ac_compile") 2>&5
3442 ac_status=$?
3443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444 test $ac_status = 0; }; then :
3445 for ac_file in conftest.o conftest.obj conftest.*; do
3446 test -f "$ac_file" || continue;
3447 case $ac_file in
3448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3449 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3450 break;;
3451 esac
3452 done
3453 else
3454 $as_echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 as_fn_error $? "cannot compute suffix of object files: cannot compile
3460 See \`config.log' for more details" "$LINENO" 5 ; }
3462 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3465 $as_echo "$ac_cv_objext" >&6; }
3466 OBJEXT=$ac_cv_objext
3467 ac_objext=$OBJEXT
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3469 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3470 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3477 main ()
3479 #ifndef __GNUC__
3480 choke me
3481 #endif
3484 return 0;
3486 _ACEOF
3487 if ac_fn_c_try_compile "$LINENO"; then :
3488 ac_compiler_gnu=yes
3489 else
3490 ac_compiler_gnu=no
3492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3497 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3498 if test $ac_compiler_gnu = yes; then
3499 GCC=yes
3500 else
3501 GCC=
3503 ac_test_CFLAGS=${CFLAGS+set}
3504 ac_save_CFLAGS=$CFLAGS
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3506 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3507 if test "${ac_cv_prog_cc_g+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 ac_save_c_werror_flag=$ac_c_werror_flag
3511 ac_c_werror_flag=yes
3512 ac_cv_prog_cc_g=no
3513 CFLAGS="-g"
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3518 main ()
3522 return 0;
3524 _ACEOF
3525 if ac_fn_c_try_compile "$LINENO"; then :
3526 ac_cv_prog_cc_g=yes
3527 else
3528 CFLAGS=""
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3533 main ()
3537 return 0;
3539 _ACEOF
3540 if ac_fn_c_try_compile "$LINENO"; then :
3542 else
3543 ac_c_werror_flag=$ac_save_c_werror_flag
3544 CFLAGS="-g"
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3549 main ()
3553 return 0;
3555 _ACEOF
3556 if ac_fn_c_try_compile "$LINENO"; then :
3557 ac_cv_prog_cc_g=yes
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 ac_c_werror_flag=$ac_save_c_werror_flag
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3567 $as_echo "$ac_cv_prog_cc_g" >&6; }
3568 if test "$ac_test_CFLAGS" = set; then
3569 CFLAGS=$ac_save_CFLAGS
3570 elif test $ac_cv_prog_cc_g = yes; then
3571 if test "$GCC" = yes; then
3572 CFLAGS="-g -O2"
3573 else
3574 CFLAGS="-g"
3576 else
3577 if test "$GCC" = yes; then
3578 CFLAGS="-O2"
3579 else
3580 CFLAGS=
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3584 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3585 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3586 $as_echo_n "(cached) " >&6
3587 else
3588 ac_cv_prog_cc_c89=no
3589 ac_save_CC=$CC
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3592 #include <stdarg.h>
3593 #include <stdio.h>
3594 #include <sys/types.h>
3595 #include <sys/stat.h>
3596 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3597 struct buf { int x; };
3598 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3599 static char *e (p, i)
3600 char **p;
3601 int i;
3603 return p[i];
3605 static char *f (char * (*g) (char **, int), char **p, ...)
3607 char *s;
3608 va_list v;
3609 va_start (v,p);
3610 s = g (p, va_arg (v,int));
3611 va_end (v);
3612 return s;
3615 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3616 function prototypes and stuff, but not '\xHH' hex character constants.
3617 These don't provoke an error unfortunately, instead are silently treated
3618 as 'x'. The following induces an error, until -std is added to get
3619 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3620 array size at least. It's necessary to write '\x00'==0 to get something
3621 that's true only with -std. */
3622 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3624 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3625 inside strings and character constants. */
3626 #define FOO(x) 'x'
3627 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3629 int test (int i, double x);
3630 struct s1 {int (*f) (int a);};
3631 struct s2 {int (*f) (double a);};
3632 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3633 int argc;
3634 char **argv;
3636 main ()
3638 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3640 return 0;
3642 _ACEOF
3643 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3644 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3646 CC="$ac_save_CC $ac_arg"
3647 if ac_fn_c_try_compile "$LINENO"; then :
3648 ac_cv_prog_cc_c89=$ac_arg
3650 rm -f core conftest.err conftest.$ac_objext
3651 test "x$ac_cv_prog_cc_c89" != "xno" && break
3652 done
3653 rm -f conftest.$ac_ext
3654 CC=$ac_save_CC
3657 # AC_CACHE_VAL
3658 case "x$ac_cv_prog_cc_c89" in
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3661 $as_echo "none needed" >&6; } ;;
3662 xno)
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3664 $as_echo "unsupported" >&6; } ;;
3666 CC="$CC $ac_cv_prog_cc_c89"
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3668 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3669 esac
3670 if test "x$ac_cv_prog_cc_c89" != xno; then :
3674 ac_ext=c
3675 ac_cpp='$CPP $CPPFLAGS'
3676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680 ac_ext=cpp
3681 ac_cpp='$CXXCPP $CPPFLAGS'
3682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3685 if test -z "$CXX"; then
3686 if test -n "$CCC"; then
3687 CXX=$CCC
3688 else
3689 if test -n "$ac_tool_prefix"; then
3690 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 $as_echo_n "checking for $ac_word... " >&6; }
3696 if test "${ac_cv_prog_CXX+set}" = set; then :
3697 $as_echo_n "(cached) " >&6
3698 else
3699 if test -n "$CXX"; then
3700 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3701 else
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH
3705 IFS=$as_save_IFS
3706 test -z "$as_dir" && as_dir=.
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3709 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 break 2
3713 done
3714 done
3715 IFS=$as_save_IFS
3719 CXX=$ac_cv_prog_CXX
3720 if test -n "$CXX"; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3722 $as_echo "$CXX" >&6; }
3723 else
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 $as_echo "no" >&6; }
3729 test -n "$CXX" && break
3730 done
3732 if test -z "$CXX"; then
3733 ac_ct_CXX=$CXX
3734 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3736 # Extract the first word of "$ac_prog", so it can be a program name with args.
3737 set dummy $ac_prog; ac_word=$2
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 $as_echo_n "checking for $ac_word... " >&6; }
3740 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 if test -n "$ac_ct_CXX"; then
3744 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3745 else
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3753 ac_cv_prog_ac_ct_CXX="$ac_prog"
3754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 break 2
3757 done
3758 done
3759 IFS=$as_save_IFS
3763 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3764 if test -n "$ac_ct_CXX"; then
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3766 $as_echo "$ac_ct_CXX" >&6; }
3767 else
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 $as_echo "no" >&6; }
3773 test -n "$ac_ct_CXX" && break
3774 done
3776 if test "x$ac_ct_CXX" = x; then
3777 CXX="g++"
3778 else
3779 case $cross_compiling:$ac_tool_warned in
3780 yes:)
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3783 ac_tool_warned=yes ;;
3784 esac
3785 CXX=$ac_ct_CXX
3791 # Provide some information about the compiler.
3792 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3793 set X $ac_compile
3794 ac_compiler=$2
3795 for ac_option in --version -v -V -qversion; do
3796 { { ac_try="$ac_compiler $ac_option >&5"
3797 case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3804 ac_status=$?
3805 if test -s conftest.err; then
3806 sed '10a\
3807 ... rest of stderr output deleted ...
3808 10q' conftest.err >conftest.er1
3809 cat conftest.er1 >&5
3811 rm -f conftest.er1 conftest.err
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }
3814 done
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3817 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3818 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3819 $as_echo_n "(cached) " >&6
3820 else
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3825 main ()
3827 #ifndef __GNUC__
3828 choke me
3829 #endif
3832 return 0;
3834 _ACEOF
3835 if ac_fn_cxx_try_compile "$LINENO"; then :
3836 ac_compiler_gnu=yes
3837 else
3838 ac_compiler_gnu=no
3840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3845 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3846 if test $ac_compiler_gnu = yes; then
3847 GXX=yes
3848 else
3849 GXX=
3851 ac_test_CXXFLAGS=${CXXFLAGS+set}
3852 ac_save_CXXFLAGS=$CXXFLAGS
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3854 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3855 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3856 $as_echo_n "(cached) " >&6
3857 else
3858 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3859 ac_cxx_werror_flag=yes
3860 ac_cv_prog_cxx_g=no
3861 CXXFLAGS="-g"
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3866 main ()
3870 return 0;
3872 _ACEOF
3873 if ac_fn_cxx_try_compile "$LINENO"; then :
3874 ac_cv_prog_cxx_g=yes
3875 else
3876 CXXFLAGS=""
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3881 main ()
3885 return 0;
3887 _ACEOF
3888 if ac_fn_cxx_try_compile "$LINENO"; then :
3890 else
3891 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3892 CXXFLAGS="-g"
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3897 main ()
3901 return 0;
3903 _ACEOF
3904 if ac_fn_cxx_try_compile "$LINENO"; then :
3905 ac_cv_prog_cxx_g=yes
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3915 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3916 if test "$ac_test_CXXFLAGS" = set; then
3917 CXXFLAGS=$ac_save_CXXFLAGS
3918 elif test $ac_cv_prog_cxx_g = yes; then
3919 if test "$GXX" = yes; then
3920 CXXFLAGS="-g -O2"
3921 else
3922 CXXFLAGS="-g"
3924 else
3925 if test "$GXX" = yes; then
3926 CXXFLAGS="-O2"
3927 else
3928 CXXFLAGS=
3931 ac_ext=c
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3937 if test -n "$ac_tool_prefix"; then
3938 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3939 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941 $as_echo_n "checking for $ac_word... " >&6; }
3942 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3943 $as_echo_n "(cached) " >&6
3944 else
3945 if test -n "$CPPBIN"; then
3946 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3955 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 break 2
3959 done
3960 done
3961 IFS=$as_save_IFS
3965 CPPBIN=$ac_cv_prog_CPPBIN
3966 if test -n "$CPPBIN"; then
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3968 $as_echo "$CPPBIN" >&6; }
3969 else
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971 $as_echo "no" >&6; }
3976 if test -z "$ac_cv_prog_CPPBIN"; then
3977 ac_ct_CPPBIN=$CPPBIN
3978 # Extract the first word of "cpp", so it can be a program name with args.
3979 set dummy cpp; ac_word=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 if test -n "$ac_ct_CPPBIN"; then
3986 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995 ac_cv_prog_ac_ct_CPPBIN="cpp"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3999 done
4000 done
4001 IFS=$as_save_IFS
4005 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4006 if test -n "$ac_ct_CPPBIN"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4008 $as_echo "$ac_ct_CPPBIN" >&6; }
4009 else
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4014 if test "x$ac_ct_CPPBIN" = x; then
4015 CPPBIN="cpp"
4016 else
4017 case $cross_compiling:$ac_tool_warned in
4018 yes:)
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4021 ac_tool_warned=yes ;;
4022 esac
4023 CPPBIN=$ac_ct_CPPBIN
4025 else
4026 CPPBIN="$ac_cv_prog_CPPBIN"
4030 cat >>confdefs.h <<_ACEOF
4031 #define EXEEXT "$ac_exeext"
4032 _ACEOF
4035 case $host in
4036 *-darwin*)
4037 if test "x$enable_win64" = "xyes"
4038 then
4039 CC="$CC -m64"
4040 CXX="$CXX -m64"
4041 LD="${LD:-ld} -arch x86_64"
4042 AS="${AS:-as} -arch x86_64"
4043 host_cpu="x86_64"
4044 notice_platform="64-bit "
4045 TARGETFLAGS="-m64"
4047 else
4048 CC="$CC -m32"
4049 CXX="$CXX -m32"
4050 LD="${LD:-ld} -arch i386"
4051 AS="${AS:-as} -arch i386"
4052 host_cpu="i386"
4053 notice_platform="32-bit "
4054 TARGETFLAGS="-m32"
4056 enable_win16=${enable_win16:-yes}
4059 x86_64*)
4060 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4061 then
4062 CC="$CC -m32"
4063 CXX="$CXX -m32"
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4065 $as_echo_n "checking whether $CC works... " >&6; }
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4071 main ()
4075 return 0;
4077 _ACEOF
4078 if ac_fn_c_try_link "$LINENO"; then :
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4080 $as_echo "yes" >&6; }
4081 else
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083 $as_echo "no" >&6; }
4084 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4086 rm -f core conftest.err conftest.$ac_objext \
4087 conftest$ac_exeext conftest.$ac_ext
4088 LD="${LD:-ld} -m elf_i386"
4089 AS="${AS:-as} --32"
4090 host_cpu="i386"
4091 notice_platform="32-bit "
4092 TARGETFLAGS="-m32"
4094 enable_win16=${enable_win16:-yes}
4095 else
4096 if test "x${GCC}" = "xyes"
4097 then
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4099 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4102 #include <stdarg.h>
4104 main ()
4106 void func(__builtin_ms_va_list *args);
4108 return 0;
4110 _ACEOF
4111 if ac_fn_c_try_compile "$LINENO"; then :
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4113 $as_echo "yes" >&6; }
4114 else
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4117 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 TARGETFLAGS="-m64"
4125 *-mingw32*|*-cygwin*)
4126 enable_win16=${enable_win16:-no}
4127 CFLAGS="$CFLAGS -D_WIN32"
4129 i[3456789]86*)
4130 enable_win16=${enable_win16:-yes}
4132 esac
4134 enable_win16=${enable_win16:-no}
4136 enable_winetest=${enable_winetest:-$enable_tests}
4138 if test -n "$with_wine64"
4139 then
4140 if test "x$enable_win64" = "xyes"
4141 then
4142 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4143 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4145 WOW64_DISABLE=\#
4147 enable_fonts=${enable_fonts:-no}
4148 enable_server=${enable_server:-no}
4149 enable_tools=${enable_tools:-no}
4150 elif test "x$enable_win64" = "xyes"
4151 then
4152 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4156 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4157 if test "${wine_cv_toolsdir+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 wine_cv_toolsdir="$with_wine_tools"
4161 if test -z "$with_wine_tools"; then
4162 if test "$cross_compiling" = "yes"; then
4163 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4164 elif test -n "$with_wine64"; then
4165 wine_cv_toolsdir="$with_wine64"
4168 if test -z "$wine_cv_toolsdir"; then
4169 wine_cv_toolsdir="\$(top_builddir)"
4170 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4171 case "$wine_cv_toolsdir" in
4172 /*) ;;
4173 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4174 esac
4175 else
4176 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4180 $as_echo "$wine_cv_toolsdir" >&6; }
4181 TOOLSDIR=$wine_cv_toolsdir
4183 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4184 then
4185 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4189 for ac_prog in flex
4191 # Extract the first word of "$ac_prog", so it can be a program name with args.
4192 set dummy $ac_prog; ac_word=$2
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194 $as_echo_n "checking for $ac_word... " >&6; }
4195 if test "${ac_cv_prog_FLEX+set}" = set; then :
4196 $as_echo_n "(cached) " >&6
4197 else
4198 if test -n "$FLEX"; then
4199 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208 ac_cv_prog_FLEX="$ac_prog"
4209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 break 2
4212 done
4213 done
4214 IFS=$as_save_IFS
4218 FLEX=$ac_cv_prog_FLEX
4219 if test -n "$FLEX"; then
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4221 $as_echo "$FLEX" >&6; }
4222 else
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4228 test -n "$FLEX" && break
4229 done
4230 test -n "$FLEX" || FLEX="none"
4232 if test "$FLEX" = "none"
4233 then
4234 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4237 $as_echo_n "checking whether flex is recent enough... " >&6; }
4238 cat >conftest.l <<EOF
4239 %top{
4240 #include "prediluvian.h"
4244 if $FLEX -t conftest.l >/dev/null 2>&5
4245 then
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4247 $as_echo "yes" >&6; }
4248 else
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4250 $as_echo "no" >&6; }
4251 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4254 for ac_prog in bison
4256 # Extract the first word of "$ac_prog", so it can be a program name with args.
4257 set dummy $ac_prog; ac_word=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if test "${ac_cv_prog_BISON+set}" = set; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 if test -n "$BISON"; then
4264 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4273 ac_cv_prog_BISON="$ac_prog"
4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4277 done
4278 done
4279 IFS=$as_save_IFS
4283 BISON=$ac_cv_prog_BISON
4284 if test -n "$BISON"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4286 $as_echo "$BISON" >&6; }
4287 else
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4293 test -n "$BISON" && break
4294 done
4295 test -n "$BISON" || BISON="none"
4297 if test "$BISON" = "none"
4298 then
4299 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4302 if test -n "$ac_tool_prefix"; then
4303 for ac_prog in ar gar
4305 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4306 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if test "${ac_cv_prog_AR+set}" = set; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 if test -n "$AR"; then
4313 ac_cv_prog_AR="$AR" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4326 done
4327 done
4328 IFS=$as_save_IFS
4332 AR=$ac_cv_prog_AR
4333 if test -n "$AR"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4335 $as_echo "$AR" >&6; }
4336 else
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4342 test -n "$AR" && break
4343 done
4345 if test -z "$AR"; then
4346 ac_ct_AR=$AR
4347 for ac_prog in ar gar
4349 # Extract the first word of "$ac_prog", so it can be a program name with args.
4350 set dummy $ac_prog; ac_word=$2
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 if test -n "$ac_ct_AR"; then
4357 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4358 else
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366 ac_cv_prog_ac_ct_AR="$ac_prog"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4370 done
4371 done
4372 IFS=$as_save_IFS
4376 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4377 if test -n "$ac_ct_AR"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4379 $as_echo "$ac_ct_AR" >&6; }
4380 else
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4386 test -n "$ac_ct_AR" && break
4387 done
4389 if test "x$ac_ct_AR" = x; then
4390 AR="ar"
4391 else
4392 case $cross_compiling:$ac_tool_warned in
4393 yes:)
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4396 ac_tool_warned=yes ;;
4397 esac
4398 AR=$ac_ct_AR
4402 ARFLAGS=rc
4404 if test -n "$ac_tool_prefix"; then
4405 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4406 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408 $as_echo_n "checking for $ac_word... " >&6; }
4409 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 if test -n "$RANLIB"; then
4413 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4414 else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4422 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 break 2
4426 done
4427 done
4428 IFS=$as_save_IFS
4432 RANLIB=$ac_cv_prog_RANLIB
4433 if test -n "$RANLIB"; then
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4435 $as_echo "$RANLIB" >&6; }
4436 else
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 $as_echo "no" >&6; }
4443 if test -z "$ac_cv_prog_RANLIB"; then
4444 ac_ct_RANLIB=$RANLIB
4445 # Extract the first word of "ranlib", so it can be a program name with args.
4446 set dummy ranlib; ac_word=$2
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4448 $as_echo_n "checking for $ac_word... " >&6; }
4449 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452 if test -n "$ac_ct_RANLIB"; then
4453 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4454 else
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4458 IFS=$as_save_IFS
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 ac_cv_prog_ac_ct_RANLIB="ranlib"
4463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 break 2
4466 done
4467 done
4468 IFS=$as_save_IFS
4472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4473 if test -n "$ac_ct_RANLIB"; then
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4475 $as_echo "$ac_ct_RANLIB" >&6; }
4476 else
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4481 if test "x$ac_ct_RANLIB" = x; then
4482 RANLIB=":"
4483 else
4484 case $cross_compiling:$ac_tool_warned in
4485 yes:)
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4488 ac_tool_warned=yes ;;
4489 esac
4490 RANLIB=$ac_ct_RANLIB
4492 else
4493 RANLIB="$ac_cv_prog_RANLIB"
4496 if test -n "$ac_tool_prefix"; then
4497 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4498 set dummy ${ac_tool_prefix}strip; ac_word=$2
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500 $as_echo_n "checking for $ac_word... " >&6; }
4501 if test "${ac_cv_prog_STRIP+set}" = set; then :
4502 $as_echo_n "(cached) " >&6
4503 else
4504 if test -n "$STRIP"; then
4505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4506 else
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4514 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 break 2
4518 done
4519 done
4520 IFS=$as_save_IFS
4524 STRIP=$ac_cv_prog_STRIP
4525 if test -n "$STRIP"; then
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4527 $as_echo "$STRIP" >&6; }
4528 else
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4535 if test -z "$ac_cv_prog_STRIP"; then
4536 ac_ct_STRIP=$STRIP
4537 # Extract the first word of "strip", so it can be a program name with args.
4538 set dummy strip; ac_word=$2
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540 $as_echo_n "checking for $ac_word... " >&6; }
4541 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 if test -n "$ac_ct_STRIP"; then
4545 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4546 else
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554 ac_cv_prog_ac_ct_STRIP="strip"
4555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 break 2
4558 done
4559 done
4560 IFS=$as_save_IFS
4564 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4565 if test -n "$ac_ct_STRIP"; then
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4567 $as_echo "$ac_ct_STRIP" >&6; }
4568 else
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570 $as_echo "no" >&6; }
4573 if test "x$ac_ct_STRIP" = x; then
4574 STRIP="strip"
4575 else
4576 case $cross_compiling:$ac_tool_warned in
4577 yes:)
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4580 ac_tool_warned=yes ;;
4581 esac
4582 STRIP=$ac_ct_STRIP
4584 else
4585 STRIP="$ac_cv_prog_STRIP"
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4589 $as_echo_n "checking whether ln -s works... " >&6; }
4590 LN_S=$as_ln_s
4591 if test "$LN_S" = "ln -s"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4593 $as_echo "yes" >&6; }
4594 else
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4596 $as_echo "no, using $LN_S" >&6; }
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4600 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4601 if test "${ac_cv_path_GREP+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -z "$GREP"; then
4605 ac_path_GREP_found=false
4606 # Loop through the user's path and test for each of PROGNAME-LIST
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_prog in grep ggrep; do
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4615 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4616 # Check for GNU ac_path_GREP and select it if it is found.
4617 # Check for GNU $ac_path_GREP
4618 case `"$ac_path_GREP" --version 2>&1` in
4619 *GNU*)
4620 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4622 ac_count=0
4623 $as_echo_n 0123456789 >"conftest.in"
4624 while :
4626 cat "conftest.in" "conftest.in" >"conftest.tmp"
4627 mv "conftest.tmp" "conftest.in"
4628 cp "conftest.in" "conftest.nl"
4629 $as_echo 'GREP' >> "conftest.nl"
4630 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4631 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4632 as_fn_arith $ac_count + 1 && ac_count=$as_val
4633 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4634 # Best one so far, save it but keep looking for a better one
4635 ac_cv_path_GREP="$ac_path_GREP"
4636 ac_path_GREP_max=$ac_count
4638 # 10*(2^10) chars as input seems more than enough
4639 test $ac_count -gt 10 && break
4640 done
4641 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4642 esac
4644 $ac_path_GREP_found && break 3
4645 done
4646 done
4647 done
4648 IFS=$as_save_IFS
4649 if test -z "$ac_cv_path_GREP"; then
4650 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4652 else
4653 ac_cv_path_GREP=$GREP
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4658 $as_echo "$ac_cv_path_GREP" >&6; }
4659 GREP="$ac_cv_path_GREP"
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4663 $as_echo_n "checking for egrep... " >&6; }
4664 if test "${ac_cv_path_EGREP+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4668 then ac_cv_path_EGREP="$GREP -E"
4669 else
4670 if test -z "$EGREP"; then
4671 ac_path_EGREP_found=false
4672 # Loop through the user's path and test for each of PROGNAME-LIST
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_prog in egrep; do
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4681 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4682 # Check for GNU ac_path_EGREP and select it if it is found.
4683 # Check for GNU $ac_path_EGREP
4684 case `"$ac_path_EGREP" --version 2>&1` in
4685 *GNU*)
4686 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4688 ac_count=0
4689 $as_echo_n 0123456789 >"conftest.in"
4690 while :
4692 cat "conftest.in" "conftest.in" >"conftest.tmp"
4693 mv "conftest.tmp" "conftest.in"
4694 cp "conftest.in" "conftest.nl"
4695 $as_echo 'EGREP' >> "conftest.nl"
4696 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4698 as_fn_arith $ac_count + 1 && ac_count=$as_val
4699 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4700 # Best one so far, save it but keep looking for a better one
4701 ac_cv_path_EGREP="$ac_path_EGREP"
4702 ac_path_EGREP_max=$ac_count
4704 # 10*(2^10) chars as input seems more than enough
4705 test $ac_count -gt 10 && break
4706 done
4707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4708 esac
4710 $ac_path_EGREP_found && break 3
4711 done
4712 done
4713 done
4714 IFS=$as_save_IFS
4715 if test -z "$ac_cv_path_EGREP"; then
4716 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4718 else
4719 ac_cv_path_EGREP=$EGREP
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4725 $as_echo "$ac_cv_path_EGREP" >&6; }
4726 EGREP="$ac_cv_path_EGREP"
4729 # Extract the first word of "ldconfig", so it can be a program name with args.
4730 set dummy ldconfig; ac_word=$2
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 case $LDCONFIG in
4737 [\\/]* | ?:[\\/]*)
4738 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in /sbin /usr/sbin $PATH
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4752 done
4753 done
4754 IFS=$as_save_IFS
4756 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4758 esac
4760 LDCONFIG=$ac_cv_path_LDCONFIG
4761 if test -n "$LDCONFIG"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4763 $as_echo "$LDCONFIG" >&6; }
4764 else
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4770 # Find a good install program. We prefer a C program (faster),
4771 # so one script is as good as another. But avoid the broken or
4772 # incompatible versions:
4773 # SysV /etc/install, /usr/sbin/install
4774 # SunOS /usr/etc/install
4775 # IRIX /sbin/install
4776 # AIX /bin/install
4777 # AmigaOS /C/install, which installs bootblocks on floppy discs
4778 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4779 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4780 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4781 # OS/2's system install, which has a completely different semantic
4782 # ./install, which can be erroneously created by make from ./install.sh.
4783 # Reject install programs that cannot install multiple files.
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4785 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4786 if test -z "$INSTALL"; then
4787 if test "${ac_cv_path_install+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 # Account for people who put trailing slashes in PATH elements.
4796 case $as_dir/ in #((
4797 ./ | .// | /[cC]/* | \
4798 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4799 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4800 /usr/ucb/* ) ;;
4802 # OSF1 and SCO ODT 3.0 have their own names for install.
4803 # Don't use installbsd from OSF since it installs stuff as root
4804 # by default.
4805 for ac_prog in ginstall scoinst install; do
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4808 if test $ac_prog = install &&
4809 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4810 # AIX install. It has an incompatible calling convention.
4812 elif test $ac_prog = install &&
4813 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4814 # program-specific install script used by HP pwplus--don't use.
4816 else
4817 rm -rf conftest.one conftest.two conftest.dir
4818 echo one > conftest.one
4819 echo two > conftest.two
4820 mkdir conftest.dir
4821 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4822 test -s conftest.one && test -s conftest.two &&
4823 test -s conftest.dir/conftest.one &&
4824 test -s conftest.dir/conftest.two
4825 then
4826 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4827 break 3
4831 done
4832 done
4834 esac
4836 done
4837 IFS=$as_save_IFS
4839 rm -rf conftest.one conftest.two conftest.dir
4842 if test "${ac_cv_path_install+set}" = set; then
4843 INSTALL=$ac_cv_path_install
4844 else
4845 # As a last resort, use the slow shell script. Don't cache a
4846 # value for INSTALL within a source directory, because that will
4847 # break other packages using the cache if that directory is
4848 # removed, or if the value is a relative name.
4849 INSTALL=$ac_install_sh
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4853 $as_echo "$INSTALL" >&6; }
4855 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4856 # It thinks the first close brace ends the variable substitution.
4857 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4859 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4861 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4863 case "$INSTALL" in
4864 [\\/$]* | ?:[\\/]* ) ;;
4865 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4866 esac
4868 for ac_prog in lclint lint
4870 # Extract the first word of "$ac_prog", so it can be a program name with args.
4871 set dummy $ac_prog; ac_word=$2
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 $as_echo_n "checking for $ac_word... " >&6; }
4874 if test "${ac_cv_prog_LINT+set}" = set; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 if test -n "$LINT"; then
4878 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887 ac_cv_prog_LINT="$ac_prog"
4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4891 done
4892 done
4893 IFS=$as_save_IFS
4897 LINT=$ac_cv_prog_LINT
4898 if test -n "$LINT"; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4900 $as_echo "$LINT" >&6; }
4901 else
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4907 test -n "$LINT" && break
4908 done
4910 if test "$LINT" = "lint"
4911 then
4912 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4917 for ac_prog in fontforge
4919 # Extract the first word of "$ac_prog", so it can be a program name with args.
4920 set dummy $ac_prog; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 if test -n "$FONTFORGE"; then
4927 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_prog_FONTFORGE="$ac_prog"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4940 done
4941 done
4942 IFS=$as_save_IFS
4946 FONTFORGE=$ac_cv_prog_FONTFORGE
4947 if test -n "$FONTFORGE"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4949 $as_echo "$FONTFORGE" >&6; }
4950 else
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4956 test -n "$FONTFORGE" && break
4957 done
4958 test -n "$FONTFORGE" || FONTFORGE="false"
4960 for ac_prog in pkg-config
4962 # Extract the first word of "$ac_prog", so it can be a program name with args.
4963 set dummy $ac_prog; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 if test -n "$PKG_CONFIG"; then
4970 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4971 else
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4975 IFS=$as_save_IFS
4976 test -z "$as_dir" && as_dir=.
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979 ac_cv_prog_PKG_CONFIG="$ac_prog"
4980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 break 2
4983 done
4984 done
4985 IFS=$as_save_IFS
4989 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4990 if test -n "$PKG_CONFIG"; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4992 $as_echo "$PKG_CONFIG" >&6; }
4993 else
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4999 test -n "$PKG_CONFIG" && break
5000 done
5001 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
5003 for ac_prog in rsvg
5005 # Extract the first word of "$ac_prog", so it can be a program name with args.
5006 set dummy $ac_prog; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if test "${ac_cv_prog_RSVG+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 if test -n "$RSVG"; then
5013 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_prog_RSVG="$ac_prog"
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 break 2
5026 done
5027 done
5028 IFS=$as_save_IFS
5032 RSVG=$ac_cv_prog_RSVG
5033 if test -n "$RSVG"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5035 $as_echo "$RSVG" >&6; }
5036 else
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5042 test -n "$RSVG" && break
5043 done
5044 test -n "$RSVG" || RSVG="false"
5046 for ac_prog in convert
5048 # Extract the first word of "$ac_prog", so it can be a program name with args.
5049 set dummy $ac_prog; ac_word=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051 $as_echo_n "checking for $ac_word... " >&6; }
5052 if test "${ac_cv_prog_CONVERT+set}" = set; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 if test -n "$CONVERT"; then
5056 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5057 else
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5065 ac_cv_prog_CONVERT="$ac_prog"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 break 2
5069 done
5070 done
5071 IFS=$as_save_IFS
5075 CONVERT=$ac_cv_prog_CONVERT
5076 if test -n "$CONVERT"; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5078 $as_echo "$CONVERT" >&6; }
5079 else
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }
5085 test -n "$CONVERT" && break
5086 done
5087 test -n "$CONVERT" || CONVERT="false"
5089 for ac_prog in icotool
5091 # Extract the first word of "$ac_prog", so it can be a program name with args.
5092 set dummy $ac_prog; ac_word=$2
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094 $as_echo_n "checking for $ac_word... " >&6; }
5095 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 if test -n "$ICOTOOL"; then
5099 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_prog_ICOTOOL="$ac_prog"
5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5112 done
5113 done
5114 IFS=$as_save_IFS
5118 ICOTOOL=$ac_cv_prog_ICOTOOL
5119 if test -n "$ICOTOOL"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5121 $as_echo "$ICOTOOL" >&6; }
5122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 $as_echo "no" >&6; }
5128 test -n "$ICOTOOL" && break
5129 done
5130 test -n "$ICOTOOL" || ICOTOOL="false"
5133 if test "x$enable_maintainer_mode" != "xyes"
5134 then
5135 MAINTAINER_MODE=\#
5137 else
5138 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5 ; fi
5139 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5 ; fi
5141 if test "$CONVERT" = false
5142 then
5143 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5144 else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5146 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5147 convert_version=`convert --version | head -n1`
5148 if test "x$convert_version" != "x"
5149 then
5150 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5151 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5152 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5153 then
5154 CONVERT=false
5157 if test "$CONVERT" = false
5158 then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5160 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5161 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5164 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5168 if test "$ICOTOOL" = false
5169 then
5170 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5171 else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5173 $as_echo_n "checking for recent enough icotool... " >&6; }
5174 icotool_version=`icotool --version | head -n1`
5175 if test "x$icotool_version" != "x"
5176 then
5177 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5178 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5179 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5180 then
5181 ICOTOOL=false
5182 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5185 if test "$ICOTOOL" = false
5186 then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5188 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5189 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5190 else
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5192 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5200 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5201 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 ac_check_lib_save_LIBS=$LIBS
5205 LIBS="-li386 $LIBS"
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5209 /* Override any GCC internal prototype to avoid an error.
5210 Use char because int might match the return type of a GCC
5211 builtin and then its argument prototype would still apply. */
5212 #ifdef __cplusplus
5213 extern "C"
5214 #endif
5215 char i386_set_ldt ();
5217 main ()
5219 return i386_set_ldt ();
5221 return 0;
5223 _ACEOF
5224 if ac_fn_c_try_link "$LINENO"; then :
5225 ac_cv_lib_i386_i386_set_ldt=yes
5226 else
5227 ac_cv_lib_i386_i386_set_ldt=no
5229 rm -f core conftest.err conftest.$ac_objext \
5230 conftest$ac_exeext conftest.$ac_ext
5231 LIBS=$ac_check_lib_save_LIBS
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5234 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5235 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5236 cat >>confdefs.h <<_ACEOF
5237 #define HAVE_LIBI386 1
5238 _ACEOF
5240 LIBS="-li386 $LIBS"
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5245 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5246 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 ac_check_lib_save_LIBS=$LIBS
5250 LIBS="-lossaudio $LIBS"
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5254 /* Override any GCC internal prototype to avoid an error.
5255 Use char because int might match the return type of a GCC
5256 builtin and then its argument prototype would still apply. */
5257 #ifdef __cplusplus
5258 extern "C"
5259 #endif
5260 char _oss_ioctl ();
5262 main ()
5264 return _oss_ioctl ();
5266 return 0;
5268 _ACEOF
5269 if ac_fn_c_try_link "$LINENO"; then :
5270 ac_cv_lib_ossaudio__oss_ioctl=yes
5271 else
5272 ac_cv_lib_ossaudio__oss_ioctl=no
5274 rm -f core conftest.err conftest.$ac_objext \
5275 conftest$ac_exeext conftest.$ac_ext
5276 LIBS=$ac_check_lib_save_LIBS
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5279 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5280 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5281 cat >>confdefs.h <<_ACEOF
5282 #define HAVE_LIBOSSAUDIO 1
5283 _ACEOF
5285 LIBS="-lossaudio $LIBS"
5290 XLIB=""
5292 OPENGL_LIBS=""
5296 # Check whether --enable-largefile was given.
5297 if test "${enable_largefile+set}" = set; then :
5298 enableval=$enable_largefile;
5301 if test "$enable_largefile" != no; then
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5304 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5305 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5306 $as_echo_n "(cached) " >&6
5307 else
5308 ac_cv_sys_largefile_CC=no
5309 if test "$GCC" != yes; then
5310 ac_save_CC=$CC
5311 while :; do
5312 # IRIX 6.2 and later do not support large files by default,
5313 # so use the C compiler's -n32 option if that helps.
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316 #include <sys/types.h>
5317 /* Check that off_t can represent 2**63 - 1 correctly.
5318 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5319 since some C++ compilers masquerading as C compilers
5320 incorrectly reject 9223372036854775807. */
5321 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5322 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5323 && LARGE_OFF_T % 2147483647 == 1)
5324 ? 1 : -1];
5326 main ()
5330 return 0;
5332 _ACEOF
5333 if ac_fn_c_try_compile "$LINENO"; then :
5334 break
5336 rm -f core conftest.err conftest.$ac_objext
5337 CC="$CC -n32"
5338 if ac_fn_c_try_compile "$LINENO"; then :
5339 ac_cv_sys_largefile_CC=' -n32'; break
5341 rm -f core conftest.err conftest.$ac_objext
5342 break
5343 done
5344 CC=$ac_save_CC
5345 rm -f conftest.$ac_ext
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5349 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5350 if test "$ac_cv_sys_largefile_CC" != no; then
5351 CC=$CC$ac_cv_sys_largefile_CC
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5355 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5356 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 while :; do
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5362 #include <sys/types.h>
5363 /* Check that off_t can represent 2**63 - 1 correctly.
5364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5365 since some C++ compilers masquerading as C compilers
5366 incorrectly reject 9223372036854775807. */
5367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5369 && LARGE_OFF_T % 2147483647 == 1)
5370 ? 1 : -1];
5372 main ()
5376 return 0;
5378 _ACEOF
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380 ac_cv_sys_file_offset_bits=no; break
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #define _FILE_OFFSET_BITS 64
5386 #include <sys/types.h>
5387 /* Check that off_t can represent 2**63 - 1 correctly.
5388 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5389 since some C++ compilers masquerading as C compilers
5390 incorrectly reject 9223372036854775807. */
5391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5392 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5393 && LARGE_OFF_T % 2147483647 == 1)
5394 ? 1 : -1];
5396 main ()
5400 return 0;
5402 _ACEOF
5403 if ac_fn_c_try_compile "$LINENO"; then :
5404 ac_cv_sys_file_offset_bits=64; break
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 ac_cv_sys_file_offset_bits=unknown
5408 break
5409 done
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5412 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5413 case $ac_cv_sys_file_offset_bits in #(
5414 no | unknown) ;;
5416 cat >>confdefs.h <<_ACEOF
5417 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5418 _ACEOF
5420 esac
5421 rm -rf conftest*
5422 if test $ac_cv_sys_file_offset_bits = unknown; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5424 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5425 if test "${ac_cv_sys_large_files+set}" = set; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 while :; do
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5431 #include <sys/types.h>
5432 /* Check that off_t can represent 2**63 - 1 correctly.
5433 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5434 since some C++ compilers masquerading as C compilers
5435 incorrectly reject 9223372036854775807. */
5436 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5437 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5438 && LARGE_OFF_T % 2147483647 == 1)
5439 ? 1 : -1];
5441 main ()
5445 return 0;
5447 _ACEOF
5448 if ac_fn_c_try_compile "$LINENO"; then :
5449 ac_cv_sys_large_files=no; break
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5454 #define _LARGE_FILES 1
5455 #include <sys/types.h>
5456 /* Check that off_t can represent 2**63 - 1 correctly.
5457 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5458 since some C++ compilers masquerading as C compilers
5459 incorrectly reject 9223372036854775807. */
5460 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5461 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5462 && LARGE_OFF_T % 2147483647 == 1)
5463 ? 1 : -1];
5465 main ()
5469 return 0;
5471 _ACEOF
5472 if ac_fn_c_try_compile "$LINENO"; then :
5473 ac_cv_sys_large_files=1; break
5475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476 ac_cv_sys_large_files=unknown
5477 break
5478 done
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5481 $as_echo "$ac_cv_sys_large_files" >&6; }
5482 case $ac_cv_sys_large_files in #(
5483 no | unknown) ;;
5485 cat >>confdefs.h <<_ACEOF
5486 #define _LARGE_FILES $ac_cv_sys_large_files
5487 _ACEOF
5489 esac
5490 rm -rf conftest*
5495 ac_ext=c
5496 ac_cpp='$CPP $CPPFLAGS'
5497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5501 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5502 # On Suns, sometimes $CPP names a directory.
5503 if test -n "$CPP" && test -d "$CPP"; then
5504 CPP=
5506 if test -z "$CPP"; then
5507 if test "${ac_cv_prog_CPP+set}" = set; then :
5508 $as_echo_n "(cached) " >&6
5509 else
5510 # Double quotes because CPP needs to be expanded
5511 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5513 ac_preproc_ok=false
5514 for ac_c_preproc_warn_flag in '' yes
5516 # Use a header file that comes with gcc, so configuring glibc
5517 # with a fresh cross-compiler works.
5518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5519 # <limits.h> exists even on freestanding compilers.
5520 # On the NeXT, cc -E runs the code through the compiler's parser,
5521 # not just through cpp. "Syntax error" is here to catch this case.
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5524 #ifdef __STDC__
5525 # include <limits.h>
5526 #else
5527 # include <assert.h>
5528 #endif
5529 Syntax error
5530 _ACEOF
5531 if ac_fn_c_try_cpp "$LINENO"; then :
5533 else
5534 # Broken: fails on valid input.
5535 continue
5537 rm -f conftest.err conftest.i conftest.$ac_ext
5539 # OK, works on sane cases. Now check whether nonexistent headers
5540 # can be detected and how.
5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5543 #include <ac_nonexistent.h>
5544 _ACEOF
5545 if ac_fn_c_try_cpp "$LINENO"; then :
5546 # Broken: success on invalid input.
5547 continue
5548 else
5549 # Passes both tests.
5550 ac_preproc_ok=:
5551 break
5553 rm -f conftest.err conftest.i conftest.$ac_ext
5555 done
5556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5557 rm -f conftest.i conftest.err conftest.$ac_ext
5558 if $ac_preproc_ok; then :
5559 break
5562 done
5563 ac_cv_prog_CPP=$CPP
5566 CPP=$ac_cv_prog_CPP
5567 else
5568 ac_cv_prog_CPP=$CPP
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5571 $as_echo "$CPP" >&6; }
5572 ac_preproc_ok=false
5573 for ac_c_preproc_warn_flag in '' yes
5575 # Use a header file that comes with gcc, so configuring glibc
5576 # with a fresh cross-compiler works.
5577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5578 # <limits.h> exists even on freestanding compilers.
5579 # On the NeXT, cc -E runs the code through the compiler's parser,
5580 # not just through cpp. "Syntax error" is here to catch this case.
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5583 #ifdef __STDC__
5584 # include <limits.h>
5585 #else
5586 # include <assert.h>
5587 #endif
5588 Syntax error
5589 _ACEOF
5590 if ac_fn_c_try_cpp "$LINENO"; then :
5592 else
5593 # Broken: fails on valid input.
5594 continue
5596 rm -f conftest.err conftest.i conftest.$ac_ext
5598 # OK, works on sane cases. Now check whether nonexistent headers
5599 # can be detected and how.
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5602 #include <ac_nonexistent.h>
5603 _ACEOF
5604 if ac_fn_c_try_cpp "$LINENO"; then :
5605 # Broken: success on invalid input.
5606 continue
5607 else
5608 # Passes both tests.
5609 ac_preproc_ok=:
5610 break
5612 rm -f conftest.err conftest.i conftest.$ac_ext
5614 done
5615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5616 rm -f conftest.i conftest.err conftest.$ac_ext
5617 if $ac_preproc_ok; then :
5619 else
5620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5622 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5623 See \`config.log' for more details" "$LINENO" 5 ; }
5626 ac_ext=c
5627 ac_cpp='$CPP $CPPFLAGS'
5628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5634 $as_echo_n "checking for ANSI C header files... " >&6; }
5635 if test "${ac_cv_header_stdc+set}" = set; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5640 #include <stdlib.h>
5641 #include <stdarg.h>
5642 #include <string.h>
5643 #include <float.h>
5646 main ()
5650 return 0;
5652 _ACEOF
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654 ac_cv_header_stdc=yes
5655 else
5656 ac_cv_header_stdc=no
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660 if test $ac_cv_header_stdc = yes; then
5661 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5664 #include <string.h>
5666 _ACEOF
5667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5668 $EGREP "memchr" >/dev/null 2>&1; then :
5670 else
5671 ac_cv_header_stdc=no
5673 rm -f conftest*
5677 if test $ac_cv_header_stdc = yes; then
5678 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681 #include <stdlib.h>
5683 _ACEOF
5684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5685 $EGREP "free" >/dev/null 2>&1; then :
5687 else
5688 ac_cv_header_stdc=no
5690 rm -f conftest*
5694 if test $ac_cv_header_stdc = yes; then
5695 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5696 if test "$cross_compiling" = yes; then :
5698 else
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 #include <ctype.h>
5702 #include <stdlib.h>
5703 #if ((' ' & 0x0FF) == 0x020)
5704 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5705 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5706 #else
5707 # define ISLOWER(c) \
5708 (('a' <= (c) && (c) <= 'i') \
5709 || ('j' <= (c) && (c) <= 'r') \
5710 || ('s' <= (c) && (c) <= 'z'))
5711 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5712 #endif
5714 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5716 main ()
5718 int i;
5719 for (i = 0; i < 256; i++)
5720 if (XOR (islower (i), ISLOWER (i))
5721 || toupper (i) != TOUPPER (i))
5722 return 2;
5723 return 0;
5725 _ACEOF
5726 if ac_fn_c_try_run "$LINENO"; then :
5728 else
5729 ac_cv_header_stdc=no
5731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5732 conftest.$ac_objext conftest.beam conftest.$ac_ext
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5738 $as_echo "$ac_cv_header_stdc" >&6; }
5739 if test $ac_cv_header_stdc = yes; then
5741 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5745 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5746 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5747 inttypes.h stdint.h unistd.h
5748 do :
5749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5750 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5752 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5753 cat >>confdefs.h <<_ACEOF
5754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5755 _ACEOF
5759 done
5762 for ac_header in \
5763 AL/al.h \
5764 ApplicationServices/ApplicationServices.h \
5765 AudioToolbox/AudioConverter.h \
5766 AudioUnit/AudioUnit.h \
5767 AudioUnit/AudioComponent.h \
5768 CL/cl.h \
5769 Carbon/Carbon.h \
5770 CoreAudio/CoreAudio.h \
5771 DiskArbitration/DiskArbitration.h \
5772 IOKit/IOKitLib.h \
5773 IOKit/hid/IOHIDLib.h \
5774 OpenAL/al.h \
5775 OpenCL/opencl.h \
5776 QuickTime/ImageCompression.h \
5777 alias.h \
5778 alsa/asoundlib.h \
5779 arpa/inet.h \
5780 arpa/nameser.h \
5781 asm/types.h \
5782 capi20.h \
5783 curses.h \
5784 direct.h \
5785 dirent.h \
5786 dlfcn.h \
5787 elf.h \
5788 float.h \
5789 fnmatch.h \
5790 fontconfig/fontconfig.h \
5791 getopt.h \
5792 gettext-po.h \
5793 grp.h \
5794 gsm.h \
5795 gsm/gsm.h \
5796 ieeefp.h \
5797 inet/mib2.h \
5798 io.h \
5799 jack/jack.h \
5800 jpeglib.h \
5801 kstat.h \
5802 lber.h \
5803 lcms.h \
5804 lcms/lcms.h \
5805 ldap.h \
5806 link.h \
5807 linux/cdrom.h \
5808 linux/compiler.h \
5809 linux/hdreg.h \
5810 linux/input.h \
5811 linux/ioctl.h \
5812 linux/joystick.h \
5813 linux/major.h \
5814 linux/param.h \
5815 linux/serial.h \
5816 linux/types.h \
5817 linux/ucdrom.h \
5818 mach-o/nlist.h \
5819 mach-o/loader.h \
5820 mach/mach.h \
5821 mach/machine.h \
5822 machine/cpu.h \
5823 machine/limits.h \
5824 machine/soundcard.h \
5825 machine/sysarch.h \
5826 mntent.h \
5827 mpg123.h \
5828 ncurses.h \
5829 netdb.h \
5830 netinet/in.h \
5831 netinet/in_systm.h \
5832 netinet/tcp.h \
5833 netinet/tcp_fsm.h \
5834 openssl/err.h \
5835 openssl/ssl.h \
5836 png.h \
5837 poll.h \
5838 port.h \
5839 process.h \
5840 pthread.h \
5841 pwd.h \
5842 regex.h \
5843 sched.h \
5844 scsi/scsi.h \
5845 scsi/scsi_ioctl.h \
5846 scsi/sg.h \
5847 soundcard.h \
5848 stdbool.h \
5849 stdint.h \
5850 strings.h \
5851 stropts.h \
5852 sys/asoundlib.h \
5853 sys/attr.h \
5854 sys/cdio.h \
5855 sys/elf32.h \
5856 sys/epoll.h \
5857 sys/errno.h \
5858 sys/event.h \
5859 sys/exec_elf.h \
5860 sys/filio.h \
5861 sys/inotify.h \
5862 sys/ioctl.h \
5863 sys/ipc.h \
5864 sys/limits.h \
5865 sys/link.h \
5866 sys/mman.h \
5867 sys/modem.h \
5868 sys/msg.h \
5869 sys/mtio.h \
5870 sys/param.h \
5871 sys/poll.h \
5872 sys/prctl.h \
5873 sys/protosw.h \
5874 sys/ptrace.h \
5875 sys/resource.h \
5876 sys/scsiio.h \
5877 sys/shm.h \
5878 sys/signal.h \
5879 sys/socket.h \
5880 sys/socketvar.h \
5881 sys/sockio.h \
5882 sys/soundcard.h \
5883 sys/statvfs.h \
5884 sys/strtio.h \
5885 sys/syscall.h \
5886 sys/tihdr.h \
5887 sys/time.h \
5888 sys/timeout.h \
5889 sys/times.h \
5890 sys/uio.h \
5891 sys/un.h \
5892 sys/utsname.h \
5893 sys/vm86.h \
5894 sys/wait.h \
5895 syscall.h \
5896 termios.h \
5897 tiffio.h \
5898 unistd.h \
5899 utime.h \
5900 valgrind/memcheck.h \
5901 valgrind/valgrind.h \
5902 zlib.h
5904 do :
5905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5906 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5907 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5908 cat >>confdefs.h <<_ACEOF
5909 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5910 _ACEOF
5914 done
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5917 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5918 if test "${ac_cv_header_stat_broken+set}" = set; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5923 #include <sys/types.h>
5924 #include <sys/stat.h>
5926 #if defined S_ISBLK && defined S_IFDIR
5927 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5928 #endif
5930 #if defined S_ISBLK && defined S_IFCHR
5931 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5932 #endif
5934 #if defined S_ISLNK && defined S_IFREG
5935 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5936 #endif
5938 #if defined S_ISSOCK && defined S_IFREG
5939 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5940 #endif
5942 _ACEOF
5943 if ac_fn_c_try_compile "$LINENO"; then :
5944 ac_cv_header_stat_broken=no
5945 else
5946 ac_cv_header_stat_broken=yes
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5951 $as_echo "$ac_cv_header_stat_broken" >&6; }
5952 if test $ac_cv_header_stat_broken = yes; then
5954 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5960 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5961 do :
5962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5963 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5964 #ifdef HAVE_SYS_PARAM_H
5965 # include <sys/param.h>
5966 #endif
5968 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5969 cat >>confdefs.h <<_ACEOF
5970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5971 _ACEOF
5975 done
5978 for ac_header in \
5979 netinet/ip.h \
5980 net/if.h \
5981 net/if_arp.h \
5982 net/if_dl.h \
5983 net/if_types.h \
5984 net/route.h \
5985 netinet/if_ether.h \
5986 netinet/if_inarp.h \
5987 netinet/in_pcb.h \
5988 netinet/ip_icmp.h \
5989 netinet/ip_var.h \
5990 netinet/udp.h \
5991 netipx/ipx.h \
5993 do :
5994 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5995 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5996 #ifdef HAVE_SYS_SOCKET_H
5997 # include <sys/socket.h>
5998 #endif
5999 #ifdef HAVE_SYS_SOCKETVAR_H
6000 # include <sys/socketvar.h>
6001 #endif
6002 #ifdef HAVE_NET_ROUTE_H
6003 # include <net/route.h>
6004 #endif
6005 #ifdef HAVE_NETINET_IN_H
6006 # include <netinet/in.h>
6007 #endif
6008 #ifdef HAVE_NETINET_IN_SYSTM_H
6009 # include <netinet/in_systm.h>
6010 #endif
6011 #ifdef HAVE_NET_IF_H
6012 # include <net/if.h>
6013 #endif
6014 #ifdef HAVE_NETINET_IP_H
6015 # include <netinet/ip.h>
6016 #endif
6018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6019 cat >>confdefs.h <<_ACEOF
6020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6021 _ACEOF
6025 done
6028 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6029 do :
6030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6031 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6032 #ifdef HAVE_ALIAS_H
6033 # include <alias.h>
6034 #endif
6035 #ifdef HAVE_SYS_SOCKET_H
6036 # include <sys/socket.h>
6037 #endif
6038 #ifdef HAVE_SYS_SOCKETVAR_H
6039 # include <sys/socketvar.h>
6040 #endif
6041 #ifdef HAVE_SYS_TIMEOUT_H
6042 # include <sys/timeout.h>
6043 #endif
6044 #ifdef HAVE_NETINET_IN_H
6045 # include <netinet/in.h>
6046 #endif
6047 #ifdef HAVE_NETINET_IN_SYSTM_H
6048 # include <netinet/in_systm.h>
6049 #endif
6050 #ifdef HAVE_NETINET_IP_H
6051 # include <netinet/ip.h>
6052 #endif
6053 #ifdef HAVE_NETINET_IP_VAR_H
6054 # include <netinet/ip_var.h>
6055 #endif
6056 #ifdef HAVE_NETINET_IP_ICMP_H
6057 # include <netinet/ip_icmp.h>
6058 #endif
6059 #ifdef HAVE_NETINET_UDP_H
6060 # include <netinet/udp.h>
6061 #endif
6062 #ifdef HAVE_NETINET_TCP_H
6063 # include <netinet/tcp.h>
6064 #endif
6065 #ifdef HAVE_NETINET_TCP_TIMER_H
6066 #include <netinet/tcp_timer.h>
6067 #endif
6069 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6070 cat >>confdefs.h <<_ACEOF
6071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6072 _ACEOF
6076 done
6079 for ac_header in linux/ipx.h linux/irda.h
6080 do :
6081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6082 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6083 #ifdef HAVE_ASM_TYPES_H
6084 # include <asm/types.h>
6085 #endif
6086 #ifdef HAVE_SYS_SOCKET_H
6087 # include <sys/socket.h>
6088 #endif
6089 #ifdef HAVE_LINUX_TYPES_H
6090 # include <linux/types.h>
6091 #endif
6093 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6094 cat >>confdefs.h <<_ACEOF
6095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6096 _ACEOF
6100 done
6103 for ac_header in mach-o/dyld_images.h
6104 do :
6105 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6106 # include <stdbool.h>
6107 #endif
6108 #ifdef HAVE_STDINT_H
6109 # include <stdint.h>
6110 #endif
6112 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6113 cat >>confdefs.h <<_ACEOF
6114 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6115 _ACEOF
6119 done
6122 for ac_header in resolv.h
6123 do :
6124 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6125 #ifdef HAVE_SYS_SOCKET_H
6126 # include <sys/socket.h>
6127 #endif
6128 #ifdef HAVE_NETINET_IN_H
6129 # include <netinet/in.h>
6130 #endif
6131 #ifdef HAVE_ARPA_NAMESER_H
6132 # include <arpa/nameser.h>
6133 #endif
6135 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6136 cat >>confdefs.h <<_ACEOF
6137 #define HAVE_RESOLV_H 1
6138 _ACEOF
6142 done
6145 for ac_header in ifaddrs.h
6146 do :
6147 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6149 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6150 cat >>confdefs.h <<_ACEOF
6151 #define HAVE_IFADDRS_H 1
6152 _ACEOF
6156 done
6159 for ac_header in ucontext.h
6160 do :
6161 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6163 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6164 cat >>confdefs.h <<_ACEOF
6165 #define HAVE_UCONTEXT_H 1
6166 _ACEOF
6170 done
6173 for ac_header in sys/thr.h
6174 do :
6175 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6176 #ifdef HAVE_UCONTEXT_H
6177 #include <ucontext.h>
6178 #endif
6180 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6181 cat >>confdefs.h <<_ACEOF
6182 #define HAVE_SYS_THR_H 1
6183 _ACEOF
6187 done
6190 for ac_header in pthread_np.h
6191 do :
6192 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6193 #include <pthread.h>
6194 #endif
6196 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6197 cat >>confdefs.h <<_ACEOF
6198 #define HAVE_PTHREAD_NP_H 1
6199 _ACEOF
6203 done
6206 for ac_header in linux/videodev.h
6207 do :
6208 ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6209 #include <sys/time.h>
6210 #endif
6211 #include <sys/types.h>
6212 #ifdef HAVE_ASM_TYPES_H
6213 #include <asm/types.h>
6214 #endif
6216 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6217 cat >>confdefs.h <<_ACEOF
6218 #define HAVE_LINUX_VIDEODEV_H 1
6219 _ACEOF
6223 done
6226 for ac_header in linux/capi.h
6227 do :
6228 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6230 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6231 cat >>confdefs.h <<_ACEOF
6232 #define HAVE_LINUX_CAPI_H 1
6233 _ACEOF
6237 done
6241 DLLEXT=""
6243 DLLFLAGS="-D_REENTRANT"
6245 LDSHARED=""
6247 LDDLLFLAGS=""
6249 LIBEXT="so"
6251 IMPLIBEXT="def"
6253 LDRPATH_INSTALL=""
6255 LDRPATH_LOCAL=""
6257 STATIC_IMPLIBEXT="def.a"
6258 # Extract the first word of "ldd", so it can be a program name with args.
6259 set dummy ldd; ac_word=$2
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6261 $as_echo_n "checking for $ac_word... " >&6; }
6262 if test "${ac_cv_path_LDD+set}" = set; then :
6263 $as_echo_n "(cached) " >&6
6264 else
6265 case $LDD in
6266 [\\/]* | ?:[\\/]*)
6267 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 as_dummy="/sbin:/usr/sbin:$PATH"
6272 for as_dir in $as_dummy
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6278 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 break 2
6282 done
6283 done
6284 IFS=$as_save_IFS
6286 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6288 esac
6290 LDD=$ac_cv_path_LDD
6291 if test -n "$LDD"; then
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6293 $as_echo "$LDD" >&6; }
6294 else
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 $as_echo "no" >&6; }
6301 case $host_os in
6302 cygwin*|mingw32*)
6303 if test -n "$ac_tool_prefix"; then
6304 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6305 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 if test -n "$DLLTOOL"; then
6312 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6317 IFS=$as_save_IFS
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 break 2
6325 done
6326 done
6327 IFS=$as_save_IFS
6331 DLLTOOL=$ac_cv_prog_DLLTOOL
6332 if test -n "$DLLTOOL"; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6334 $as_echo "$DLLTOOL" >&6; }
6335 else
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6342 if test -z "$ac_cv_prog_DLLTOOL"; then
6343 ac_ct_DLLTOOL=$DLLTOOL
6344 # Extract the first word of "dlltool", so it can be a program name with args.
6345 set dummy dlltool; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 if test -n "$ac_ct_DLLTOOL"; then
6352 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6365 done
6366 done
6367 IFS=$as_save_IFS
6371 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6372 if test -n "$ac_ct_DLLTOOL"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6374 $as_echo "$ac_ct_DLLTOOL" >&6; }
6375 else
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6380 if test "x$ac_ct_DLLTOOL" = x; then
6381 DLLTOOL="false"
6382 else
6383 case $cross_compiling:$ac_tool_warned in
6384 yes:)
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6387 ac_tool_warned=yes ;;
6388 esac
6389 DLLTOOL=$ac_ct_DLLTOOL
6391 else
6392 DLLTOOL="$ac_cv_prog_DLLTOOL"
6395 if test -n "$ac_tool_prefix"; then
6396 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6397 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 if test -n "$DLLWRAP"; then
6404 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6405 else
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 break 2
6417 done
6418 done
6419 IFS=$as_save_IFS
6423 DLLWRAP=$ac_cv_prog_DLLWRAP
6424 if test -n "$DLLWRAP"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6426 $as_echo "$DLLWRAP" >&6; }
6427 else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6434 if test -z "$ac_cv_prog_DLLWRAP"; then
6435 ac_ct_DLLWRAP=$DLLWRAP
6436 # Extract the first word of "dllwrap", so it can be a program name with args.
6437 set dummy dllwrap; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 if test -n "$ac_ct_DLLWRAP"; then
6444 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6457 done
6458 done
6459 IFS=$as_save_IFS
6463 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6464 if test -n "$ac_ct_DLLWRAP"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6466 $as_echo "$ac_ct_DLLWRAP" >&6; }
6467 else
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6472 if test "x$ac_ct_DLLWRAP" = x; then
6473 DLLWRAP="false"
6474 else
6475 case $cross_compiling:$ac_tool_warned in
6476 yes:)
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6479 ac_tool_warned=yes ;;
6480 esac
6481 DLLWRAP=$ac_ct_DLLWRAP
6483 else
6484 DLLWRAP="$ac_cv_prog_DLLWRAP"
6487 if test "$DLLWRAP" = "false"; then
6488 LIBEXT="a"
6489 else
6490 LIBEXT="dll"
6492 IMPLIBEXT="a"
6493 STATIC_IMPLIBEXT="a"
6494 enable_iphlpapi=${enable_iphlpapi:-no}
6495 enable_kernel32=${enable_kernel32:-no}
6496 enable_msvcrt=${enable_msvcrt:-no}
6497 enable_ntdll=${enable_ntdll:-no}
6498 enable_ws2_32=${enable_ws2_32:-no}
6499 enable_loader=${enable_loader:-no}
6500 enable_server=${enable_server:-no}
6501 with_x=${with_x:-no}
6502 with_pthread=${with_pthread:-no}
6504 darwin*|macosx*)
6505 DLLEXT=".so"
6506 LIBEXT="dylib"
6507 DLLFLAGS="$DLLFLAGS -fPIC"
6508 LDDLLFLAGS="-bundle -multiply_defined suppress"
6509 LIBWINE_LDFLAGS="-multiply_defined suppress"
6510 LDSHARED="\$(CC) -dynamiclib"
6511 STRIP="$STRIP -x"
6512 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6513 SECURITYLIB="-framework Security -framework CoreFoundation"
6515 COREFOUNDATIONLIB="-framework CoreFoundation"
6517 IOKITLIB="-framework IOKit -framework CoreFoundation"
6519 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6521 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6523 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6524 then
6525 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6528 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6529 then
6530 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6531 then
6532 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6534 else
6535 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6538 ac_save_LIBS="$LIBS"
6539 LIBS="$LIBS $COREAUDIO"
6540 for ac_func in AUGraphAddNode
6541 do :
6542 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6543 if test "x$ac_cv_func_AUGraphAddNode" = x""yes; then :
6544 cat >>confdefs.h <<_ACEOF
6545 #define HAVE_AUGRAPHADDNODE 1
6546 _ACEOF
6549 done
6551 LIBS="$ac_save_LIBS"
6553 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6554 then
6555 FRAMEWORK_OPENAL="-framework OpenAL"
6558 cat >>confdefs.h <<_ACEOF
6559 #define HAVE_OPENAL 1
6560 _ACEOF
6562 ac_cv_lib_openal=yes
6564 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6565 then
6566 LIBOPENCL="-framework OpenCL"
6568 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6570 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6571 then
6572 ac_save_LIBS="$LIBS"
6573 LIBS="$LIBS $IOKITLIB"
6574 for ac_func in IOHIDManagerCreate
6575 do :
6576 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6577 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6578 cat >>confdefs.h <<_ACEOF
6579 #define HAVE_IOHIDMANAGERCREATE 1
6580 _ACEOF
6583 done
6585 LIBS="$ac_save_LIBS"
6587 case $host_cpu in
6588 *powerpc*)
6589 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6590 esac
6591 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6592 then
6593 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6595 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6596 else
6597 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6599 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6600 then
6601 CARBONLIB="-framework Carbon"
6603 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6605 if test "x$enable_win16" = "xyes"
6606 then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6608 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6609 if test "$cross_compiling" = yes; then :
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6611 $as_echo "cross-compiling, assuming yes" >&6; }
6612 else
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6615 asm(".text\n"
6616 "bad:\tnop;nop\n"
6617 "good:\tnop;nop\n\t"
6618 ".globl _testfunc\n"
6619 "_testfunc:\tcallw good");
6620 extern void testfunc();
6622 main ()
6624 unsigned short *p = (unsigned short *)testfunc;
6625 return p[0] != 0xe866 || p[1] != 0xfffa
6627 return 0;
6629 _ACEOF
6630 if ac_fn_c_try_run "$LINENO"; then :
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6632 $as_echo "yes" >&6; }
6633 else
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635 $as_echo "no" >&6; }
6636 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
6638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6639 conftest.$ac_objext conftest.beam conftest.$ac_ext
6645 DLLFLAGS="$DLLFLAGS -fPIC"
6646 DLLEXT=".so"
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6648 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6649 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6650 $as_echo_n "(cached) " >&6
6651 else
6652 ac_wine_try_cflags_saved=$CFLAGS
6653 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6656 void myfunc() {}
6657 _ACEOF
6658 if ac_fn_c_try_link "$LINENO"; then :
6659 ac_cv_c_dll_gnuelf="yes"
6660 else
6661 ac_cv_c_dll_gnuelf="no"
6663 rm -f core conftest.err conftest.$ac_objext \
6664 conftest$ac_exeext conftest.$ac_ext
6665 CFLAGS=$ac_wine_try_cflags_saved
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6668 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6669 if test "$ac_cv_c_dll_gnuelf" = "yes"
6670 then
6671 LDSHARED="\$(CC) -shared"
6672 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6674 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6675 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6676 $as_echo_n "(cached) " >&6
6677 else
6678 ac_wine_try_cflags_saved=$CFLAGS
6679 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6682 int main(int argc, char **argv) { return 0; }
6683 _ACEOF
6684 if ac_fn_c_try_link "$LINENO"; then :
6685 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6686 else
6687 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6689 rm -f core conftest.err conftest.$ac_objext \
6690 conftest$ac_exeext conftest.$ac_ext
6691 CFLAGS=$ac_wine_try_cflags_saved
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6694 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6695 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6696 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6697 else
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6699 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6700 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6701 $as_echo_n "(cached) " >&6
6702 else
6703 ac_wine_try_cflags_saved=$CFLAGS
6704 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6707 int main(int argc, char **argv) { return 0; }
6708 _ACEOF
6709 if ac_fn_c_try_link "$LINENO"; then :
6710 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6711 else
6712 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6714 rm -f core conftest.err conftest.$ac_objext \
6715 conftest$ac_exeext conftest.$ac_ext
6716 CFLAGS=$ac_wine_try_cflags_saved
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6719 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6720 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6721 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6726 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6727 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6728 $as_echo_n "(cached) " >&6
6729 else
6730 ac_wine_try_cflags_saved=$CFLAGS
6731 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6734 int main(int argc, char **argv) { return 0; }
6735 _ACEOF
6736 if ac_fn_c_try_link "$LINENO"; then :
6737 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6738 else
6739 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6741 rm -f core conftest.err conftest.$ac_objext \
6742 conftest$ac_exeext conftest.$ac_ext
6743 CFLAGS=$ac_wine_try_cflags_saved
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6746 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6747 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6748 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6751 { $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
6752 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6753 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6754 $as_echo_n "(cached) " >&6
6755 else
6756 ac_wine_try_cflags_saved=$CFLAGS
6757 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6760 int main(int argc, char **argv) { return 0; }
6761 _ACEOF
6762 if ac_fn_c_try_link "$LINENO"; then :
6763 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6764 else
6765 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6767 rm -f core conftest.err conftest.$ac_objext \
6768 conftest$ac_exeext conftest.$ac_ext
6769 CFLAGS=$ac_wine_try_cflags_saved
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6772 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6773 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6774 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6777 echo '{ global: *; };' >conftest.map
6778 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6780 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6781 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6782 $as_echo_n "(cached) " >&6
6783 else
6784 ac_wine_try_cflags_saved=$CFLAGS
6785 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6788 int main(int argc, char **argv) { return 0; }
6789 _ACEOF
6790 if ac_fn_c_try_link "$LINENO"; then :
6791 eval "$as_ac_var=yes"
6792 else
6793 eval "$as_ac_var=no"
6795 rm -f core conftest.err conftest.$ac_objext \
6796 conftest$ac_exeext conftest.$ac_ext
6797 CFLAGS=$ac_wine_try_cflags_saved
6799 eval ac_res=\$$as_ac_var
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6801 $as_echo "$ac_res" >&6; }
6802 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6803 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6805 rm -f conftest.map
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6808 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6809 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6812 ac_wine_try_cflags_saved=$CFLAGS
6813 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6816 int main(int argc, char **argv) { return 0; }
6817 _ACEOF
6818 if ac_fn_c_try_link "$LINENO"; then :
6819 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6820 else
6821 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6823 rm -f core conftest.err conftest.$ac_objext \
6824 conftest$ac_exeext conftest.$ac_ext
6825 CFLAGS=$ac_wine_try_cflags_saved
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6828 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6829 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6830 LDEXECFLAGS="-Wl,--export-dynamic"
6834 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6836 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6837 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6838 $as_echo_n "(cached) " >&6
6839 else
6840 ac_wine_try_cflags_saved=$CFLAGS
6841 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6844 int main(int argc, char **argv) { return 0; }
6845 _ACEOF
6846 if ac_fn_c_try_link "$LINENO"; then :
6847 eval "$as_ac_var=yes"
6848 else
6849 eval "$as_ac_var=no"
6851 rm -f core conftest.err conftest.$ac_objext \
6852 conftest$ac_exeext conftest.$ac_ext
6853 CFLAGS=$ac_wine_try_cflags_saved
6855 eval ac_res=\$$as_ac_var
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6857 $as_echo "$ac_res" >&6; }
6858 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6859 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6860 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6861 else
6862 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6864 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6865 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868 ac_wine_try_cflags_saved=$CFLAGS
6869 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6872 int main(int argc, char **argv) { return 0; }
6873 _ACEOF
6874 if ac_fn_c_try_link "$LINENO"; then :
6875 eval "$as_ac_var=yes"
6876 else
6877 eval "$as_ac_var=no"
6879 rm -f core conftest.err conftest.$ac_objext \
6880 conftest$ac_exeext conftest.$ac_ext
6881 CFLAGS=$ac_wine_try_cflags_saved
6883 eval ac_res=\$$as_ac_var
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6885 $as_echo "$ac_res" >&6; }
6886 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6887 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6888 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6893 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6894 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 ac_wine_try_cflags_saved=$CFLAGS
6898 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6901 int main(int argc, char **argv) { return 0; }
6902 _ACEOF
6903 if ac_fn_c_try_link "$LINENO"; then :
6904 ac_cv_cflags__Wl___enable_new_dtags=yes
6905 else
6906 ac_cv_cflags__Wl___enable_new_dtags=no
6908 rm -f core conftest.err conftest.$ac_objext \
6909 conftest$ac_exeext conftest.$ac_ext
6910 CFLAGS=$ac_wine_try_cflags_saved
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6913 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6914 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6915 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6918 case $host_cpu in
6919 *i[3456789]86* | x86_64)
6920 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6922 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6923 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 ac_wine_try_cflags_saved=$CFLAGS
6927 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6930 int main(int argc, char **argv) { return 0; }
6931 _ACEOF
6932 if ac_fn_c_try_link "$LINENO"; then :
6933 eval "$as_ac_var=yes"
6934 else
6935 eval "$as_ac_var=no"
6937 rm -f core conftest.err conftest.$ac_objext \
6938 conftest$ac_exeext conftest.$ac_ext
6939 CFLAGS=$ac_wine_try_cflags_saved
6941 eval ac_res=\$$as_ac_var
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6943 $as_echo "$ac_res" >&6; }
6944 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6945 case $host_os in
6946 freebsd*) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6947 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6948 esac
6951 # Extract the first word of "prelink", so it can be a program name with args.
6952 set dummy prelink; ac_word=$2
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954 $as_echo_n "checking for $ac_word... " >&6; }
6955 if test "${ac_cv_path_PRELINK+set}" = set; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 case $PRELINK in
6959 [\\/]* | ?:[\\/]*)
6960 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in /sbin /usr/sbin $PATH
6966 IFS=$as_save_IFS
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6970 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 break 2
6974 done
6975 done
6976 IFS=$as_save_IFS
6978 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6980 esac
6982 PRELINK=$ac_cv_path_PRELINK
6983 if test -n "$PRELINK"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6985 $as_echo "$PRELINK" >&6; }
6986 else
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6992 if test "x$PRELINK" = xfalse
6993 then
6994 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6997 esac
6999 else
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7001 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7002 if test "${ac_cv_c_dll_unixware+set}" = set; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 ac_wine_try_cflags_saved=$CFLAGS
7006 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7009 void myfunc() {}
7010 _ACEOF
7011 if ac_fn_c_try_link "$LINENO"; then :
7012 ac_cv_c_dll_unixware="yes"
7013 else
7014 ac_cv_c_dll_unixware="no"
7016 rm -f core conftest.err conftest.$ac_objext \
7017 conftest$ac_exeext conftest.$ac_ext
7018 CFLAGS=$ac_wine_try_cflags_saved
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7021 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7022 if test "$ac_cv_c_dll_unixware" = "yes"
7023 then
7024 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7025 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7027 else
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7029 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7030 if test "${ac_cv_c_dll_hpux+set}" = set; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7033 ac_wine_try_cflags_saved=$CFLAGS
7034 CFLAGS="$CFLAGS -shared"
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7037 void myfunc() {}
7038 _ACEOF
7039 if ac_fn_c_try_link "$LINENO"; then :
7040 ac_cv_c_dll_hpux="yes"
7041 else
7042 ac_cv_c_dll_hpux="no"
7044 rm -f core conftest.err conftest.$ac_objext \
7045 conftest$ac_exeext conftest.$ac_ext
7046 CFLAGS=$ac_wine_try_cflags_saved
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7049 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7050 if test "$ac_cv_c_dll_hpux" = "yes"
7051 then
7052 LIBEXT="sl"
7053 DLLEXT=".sl"
7054 LDDLLFLAGS="-shared -fPIC"
7055 LDSHARED="\$(CC) -shared"
7060 esac
7062 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7063 enable_winequartz_drv=${enable_winequartz_drv:-no}
7065 if test "$LIBEXT" = "a"; then
7066 as_fn_error $? "could not find a way to build shared libraries.
7067 It is currently not possible to build Wine without shared library
7068 (.so) support to allow transparent switch between .so and .dll files.
7069 If you are using Linux, you will need a newer binutils.
7070 " "$LINENO" 5
7073 CROSSTEST_DISABLE=\#
7075 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7076 then
7077 case "$host_cpu" in
7078 i[3456789]86*)
7079 ac_prefix_list="i686-w64-mingw32-gcc i586-w64-mingw32-gcc i486-w64-mingw32-gcc i386-w64-mingw32-gcc i686-pc-mingw32-gcc i586-pc-mingw32-gcc i486-pc-mingw32-gcc i386-pc-mingw32-gcc i686-mingw32msvc-gcc i586-mingw32msvc-gcc i486-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i586-mingw32-gcc i486-mingw32-gcc i386-mingw32-gcc " ;;
7080 x86_64)
7081 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 " ;;
7083 ac_prefix_list="" ;;
7084 esac
7085 for ac_prog in $ac_prefix_list
7087 # Extract the first word of "$ac_prog", so it can be a program name with args.
7088 set dummy $ac_prog; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 if test -n "$CROSSCC"; then
7095 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7096 else
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_prog_CROSSCC="$ac_prog"
7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7108 done
7109 done
7110 IFS=$as_save_IFS
7114 CROSSCC=$ac_cv_prog_CROSSCC
7115 if test -n "$CROSSCC"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7117 $as_echo "$CROSSCC" >&6; }
7118 else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7124 test -n "$CROSSCC" && break
7125 done
7126 test -n "$CROSSCC" || CROSSCC="false"
7128 if test "$CROSSCC" != "false"
7129 then
7130 ac_save_CC="$CC"
7131 CC="$CROSSCC"
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7133 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7138 main ()
7142 return 0;
7144 _ACEOF
7145 if ac_fn_c_try_compile "$LINENO"; then :
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7147 $as_echo "yes" >&6; }
7148 set x $CROSSCC
7149 shift
7150 target=""
7151 while test $# -ge 1
7153 case "$1" in
7154 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7155 esac
7156 shift
7157 done
7158 if test -n "$target"
7159 then
7160 CROSSTEST_DISABLE=""
7161 CROSSTARGET="$target"
7164 else
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169 CC="$ac_save_CC"
7174 if test "$ac_cv_header_pthread_h" = "yes"
7175 then
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7177 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7178 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
7179 $as_echo_n "(cached) " >&6
7180 else
7181 ac_check_lib_save_LIBS=$LIBS
7182 LIBS="-lpthread $LIBS"
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7186 /* Override any GCC internal prototype to avoid an error.
7187 Use char because int might match the return type of a GCC
7188 builtin and then its argument prototype would still apply. */
7189 #ifdef __cplusplus
7190 extern "C"
7191 #endif
7192 char pthread_create ();
7194 main ()
7196 return pthread_create ();
7198 return 0;
7200 _ACEOF
7201 if ac_fn_c_try_link "$LINENO"; then :
7202 ac_cv_lib_pthread_pthread_create=yes
7203 else
7204 ac_cv_lib_pthread_pthread_create=no
7206 rm -f core conftest.err conftest.$ac_objext \
7207 conftest$ac_exeext conftest.$ac_ext
7208 LIBS=$ac_check_lib_save_LIBS
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7211 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7212 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7213 LIBPTHREAD="-lpthread"
7218 if test "x$LIBPTHREAD" = "x"; then :
7219 case "x$with_pthread" in
7220 xno) ;;
7221 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7222 Wine cannot support threads without libpthread.
7223 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7224 esac
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7229 $as_echo_n "checking for X... " >&6; }
7232 # Check whether --with-x was given.
7233 if test "${with_x+set}" = set; then :
7234 withval=$with_x;
7237 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7238 if test "x$with_x" = xno; then
7239 # The user explicitly disabled X.
7240 have_x=disabled
7241 else
7242 case $x_includes,$x_libraries in #(
7243 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
7244 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7245 $as_echo_n "(cached) " >&6
7246 else
7247 # One or both of the vars are not set, and there is no cached value.
7248 ac_x_includes=no ac_x_libraries=no
7249 rm -f -r conftest.dir
7250 if mkdir conftest.dir; then
7251 cd conftest.dir
7252 cat >Imakefile <<'_ACEOF'
7253 incroot:
7254 @echo incroot='${INCROOT}'
7255 usrlibdir:
7256 @echo usrlibdir='${USRLIBDIR}'
7257 libdir:
7258 @echo libdir='${LIBDIR}'
7259 _ACEOF
7260 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7261 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7262 for ac_var in incroot usrlibdir libdir; do
7263 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7264 done
7265 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7266 for ac_extension in a so sl dylib la dll; do
7267 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7268 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7269 ac_im_usrlibdir=$ac_im_libdir; break
7271 done
7272 # Screen out bogus values from the imake configuration. They are
7273 # bogus both because they are the default anyway, and because
7274 # using them would break gcc on systems where it needs fixed includes.
7275 case $ac_im_incroot in
7276 /usr/include) ac_x_includes= ;;
7277 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7278 esac
7279 case $ac_im_usrlibdir in
7280 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7281 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7282 esac
7284 cd ..
7285 rm -f -r conftest.dir
7288 # Standard set of common directories for X headers.
7289 # Check X11 before X11Rn because it is often a symlink to the current release.
7290 ac_x_header_dirs='
7291 /usr/X11/include
7292 /usr/X11R7/include
7293 /usr/X11R6/include
7294 /usr/X11R5/include
7295 /usr/X11R4/include
7297 /usr/include/X11
7298 /usr/include/X11R7
7299 /usr/include/X11R6
7300 /usr/include/X11R5
7301 /usr/include/X11R4
7303 /usr/local/X11/include
7304 /usr/local/X11R7/include
7305 /usr/local/X11R6/include
7306 /usr/local/X11R5/include
7307 /usr/local/X11R4/include
7309 /usr/local/include/X11
7310 /usr/local/include/X11R7
7311 /usr/local/include/X11R6
7312 /usr/local/include/X11R5
7313 /usr/local/include/X11R4
7315 /usr/X386/include
7316 /usr/x386/include
7317 /usr/XFree86/include/X11
7319 /usr/include
7320 /usr/local/include
7321 /usr/unsupported/include
7322 /usr/athena/include
7323 /usr/local/x11r5/include
7324 /usr/lpp/Xamples/include
7326 /usr/openwin/include
7327 /usr/openwin/share/include'
7329 if test "$ac_x_includes" = no; then
7330 # Guess where to find include files, by looking for Xlib.h.
7331 # First, try using that file with no special directory specified.
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7334 #include <X11/Xlib.h>
7335 _ACEOF
7336 if ac_fn_c_try_cpp "$LINENO"; then :
7337 # We can compile using X headers with no special include directory.
7338 ac_x_includes=
7339 else
7340 for ac_dir in $ac_x_header_dirs; do
7341 if test -r "$ac_dir/X11/Xlib.h"; then
7342 ac_x_includes=$ac_dir
7343 break
7345 done
7347 rm -f conftest.err conftest.i conftest.$ac_ext
7348 fi # $ac_x_includes = no
7350 if test "$ac_x_libraries" = no; then
7351 # Check for the libraries.
7352 # See if we find them without any special options.
7353 # Don't add to $LIBS permanently.
7354 ac_save_LIBS=$LIBS
7355 LIBS="-lX11 $LIBS"
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7358 #include <X11/Xlib.h>
7360 main ()
7362 XrmInitialize ()
7364 return 0;
7366 _ACEOF
7367 if ac_fn_c_try_link "$LINENO"; then :
7368 LIBS=$ac_save_LIBS
7369 # We can link X programs with no special library path.
7370 ac_x_libraries=
7371 else
7372 LIBS=$ac_save_LIBS
7373 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7375 # Don't even attempt the hair of trying to link an X program!
7376 for ac_extension in a so sl dylib la dll; do
7377 if test -r "$ac_dir/libX11.$ac_extension"; then
7378 ac_x_libraries=$ac_dir
7379 break 2
7381 done
7382 done
7384 rm -f core conftest.err conftest.$ac_objext \
7385 conftest$ac_exeext conftest.$ac_ext
7386 fi # $ac_x_libraries = no
7388 case $ac_x_includes,$ac_x_libraries in #(
7389 no,* | *,no | *\'*)
7390 # Didn't find X, or a directory has "'" in its name.
7391 ac_cv_have_x="have_x=no";; #(
7393 # Record where we found X for the cache.
7394 ac_cv_have_x="have_x=yes\
7395 ac_x_includes='$ac_x_includes'\
7396 ac_x_libraries='$ac_x_libraries'"
7397 esac
7399 ;; #(
7400 *) have_x=yes;;
7401 esac
7402 eval "$ac_cv_have_x"
7403 fi # $with_x != no
7405 if test "$have_x" != yes; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7407 $as_echo "$have_x" >&6; }
7408 no_x=yes
7409 else
7410 # If each of the values was on the command line, it overrides each guess.
7411 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7412 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7413 # Update the cache value to reflect the command line values.
7414 ac_cv_have_x="have_x=yes\
7415 ac_x_includes='$x_includes'\
7416 ac_x_libraries='$x_libraries'"
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7418 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7421 if test "$no_x" = yes; then
7422 # Not all programs may use this symbol, but it does not hurt to define it.
7424 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7426 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7427 else
7428 if test -n "$x_includes"; then
7429 X_CFLAGS="$X_CFLAGS -I$x_includes"
7432 # It would also be nice to do this for all -L options, not just this one.
7433 if test -n "$x_libraries"; then
7434 X_LIBS="$X_LIBS -L$x_libraries"
7435 # For Solaris; some versions of Sun CC require a space after -R and
7436 # others require no space. Words are not sufficient . . . .
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7438 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7439 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7440 ac_xsave_c_werror_flag=$ac_c_werror_flag
7441 ac_c_werror_flag=yes
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7446 main ()
7450 return 0;
7452 _ACEOF
7453 if ac_fn_c_try_link "$LINENO"; then :
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 $as_echo "no" >&6; }
7456 X_LIBS="$X_LIBS -R$x_libraries"
7457 else
7458 LIBS="$ac_xsave_LIBS -R $x_libraries"
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7463 main ()
7467 return 0;
7469 _ACEOF
7470 if ac_fn_c_try_link "$LINENO"; then :
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7472 $as_echo "yes" >&6; }
7473 X_LIBS="$X_LIBS -R $x_libraries"
7474 else
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7476 $as_echo "neither works" >&6; }
7478 rm -f core conftest.err conftest.$ac_objext \
7479 conftest$ac_exeext conftest.$ac_ext
7481 rm -f core conftest.err conftest.$ac_objext \
7482 conftest$ac_exeext conftest.$ac_ext
7483 ac_c_werror_flag=$ac_xsave_c_werror_flag
7484 LIBS=$ac_xsave_LIBS
7487 # Check for system-dependent libraries X programs must link with.
7488 # Do this before checking for the system-independent R6 libraries
7489 # (-lICE), since we may need -lsocket or whatever for X linking.
7491 if test "$ISC" = yes; then
7492 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7493 else
7494 # Martyn Johnson says this is needed for Ultrix, if the X
7495 # libraries were built with DECnet support. And Karl Berry says
7496 # the Alpha needs dnet_stub (dnet does not exist).
7497 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h. */
7501 /* Override any GCC internal prototype to avoid an error.
7502 Use char because int might match the return type of a GCC
7503 builtin and then its argument prototype would still apply. */
7504 #ifdef __cplusplus
7505 extern "C"
7506 #endif
7507 char XOpenDisplay ();
7509 main ()
7511 return XOpenDisplay ();
7513 return 0;
7515 _ACEOF
7516 if ac_fn_c_try_link "$LINENO"; then :
7518 else
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7520 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7521 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7522 $as_echo_n "(cached) " >&6
7523 else
7524 ac_check_lib_save_LIBS=$LIBS
7525 LIBS="-ldnet $LIBS"
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7529 /* Override any GCC internal prototype to avoid an error.
7530 Use char because int might match the return type of a GCC
7531 builtin and then its argument prototype would still apply. */
7532 #ifdef __cplusplus
7533 extern "C"
7534 #endif
7535 char dnet_ntoa ();
7537 main ()
7539 return dnet_ntoa ();
7541 return 0;
7543 _ACEOF
7544 if ac_fn_c_try_link "$LINENO"; then :
7545 ac_cv_lib_dnet_dnet_ntoa=yes
7546 else
7547 ac_cv_lib_dnet_dnet_ntoa=no
7549 rm -f core conftest.err conftest.$ac_objext \
7550 conftest$ac_exeext conftest.$ac_ext
7551 LIBS=$ac_check_lib_save_LIBS
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7554 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7555 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7556 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7559 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7561 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7562 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 ac_check_lib_save_LIBS=$LIBS
7566 LIBS="-ldnet_stub $LIBS"
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7570 /* Override any GCC internal prototype to avoid an error.
7571 Use char because int might match the return type of a GCC
7572 builtin and then its argument prototype would still apply. */
7573 #ifdef __cplusplus
7574 extern "C"
7575 #endif
7576 char dnet_ntoa ();
7578 main ()
7580 return dnet_ntoa ();
7582 return 0;
7584 _ACEOF
7585 if ac_fn_c_try_link "$LINENO"; then :
7586 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7587 else
7588 ac_cv_lib_dnet_stub_dnet_ntoa=no
7590 rm -f core conftest.err conftest.$ac_objext \
7591 conftest$ac_exeext conftest.$ac_ext
7592 LIBS=$ac_check_lib_save_LIBS
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7595 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7596 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7597 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7602 rm -f core conftest.err conftest.$ac_objext \
7603 conftest$ac_exeext conftest.$ac_ext
7604 LIBS="$ac_xsave_LIBS"
7606 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7607 # to get the SysV transport functions.
7608 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7609 # needs -lnsl.
7610 # The nsl library prevents programs from opening the X display
7611 # on Irix 5.2, according to T.E. Dickey.
7612 # The functions gethostbyname, getservbyname, and inet_addr are
7613 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7614 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7615 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7619 if test $ac_cv_func_gethostbyname = no; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7621 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7622 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625 ac_check_lib_save_LIBS=$LIBS
7626 LIBS="-lnsl $LIBS"
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7630 /* Override any GCC internal prototype to avoid an error.
7631 Use char because int might match the return type of a GCC
7632 builtin and then its argument prototype would still apply. */
7633 #ifdef __cplusplus
7634 extern "C"
7635 #endif
7636 char gethostbyname ();
7638 main ()
7640 return gethostbyname ();
7642 return 0;
7644 _ACEOF
7645 if ac_fn_c_try_link "$LINENO"; then :
7646 ac_cv_lib_nsl_gethostbyname=yes
7647 else
7648 ac_cv_lib_nsl_gethostbyname=no
7650 rm -f core conftest.err conftest.$ac_objext \
7651 conftest$ac_exeext conftest.$ac_ext
7652 LIBS=$ac_check_lib_save_LIBS
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7655 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7656 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7657 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7660 if test $ac_cv_lib_nsl_gethostbyname = no; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7662 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7663 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 ac_check_lib_save_LIBS=$LIBS
7667 LIBS="-lbsd $LIBS"
7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7671 /* Override any GCC internal prototype to avoid an error.
7672 Use char because int might match the return type of a GCC
7673 builtin and then its argument prototype would still apply. */
7674 #ifdef __cplusplus
7675 extern "C"
7676 #endif
7677 char gethostbyname ();
7679 main ()
7681 return gethostbyname ();
7683 return 0;
7685 _ACEOF
7686 if ac_fn_c_try_link "$LINENO"; then :
7687 ac_cv_lib_bsd_gethostbyname=yes
7688 else
7689 ac_cv_lib_bsd_gethostbyname=no
7691 rm -f core conftest.err conftest.$ac_objext \
7692 conftest$ac_exeext conftest.$ac_ext
7693 LIBS=$ac_check_lib_save_LIBS
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7696 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7697 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7698 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7704 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7705 # socket/setsockopt and other routines are undefined under SCO ODT
7706 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7707 # on later versions), says Simon Leinen: it contains gethostby*
7708 # variants that don't use the name server (or something). -lsocket
7709 # must be given before -lnsl if both are needed. We assume that
7710 # if connect needs -lnsl, so does gethostbyname.
7711 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7712 if test "x$ac_cv_func_connect" = x""yes; then :
7716 if test $ac_cv_func_connect = no; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7718 $as_echo_n "checking for connect in -lsocket... " >&6; }
7719 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7720 $as_echo_n "(cached) " >&6
7721 else
7722 ac_check_lib_save_LIBS=$LIBS
7723 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7727 /* Override any GCC internal prototype to avoid an error.
7728 Use char because int might match the return type of a GCC
7729 builtin and then its argument prototype would still apply. */
7730 #ifdef __cplusplus
7731 extern "C"
7732 #endif
7733 char connect ();
7735 main ()
7737 return connect ();
7739 return 0;
7741 _ACEOF
7742 if ac_fn_c_try_link "$LINENO"; then :
7743 ac_cv_lib_socket_connect=yes
7744 else
7745 ac_cv_lib_socket_connect=no
7747 rm -f core conftest.err conftest.$ac_objext \
7748 conftest$ac_exeext conftest.$ac_ext
7749 LIBS=$ac_check_lib_save_LIBS
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7752 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7753 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7754 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7759 # Guillermo Gomez says -lposix is necessary on A/UX.
7760 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7761 if test "x$ac_cv_func_remove" = x""yes; then :
7765 if test $ac_cv_func_remove = no; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7767 $as_echo_n "checking for remove in -lposix... " >&6; }
7768 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 ac_check_lib_save_LIBS=$LIBS
7772 LIBS="-lposix $LIBS"
7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h. */
7776 /* Override any GCC internal prototype to avoid an error.
7777 Use char because int might match the return type of a GCC
7778 builtin and then its argument prototype would still apply. */
7779 #ifdef __cplusplus
7780 extern "C"
7781 #endif
7782 char remove ();
7784 main ()
7786 return remove ();
7788 return 0;
7790 _ACEOF
7791 if ac_fn_c_try_link "$LINENO"; then :
7792 ac_cv_lib_posix_remove=yes
7793 else
7794 ac_cv_lib_posix_remove=no
7796 rm -f core conftest.err conftest.$ac_objext \
7797 conftest$ac_exeext conftest.$ac_ext
7798 LIBS=$ac_check_lib_save_LIBS
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7801 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7802 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7803 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7808 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7809 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7810 if test "x$ac_cv_func_shmat" = x""yes; then :
7814 if test $ac_cv_func_shmat = no; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7816 $as_echo_n "checking for shmat in -lipc... " >&6; }
7817 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7818 $as_echo_n "(cached) " >&6
7819 else
7820 ac_check_lib_save_LIBS=$LIBS
7821 LIBS="-lipc $LIBS"
7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7825 /* Override any GCC internal prototype to avoid an error.
7826 Use char because int might match the return type of a GCC
7827 builtin and then its argument prototype would still apply. */
7828 #ifdef __cplusplus
7829 extern "C"
7830 #endif
7831 char shmat ();
7833 main ()
7835 return shmat ();
7837 return 0;
7839 _ACEOF
7840 if ac_fn_c_try_link "$LINENO"; then :
7841 ac_cv_lib_ipc_shmat=yes
7842 else
7843 ac_cv_lib_ipc_shmat=no
7845 rm -f core conftest.err conftest.$ac_objext \
7846 conftest$ac_exeext conftest.$ac_ext
7847 LIBS=$ac_check_lib_save_LIBS
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7850 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7851 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7852 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7858 # Check for libraries that X11R6 Xt/Xaw programs need.
7859 ac_save_LDFLAGS=$LDFLAGS
7860 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7861 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7862 # check for ICE first), but we must link in the order -lSM -lICE or
7863 # we get undefined symbols. So assume we have SM if we have ICE.
7864 # These have to be linked with before -lX11, unlike the other
7865 # libraries we check for below, so use a different variable.
7866 # John Interrante, Karl Berry
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7868 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7869 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7870 $as_echo_n "(cached) " >&6
7871 else
7872 ac_check_lib_save_LIBS=$LIBS
7873 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7877 /* Override any GCC internal prototype to avoid an error.
7878 Use char because int might match the return type of a GCC
7879 builtin and then its argument prototype would still apply. */
7880 #ifdef __cplusplus
7881 extern "C"
7882 #endif
7883 char IceConnectionNumber ();
7885 main ()
7887 return IceConnectionNumber ();
7889 return 0;
7891 _ACEOF
7892 if ac_fn_c_try_link "$LINENO"; then :
7893 ac_cv_lib_ICE_IceConnectionNumber=yes
7894 else
7895 ac_cv_lib_ICE_IceConnectionNumber=no
7897 rm -f core conftest.err conftest.$ac_objext \
7898 conftest$ac_exeext conftest.$ac_ext
7899 LIBS=$ac_check_lib_save_LIBS
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7902 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7903 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7904 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7907 LDFLAGS=$ac_save_LDFLAGS
7912 if test "$have_x" = "yes"
7913 then
7914 XLIB="-lX11"
7915 ac_save_CPPFLAGS="$CPPFLAGS"
7916 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7919 $as_echo_n "checking for -lX11... " >&6; }
7920 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7921 $as_echo_n "(cached) " >&6
7922 else
7923 ac_check_soname_save_LIBS=$LIBS
7924 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h. */
7928 /* Override any GCC internal prototype to avoid an error.
7929 Use char because int might match the return type of a GCC
7930 builtin and then its argument prototype would still apply. */
7931 #ifdef __cplusplus
7932 extern "C"
7933 #endif
7934 char XCreateWindow ();
7936 main ()
7938 return XCreateWindow ();
7940 return 0;
7942 _ACEOF
7943 if ac_fn_c_try_link "$LINENO"; then :
7944 case "$LIBEXT" in
7945 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7946 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'` ;;
7947 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7948 esac
7950 rm -f core conftest.err conftest.$ac_objext \
7951 conftest$ac_exeext conftest.$ac_ext
7952 LIBS=$ac_check_soname_save_LIBS
7954 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7956 $as_echo "not found" >&6; }
7958 else
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7960 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7962 cat >>confdefs.h <<_ACEOF
7963 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7964 _ACEOF
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7969 $as_echo_n "checking for -lXext... " >&6; }
7970 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 ac_check_soname_save_LIBS=$LIBS
7974 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7978 /* Override any GCC internal prototype to avoid an error.
7979 Use char because int might match the return type of a GCC
7980 builtin and then its argument prototype would still apply. */
7981 #ifdef __cplusplus
7982 extern "C"
7983 #endif
7984 char XextCreateExtension ();
7986 main ()
7988 return XextCreateExtension ();
7990 return 0;
7992 _ACEOF
7993 if ac_fn_c_try_link "$LINENO"; then :
7994 case "$LIBEXT" in
7995 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7996 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'` ;;
7997 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7998 esac
8000 rm -f core conftest.err conftest.$ac_objext \
8001 conftest$ac_exeext conftest.$ac_ext
8002 LIBS=$ac_check_soname_save_LIBS
8004 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8006 $as_echo "not found" >&6; }
8008 else
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8010 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8012 cat >>confdefs.h <<_ACEOF
8013 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8014 _ACEOF
8016 XLIB="-lXext $XLIB"
8019 for ac_header in X11/Xlib.h \
8020 X11/XKBlib.h \
8021 X11/Xutil.h \
8022 X11/Xcursor/Xcursor.h \
8023 X11/extensions/shape.h \
8024 X11/extensions/XInput.h \
8025 X11/extensions/XShm.h \
8026 X11/extensions/Xcomposite.h \
8027 X11/extensions/Xinerama.h \
8028 X11/extensions/Xrandr.h \
8029 X11/extensions/Xrender.h \
8030 X11/extensions/xf86vmode.h \
8031 X11/extensions/xf86vmproto.h
8032 do :
8033 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8034 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8035 # include <X11/Xlib.h>
8036 #endif
8037 #ifdef HAVE_X11_XUTIL_H
8038 # include <X11/Xutil.h>
8039 #endif
8041 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8042 cat >>confdefs.h <<_ACEOF
8043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8044 _ACEOF
8048 done
8051 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8052 then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8054 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8055 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
8056 $as_echo_n "(cached) " >&6
8057 else
8058 ac_check_lib_save_LIBS=$LIBS
8059 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8063 /* Override any GCC internal prototype to avoid an error.
8064 Use char because int might match the return type of a GCC
8065 builtin and then its argument prototype would still apply. */
8066 #ifdef __cplusplus
8067 extern "C"
8068 #endif
8069 char XkbQueryExtension ();
8071 main ()
8073 return XkbQueryExtension ();
8075 return 0;
8077 _ACEOF
8078 if ac_fn_c_try_link "$LINENO"; then :
8079 ac_cv_lib_X11_XkbQueryExtension=yes
8080 else
8081 ac_cv_lib_X11_XkbQueryExtension=no
8083 rm -f core conftest.err conftest.$ac_objext \
8084 conftest$ac_exeext conftest.$ac_ext
8085 LIBS=$ac_check_lib_save_LIBS
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8088 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8089 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
8091 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8097 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8098 then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8100 $as_echo_n "checking for -lXcursor... " >&6; }
8101 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 ac_check_soname_save_LIBS=$LIBS
8105 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8109 /* Override any GCC internal prototype to avoid an error.
8110 Use char because int might match the return type of a GCC
8111 builtin and then its argument prototype would still apply. */
8112 #ifdef __cplusplus
8113 extern "C"
8114 #endif
8115 char XcursorImageLoadCursor ();
8117 main ()
8119 return XcursorImageLoadCursor ();
8121 return 0;
8123 _ACEOF
8124 if ac_fn_c_try_link "$LINENO"; then :
8125 case "$LIBEXT" in
8126 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8127 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'` ;;
8128 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8129 esac
8131 rm -f core conftest.err conftest.$ac_objext \
8132 conftest$ac_exeext conftest.$ac_ext
8133 LIBS=$ac_check_soname_save_LIBS
8135 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8137 $as_echo "not found" >&6; }
8139 else
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8141 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8143 cat >>confdefs.h <<_ACEOF
8144 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8145 _ACEOF
8150 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8151 case "x$with_xcursor" in
8152 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8153 xno) ;;
8154 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8155 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8156 esac
8159 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8160 then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8162 $as_echo_n "checking for -lXi... " >&6; }
8163 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 ac_check_soname_save_LIBS=$LIBS
8167 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8171 /* Override any GCC internal prototype to avoid an error.
8172 Use char because int might match the return type of a GCC
8173 builtin and then its argument prototype would still apply. */
8174 #ifdef __cplusplus
8175 extern "C"
8176 #endif
8177 char XOpenDevice ();
8179 main ()
8181 return XOpenDevice ();
8183 return 0;
8185 _ACEOF
8186 if ac_fn_c_try_link "$LINENO"; then :
8187 case "$LIBEXT" in
8188 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8189 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'` ;;
8190 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8191 esac
8193 rm -f core conftest.err conftest.$ac_objext \
8194 conftest$ac_exeext conftest.$ac_ext
8195 LIBS=$ac_check_soname_save_LIBS
8197 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8199 $as_echo "not found" >&6; }
8201 else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8203 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8205 cat >>confdefs.h <<_ACEOF
8206 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8207 _ACEOF
8212 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8213 case "x$with_xinput" in
8214 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8215 xno) ;;
8216 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8217 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8218 esac
8221 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8222 then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8224 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8225 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 ac_check_lib_save_LIBS=$LIBS
8229 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h. */
8233 /* Override any GCC internal prototype to avoid an error.
8234 Use char because int might match the return type of a GCC
8235 builtin and then its argument prototype would still apply. */
8236 #ifdef __cplusplus
8237 extern "C"
8238 #endif
8239 char XShmQueryExtension ();
8241 main ()
8243 return XShmQueryExtension ();
8245 return 0;
8247 _ACEOF
8248 if ac_fn_c_try_link "$LINENO"; then :
8249 ac_cv_lib_Xext_XShmQueryExtension=yes
8250 else
8251 ac_cv_lib_Xext_XShmQueryExtension=no
8253 rm -f core conftest.err conftest.$ac_objext \
8254 conftest$ac_exeext conftest.$ac_ext
8255 LIBS=$ac_check_lib_save_LIBS
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8258 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8259 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8261 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8266 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8267 case "x$with_xshm" in
8268 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8269 xno) ;;
8270 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8271 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8272 esac
8275 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8276 then
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8278 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8279 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8280 $as_echo_n "(cached) " >&6
8281 else
8282 ac_check_lib_save_LIBS=$LIBS
8283 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8287 /* Override any GCC internal prototype to avoid an error.
8288 Use char because int might match the return type of a GCC
8289 builtin and then its argument prototype would still apply. */
8290 #ifdef __cplusplus
8291 extern "C"
8292 #endif
8293 char XShapeQueryExtension ();
8295 main ()
8297 return XShapeQueryExtension ();
8299 return 0;
8301 _ACEOF
8302 if ac_fn_c_try_link "$LINENO"; then :
8303 ac_cv_lib_Xext_XShapeQueryExtension=yes
8304 else
8305 ac_cv_lib_Xext_XShapeQueryExtension=no
8307 rm -f core conftest.err conftest.$ac_objext \
8308 conftest$ac_exeext conftest.$ac_ext
8309 LIBS=$ac_check_lib_save_LIBS
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8312 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8313 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8315 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8320 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8321 case "x$with_xshape" in
8322 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8323 xno) ;;
8324 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8325 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8326 esac
8329 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8330 then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8332 $as_echo_n "checking for -lXxf86vm... " >&6; }
8333 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 ac_check_soname_save_LIBS=$LIBS
8337 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8341 /* Override any GCC internal prototype to avoid an error.
8342 Use char because int might match the return type of a GCC
8343 builtin and then its argument prototype would still apply. */
8344 #ifdef __cplusplus
8345 extern "C"
8346 #endif
8347 char XF86VidModeQueryExtension ();
8349 main ()
8351 return XF86VidModeQueryExtension ();
8353 return 0;
8355 _ACEOF
8356 if ac_fn_c_try_link "$LINENO"; then :
8357 case "$LIBEXT" in
8358 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8359 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'` ;;
8360 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8361 esac
8363 rm -f core conftest.err conftest.$ac_objext \
8364 conftest$ac_exeext conftest.$ac_ext
8365 LIBS=$ac_check_soname_save_LIBS
8367 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8369 $as_echo "not found" >&6; }
8371 else
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8373 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8375 cat >>confdefs.h <<_ACEOF
8376 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8377 _ACEOF
8382 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8383 case "x$with_xxf86vm" in
8384 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8385 xno) ;;
8386 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8387 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8388 esac
8391 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"
8392 then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8394 $as_echo_n "checking for -lXrender... " >&6; }
8395 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 ac_check_soname_save_LIBS=$LIBS
8399 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8403 /* Override any GCC internal prototype to avoid an error.
8404 Use char because int might match the return type of a GCC
8405 builtin and then its argument prototype would still apply. */
8406 #ifdef __cplusplus
8407 extern "C"
8408 #endif
8409 char XRenderQueryExtension ();
8411 main ()
8413 return XRenderQueryExtension ();
8415 return 0;
8417 _ACEOF
8418 if ac_fn_c_try_link "$LINENO"; then :
8419 case "$LIBEXT" in
8420 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8421 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'` ;;
8422 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8423 esac
8425 rm -f core conftest.err conftest.$ac_objext \
8426 conftest$ac_exeext conftest.$ac_ext
8427 LIBS=$ac_check_soname_save_LIBS
8429 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8431 $as_echo "not found" >&6; }
8433 else
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8435 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8437 cat >>confdefs.h <<_ACEOF
8438 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8439 _ACEOF
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8442 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8443 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 ac_check_lib_save_LIBS=$LIBS
8447 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449 /* end confdefs.h. */
8451 /* Override any GCC internal prototype to avoid an error.
8452 Use char because int might match the return type of a GCC
8453 builtin and then its argument prototype would still apply. */
8454 #ifdef __cplusplus
8455 extern "C"
8456 #endif
8457 char XRenderSetPictureTransform ();
8459 main ()
8461 return XRenderSetPictureTransform ();
8463 return 0;
8465 _ACEOF
8466 if ac_fn_c_try_link "$LINENO"; then :
8467 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8468 else
8469 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8471 rm -f core conftest.err conftest.$ac_objext \
8472 conftest$ac_exeext conftest.$ac_ext
8473 LIBS=$ac_check_lib_save_LIBS
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8476 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8477 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8479 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8486 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8487 case "x$with_xrender" in
8488 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8489 xno) ;;
8490 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8491 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8492 esac
8495 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8496 then
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8499 #include <X11/Xlib.h>
8500 #include <X11/extensions/Xrandr.h>
8502 main ()
8504 static typeof(XRRSetScreenConfigAndRate) * func;
8506 return 0;
8508 _ACEOF
8509 if ac_fn_c_try_compile "$LINENO"; then :
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8511 $as_echo_n "checking for -lXrandr... " >&6; }
8512 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 ac_check_soname_save_LIBS=$LIBS
8516 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8520 /* Override any GCC internal prototype to avoid an error.
8521 Use char because int might match the return type of a GCC
8522 builtin and then its argument prototype would still apply. */
8523 #ifdef __cplusplus
8524 extern "C"
8525 #endif
8526 char XRRQueryExtension ();
8528 main ()
8530 return XRRQueryExtension ();
8532 return 0;
8534 _ACEOF
8535 if ac_fn_c_try_link "$LINENO"; then :
8536 case "$LIBEXT" in
8537 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8538 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'` ;;
8539 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8540 esac
8542 rm -f core conftest.err conftest.$ac_objext \
8543 conftest$ac_exeext conftest.$ac_ext
8544 LIBS=$ac_check_soname_save_LIBS
8546 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8548 $as_echo "not found" >&6; }
8550 else
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8552 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8554 cat >>confdefs.h <<_ACEOF
8555 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8556 _ACEOF
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8564 case "x$with_xrandr" in
8565 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8566 xno) ;;
8567 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8568 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8569 esac
8572 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8573 then
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8576 #include <X11/Xlib.h>
8577 #include <X11/extensions/Xinerama.h>
8579 main ()
8581 static typeof(XineramaQueryScreens) * func;
8583 return 0;
8585 _ACEOF
8586 if ac_fn_c_try_compile "$LINENO"; then :
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8588 $as_echo_n "checking for -lXinerama... " >&6; }
8589 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8590 $as_echo_n "(cached) " >&6
8591 else
8592 ac_check_soname_save_LIBS=$LIBS
8593 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8597 /* Override any GCC internal prototype to avoid an error.
8598 Use char because int might match the return type of a GCC
8599 builtin and then its argument prototype would still apply. */
8600 #ifdef __cplusplus
8601 extern "C"
8602 #endif
8603 char XineramaQueryScreens ();
8605 main ()
8607 return XineramaQueryScreens ();
8609 return 0;
8611 _ACEOF
8612 if ac_fn_c_try_link "$LINENO"; then :
8613 case "$LIBEXT" in
8614 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8615 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'` ;;
8616 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8617 esac
8619 rm -f core conftest.err conftest.$ac_objext \
8620 conftest$ac_exeext conftest.$ac_ext
8621 LIBS=$ac_check_soname_save_LIBS
8623 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8625 $as_echo "not found" >&6; }
8627 else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8629 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8631 cat >>confdefs.h <<_ACEOF
8632 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8633 _ACEOF
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8640 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8641 case "x$with_xinerama" in
8642 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8643 xno) ;;
8644 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8645 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8646 esac
8649 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8650 then
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8652 $as_echo_n "checking for -lXcomposite... " >&6; }
8653 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8654 $as_echo_n "(cached) " >&6
8655 else
8656 ac_check_soname_save_LIBS=$LIBS
8657 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8661 /* Override any GCC internal prototype to avoid an error.
8662 Use char because int might match the return type of a GCC
8663 builtin and then its argument prototype would still apply. */
8664 #ifdef __cplusplus
8665 extern "C"
8666 #endif
8667 char XCompositeRedirectWindow ();
8669 main ()
8671 return XCompositeRedirectWindow ();
8673 return 0;
8675 _ACEOF
8676 if ac_fn_c_try_link "$LINENO"; then :
8677 case "$LIBEXT" in
8678 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8679 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'` ;;
8680 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8681 esac
8683 rm -f core conftest.err conftest.$ac_objext \
8684 conftest$ac_exeext conftest.$ac_ext
8685 LIBS=$ac_check_soname_save_LIBS
8687 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8689 $as_echo "not found" >&6; }
8691 else
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8693 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8695 cat >>confdefs.h <<_ACEOF
8696 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8697 _ACEOF
8702 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8703 case "x$with_xcomposite" in
8704 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8705 xno) ;;
8706 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8707 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8708 esac
8711 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8712 #include <X11/Xlib.h>
8713 #endif
8715 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8717 cat >>confdefs.h <<_ACEOF
8718 #define HAVE_XICCALLBACK_CALLBACK 1
8719 _ACEOF
8726 opengl_msg=""
8727 if test "x$with_opengl" != "xno"
8728 then
8729 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8730 do :
8731 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8732 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8733 # include <GL/glx.h>
8734 #endif
8736 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8737 cat >>confdefs.h <<_ACEOF
8738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8739 _ACEOF
8743 done
8745 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8746 then
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8748 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8749 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8750 $as_echo_n "(cached) " >&6
8751 else
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754 #include <GL/gl.h>
8756 main ()
8758 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8760 return 0;
8762 _ACEOF
8763 if ac_fn_c_try_compile "$LINENO"; then :
8764 wine_cv_opengl_header_version_OK="yes"
8765 else
8766 wine_cv_opengl_header_version_OK="no"
8768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8771 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8773 if test "$wine_cv_opengl_header_version_OK" = "yes"
8774 then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8776 $as_echo_n "checking for -lGL... " >&6; }
8777 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 ac_check_soname_save_LIBS=$LIBS
8781 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8785 /* Override any GCC internal prototype to avoid an error.
8786 Use char because int might match the return type of a GCC
8787 builtin and then its argument prototype would still apply. */
8788 #ifdef __cplusplus
8789 extern "C"
8790 #endif
8791 char glXCreateContext ();
8793 main ()
8795 return glXCreateContext ();
8797 return 0;
8799 _ACEOF
8800 if ac_fn_c_try_link "$LINENO"; then :
8801 case "$LIBEXT" in
8802 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8803 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'` ;;
8804 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8805 esac
8807 rm -f core conftest.err conftest.$ac_objext \
8808 conftest$ac_exeext conftest.$ac_ext
8809 LIBS=$ac_check_soname_save_LIBS
8811 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8813 $as_echo "not found" >&6; }
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8815 $as_echo_n "checking for -lGL... " >&6; }
8816 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8817 $as_echo_n "(cached) " >&6
8818 else
8819 ac_check_soname_save_LIBS=$LIBS
8820 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"
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8824 /* Override any GCC internal prototype to avoid an error.
8825 Use char because int might match the return type of a GCC
8826 builtin and then its argument prototype would still apply. */
8827 #ifdef __cplusplus
8828 extern "C"
8829 #endif
8830 char glXCreateContext ();
8832 main ()
8834 return glXCreateContext ();
8836 return 0;
8838 _ACEOF
8839 if ac_fn_c_try_link "$LINENO"; then :
8840 case "$LIBEXT" in
8841 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8842 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'` ;;
8843 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8844 esac
8846 rm -f core conftest.err conftest.$ac_objext \
8847 conftest$ac_exeext conftest.$ac_ext
8848 LIBS=$ac_check_soname_save_LIBS
8850 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8852 $as_echo "not found" >&6; }
8853 if test -f /usr/X11R6/lib/libGL.a
8854 then
8855 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8856 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8857 else
8858 opengl_msg="No OpenGL library found on this system."
8860 else
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8862 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8864 cat >>confdefs.h <<_ACEOF
8865 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8866 _ACEOF
8868 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"
8870 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8873 else
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8875 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8877 cat >>confdefs.h <<_ACEOF
8878 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8879 _ACEOF
8881 OPENGL_LIBS="-lGL"
8883 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8886 if test "$ac_cv_header_GL_glu_h" = "yes"
8887 then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8889 $as_echo_n "checking for -lGLU... " >&6; }
8890 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8891 $as_echo_n "(cached) " >&6
8892 else
8893 ac_check_soname_save_LIBS=$LIBS
8894 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8898 /* Override any GCC internal prototype to avoid an error.
8899 Use char because int might match the return type of a GCC
8900 builtin and then its argument prototype would still apply. */
8901 #ifdef __cplusplus
8902 extern "C"
8903 #endif
8904 char gluLookAt ();
8906 main ()
8908 return gluLookAt ();
8910 return 0;
8912 _ACEOF
8913 if ac_fn_c_try_link "$LINENO"; then :
8914 case "$LIBEXT" in
8915 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8916 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'` ;;
8917 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8918 esac
8920 rm -f core conftest.err conftest.$ac_objext \
8921 conftest$ac_exeext conftest.$ac_ext
8922 LIBS=$ac_check_soname_save_LIBS
8924 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8926 $as_echo "not found" >&6; }
8928 else
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8930 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8932 cat >>confdefs.h <<_ACEOF
8933 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8934 _ACEOF
8939 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8940 case "x$with_glu" in
8941 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8942 xno) ;;
8943 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8944 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8945 esac
8947 else
8948 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8950 else
8951 opengl_msg="OpenGL development headers not found."
8953 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8954 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8955 else
8956 enable_opengl32=${enable_opengl32:-no}
8957 enable_glu32=${enable_glu32:-no}
8959 if test -n "$opengl_msg"; then :
8960 case "x$with_opengl" in
8961 x) as_fn_append wine_warnings "|$opengl_msg
8962 OpenGL and Direct3D won't be supported." ;;
8963 xno) ;;
8964 *) as_fn_error $? "$opengl_msg
8965 OpenGL and Direct3D won't be supported.
8966 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8967 esac
8970 NASLIBS=""
8972 for ac_header in audio/audiolib.h
8973 do :
8974 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8975 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8976 cat >>confdefs.h <<_ACEOF
8977 #define HAVE_AUDIO_AUDIOLIB_H 1
8978 _ACEOF
8979 for ac_header in audio/soundlib.h
8980 do :
8981 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8983 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8984 cat >>confdefs.h <<_ACEOF
8985 #define HAVE_AUDIO_SOUNDLIB_H 1
8986 _ACEOF
8990 done
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8993 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8994 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
8995 $as_echo_n "(cached) " >&6
8996 else
8997 ac_check_lib_save_LIBS=$LIBS
8998 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h. */
9002 /* Override any GCC internal prototype to avoid an error.
9003 Use char because int might match the return type of a GCC
9004 builtin and then its argument prototype would still apply. */
9005 #ifdef __cplusplus
9006 extern "C"
9007 #endif
9008 char AuCreateFlow ();
9010 main ()
9012 return AuCreateFlow ();
9014 return 0;
9016 _ACEOF
9017 if ac_fn_c_try_link "$LINENO"; then :
9018 ac_cv_lib_audio_AuCreateFlow=yes
9019 else
9020 ac_cv_lib_audio_AuCreateFlow=no
9022 rm -f core conftest.err conftest.$ac_objext \
9023 conftest$ac_exeext conftest.$ac_ext
9024 LIBS=$ac_check_lib_save_LIBS
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9027 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
9028 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
9030 $as_echo "#define HAVE_NAS 1" >>confdefs.h
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
9033 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
9034 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
9035 $as_echo_n "(cached) " >&6
9036 else
9037 ac_check_lib_save_LIBS=$LIBS
9038 LIBS="-lXau $X_LIBS $LIBS"
9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9042 /* Override any GCC internal prototype to avoid an error.
9043 Use char because int might match the return type of a GCC
9044 builtin and then its argument prototype would still apply. */
9045 #ifdef __cplusplus
9046 extern "C"
9047 #endif
9048 char XauGetBestAuthByAddr ();
9050 main ()
9052 return XauGetBestAuthByAddr ();
9054 return 0;
9056 _ACEOF
9057 if ac_fn_c_try_link "$LINENO"; then :
9058 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9059 else
9060 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
9062 rm -f core conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
9064 LIBS=$ac_check_lib_save_LIBS
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
9067 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
9068 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
9069 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9070 else
9071 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9079 done
9082 CPPFLAGS="$ac_save_CPPFLAGS"
9083 else
9084 XLIB=""
9085 X_CFLAGS=""
9086 X_LIBS=""
9087 enable_winex11_drv=${enable_winex11_drv:-no}
9088 enable_opengl32=${enable_opengl32:-no}
9089 enable_glu32=${enable_glu32:-no}
9091 if test "x$XLIB" = "x"; then :
9092 case "x$with_x" in
9093 xno) ;;
9094 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9095 without X support, which probably isn't what you want. You will need
9096 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9097 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9098 esac
9101 if test "$ac_cv_header_CL_cl_h" = "yes"
9102 then
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9104 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9105 if test "${ac_cv_lib_OpenCL_clGetPlatformInfo+set}" = set; then :
9106 $as_echo_n "(cached) " >&6
9107 else
9108 ac_check_lib_save_LIBS=$LIBS
9109 LIBS="-lOpenCL $LIBS"
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9113 /* Override any GCC internal prototype to avoid an error.
9114 Use char because int might match the return type of a GCC
9115 builtin and then its argument prototype would still apply. */
9116 #ifdef __cplusplus
9117 extern "C"
9118 #endif
9119 char clGetPlatformInfo ();
9121 main ()
9123 return clGetPlatformInfo ();
9125 return 0;
9127 _ACEOF
9128 if ac_fn_c_try_link "$LINENO"; then :
9129 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9130 else
9131 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9133 rm -f core conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
9135 LIBS=$ac_check_lib_save_LIBS
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9138 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9139 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = x""yes; then :
9140 LIBOPENCL="-lOpenCL"
9145 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9146 case "x$with_opencl" in
9147 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9148 xno) ;;
9149 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9150 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9151 esac
9153 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9156 XML2LIBS=""
9158 XML2INCL=""
9160 XSLTINCL=""
9162 if test "x$with_xml" != "xno"
9163 then
9164 ac_save_CPPFLAGS="$CPPFLAGS"
9165 if test "$PKG_CONFIG" != "false"
9166 then
9167 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9168 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9169 else
9170 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9171 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9173 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9174 for ac_header in libxml/parser.h
9175 do :
9176 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9177 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
9178 cat >>confdefs.h <<_ACEOF
9179 #define HAVE_LIBXML_PARSER_H 1
9180 _ACEOF
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9182 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9183 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
9184 $as_echo_n "(cached) " >&6
9185 else
9186 ac_check_lib_save_LIBS=$LIBS
9187 LIBS="-lxml2 $ac_xml_libs $LIBS"
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9191 /* Override any GCC internal prototype to avoid an error.
9192 Use char because int might match the return type of a GCC
9193 builtin and then its argument prototype would still apply. */
9194 #ifdef __cplusplus
9195 extern "C"
9196 #endif
9197 char xmlParseMemory ();
9199 main ()
9201 return xmlParseMemory ();
9203 return 0;
9205 _ACEOF
9206 if ac_fn_c_try_link "$LINENO"; then :
9207 ac_cv_lib_xml2_xmlParseMemory=yes
9208 else
9209 ac_cv_lib_xml2_xmlParseMemory=no
9211 rm -f core conftest.err conftest.$ac_objext \
9212 conftest$ac_exeext conftest.$ac_ext
9213 LIBS=$ac_check_lib_save_LIBS
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9216 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9217 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
9219 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9221 XML2LIBS="$ac_xml_libs"
9222 XML2INCL="$ac_xml_cflags"
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9226 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9227 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 ac_check_lib_save_LIBS=$LIBS
9231 LIBS="-lxml2 $ac_xml_libs $LIBS"
9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9235 /* Override any GCC internal prototype to avoid an error.
9236 Use char because int might match the return type of a GCC
9237 builtin and then its argument prototype would still apply. */
9238 #ifdef __cplusplus
9239 extern "C"
9240 #endif
9241 char xmlReadMemory ();
9243 main ()
9245 return xmlReadMemory ();
9247 return 0;
9249 _ACEOF
9250 if ac_fn_c_try_link "$LINENO"; then :
9251 ac_cv_lib_xml2_xmlReadMemory=yes
9252 else
9253 ac_cv_lib_xml2_xmlReadMemory=no
9255 rm -f core conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
9257 LIBS=$ac_check_lib_save_LIBS
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9260 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9261 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9263 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9268 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9269 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9270 $as_echo_n "(cached) " >&6
9271 else
9272 ac_check_lib_save_LIBS=$LIBS
9273 LIBS="-lxml2 $ac_xml_libs $LIBS"
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9277 /* Override any GCC internal prototype to avoid an error.
9278 Use char because int might match the return type of a GCC
9279 builtin and then its argument prototype would still apply. */
9280 #ifdef __cplusplus
9281 extern "C"
9282 #endif
9283 char xmlNewDocPI ();
9285 main ()
9287 return xmlNewDocPI ();
9289 return 0;
9291 _ACEOF
9292 if ac_fn_c_try_link "$LINENO"; then :
9293 ac_cv_lib_xml2_xmlNewDocPI=yes
9294 else
9295 ac_cv_lib_xml2_xmlNewDocPI=no
9297 rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
9299 LIBS=$ac_check_lib_save_LIBS
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9302 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9303 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9305 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9310 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9311 if test "${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+set}" = set; then :
9312 $as_echo_n "(cached) " >&6
9313 else
9314 ac_check_lib_save_LIBS=$LIBS
9315 LIBS="-lxml2 $ac_xml_libs $LIBS"
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9319 /* Override any GCC internal prototype to avoid an error.
9320 Use char because int might match the return type of a GCC
9321 builtin and then its argument prototype would still apply. */
9322 #ifdef __cplusplus
9323 extern "C"
9324 #endif
9325 char xmlSchemaSetParserStructuredErrors ();
9327 main ()
9329 return xmlSchemaSetParserStructuredErrors ();
9331 return 0;
9333 _ACEOF
9334 if ac_fn_c_try_link "$LINENO"; then :
9335 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9336 else
9337 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9339 rm -f core conftest.err conftest.$ac_objext \
9340 conftest$ac_exeext conftest.$ac_ext
9341 LIBS=$ac_check_lib_save_LIBS
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9344 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9345 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = x""yes; then :
9347 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9352 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9353 if test "${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+set}" = set; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9356 ac_check_lib_save_LIBS=$LIBS
9357 LIBS="-lxml2 $ac_xml_libs $LIBS"
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9361 /* Override any GCC internal prototype to avoid an error.
9362 Use char because int might match the return type of a GCC
9363 builtin and then its argument prototype would still apply. */
9364 #ifdef __cplusplus
9365 extern "C"
9366 #endif
9367 char xmlSchemaSetValidStructuredErrors ();
9369 main ()
9371 return xmlSchemaSetValidStructuredErrors ();
9373 return 0;
9375 _ACEOF
9376 if ac_fn_c_try_link "$LINENO"; then :
9377 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9378 else
9379 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9381 rm -f core conftest.err conftest.$ac_objext \
9382 conftest$ac_exeext conftest.$ac_ext
9383 LIBS=$ac_check_lib_save_LIBS
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9386 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9387 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = x""yes; then :
9389 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9394 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9395 if test "${ac_cv_lib_xml2_xmlFirstElementChild+set}" = set; then :
9396 $as_echo_n "(cached) " >&6
9397 else
9398 ac_check_lib_save_LIBS=$LIBS
9399 LIBS="-lxml2 $ac_xml_libs $LIBS"
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9403 /* Override any GCC internal prototype to avoid an error.
9404 Use char because int might match the return type of a GCC
9405 builtin and then its argument prototype would still apply. */
9406 #ifdef __cplusplus
9407 extern "C"
9408 #endif
9409 char xmlFirstElementChild ();
9411 main ()
9413 return xmlFirstElementChild ();
9415 return 0;
9417 _ACEOF
9418 if ac_fn_c_try_link "$LINENO"; then :
9419 ac_cv_lib_xml2_xmlFirstElementChild=yes
9420 else
9421 ac_cv_lib_xml2_xmlFirstElementChild=no
9423 rm -f core conftest.err conftest.$ac_objext \
9424 conftest$ac_exeext conftest.$ac_ext
9425 LIBS=$ac_check_lib_save_LIBS
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9428 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9429 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = x""yes; then :
9431 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9435 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9437 if test "x$ac_cv_type_xmlDocProperties" = x""yes; then :
9439 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9446 done
9448 CPPFLAGS="$ac_save_CPPFLAGS"
9450 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9451 case "x$with_xml" in
9452 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
9453 xno) ;;
9454 *) as_fn_error $? "libxml2 ${notice_platform}development files not found, XML won't be supported.
9455 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9456 esac
9459 if test "x$with_xslt" != "xno"
9460 then
9461 if test "$PKG_CONFIG" != "false"
9462 then
9463 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9464 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9465 else
9466 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9467 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9469 ac_save_CPPFLAGS="$CPPFLAGS"
9470 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9471 for ac_header in libxslt/pattern.h libxslt/transform.h
9472 do :
9473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9474 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9475 # include <libxslt/pattern.h>
9476 #endif
9478 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9479 cat >>confdefs.h <<_ACEOF
9480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9481 _ACEOF
9485 done
9487 CPPFLAGS="$ac_save_CPPFLAGS"
9488 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9489 then
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9491 $as_echo_n "checking for -lxslt... " >&6; }
9492 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 ac_check_soname_save_LIBS=$LIBS
9496 LIBS="-lxslt $ac_xslt_libs $LIBS"
9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498 /* end confdefs.h. */
9500 /* Override any GCC internal prototype to avoid an error.
9501 Use char because int might match the return type of a GCC
9502 builtin and then its argument prototype would still apply. */
9503 #ifdef __cplusplus
9504 extern "C"
9505 #endif
9506 char xsltCompilePattern ();
9508 main ()
9510 return xsltCompilePattern ();
9512 return 0;
9514 _ACEOF
9515 if ac_fn_c_try_link "$LINENO"; then :
9516 case "$LIBEXT" in
9517 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9518 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'` ;;
9519 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9520 esac
9522 rm -f core conftest.err conftest.$ac_objext \
9523 conftest$ac_exeext conftest.$ac_ext
9524 LIBS=$ac_check_soname_save_LIBS
9526 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9528 $as_echo "not found" >&6; }
9530 else
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9532 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9534 cat >>confdefs.h <<_ACEOF
9535 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9536 _ACEOF
9538 XSLTINCL="$ac_xslt_cflags"
9542 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9543 case "x$with_xslt" in
9544 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9545 xno) ;;
9546 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9547 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9548 esac
9551 HALINCL=""
9553 if test "x$with_hal" != "xno"
9554 then
9555 ac_save_CPPFLAGS="$CPPFLAGS"
9556 if test "$PKG_CONFIG" != "false"
9557 then
9558 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9559 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9560 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9562 for ac_header in dbus/dbus.h hal/libhal.h
9563 do :
9564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9565 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9566 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9567 cat >>confdefs.h <<_ACEOF
9568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9569 _ACEOF
9573 done
9575 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9576 then
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9578 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9579 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9580 $as_echo_n "(cached) " >&6
9581 else
9582 ac_check_lib_save_LIBS=$LIBS
9583 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h. */
9587 /* Override any GCC internal prototype to avoid an error.
9588 Use char because int might match the return type of a GCC
9589 builtin and then its argument prototype would still apply. */
9590 #ifdef __cplusplus
9591 extern "C"
9592 #endif
9593 char dbus_connection_close ();
9595 main ()
9597 return dbus_connection_close ();
9599 return 0;
9601 _ACEOF
9602 if ac_fn_c_try_link "$LINENO"; then :
9603 ac_cv_lib_dbus_1_dbus_connection_close=yes
9604 else
9605 ac_cv_lib_dbus_1_dbus_connection_close=no
9607 rm -f core conftest.err conftest.$ac_objext \
9608 conftest$ac_exeext conftest.$ac_ext
9609 LIBS=$ac_check_lib_save_LIBS
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9612 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9613 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9615 $as_echo_n "checking for -lhal... " >&6; }
9616 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9617 $as_echo_n "(cached) " >&6
9618 else
9619 ac_check_soname_save_LIBS=$LIBS
9620 LIBS="-lhal $ac_hal_libs $LIBS"
9621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h. */
9624 /* Override any GCC internal prototype to avoid an error.
9625 Use char because int might match the return type of a GCC
9626 builtin and then its argument prototype would still apply. */
9627 #ifdef __cplusplus
9628 extern "C"
9629 #endif
9630 char libhal_ctx_new ();
9632 main ()
9634 return libhal_ctx_new ();
9636 return 0;
9638 _ACEOF
9639 if ac_fn_c_try_link "$LINENO"; then :
9640 case "$LIBEXT" in
9641 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9642 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'` ;;
9643 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9644 esac
9646 rm -f core conftest.err conftest.$ac_objext \
9647 conftest$ac_exeext conftest.$ac_ext
9648 LIBS=$ac_check_soname_save_LIBS
9650 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9652 $as_echo "not found" >&6; }
9654 else
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9656 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9658 cat >>confdefs.h <<_ACEOF
9659 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9660 _ACEOF
9662 HALINCL="$ac_hal_cflags"
9667 CPPFLAGS="$ac_save_CPPFLAGS"
9669 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9670 case "x$with_hal" in
9671 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9672 xno) ;;
9673 *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9674 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9675 esac
9678 if test "x$with_gnutls" != "xno"
9679 then
9680 ac_save_CPPFLAGS="$CPPFLAGS"
9681 if test "$PKG_CONFIG" != "false"
9682 then
9683 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9684 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9685 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9687 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9688 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690 /* end confdefs.h. */
9691 #include <gnutls/gnutls.h>
9693 main ()
9695 typeof(gnutls_mac_get_key_size) *pfunc;
9697 return 0;
9699 _ACEOF
9700 if ac_fn_c_try_compile "$LINENO"; then :
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9702 $as_echo_n "checking for -lgnutls... " >&6; }
9703 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9704 $as_echo_n "(cached) " >&6
9705 else
9706 ac_check_soname_save_LIBS=$LIBS
9707 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9711 /* Override any GCC internal prototype to avoid an error.
9712 Use char because int might match the return type of a GCC
9713 builtin and then its argument prototype would still apply. */
9714 #ifdef __cplusplus
9715 extern "C"
9716 #endif
9717 char gnutls_global_init ();
9719 main ()
9721 return gnutls_global_init ();
9723 return 0;
9725 _ACEOF
9726 if ac_fn_c_try_link "$LINENO"; then :
9727 case "$LIBEXT" in
9728 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9729 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'` ;;
9730 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9731 esac
9733 rm -f core conftest.err conftest.$ac_objext \
9734 conftest$ac_exeext conftest.$ac_ext
9735 LIBS=$ac_check_soname_save_LIBS
9737 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9739 $as_echo "not found" >&6; }
9741 else
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9743 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9745 cat >>confdefs.h <<_ACEOF
9746 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9747 _ACEOF
9749 GNUTLSINCL="$ac_gnutls_cflags"
9753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9757 CPPFLAGS="$ac_save_CPPFLAGS"
9759 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9760 case "x$with_gnutls" in
9761 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9762 xno) ;;
9763 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9764 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9765 esac
9768 CURSESLIBS=""
9769 if test "$ac_cv_header_ncurses_h" = "yes"
9770 then
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9772 $as_echo_n "checking for -lncurses... " >&6; }
9773 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9774 $as_echo_n "(cached) " >&6
9775 else
9776 ac_check_soname_save_LIBS=$LIBS
9777 LIBS="-lncurses $LIBS"
9778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779 /* end confdefs.h. */
9781 /* Override any GCC internal prototype to avoid an error.
9782 Use char because int might match the return type of a GCC
9783 builtin and then its argument prototype would still apply. */
9784 #ifdef __cplusplus
9785 extern "C"
9786 #endif
9787 char waddch ();
9789 main ()
9791 return waddch ();
9793 return 0;
9795 _ACEOF
9796 if ac_fn_c_try_link "$LINENO"; then :
9797 case "$LIBEXT" in
9798 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9799 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'` ;;
9800 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9801 esac
9803 rm -f core conftest.err conftest.$ac_objext \
9804 conftest$ac_exeext conftest.$ac_ext
9805 LIBS=$ac_check_soname_save_LIBS
9807 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9809 $as_echo "not found" >&6; }
9811 else
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9813 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9815 cat >>confdefs.h <<_ACEOF
9816 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9817 _ACEOF
9819 CURSESLIBS="-lncurses"
9821 elif test "$ac_cv_header_curses_h" = "yes"
9822 then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9824 $as_echo_n "checking for -lcurses... " >&6; }
9825 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9826 $as_echo_n "(cached) " >&6
9827 else
9828 ac_check_soname_save_LIBS=$LIBS
9829 LIBS="-lcurses $LIBS"
9830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831 /* end confdefs.h. */
9833 /* Override any GCC internal prototype to avoid an error.
9834 Use char because int might match the return type of a GCC
9835 builtin and then its argument prototype would still apply. */
9836 #ifdef __cplusplus
9837 extern "C"
9838 #endif
9839 char waddch ();
9841 main ()
9843 return waddch ();
9845 return 0;
9847 _ACEOF
9848 if ac_fn_c_try_link "$LINENO"; then :
9849 case "$LIBEXT" in
9850 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9851 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'` ;;
9852 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9853 esac
9855 rm -f core conftest.err conftest.$ac_objext \
9856 conftest$ac_exeext conftest.$ac_ext
9857 LIBS=$ac_check_soname_save_LIBS
9859 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9861 $as_echo "not found" >&6; }
9863 else
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9865 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9867 cat >>confdefs.h <<_ACEOF
9868 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9869 _ACEOF
9871 CURSESLIBS="-lcurses"
9874 ac_save_LIBS="$LIBS"
9875 LIBS="$LIBS $CURSESLIBS"
9876 for ac_func in mousemask
9877 do :
9878 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9879 if test "x$ac_cv_func_mousemask" = x""yes; then :
9880 cat >>confdefs.h <<_ACEOF
9881 #define HAVE_MOUSEMASK 1
9882 _ACEOF
9885 done
9887 LIBS="$ac_save_LIBS"
9888 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9889 case "x$with_curses" in
9890 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9891 xno) ;;
9892 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9893 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9894 esac
9897 if test "x$with_sane" != "xno"
9898 then
9899 ac_save_CPPFLAGS="$CPPFLAGS"
9900 # Extract the first word of "sane-config", so it can be a program name with args.
9901 set dummy sane-config; ac_word=$2
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9903 $as_echo_n "checking for $ac_word... " >&6; }
9904 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 if test -n "$sane_devel"; then
9908 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9909 else
9910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9911 for as_dir in $PATH
9913 IFS=$as_save_IFS
9914 test -z "$as_dir" && as_dir=.
9915 for ac_exec_ext in '' $ac_executable_extensions; do
9916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9917 ac_cv_prog_sane_devel="sane-config"
9918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9919 break 2
9921 done
9922 done
9923 IFS=$as_save_IFS
9925 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9928 sane_devel=$ac_cv_prog_sane_devel
9929 if test -n "$sane_devel"; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9931 $as_echo "$sane_devel" >&6; }
9932 else
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934 $as_echo "no" >&6; }
9938 if test "$sane_devel" != "no"
9939 then
9940 ac_sane_incl="`$sane_devel --cflags`"
9941 ac_sane_libs="`$sane_devel --ldflags`"
9942 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9944 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9945 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9947 $as_echo_n "checking for -lsane... " >&6; }
9948 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9949 $as_echo_n "(cached) " >&6
9950 else
9951 ac_check_soname_save_LIBS=$LIBS
9952 LIBS="-lsane $ac_sane_libs $LIBS"
9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h. */
9956 /* Override any GCC internal prototype to avoid an error.
9957 Use char because int might match the return type of a GCC
9958 builtin and then its argument prototype would still apply. */
9959 #ifdef __cplusplus
9960 extern "C"
9961 #endif
9962 char sane_init ();
9964 main ()
9966 return sane_init ();
9968 return 0;
9970 _ACEOF
9971 if ac_fn_c_try_link "$LINENO"; then :
9972 case "$LIBEXT" in
9973 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9974 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'` ;;
9975 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9976 esac
9978 rm -f core conftest.err conftest.$ac_objext \
9979 conftest$ac_exeext conftest.$ac_ext
9980 LIBS=$ac_check_soname_save_LIBS
9982 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9984 $as_echo "not found" >&6; }
9986 else
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9988 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9990 cat >>confdefs.h <<_ACEOF
9991 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9992 _ACEOF
9994 SANEINCL="$ac_sane_incl"
10000 CPPFLAGS="$ac_save_CPPFLAGS"
10002 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10003 case "x$with_sane" in
10004 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10005 xno) ;;
10006 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10007 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10008 esac
10011 if test "x$with_v4l" != "xno"
10012 then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10014 $as_echo_n "checking for -lv4l1... " >&6; }
10015 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
10016 $as_echo_n "(cached) " >&6
10017 else
10018 ac_check_soname_save_LIBS=$LIBS
10019 LIBS="-lv4l1 $LIBS"
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h. */
10023 /* Override any GCC internal prototype to avoid an error.
10024 Use char because int might match the return type of a GCC
10025 builtin and then its argument prototype would still apply. */
10026 #ifdef __cplusplus
10027 extern "C"
10028 #endif
10029 char v4l1_open ();
10031 main ()
10033 return v4l1_open ();
10035 return 0;
10037 _ACEOF
10038 if ac_fn_c_try_link "$LINENO"; then :
10039 case "$LIBEXT" in
10040 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10041 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'` ;;
10042 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10043 esac
10045 rm -f core conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10047 LIBS=$ac_check_soname_save_LIBS
10049 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10051 $as_echo "not found" >&6; }
10053 else
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10055 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10057 cat >>confdefs.h <<_ACEOF
10058 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10059 _ACEOF
10064 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10065 case "x$with_v4l" in
10066 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10067 xno) ;;
10068 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10069 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10070 esac
10073 if test "x$with_gphoto" != "xno"
10074 then
10075 ac_save_CPPFLAGS="$CPPFLAGS"
10076 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10077 set dummy gphoto2-config; ac_word=$2
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079 $as_echo_n "checking for $ac_word... " >&6; }
10080 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
10081 $as_echo_n "(cached) " >&6
10082 else
10083 if test -n "$gphoto2_devel"; then
10084 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10085 else
10086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087 for as_dir in $PATH
10089 IFS=$as_save_IFS
10090 test -z "$as_dir" && as_dir=.
10091 for ac_exec_ext in '' $ac_executable_extensions; do
10092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10093 ac_cv_prog_gphoto2_devel="gphoto2-config"
10094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10095 break 2
10097 done
10098 done
10099 IFS=$as_save_IFS
10101 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10104 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10105 if test -n "$gphoto2_devel"; then
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10107 $as_echo "$gphoto2_devel" >&6; }
10108 else
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10110 $as_echo "no" >&6; }
10114 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10115 set dummy gphoto2-port-config; ac_word=$2
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10117 $as_echo_n "checking for $ac_word... " >&6; }
10118 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
10119 $as_echo_n "(cached) " >&6
10120 else
10121 if test -n "$gphoto2port_devel"; then
10122 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10123 else
10124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10125 for as_dir in $PATH
10127 IFS=$as_save_IFS
10128 test -z "$as_dir" && as_dir=.
10129 for ac_exec_ext in '' $ac_executable_extensions; do
10130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10131 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10133 break 2
10135 done
10136 done
10137 IFS=$as_save_IFS
10139 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10142 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10143 if test -n "$gphoto2port_devel"; then
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10145 $as_echo "$gphoto2port_devel" >&6; }
10146 else
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10148 $as_echo "no" >&6; }
10152 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10153 then
10154 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10155 ac_gphoto2_libs=""
10156 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10158 case "$i" in
10159 -L/usr/lib|-L/usr/lib64) ;;
10160 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10161 esac
10162 done
10163 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10165 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10166 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10167 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10169 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10170 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
10171 $as_echo_n "(cached) " >&6
10172 else
10173 ac_check_lib_save_LIBS=$LIBS
10174 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h. */
10178 /* Override any GCC internal prototype to avoid an error.
10179 Use char because int might match the return type of a GCC
10180 builtin and then its argument prototype would still apply. */
10181 #ifdef __cplusplus
10182 extern "C"
10183 #endif
10184 char gp_camera_new ();
10186 main ()
10188 return gp_camera_new ();
10190 return 0;
10192 _ACEOF
10193 if ac_fn_c_try_link "$LINENO"; then :
10194 ac_cv_lib_gphoto2_gp_camera_new=yes
10195 else
10196 ac_cv_lib_gphoto2_gp_camera_new=no
10198 rm -f core conftest.err conftest.$ac_objext \
10199 conftest$ac_exeext conftest.$ac_ext
10200 LIBS=$ac_check_lib_save_LIBS
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10203 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10204 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
10206 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10208 GPHOTO2LIBS="$ac_gphoto2_libs"
10210 GPHOTO2INCL="$ac_gphoto2_incl"
10217 CPPFLAGS="$ac_save_CPPFLAGS"
10219 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10220 case "x$with_gphoto" in
10221 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10222 xno) ;;
10223 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10224 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10225 esac
10229 if test "$ac_cv_header_resolv_h" = "yes"
10230 then
10231 ac_save_LIBS="$LIBS"
10232 for lib in '' -lresolv
10234 LIBS="$lib $ac_save_LIBS"
10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236 /* end confdefs.h. */
10237 #ifdef HAVE_NETINET_IN_H
10238 #include <netinet/in.h>
10239 #endif
10240 #include <resolv.h>
10242 main ()
10244 res_query("foo",ns_c_in,0,0,0);
10246 return 0;
10248 _ACEOF
10249 if ac_fn_c_try_link "$LINENO"; then :
10251 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10253 RESOLVLIBS="$lib"
10256 rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10258 if test "${RESOLVLIBS+set}" = set; then
10259 break
10261 done
10262 LIBS="$ac_save_LIBS"
10265 LCMSLIBS=""
10267 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10268 then
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10270 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10271 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
10272 $as_echo_n "(cached) " >&6
10273 else
10274 ac_check_lib_save_LIBS=$LIBS
10275 LIBS="-llcms $LIBS"
10276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10277 /* end confdefs.h. */
10279 /* Override any GCC internal prototype to avoid an error.
10280 Use char because int might match the return type of a GCC
10281 builtin and then its argument prototype would still apply. */
10282 #ifdef __cplusplus
10283 extern "C"
10284 #endif
10285 char cmsOpenProfileFromFile ();
10287 main ()
10289 return cmsOpenProfileFromFile ();
10291 return 0;
10293 _ACEOF
10294 if ac_fn_c_try_link "$LINENO"; then :
10295 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10296 else
10297 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10299 rm -f core conftest.err conftest.$ac_objext \
10300 conftest$ac_exeext conftest.$ac_ext
10301 LIBS=$ac_check_lib_save_LIBS
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10304 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10305 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
10307 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10309 LCMSLIBS="-llcms"
10313 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10314 case "x$with_cms" in
10315 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10316 xno) ;;
10317 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10318 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10319 esac
10322 if test "x$with_freetype" != "xno"
10323 then
10324 for ac_prog in freetype-config freetype2-config
10326 # Extract the first word of "$ac_prog", so it can be a program name with args.
10327 set dummy $ac_prog; ac_word=$2
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10329 $as_echo_n "checking for $ac_word... " >&6; }
10330 if test "${ac_cv_prog_ft_devel+set}" = set; then :
10331 $as_echo_n "(cached) " >&6
10332 else
10333 if test -n "$ft_devel"; then
10334 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10335 else
10336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337 for as_dir in $PATH
10339 IFS=$as_save_IFS
10340 test -z "$as_dir" && as_dir=.
10341 for ac_exec_ext in '' $ac_executable_extensions; do
10342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10343 ac_cv_prog_ft_devel="$ac_prog"
10344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10345 break 2
10347 done
10348 done
10349 IFS=$as_save_IFS
10353 ft_devel=$ac_cv_prog_ft_devel
10354 if test -n "$ft_devel"; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10356 $as_echo "$ft_devel" >&6; }
10357 else
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359 $as_echo "no" >&6; }
10363 test -n "$ft_devel" && break
10364 done
10365 test -n "$ft_devel" || ft_devel="no"
10367 if test "$ft_devel" != "no"
10368 then
10369 ac_freetype_incl=`$ft_devel --cflags`
10370 ac_freetype_libs=`$ft_devel --libs`
10372 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10374 $as_echo_n "checking for -lfreetype... " >&6; }
10375 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10376 $as_echo_n "(cached) " >&6
10377 else
10378 ac_check_soname_save_LIBS=$LIBS
10379 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10383 /* Override any GCC internal prototype to avoid an error.
10384 Use char because int might match the return type of a GCC
10385 builtin and then its argument prototype would still apply. */
10386 #ifdef __cplusplus
10387 extern "C"
10388 #endif
10389 char FT_Init_FreeType ();
10391 main ()
10393 return FT_Init_FreeType ();
10395 return 0;
10397 _ACEOF
10398 if ac_fn_c_try_link "$LINENO"; then :
10399 case "$LIBEXT" in
10400 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10401 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'` ;;
10402 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10403 esac
10405 rm -f core conftest.err conftest.$ac_objext \
10406 conftest$ac_exeext conftest.$ac_ext
10407 LIBS=$ac_check_soname_save_LIBS
10409 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10411 $as_echo "not found" >&6; }
10412 ft_lib=no
10413 else
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10415 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10417 cat >>confdefs.h <<_ACEOF
10418 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10419 _ACEOF
10421 ft_lib=yes
10423 if test "$ft_lib" = "yes"
10424 then
10425 ac_save_CPPFLAGS="$CPPFLAGS"
10426 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10427 for ac_header in ft2build.h \
10428 freetype/freetype.h \
10429 freetype/ftglyph.h \
10430 freetype/fttypes.h \
10431 freetype/tttables.h \
10432 freetype/ftsnames.h \
10433 freetype/ttnameid.h \
10434 freetype/ftoutln.h \
10435 freetype/ftwinfnt.h \
10436 freetype/ftmodapi.h \
10437 freetype/ftlcdfil.h \
10438 freetype/internal/sfnt.h
10439 do :
10440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10441 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10442 # include <ft2build.h>
10443 #endif
10445 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10446 cat >>confdefs.h <<_ACEOF
10447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10448 _ACEOF
10452 done
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10456 #include <ft2build.h>
10457 #include <freetype/fttrigon.h>
10458 _ACEOF
10459 if ac_fn_c_try_cpp "$LINENO"; then :
10461 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10463 wine_cv_fttrigon=yes
10464 else
10465 wine_cv_fttrigon=no
10467 rm -f conftest.err conftest.i conftest.$ac_ext
10468 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10470 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10472 cat >>confdefs.h <<_ACEOF
10473 #define HAVE_FT_TRUETYPEENGINETYPE 1
10474 _ACEOF
10479 ac_save_CFLAGS="$CFLAGS"
10480 CFLAGS="$CFLAGS $ac_freetype_libs"
10481 for ac_func in FT_Load_Sfnt_Table
10482 do :
10483 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10484 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10485 cat >>confdefs.h <<_ACEOF
10486 #define HAVE_FT_LOAD_SFNT_TABLE 1
10487 _ACEOF
10490 done
10492 CFLAGS="$ac_save_CFLAGS"
10493 CPPFLAGS="$ac_save_CPPFLAGS"
10494 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10495 then
10497 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10499 FREETYPELIBS="$ac_freetype_libs"
10501 FREETYPEINCL="$ac_freetype_incl"
10506 if test "x$FREETYPELIBS" = "x"; then :
10507 case "x$with_freetype" in
10508 xno) ;;
10509 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10510 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10511 esac
10513 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10516 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10517 if test "${ac_cv_c_ppdev+set}" = set; then :
10518 $as_echo_n "(cached) " >&6
10519 else
10520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10521 /* end confdefs.h. */
10522 #ifdef HAVE_SYS_IOCTL_H
10523 # include <sys/ioctl.h>
10524 #endif
10525 #include <linux/ppdev.h>
10527 main ()
10529 ioctl (1,PPCLAIM,0)
10531 return 0;
10533 _ACEOF
10534 if ac_fn_c_try_compile "$LINENO"; then :
10535 ac_cv_c_ppdev="yes"
10536 else
10537 ac_cv_c_ppdev="no"
10539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10542 $as_echo "$ac_cv_c_ppdev" >&6; }
10543 if test "$ac_cv_c_ppdev" = "yes"
10544 then
10546 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10550 ac_wine_check_funcs_save_LIBS="$LIBS"
10551 LIBS="$LIBS $LIBPTHREAD"
10552 for ac_func in \
10553 pthread_attr_get_np \
10554 pthread_getattr_np \
10555 pthread_get_stackaddr_np \
10556 pthread_get_stacksize_np
10557 do :
10558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10559 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10560 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10561 cat >>confdefs.h <<_ACEOF
10562 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10563 _ACEOF
10566 done
10568 LIBS="$ac_wine_check_funcs_save_LIBS"
10570 if test "$ac_cv_header_zlib_h" = "yes"
10571 then
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10573 $as_echo_n "checking for inflate in -lz... " >&6; }
10574 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10575 $as_echo_n "(cached) " >&6
10576 else
10577 ac_check_lib_save_LIBS=$LIBS
10578 LIBS="-lz $LIBS"
10579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h. */
10582 /* Override any GCC internal prototype to avoid an error.
10583 Use char because int might match the return type of a GCC
10584 builtin and then its argument prototype would still apply. */
10585 #ifdef __cplusplus
10586 extern "C"
10587 #endif
10588 char inflate ();
10590 main ()
10592 return inflate ();
10594 return 0;
10596 _ACEOF
10597 if ac_fn_c_try_link "$LINENO"; then :
10598 ac_cv_lib_z_inflate=yes
10599 else
10600 ac_cv_lib_z_inflate=no
10602 rm -f core conftest.err conftest.$ac_objext \
10603 conftest$ac_exeext conftest.$ac_ext
10604 LIBS=$ac_check_lib_save_LIBS
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10607 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10608 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10610 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10612 ZLIB="-lz"
10618 if test "x$enable_tools" != xno
10619 then
10620 if test "$ac_cv_header_gettext_po_h" = "yes"
10621 then
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10623 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10624 if test "${ac_cv_lib_gettextpo_po_message_msgctxt+set}" = set; then :
10625 $as_echo_n "(cached) " >&6
10626 else
10627 ac_check_lib_save_LIBS=$LIBS
10628 LIBS="-lgettextpo $LIBS"
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10632 /* Override any GCC internal prototype to avoid an error.
10633 Use char because int might match the return type of a GCC
10634 builtin and then its argument prototype would still apply. */
10635 #ifdef __cplusplus
10636 extern "C"
10637 #endif
10638 char po_message_msgctxt ();
10640 main ()
10642 return po_message_msgctxt ();
10644 return 0;
10646 _ACEOF
10647 if ac_fn_c_try_link "$LINENO"; then :
10648 ac_cv_lib_gettextpo_po_message_msgctxt=yes
10649 else
10650 ac_cv_lib_gettextpo_po_message_msgctxt=no
10652 rm -f core conftest.err conftest.$ac_objext \
10653 conftest$ac_exeext conftest.$ac_ext
10654 LIBS=$ac_check_lib_save_LIBS
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10657 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10658 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = x""yes; then :
10660 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10662 LIBGETTEXTPO="-lgettextpo"
10667 if test "x$LIBGETTEXTPO" = "x"; then :
10668 case "x$with_gettextpo" in
10669 x) as_fn_append wine_warnings "|GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported." ;;
10670 xno) ;;
10671 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported.
10672 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10673 esac
10677 if test "x$with_esd" != xno
10678 then
10679 save_CFLAGS="$CFLAGS"
10680 # Extract the first word of "esd-config", so it can be a program name with args.
10681 set dummy esd-config; ac_word=$2
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10683 $as_echo_n "checking for $ac_word... " >&6; }
10684 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10685 $as_echo_n "(cached) " >&6
10686 else
10687 case $ESDCONFIG in
10688 [\\/]* | ?:[\\/]*)
10689 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693 for as_dir in $PATH
10695 IFS=$as_save_IFS
10696 test -z "$as_dir" && as_dir=.
10697 for ac_exec_ext in '' $ac_executable_extensions; do
10698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10699 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10701 break 2
10703 done
10704 done
10705 IFS=$as_save_IFS
10707 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10709 esac
10711 ESDCONFIG=$ac_cv_path_ESDCONFIG
10712 if test -n "$ESDCONFIG"; then
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10714 $as_echo "$ESDCONFIG" >&6; }
10715 else
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10717 $as_echo "no" >&6; }
10721 if test "x$ESDCONFIG" != "xno"
10722 then
10723 ac_esd_incl=""
10724 for i in `$ESDCONFIG --cflags`
10726 case "$i" in
10727 -I*) ac_esd_incl="$ac_esd_incl $i";;
10728 esac
10729 done
10730 ac_esd_libs=`$ESDCONFIG --libs`
10731 CFLAGS="$CFLAGS $ac_esd_incl"
10733 ac_esd_libs=${ac_esd_libs:-"-lesd"}
10734 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10735 if test "x$ac_cv_header_esd_h" = x""yes; then :
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10737 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10738 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 ac_check_lib_save_LIBS=$LIBS
10742 LIBS="-lesd $ac_esd_libs $LIBS"
10743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10746 /* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
10749 #ifdef __cplusplus
10750 extern "C"
10751 #endif
10752 char esd_open_sound ();
10754 main ()
10756 return esd_open_sound ();
10758 return 0;
10760 _ACEOF
10761 if ac_fn_c_try_link "$LINENO"; then :
10762 ac_cv_lib_esd_esd_open_sound=yes
10763 else
10764 ac_cv_lib_esd_esd_open_sound=no
10766 rm -f core conftest.err conftest.$ac_objext \
10767 conftest$ac_exeext conftest.$ac_ext
10768 LIBS=$ac_check_lib_save_LIBS
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10771 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10772 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10773 ESDINCL="$ac_esd_incl"
10775 ESDLIBS="$ac_esd_libs"
10778 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10785 CFLAGS="$save_CFLAGS"
10788 if test "x$with_gstreamer" != "xno"
10789 then
10790 ac_save_CPPFLAGS="$CPPFLAGS"
10791 if test "$PKG_CONFIG" != "false"; then
10792 ac_gst_incl=""
10793 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10795 case "$i" in
10796 -I*) ac_gst_incl="$ac_gst_incl $i";;
10797 esac
10798 done
10799 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10800 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10801 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10802 if test "x$ac_cv_header_gst_gstpad_h" = x""yes; then :
10803 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10804 if test "x$ac_cv_header_gst_app_gstappsink_h" = x""yes; then :
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10806 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10807 if test "${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+set}" = set; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 ac_check_lib_save_LIBS=$LIBS
10811 LIBS="-lgstreamer-0.10 $LIBS"
10812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h. */
10815 /* Override any GCC internal prototype to avoid an error.
10816 Use char because int might match the return type of a GCC
10817 builtin and then its argument prototype would still apply. */
10818 #ifdef __cplusplus
10819 extern "C"
10820 #endif
10821 char gst_pad_get_caps_reffed ();
10823 main ()
10825 return gst_pad_get_caps_reffed ();
10827 return 0;
10829 _ACEOF
10830 if ac_fn_c_try_link "$LINENO"; then :
10831 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10832 else
10833 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10835 rm -f core conftest.err conftest.$ac_objext \
10836 conftest$ac_exeext conftest.$ac_ext
10837 LIBS=$ac_check_lib_save_LIBS
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10840 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10841 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = x""yes; then :
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10843 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10844 if test "${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+set}" = set; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847 ac_check_lib_save_LIBS=$LIBS
10848 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10852 /* Override any GCC internal prototype to avoid an error.
10853 Use char because int might match the return type of a GCC
10854 builtin and then its argument prototype would still apply. */
10855 #ifdef __cplusplus
10856 extern "C"
10857 #endif
10858 char gst_app_buffer_new ();
10860 main ()
10862 return gst_app_buffer_new ();
10864 return 0;
10866 _ACEOF
10867 if ac_fn_c_try_link "$LINENO"; then :
10868 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10869 else
10870 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10872 rm -f core conftest.err conftest.$ac_objext \
10873 conftest$ac_exeext conftest.$ac_ext
10874 LIBS=$ac_check_lib_save_LIBS
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10877 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10878 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = x""yes; then :
10879 GSTREAMER_LIBS="$ac_gst_libs"
10881 GSTREAMER_INCL="$ac_gst_incl"
10894 CPPFLAGS="$ac_save_CPPFLAGS"
10896 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10897 case "x$with_gstreamer" in
10898 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10899 xno) ;;
10900 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10901 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10902 esac
10904 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10906 ALSALIBS=""
10908 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10909 then
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10911 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10912 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+set}" = set; then :
10913 $as_echo_n "(cached) " >&6
10914 else
10915 ac_check_lib_save_LIBS=$LIBS
10916 LIBS="-lasound $LIBS"
10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h. */
10920 /* Override any GCC internal prototype to avoid an error.
10921 Use char because int might match the return type of a GCC
10922 builtin and then its argument prototype would still apply. */
10923 #ifdef __cplusplus
10924 extern "C"
10925 #endif
10926 char snd_pcm_hw_params_get_access_mask ();
10928 main ()
10930 return snd_pcm_hw_params_get_access_mask ();
10932 return 0;
10934 _ACEOF
10935 if ac_fn_c_try_link "$LINENO"; then :
10936 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10937 else
10938 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10940 rm -f core conftest.err conftest.$ac_objext \
10941 conftest$ac_exeext conftest.$ac_ext
10942 LIBS=$ac_check_lib_save_LIBS
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10945 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10946 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = x""yes; then :
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10949 #ifdef HAVE_ALSA_ASOUNDLIB_H
10950 #include <alsa/asoundlib.h>
10951 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10952 #include <sys/asoundlib.h>
10953 #endif
10955 main ()
10957 int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL)
10959 return 0;
10961 _ACEOF
10962 if ac_fn_c_try_compile "$LINENO"; then :
10964 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10966 ALSALIBS="-lasound"
10968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10974 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10975 then
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10977 $as_echo_n "checking for -lcapi20... " >&6; }
10978 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
10979 $as_echo_n "(cached) " >&6
10980 else
10981 ac_check_soname_save_LIBS=$LIBS
10982 LIBS="-lcapi20 $LIBS"
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h. */
10986 /* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
10989 #ifdef __cplusplus
10990 extern "C"
10991 #endif
10992 char capi20_register ();
10994 main ()
10996 return capi20_register ();
10998 return 0;
11000 _ACEOF
11001 if ac_fn_c_try_link "$LINENO"; then :
11002 case "$LIBEXT" in
11003 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11004 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'` ;;
11005 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11006 esac
11008 rm -f core conftest.err conftest.$ac_objext \
11009 conftest$ac_exeext conftest.$ac_ext
11010 LIBS=$ac_check_soname_save_LIBS
11012 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11014 $as_echo "not found" >&6; }
11016 else
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11018 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11020 cat >>confdefs.h <<_ACEOF
11021 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11022 _ACEOF
11027 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11028 case "x$with_capi" in
11029 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11030 xno) ;;
11031 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11032 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11033 esac
11036 CUPSINCL=""
11038 if test "x$with_cups" != "xno"
11039 then
11040 ac_save_CPPFLAGS="$CPPFLAGS"
11041 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11042 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11043 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11044 for ac_header in cups/cups.h
11045 do :
11046 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11047 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
11048 cat >>confdefs.h <<_ACEOF
11049 #define HAVE_CUPS_CUPS_H 1
11050 _ACEOF
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11052 $as_echo_n "checking for -lcups... " >&6; }
11053 if test "${ac_cv_lib_soname_cups+set}" = set; then :
11054 $as_echo_n "(cached) " >&6
11055 else
11056 ac_check_soname_save_LIBS=$LIBS
11057 LIBS="-lcups $ac_cups_libs $LIBS"
11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11061 /* Override any GCC internal prototype to avoid an error.
11062 Use char because int might match the return type of a GCC
11063 builtin and then its argument prototype would still apply. */
11064 #ifdef __cplusplus
11065 extern "C"
11066 #endif
11067 char cupsGetDefault ();
11069 main ()
11071 return cupsGetDefault ();
11073 return 0;
11075 _ACEOF
11076 if ac_fn_c_try_link "$LINENO"; then :
11077 case "$LIBEXT" in
11078 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11079 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'` ;;
11080 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11081 esac
11083 rm -f core conftest.err conftest.$ac_objext \
11084 conftest$ac_exeext conftest.$ac_ext
11085 LIBS=$ac_check_soname_save_LIBS
11087 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11089 $as_echo "not found" >&6; }
11091 else
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11093 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11095 cat >>confdefs.h <<_ACEOF
11096 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11097 _ACEOF
11099 CUPSINCL="$ac_cups_cflags"
11103 done
11105 CPPFLAGS="$ac_save_CPPFLAGS"
11107 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11108 case "x$with_cups" in
11109 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11110 xno) ;;
11111 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11112 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11113 esac
11116 if test "$ac_cv_header_jack_jack_h" = "yes"
11117 then
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
11119 $as_echo_n "checking for -ljack... " >&6; }
11120 if test "${ac_cv_lib_soname_jack+set}" = set; then :
11121 $as_echo_n "(cached) " >&6
11122 else
11123 ac_check_soname_save_LIBS=$LIBS
11124 LIBS="-ljack $LIBS"
11125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11126 /* end confdefs.h. */
11128 /* Override any GCC internal prototype to avoid an error.
11129 Use char because int might match the return type of a GCC
11130 builtin and then its argument prototype would still apply. */
11131 #ifdef __cplusplus
11132 extern "C"
11133 #endif
11134 char jack_client_new ();
11136 main ()
11138 return jack_client_new ();
11140 return 0;
11142 _ACEOF
11143 if ac_fn_c_try_link "$LINENO"; then :
11144 case "$LIBEXT" in
11145 dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11146 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'` ;;
11147 *) 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'` ;;
11148 esac
11150 rm -f core conftest.err conftest.$ac_objext \
11151 conftest$ac_exeext conftest.$ac_ext
11152 LIBS=$ac_check_soname_save_LIBS
11154 if test "x$ac_cv_lib_soname_jack" = "x"; then :
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11156 $as_echo "not found" >&6; }
11158 else
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
11160 $as_echo "$ac_cv_lib_soname_jack" >&6; }
11162 cat >>confdefs.h <<_ACEOF
11163 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
11164 _ACEOF
11170 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11171 then
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11173 $as_echo_n "checking for -lfontconfig... " >&6; }
11174 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
11175 $as_echo_n "(cached) " >&6
11176 else
11177 ac_check_soname_save_LIBS=$LIBS
11178 LIBS="-lfontconfig $LIBS"
11179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180 /* end confdefs.h. */
11182 /* Override any GCC internal prototype to avoid an error.
11183 Use char because int might match the return type of a GCC
11184 builtin and then its argument prototype would still apply. */
11185 #ifdef __cplusplus
11186 extern "C"
11187 #endif
11188 char FcInit ();
11190 main ()
11192 return FcInit ();
11194 return 0;
11196 _ACEOF
11197 if ac_fn_c_try_link "$LINENO"; then :
11198 case "$LIBEXT" in
11199 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11200 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'` ;;
11201 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11202 esac
11204 rm -f core conftest.err conftest.$ac_objext \
11205 conftest$ac_exeext conftest.$ac_ext
11206 LIBS=$ac_check_soname_save_LIBS
11208 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11210 $as_echo "not found" >&6; }
11212 else
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11214 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11216 cat >>confdefs.h <<_ACEOF
11217 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11218 _ACEOF
11222 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11223 then
11224 ac_save_CPPFLAGS="$CPPFLAGS"
11225 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11226 $as_unset ac_cv_header_fontconfig_fontconfig_h
11227 for ac_header in fontconfig/fontconfig.h
11228 do :
11229 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11230 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
11231 cat >>confdefs.h <<_ACEOF
11232 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11233 _ACEOF
11237 done
11239 CPPFLAGS="$ac_save_CPPFLAGS"
11240 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11241 then
11242 FONTCONFIGINCL="$X_CFLAGS"
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11245 $as_echo_n "checking for -lfontconfig... " >&6; }
11246 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249 ac_check_soname_save_LIBS=$LIBS
11250 LIBS="-lfontconfig $X_LIBS $LIBS"
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h. */
11254 /* Override any GCC internal prototype to avoid an error.
11255 Use char because int might match the return type of a GCC
11256 builtin and then its argument prototype would still apply. */
11257 #ifdef __cplusplus
11258 extern "C"
11259 #endif
11260 char FcInit ();
11262 main ()
11264 return FcInit ();
11266 return 0;
11268 _ACEOF
11269 if ac_fn_c_try_link "$LINENO"; then :
11270 case "$LIBEXT" in
11271 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11272 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'` ;;
11273 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11274 esac
11276 rm -f core conftest.err conftest.$ac_objext \
11277 conftest$ac_exeext conftest.$ac_ext
11278 LIBS=$ac_check_soname_save_LIBS
11280 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11282 $as_echo "not found" >&6; }
11284 else
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11286 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11288 cat >>confdefs.h <<_ACEOF
11289 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11290 _ACEOF
11296 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11297 case "x$with_fontconfig" in
11298 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11299 xno) ;;
11300 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11301 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11302 esac
11305 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11306 then
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11308 $as_echo_n "checking for -lssl... " >&6; }
11309 if test "${ac_cv_lib_soname_ssl+set}" = set; then :
11310 $as_echo_n "(cached) " >&6
11311 else
11312 ac_check_soname_save_LIBS=$LIBS
11313 LIBS="-lssl $LIBS"
11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11317 /* Override any GCC internal prototype to avoid an error.
11318 Use char because int might match the return type of a GCC
11319 builtin and then its argument prototype would still apply. */
11320 #ifdef __cplusplus
11321 extern "C"
11322 #endif
11323 char SSL_library_init ();
11325 main ()
11327 return SSL_library_init ();
11329 return 0;
11331 _ACEOF
11332 if ac_fn_c_try_link "$LINENO"; then :
11333 case "$LIBEXT" in
11334 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11335 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'` ;;
11336 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11337 esac
11339 rm -f core conftest.err conftest.$ac_objext \
11340 conftest$ac_exeext conftest.$ac_ext
11341 LIBS=$ac_check_soname_save_LIBS
11343 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11345 $as_echo "not found" >&6; }
11347 else
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11349 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11351 cat >>confdefs.h <<_ACEOF
11352 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11353 _ACEOF
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11358 $as_echo_n "checking for -lcrypto... " >&6; }
11359 if test "${ac_cv_lib_soname_crypto+set}" = set; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11362 ac_check_soname_save_LIBS=$LIBS
11363 LIBS="-lcrypto $LIBS"
11364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h. */
11367 /* Override any GCC internal prototype to avoid an error.
11368 Use char because int might match the return type of a GCC
11369 builtin and then its argument prototype would still apply. */
11370 #ifdef __cplusplus
11371 extern "C"
11372 #endif
11373 char BIO_new_socket ();
11375 main ()
11377 return BIO_new_socket ();
11379 return 0;
11381 _ACEOF
11382 if ac_fn_c_try_link "$LINENO"; then :
11383 case "$LIBEXT" in
11384 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11385 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'` ;;
11386 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11387 esac
11389 rm -f core conftest.err conftest.$ac_objext \
11390 conftest$ac_exeext conftest.$ac_ext
11391 LIBS=$ac_check_soname_save_LIBS
11393 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11395 $as_echo "not found" >&6; }
11397 else
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11399 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11401 cat >>confdefs.h <<_ACEOF
11402 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11403 _ACEOF
11408 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11409 case "x$with_openssl" in
11410 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11411 xno) ;;
11412 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11413 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11414 esac
11417 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11418 then
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11420 $as_echo_n "checking for -lgsm... " >&6; }
11421 if test "${ac_cv_lib_soname_gsm+set}" = set; then :
11422 $as_echo_n "(cached) " >&6
11423 else
11424 ac_check_soname_save_LIBS=$LIBS
11425 LIBS="-lgsm $LIBS"
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h. */
11429 /* Override any GCC internal prototype to avoid an error.
11430 Use char because int might match the return type of a GCC
11431 builtin and then its argument prototype would still apply. */
11432 #ifdef __cplusplus
11433 extern "C"
11434 #endif
11435 char gsm_create ();
11437 main ()
11439 return gsm_create ();
11441 return 0;
11443 _ACEOF
11444 if ac_fn_c_try_link "$LINENO"; then :
11445 case "$LIBEXT" in
11446 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11447 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'` ;;
11448 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11449 esac
11451 rm -f core conftest.err conftest.$ac_objext \
11452 conftest$ac_exeext conftest.$ac_ext
11453 LIBS=$ac_check_soname_save_LIBS
11455 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11457 $as_echo "not found" >&6; }
11459 else
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11461 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11463 cat >>confdefs.h <<_ACEOF
11464 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11465 _ACEOF
11470 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11471 case "x$with_gsm" in
11472 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11473 xno) ;;
11474 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11475 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11476 esac
11479 if test "$ac_cv_header_jpeglib_h" = "yes"
11480 then
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11482 $as_echo_n "checking for -ljpeg... " >&6; }
11483 if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
11484 $as_echo_n "(cached) " >&6
11485 else
11486 ac_check_soname_save_LIBS=$LIBS
11487 LIBS="-ljpeg $LIBS"
11488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489 /* end confdefs.h. */
11491 /* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11494 #ifdef __cplusplus
11495 extern "C"
11496 #endif
11497 char jpeg_start_decompress ();
11499 main ()
11501 return jpeg_start_decompress ();
11503 return 0;
11505 _ACEOF
11506 if ac_fn_c_try_link "$LINENO"; then :
11507 case "$LIBEXT" in
11508 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11509 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'` ;;
11510 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11511 esac
11513 rm -f core conftest.err conftest.$ac_objext \
11514 conftest$ac_exeext conftest.$ac_ext
11515 LIBS=$ac_check_soname_save_LIBS
11517 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11519 $as_echo "not found" >&6; }
11521 else
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11523 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11525 cat >>confdefs.h <<_ACEOF
11526 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11527 _ACEOF
11532 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11533 case "x$with_jpeg" in
11534 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11535 xno) ;;
11536 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11537 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11538 esac
11541 if test "$ac_cv_header_png_h" = "yes"
11542 then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11544 $as_echo_n "checking for -lpng... " >&6; }
11545 if test "${ac_cv_lib_soname_png+set}" = set; then :
11546 $as_echo_n "(cached) " >&6
11547 else
11548 ac_check_soname_save_LIBS=$LIBS
11549 LIBS="-lpng -lm -lz $LIBS"
11550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11551 /* end confdefs.h. */
11553 /* Override any GCC internal prototype to avoid an error.
11554 Use char because int might match the return type of a GCC
11555 builtin and then its argument prototype would still apply. */
11556 #ifdef __cplusplus
11557 extern "C"
11558 #endif
11559 char png_create_read_struct ();
11561 main ()
11563 return png_create_read_struct ();
11565 return 0;
11567 _ACEOF
11568 if ac_fn_c_try_link "$LINENO"; then :
11569 case "$LIBEXT" in
11570 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11571 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'` ;;
11572 *) 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'` ;;
11573 esac
11575 rm -f core conftest.err conftest.$ac_objext \
11576 conftest$ac_exeext conftest.$ac_ext
11577 LIBS=$ac_check_soname_save_LIBS
11579 if test "x$ac_cv_lib_soname_png" = "x"; then :
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11581 $as_echo "not found" >&6; }
11583 else
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11585 $as_echo "$ac_cv_lib_soname_png" >&6; }
11587 cat >>confdefs.h <<_ACEOF
11588 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11589 _ACEOF
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11594 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11595 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
11597 else
11598 ac_check_lib_save_LIBS=$LIBS
11599 LIBS="-lpng -lm -lz $LIBS"
11600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11601 /* end confdefs.h. */
11603 /* Override any GCC internal prototype to avoid an error.
11604 Use char because int might match the return type of a GCC
11605 builtin and then its argument prototype would still apply. */
11606 #ifdef __cplusplus
11607 extern "C"
11608 #endif
11609 char png_set_expand_gray_1_2_4_to_8 ();
11611 main ()
11613 return png_set_expand_gray_1_2_4_to_8 ();
11615 return 0;
11617 _ACEOF
11618 if ac_fn_c_try_link "$LINENO"; then :
11619 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11620 else
11621 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11623 rm -f core conftest.err conftest.$ac_objext \
11624 conftest$ac_exeext conftest.$ac_ext
11625 LIBS=$ac_check_lib_save_LIBS
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11628 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11629 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11631 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11636 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11637 then
11638 ac_save_CPPFLAGS="$CPPFLAGS"
11639 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11640 $as_unset ac_cv_header_png_h
11641 for ac_header in png.h
11642 do :
11643 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11644 if test "x$ac_cv_header_png_h" = x""yes; then :
11645 cat >>confdefs.h <<_ACEOF
11646 #define HAVE_PNG_H 1
11647 _ACEOF
11651 done
11653 CPPFLAGS="$ac_save_CPPFLAGS"
11654 if test "$ac_cv_header_png_h" = "yes"
11655 then
11656 PNGINCL="$X_CFLAGS"
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11659 $as_echo_n "checking for -lpng... " >&6; }
11660 if test "${ac_cv_lib_soname_png+set}" = set; then :
11661 $as_echo_n "(cached) " >&6
11662 else
11663 ac_check_soname_save_LIBS=$LIBS
11664 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666 /* end confdefs.h. */
11668 /* Override any GCC internal prototype to avoid an error.
11669 Use char because int might match the return type of a GCC
11670 builtin and then its argument prototype would still apply. */
11671 #ifdef __cplusplus
11672 extern "C"
11673 #endif
11674 char png_create_read_struct ();
11676 main ()
11678 return png_create_read_struct ();
11680 return 0;
11682 _ACEOF
11683 if ac_fn_c_try_link "$LINENO"; then :
11684 case "$LIBEXT" in
11685 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11686 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'` ;;
11687 *) 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'` ;;
11688 esac
11690 rm -f core conftest.err conftest.$ac_objext \
11691 conftest$ac_exeext conftest.$ac_ext
11692 LIBS=$ac_check_soname_save_LIBS
11694 if test "x$ac_cv_lib_soname_png" = "x"; then :
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11696 $as_echo "not found" >&6; }
11698 else
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11700 $as_echo "$ac_cv_lib_soname_png" >&6; }
11702 cat >>confdefs.h <<_ACEOF
11703 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11704 _ACEOF
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11709 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11710 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11711 $as_echo_n "(cached) " >&6
11712 else
11713 ac_check_lib_save_LIBS=$LIBS
11714 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716 /* end confdefs.h. */
11718 /* Override any GCC internal prototype to avoid an error.
11719 Use char because int might match the return type of a GCC
11720 builtin and then its argument prototype would still apply. */
11721 #ifdef __cplusplus
11722 extern "C"
11723 #endif
11724 char png_set_expand_gray_1_2_4_to_8 ();
11726 main ()
11728 return png_set_expand_gray_1_2_4_to_8 ();
11730 return 0;
11732 _ACEOF
11733 if ac_fn_c_try_link "$LINENO"; then :
11734 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11735 else
11736 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11738 rm -f core conftest.err conftest.$ac_objext \
11739 conftest$ac_exeext conftest.$ac_ext
11740 LIBS=$ac_check_lib_save_LIBS
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11743 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11744 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11745 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11751 if test "x$ac_cv_lib_soname_png" = "x"; then :
11752 case "x$with_png" in
11753 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11754 xno) ;;
11755 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11756 This is an error since --with-png was requested." "$LINENO" 5 ;;
11757 esac
11760 if test "$ac_cv_header_tiffio_h" = "yes"
11761 then
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11763 $as_echo_n "checking for -ltiff... " >&6; }
11764 if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11765 $as_echo_n "(cached) " >&6
11766 else
11767 ac_check_soname_save_LIBS=$LIBS
11768 LIBS="-ltiff $LIBS"
11769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770 /* end confdefs.h. */
11772 /* Override any GCC internal prototype to avoid an error.
11773 Use char because int might match the return type of a GCC
11774 builtin and then its argument prototype would still apply. */
11775 #ifdef __cplusplus
11776 extern "C"
11777 #endif
11778 char TIFFClientOpen ();
11780 main ()
11782 return TIFFClientOpen ();
11784 return 0;
11786 _ACEOF
11787 if ac_fn_c_try_link "$LINENO"; then :
11788 case "$LIBEXT" in
11789 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11790 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'` ;;
11791 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11792 esac
11794 rm -f core conftest.err conftest.$ac_objext \
11795 conftest$ac_exeext conftest.$ac_ext
11796 LIBS=$ac_check_soname_save_LIBS
11798 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11800 $as_echo "not found" >&6; }
11802 else
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11804 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11806 cat >>confdefs.h <<_ACEOF
11807 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11808 _ACEOF
11813 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11814 case "x$with_tiff" in
11815 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11816 xno) ;;
11817 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11818 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11819 esac
11822 if test "$ac_cv_header_mpg123_h" = "yes"
11823 then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11825 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11826 if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
11827 $as_echo_n "(cached) " >&6
11828 else
11829 ac_check_lib_save_LIBS=$LIBS
11830 LIBS="-lmpg123 $LIBS"
11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832 /* end confdefs.h. */
11834 /* Override any GCC internal prototype to avoid an error.
11835 Use char because int might match the return type of a GCC
11836 builtin and then its argument prototype would still apply. */
11837 #ifdef __cplusplus
11838 extern "C"
11839 #endif
11840 char mpg123_feed ();
11842 main ()
11844 return mpg123_feed ();
11846 return 0;
11848 _ACEOF
11849 if ac_fn_c_try_link "$LINENO"; then :
11850 ac_cv_lib_mpg123_mpg123_feed=yes
11851 else
11852 ac_cv_lib_mpg123_mpg123_feed=no
11854 rm -f core conftest.err conftest.$ac_objext \
11855 conftest$ac_exeext conftest.$ac_ext
11856 LIBS=$ac_check_lib_save_LIBS
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11859 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11860 if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
11861 LIBMPG123="-lmpg123"
11866 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11867 case "x$with_mpg123" in
11868 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11869 xno) ;;
11870 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11871 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11872 esac
11874 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}
11876 if test "$ac_cv_header_AL_al_h" = "yes"
11877 then
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11879 $as_echo_n "checking for -lopenal... " >&6; }
11880 if test "${ac_cv_lib_soname_openal+set}" = set; then :
11881 $as_echo_n "(cached) " >&6
11882 else
11883 ac_check_soname_save_LIBS=$LIBS
11884 LIBS="-lopenal $LIBS"
11885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886 /* end confdefs.h. */
11888 /* Override any GCC internal prototype to avoid an error.
11889 Use char because int might match the return type of a GCC
11890 builtin and then its argument prototype would still apply. */
11891 #ifdef __cplusplus
11892 extern "C"
11893 #endif
11894 char alGetSource3i ();
11896 main ()
11898 return alGetSource3i ();
11900 return 0;
11902 _ACEOF
11903 if ac_fn_c_try_link "$LINENO"; then :
11904 case "$LIBEXT" in
11905 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11906 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'` ;;
11907 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11908 esac
11910 rm -f core conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912 LIBS=$ac_check_soname_save_LIBS
11914 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11916 $as_echo "not found" >&6; }
11918 else
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11920 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11922 cat >>confdefs.h <<_ACEOF
11923 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11924 _ACEOF
11926 LIBOPENAL="-lopenal"
11928 ac_cv_lib_openal=yes
11930 cat >>confdefs.h <<_ACEOF
11931 #define HAVE_OPENAL 1
11932 _ACEOF
11936 if test "x$ac_cv_lib_openal" != xyes; then :
11937 case "x$with_openal" in
11938 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11939 xno) ;;
11940 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11941 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11942 esac
11944 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11946 if test "$ac_cv_header_kstat_h" = "yes"
11947 then
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11949 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11950 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 ac_check_lib_save_LIBS=$LIBS
11954 LIBS="-lkstat $LIBS"
11955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956 /* end confdefs.h. */
11958 /* Override any GCC internal prototype to avoid an error.
11959 Use char because int might match the return type of a GCC
11960 builtin and then its argument prototype would still apply. */
11961 #ifdef __cplusplus
11962 extern "C"
11963 #endif
11964 char kstat_open ();
11966 main ()
11968 return kstat_open ();
11970 return 0;
11972 _ACEOF
11973 if ac_fn_c_try_link "$LINENO"; then :
11974 ac_cv_lib_kstat_kstat_open=yes
11975 else
11976 ac_cv_lib_kstat_kstat_open=no
11978 rm -f core conftest.err conftest.$ac_objext \
11979 conftest$ac_exeext conftest.$ac_ext
11980 LIBS=$ac_check_lib_save_LIBS
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11983 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11984 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11986 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11988 LIBKSTAT="-lkstat"
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11995 $as_echo_n "checking for -lodbc... " >&6; }
11996 if test "${ac_cv_lib_soname_odbc+set}" = set; then :
11997 $as_echo_n "(cached) " >&6
11998 else
11999 ac_check_soname_save_LIBS=$LIBS
12000 LIBS="-lodbc $LIBS"
12001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002 /* end confdefs.h. */
12004 /* Override any GCC internal prototype to avoid an error.
12005 Use char because int might match the return type of a GCC
12006 builtin and then its argument prototype would still apply. */
12007 #ifdef __cplusplus
12008 extern "C"
12009 #endif
12010 char SQLConnect ();
12012 main ()
12014 return SQLConnect ();
12016 return 0;
12018 _ACEOF
12019 if ac_fn_c_try_link "$LINENO"; then :
12020 case "$LIBEXT" in
12021 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12022 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'` ;;
12023 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
12024 esac
12026 rm -f core conftest.err conftest.$ac_objext \
12027 conftest$ac_exeext conftest.$ac_ext
12028 LIBS=$ac_check_soname_save_LIBS
12030 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12032 $as_echo "not found" >&6; }
12033 cat >>confdefs.h <<_ACEOF
12034 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12035 _ACEOF
12037 else
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12039 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12041 cat >>confdefs.h <<_ACEOF
12042 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12043 _ACEOF
12048 if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
12049 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
12050 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
12051 "$ac_cv_header_soundcard_h" != "yes" -a \
12052 "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono
12053 then
12054 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12058 EXTRACFLAGS=""
12060 if test "x${GCC}" = "xyes"
12061 then
12062 EXTRACFLAGS="-Wall -pipe"
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12065 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12066 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
12067 $as_echo_n "(cached) " >&6
12068 else
12069 if test "$cross_compiling" = yes; then :
12070 ac_cv_c_gcc_strength_bug="yes"
12071 else
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074 int L[4] = {0,1,2,3};
12076 main ()
12078 static int Array[3];
12079 unsigned int B = 3;
12080 int i;
12081 for(i=0; i<B; i++) Array[i] = i - 3;
12082 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12083 L[i] = 4;
12084 return (Array[1] != -2 || L[2] != 3)
12086 return 0;
12088 _ACEOF
12089 if ac_fn_c_try_run "$LINENO"; then :
12090 ac_cv_c_gcc_strength_bug="no"
12091 else
12092 ac_cv_c_gcc_strength_bug="yes"
12094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12095 conftest.$ac_objext conftest.beam conftest.$ac_ext
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12100 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12101 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12102 then
12103 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12107 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12108 if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
12109 $as_echo_n "(cached) " >&6
12110 else
12111 ac_wine_try_cflags_saved=$CFLAGS
12112 CFLAGS="$CFLAGS -fno-builtin"
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12115 int main(int argc, char **argv) { return 0; }
12116 _ACEOF
12117 if ac_fn_c_try_link "$LINENO"; then :
12118 ac_cv_cflags__fno_builtin=yes
12119 else
12120 ac_cv_cflags__fno_builtin=no
12122 rm -f core conftest.err conftest.$ac_objext \
12123 conftest$ac_exeext conftest.$ac_ext
12124 CFLAGS=$ac_wine_try_cflags_saved
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12127 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12128 if test $ac_cv_cflags__fno_builtin = yes; then :
12129 BUILTINFLAG="-fno-builtin"
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12133 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12134 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
12135 $as_echo_n "(cached) " >&6
12136 else
12137 ac_wine_try_cflags_saved=$CFLAGS
12138 CFLAGS="$CFLAGS -fno-strict-aliasing"
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12141 int main(int argc, char **argv) { return 0; }
12142 _ACEOF
12143 if ac_fn_c_try_link "$LINENO"; then :
12144 ac_cv_cflags__fno_strict_aliasing=yes
12145 else
12146 ac_cv_cflags__fno_strict_aliasing=no
12148 rm -f core conftest.err conftest.$ac_objext \
12149 conftest$ac_exeext conftest.$ac_ext
12150 CFLAGS=$ac_wine_try_cflags_saved
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12153 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12154 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12155 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12158 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12159 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
12160 $as_echo_n "(cached) " >&6
12161 else
12162 ac_wine_try_cflags_saved=$CFLAGS
12163 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166 int main(int argc, char **argv) { return 0; }
12167 _ACEOF
12168 if ac_fn_c_try_link "$LINENO"; then :
12169 ac_cv_cflags__Wdeclaration_after_statement=yes
12170 else
12171 ac_cv_cflags__Wdeclaration_after_statement=no
12173 rm -f core conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12175 CFLAGS=$ac_wine_try_cflags_saved
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12178 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12179 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12180 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12183 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12184 if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
12186 else
12187 ac_wine_try_cflags_saved=$CFLAGS
12188 CFLAGS="$CFLAGS -Wstrict-prototypes"
12189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h. */
12191 int main(int argc, char **argv) { return 0; }
12192 _ACEOF
12193 if ac_fn_c_try_link "$LINENO"; then :
12194 ac_cv_cflags__Wstrict_prototypes=yes
12195 else
12196 ac_cv_cflags__Wstrict_prototypes=no
12198 rm -f core conftest.err conftest.$ac_objext \
12199 conftest$ac_exeext conftest.$ac_ext
12200 CFLAGS=$ac_wine_try_cflags_saved
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12203 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12204 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12205 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12208 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12209 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
12210 $as_echo_n "(cached) " >&6
12211 else
12212 ac_wine_try_cflags_saved=$CFLAGS
12213 CFLAGS="$CFLAGS -Wtype-limits"
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12216 int main(int argc, char **argv) { return 0; }
12217 _ACEOF
12218 if ac_fn_c_try_link "$LINENO"; then :
12219 ac_cv_cflags__Wtype_limits=yes
12220 else
12221 ac_cv_cflags__Wtype_limits=no
12223 rm -f core conftest.err conftest.$ac_objext \
12224 conftest$ac_exeext conftest.$ac_ext
12225 CFLAGS=$ac_wine_try_cflags_saved
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12228 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12229 if test $ac_cv_cflags__Wtype_limits = yes; then :
12230 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12233 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12234 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 ac_wine_try_cflags_saved=$CFLAGS
12238 CFLAGS="$CFLAGS -Wwrite-strings"
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241 int main(int argc, char **argv) { return 0; }
12242 _ACEOF
12243 if ac_fn_c_try_link "$LINENO"; then :
12244 ac_cv_cflags__Wwrite_strings=yes
12245 else
12246 ac_cv_cflags__Wwrite_strings=no
12248 rm -f core conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12250 CFLAGS=$ac_wine_try_cflags_saved
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12253 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12254 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12255 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12258 saved_CFLAGS="$CFLAGS"
12259 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12261 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12262 if test "${ac_cv_c_string_h_warnings+set}" = set; then :
12263 $as_echo_n "(cached) " >&6
12264 else
12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12267 #include <string.h>
12269 main ()
12273 return 0;
12275 _ACEOF
12276 if ac_fn_c_try_compile "$LINENO"; then :
12277 ac_cv_c_string_h_warnings=no
12278 else
12279 ac_cv_c_string_h_warnings=yes
12281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12284 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12285 CFLAGS="$saved_CFLAGS"
12286 if test "$ac_cv_c_string_h_warnings" = "no"
12287 then
12288 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12291 saved_CFLAGS="$CFLAGS"
12292 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12294 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12295 if test "${ac_cv_c_logicalop_noisy+set}" = set; then :
12296 $as_echo_n "(cached) " >&6
12297 else
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12300 #include <string.h>
12302 main ()
12304 char*f(const char *h,char n) {return strchr(h,n);}
12306 return 0;
12308 _ACEOF
12309 if ac_fn_c_try_compile "$LINENO"; then :
12310 ac_cv_c_logicalop_noisy=no
12311 else
12312 ac_cv_c_logicalop_noisy=yes
12314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12317 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12318 CFLAGS="$saved_CFLAGS"
12319 if test "$ac_cv_c_logicalop_noisy" = "no"
12320 then
12321 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12324 if test "x$enable_maintainer_mode" = "xyes"
12325 then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12327 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12328 if test "${ac_cv_cflags__Werror+set}" = set; then :
12329 $as_echo_n "(cached) " >&6
12330 else
12331 ac_wine_try_cflags_saved=$CFLAGS
12332 CFLAGS="$CFLAGS -Werror"
12333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334 /* end confdefs.h. */
12335 int main(int argc, char **argv) { return 0; }
12336 _ACEOF
12337 if ac_fn_c_try_link "$LINENO"; then :
12338 ac_cv_cflags__Werror=yes
12339 else
12340 ac_cv_cflags__Werror=no
12342 rm -f core conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
12344 CFLAGS=$ac_wine_try_cflags_saved
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12347 $as_echo "$ac_cv_cflags__Werror" >&6; }
12348 if test $ac_cv_cflags__Werror = yes; then :
12349 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12353 saved_CFLAGS="$CFLAGS"
12354 CFLAGS="$CFLAGS -Werror"
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12356 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12357 if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12361 /* end confdefs.h. */
12362 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12364 main ()
12368 return 0;
12370 _ACEOF
12371 if ac_fn_c_try_compile "$LINENO"; then :
12372 ac_cv_have_ms_hook_prologue="yes"
12373 else
12374 ac_cv_have_ms_hook_prologue="no"
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12379 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12380 CFLAGS="$saved_CFLAGS"
12381 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12382 then
12384 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12386 else
12387 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12394 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12395 if test "${ac_cv_c_fortify_enabled+set}" = set; then :
12396 $as_echo_n "(cached) " >&6
12397 else
12398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12400 #include <string.h>
12402 main ()
12404 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12405 #error Fortify enabled
12406 #endif
12408 return 0;
12410 _ACEOF
12411 if ac_fn_c_try_compile "$LINENO"; then :
12412 ac_cv_c_fortify_enabled=no
12413 else
12414 ac_cv_c_fortify_enabled=yes
12416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12419 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12420 if test "$ac_cv_c_fortify_enabled" = yes
12421 then
12422 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12427 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12428 if test "${ac_cv_c_extern_prefix+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h. */
12433 extern int ac_test;
12435 main ()
12437 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12439 return 0;
12441 _ACEOF
12442 if ac_fn_c_try_link "$LINENO"; then :
12443 ac_cv_c_extern_prefix="yes"
12444 else
12445 ac_cv_c_extern_prefix="no"
12447 rm -f core conftest.err conftest.$ac_objext \
12448 conftest$ac_exeext conftest.$ac_ext
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12451 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12453 case $host_cpu in
12454 *i[3456789]86*)
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12456 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12457 if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h. */
12462 #ifndef _MSC_VER
12463 #define __stdcall __attribute__((__stdcall__))
12464 #endif
12465 int __stdcall ac_test(int i) { return i; }
12467 main ()
12469 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12471 return 0;
12473 _ACEOF
12474 if ac_fn_c_try_link "$LINENO"; then :
12475 ac_cv_c_stdcall_suffix="yes"
12476 else
12477 ac_cv_c_stdcall_suffix="no"
12479 rm -f core conftest.err conftest.$ac_objext \
12480 conftest$ac_exeext conftest.$ac_ext
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12483 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12484 *) ac_cv_c_stdcall_suffix="no" ;;
12485 esac
12488 if test "$ac_cv_c_extern_prefix" = "yes"
12489 then
12490 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12492 asm_name_prefix="_"
12493 else
12494 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12496 asm_name_prefix=""
12500 if test "$ac_cv_c_stdcall_suffix" = "yes"
12501 then
12502 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12504 else
12505 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12511 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12512 if test "${ac_cv_asm_func_def+set}" = set; then :
12513 $as_echo_n "(cached) " >&6
12514 else
12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h. */
12519 main ()
12521 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\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=".def"
12528 else
12529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12530 /* end confdefs.h. */
12533 main ()
12535 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12537 return 0;
12539 _ACEOF
12540 if ac_fn_c_try_link "$LINENO"; then :
12541 ac_cv_asm_func_def=".type @function"
12542 else
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12547 main ()
12549 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12551 return 0;
12553 _ACEOF
12554 if ac_fn_c_try_link "$LINENO"; then :
12555 ac_cv_asm_func_def=".type 2"
12556 else
12557 ac_cv_asm_func_def="unknown"
12559 rm -f core conftest.err conftest.$ac_objext \
12560 conftest$ac_exeext conftest.$ac_ext
12562 rm -f core conftest.err conftest.$ac_objext \
12563 conftest$ac_exeext conftest.$ac_ext
12565 rm -f core conftest.err conftest.$ac_objext \
12566 conftest$ac_exeext conftest.$ac_ext
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12569 $as_echo "$ac_cv_asm_func_def" >&6; }
12572 case "$ac_cv_asm_func_def" in
12573 ".def")
12574 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12576 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12577 ".type @function")
12578 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12580 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12581 ".type 2")
12582 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12584 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12586 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12588 asm_func_header="" ;;
12589 esac
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12592 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12593 if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
12594 $as_echo_n "(cached) " >&6
12595 else
12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597 /* end confdefs.h. */
12598 asm(".text\n\t.long 0");
12600 main ()
12604 return 0;
12606 _ACEOF
12607 if ac_fn_c_try_compile "$LINENO"; then :
12608 ac_cv_c_asm_outside_funcs="yes"
12609 else
12610 ac_cv_c_asm_outside_funcs="no"
12612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12615 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12618 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12619 if test "${ac_cv_c_dot_previous+set}" = set; then :
12620 $as_echo_n "(cached) " >&6
12621 else
12622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h. */
12626 main ()
12628 asm(".text\nac_test:\t.long 0\n\t.previous");
12630 return 0;
12632 _ACEOF
12633 if ac_fn_c_try_link "$LINENO"; then :
12634 ac_cv_c_dot_previous="yes"
12635 else
12636 ac_cv_c_dot_previous="no"
12638 rm -f core conftest.err conftest.$ac_objext \
12639 conftest$ac_exeext conftest.$ac_ext
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12642 $as_echo "$ac_cv_c_dot_previous" >&6; }
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12645 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12646 if test "${ac_cv_c_cfi_support+set}" = set; then :
12647 $as_echo_n "(cached) " >&6
12648 else
12649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650 /* end confdefs.h. */
12651 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12653 main ()
12657 return 0;
12659 _ACEOF
12660 if ac_fn_c_try_compile "$LINENO"; then :
12661 ac_cv_c_cfi_support="yes"
12662 else
12663 ac_cv_c_cfi_support="no"
12665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12668 $as_echo "$ac_cv_c_cfi_support" >&6; }
12670 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12671 asm_func_trailer=""
12672 if test "$ac_cv_c_dot_previous" = "yes"
12673 then
12674 asm_func_trailer="\\n\\t.previous"
12676 if test "$ac_cv_c_cfi_support" = "yes"
12677 then
12678 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12679 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12681 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12683 UNWINDFLAGS=-fasynchronous-unwind-tables
12685 else
12686 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12690 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12693 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12694 then
12695 cat >>confdefs.h <<_ACEOF
12696 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12697 _ACEOF
12699 else
12700 cat >>confdefs.h <<_ACEOF
12701 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12702 _ACEOF
12706 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12709 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12713 LDPATH=""
12715 case $build_os in
12716 cygwin*|mingw32*)
12717 TOOLSEXT=".exe"
12719 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12721 darwin*|macosx*)
12724 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12726 esac
12728 case $host_os in
12729 mingw32*)
12730 CRTLIBS="-lmsvcrt"
12732 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12735 esac
12737 MAIN_BINARY="wine"
12739 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12741 case $host_os in
12742 linux*)
12743 case $host_cpu in
12744 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12746 x86_64*) EXTRA_BINARIES="wine64-preloader"
12748 esac
12750 esac
12753 ac_save_CFLAGS="$CFLAGS"
12754 CFLAGS="$CFLAGS $BUILTINFLAG"
12755 for ac_func in \
12756 _pclose \
12757 _popen \
12758 _snprintf \
12759 _spawnvp \
12760 _strdup \
12761 _stricmp \
12762 _strnicmp \
12763 _strtoi64 \
12764 _strtoui64 \
12765 _vsnprintf \
12766 asctime_r \
12767 chsize \
12768 dlopen \
12769 epoll_create \
12770 ffs \
12771 finite \
12772 fnmatch \
12773 fork \
12774 fpclass \
12775 fstatfs \
12776 fstatvfs \
12777 ftruncate \
12778 futimes \
12779 futimesat \
12780 getattrlist \
12781 getdirentries \
12782 getopt_long \
12783 getpagesize \
12784 getpwuid \
12785 gettimeofday \
12786 getuid \
12787 kqueue \
12788 lstat \
12789 memmove \
12790 mmap \
12791 pclose \
12792 pipe2 \
12793 poll \
12794 popen \
12795 port_create \
12796 prctl \
12797 pread \
12798 pwrite \
12799 readdir \
12800 readlink \
12801 sched_setaffinity \
12802 sched_yield \
12803 select \
12804 setproctitle \
12805 setrlimit \
12806 settimeofday \
12807 sigaltstack \
12808 sigprocmask \
12809 snprintf \
12810 spawnvp \
12811 statfs \
12812 statvfs \
12813 strcasecmp \
12814 strdup \
12815 strerror \
12816 strncasecmp \
12817 strtold \
12818 strtoll \
12819 strtoull \
12820 symlink \
12821 tcgetattr \
12822 thr_kill2 \
12823 timegm \
12824 usleep \
12825 vsnprintf \
12826 wait4 \
12827 waitpid \
12829 do :
12830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12831 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12832 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12833 cat >>confdefs.h <<_ACEOF
12834 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12835 _ACEOF
12838 done
12840 CFLAGS="$ac_save_CFLAGS"
12842 if test "$ac_cv_func_dlopen" = no
12843 then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12845 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12846 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12847 $as_echo_n "(cached) " >&6
12848 else
12849 ac_check_lib_save_LIBS=$LIBS
12850 LIBS="-ldl $LIBS"
12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12854 /* Override any GCC internal prototype to avoid an error.
12855 Use char because int might match the return type of a GCC
12856 builtin and then its argument prototype would still apply. */
12857 #ifdef __cplusplus
12858 extern "C"
12859 #endif
12860 char dlopen ();
12862 main ()
12864 return dlopen ();
12866 return 0;
12868 _ACEOF
12869 if ac_fn_c_try_link "$LINENO"; then :
12870 ac_cv_lib_dl_dlopen=yes
12871 else
12872 ac_cv_lib_dl_dlopen=no
12874 rm -f core conftest.err conftest.$ac_objext \
12875 conftest$ac_exeext conftest.$ac_ext
12876 LIBS=$ac_check_lib_save_LIBS
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12879 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12880 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12881 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12882 LIBDL="-ldl"
12887 ac_wine_check_funcs_save_LIBS="$LIBS"
12888 LIBS="$LIBS $LIBDL"
12889 for ac_func in dladdr
12890 do :
12891 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12892 if test "x$ac_cv_func_dladdr" = x""yes; then :
12893 cat >>confdefs.h <<_ACEOF
12894 #define HAVE_DLADDR 1
12895 _ACEOF
12898 done
12900 LIBS="$ac_wine_check_funcs_save_LIBS"
12902 if test "$ac_cv_func_poll" = no
12903 then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12905 $as_echo_n "checking for poll in -lpoll... " >&6; }
12906 if test "${ac_cv_lib_poll_poll+set}" = set; then :
12907 $as_echo_n "(cached) " >&6
12908 else
12909 ac_check_lib_save_LIBS=$LIBS
12910 LIBS="-lpoll $LIBS"
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12914 /* Override any GCC internal prototype to avoid an error.
12915 Use char because int might match the return type of a GCC
12916 builtin and then its argument prototype would still apply. */
12917 #ifdef __cplusplus
12918 extern "C"
12919 #endif
12920 char poll ();
12922 main ()
12924 return poll ();
12926 return 0;
12928 _ACEOF
12929 if ac_fn_c_try_link "$LINENO"; then :
12930 ac_cv_lib_poll_poll=yes
12931 else
12932 ac_cv_lib_poll_poll=no
12934 rm -f core conftest.err conftest.$ac_objext \
12935 conftest$ac_exeext conftest.$ac_ext
12936 LIBS=$ac_check_lib_save_LIBS
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12939 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12940 if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12941 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12942 LIBPOLL="-lpoll"
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12949 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12950 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12951 $as_echo_n "(cached) " >&6
12952 else
12953 ac_func_search_save_LIBS=$LIBS
12954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12955 /* end confdefs.h. */
12957 /* Override any GCC internal prototype to avoid an error.
12958 Use char because int might match the return type of a GCC
12959 builtin and then its argument prototype would still apply. */
12960 #ifdef __cplusplus
12961 extern "C"
12962 #endif
12963 char gethostbyname ();
12965 main ()
12967 return gethostbyname ();
12969 return 0;
12971 _ACEOF
12972 for ac_lib in '' nsl; do
12973 if test -z "$ac_lib"; then
12974 ac_res="none required"
12975 else
12976 ac_res=-l$ac_lib
12977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12979 if ac_fn_c_try_link "$LINENO"; then :
12980 ac_cv_search_gethostbyname=$ac_res
12982 rm -f core conftest.err conftest.$ac_objext \
12983 conftest$ac_exeext
12984 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12985 break
12987 done
12988 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12990 else
12991 ac_cv_search_gethostbyname=no
12993 rm conftest.$ac_ext
12994 LIBS=$ac_func_search_save_LIBS
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12997 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12998 ac_res=$ac_cv_search_gethostbyname
12999 if test "$ac_res" != no; then :
13000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13006 $as_echo_n "checking for library containing connect... " >&6; }
13007 if test "${ac_cv_search_connect+set}" = set; then :
13008 $as_echo_n "(cached) " >&6
13009 else
13010 ac_func_search_save_LIBS=$LIBS
13011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13012 /* end confdefs.h. */
13014 /* Override any GCC internal prototype to avoid an error.
13015 Use char because int might match the return type of a GCC
13016 builtin and then its argument prototype would still apply. */
13017 #ifdef __cplusplus
13018 extern "C"
13019 #endif
13020 char connect ();
13022 main ()
13024 return connect ();
13026 return 0;
13028 _ACEOF
13029 for ac_lib in '' socket; do
13030 if test -z "$ac_lib"; then
13031 ac_res="none required"
13032 else
13033 ac_res=-l$ac_lib
13034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13036 if ac_fn_c_try_link "$LINENO"; then :
13037 ac_cv_search_connect=$ac_res
13039 rm -f core conftest.err conftest.$ac_objext \
13040 conftest$ac_exeext
13041 if test "${ac_cv_search_connect+set}" = set; then :
13042 break
13044 done
13045 if test "${ac_cv_search_connect+set}" = set; then :
13047 else
13048 ac_cv_search_connect=no
13050 rm conftest.$ac_ext
13051 LIBS=$ac_func_search_save_LIBS
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13054 $as_echo "$ac_cv_search_connect" >&6; }
13055 ac_res=$ac_cv_search_connect
13056 if test "$ac_res" != no; then :
13057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13063 $as_echo_n "checking for library containing inet_aton... " >&6; }
13064 if test "${ac_cv_search_inet_aton+set}" = set; then :
13065 $as_echo_n "(cached) " >&6
13066 else
13067 ac_func_search_save_LIBS=$LIBS
13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h. */
13071 /* Override any GCC internal prototype to avoid an error.
13072 Use char because int might match the return type of a GCC
13073 builtin and then its argument prototype would still apply. */
13074 #ifdef __cplusplus
13075 extern "C"
13076 #endif
13077 char inet_aton ();
13079 main ()
13081 return inet_aton ();
13083 return 0;
13085 _ACEOF
13086 for ac_lib in '' resolv; do
13087 if test -z "$ac_lib"; then
13088 ac_res="none required"
13089 else
13090 ac_res=-l$ac_lib
13091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13093 if ac_fn_c_try_link "$LINENO"; then :
13094 ac_cv_search_inet_aton=$ac_res
13096 rm -f core conftest.err conftest.$ac_objext \
13097 conftest$ac_exeext
13098 if test "${ac_cv_search_inet_aton+set}" = set; then :
13099 break
13101 done
13102 if test "${ac_cv_search_inet_aton+set}" = set; then :
13104 else
13105 ac_cv_search_inet_aton=no
13107 rm conftest.$ac_ext
13108 LIBS=$ac_func_search_save_LIBS
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13111 $as_echo "$ac_cv_search_inet_aton" >&6; }
13112 ac_res=$ac_cv_search_inet_aton
13113 if test "$ac_res" != no; then :
13114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13119 for ac_func in \
13120 getaddrinfo \
13121 getnameinfo \
13122 getnetbyname \
13123 getprotobyname \
13124 getprotobynumber \
13125 getservbyport \
13126 inet_network \
13127 inet_ntop \
13128 inet_pton \
13129 sendmsg \
13130 socketpair \
13132 do :
13133 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13134 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13135 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13136 cat >>confdefs.h <<_ACEOF
13137 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13138 _ACEOF
13141 done
13144 LDAPLIBS=""
13146 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13147 then
13148 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13150 if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13152 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13153 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
13154 $as_echo_n "(cached) " >&6
13155 else
13156 ac_check_lib_save_LIBS=$LIBS
13157 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h. */
13161 /* Override any GCC internal prototype to avoid an error.
13162 Use char because int might match the return type of a GCC
13163 builtin and then its argument prototype would still apply. */
13164 #ifdef __cplusplus
13165 extern "C"
13166 #endif
13167 char ldap_initialize ();
13169 main ()
13171 return ldap_initialize ();
13173 return 0;
13175 _ACEOF
13176 if ac_fn_c_try_link "$LINENO"; then :
13177 ac_cv_lib_ldap_r_ldap_initialize=yes
13178 else
13179 ac_cv_lib_ldap_r_ldap_initialize=no
13181 rm -f core conftest.err conftest.$ac_objext \
13182 conftest$ac_exeext conftest.$ac_ext
13183 LIBS=$ac_check_lib_save_LIBS
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13186 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13187 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13189 $as_echo_n "checking for ber_init in -llber... " >&6; }
13190 if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
13191 $as_echo_n "(cached) " >&6
13192 else
13193 ac_check_lib_save_LIBS=$LIBS
13194 LIBS="-llber $LIBPTHREAD $LIBS"
13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h. */
13198 /* Override any GCC internal prototype to avoid an error.
13199 Use char because int might match the return type of a GCC
13200 builtin and then its argument prototype would still apply. */
13201 #ifdef __cplusplus
13202 extern "C"
13203 #endif
13204 char ber_init ();
13206 main ()
13208 return ber_init ();
13210 return 0;
13212 _ACEOF
13213 if ac_fn_c_try_link "$LINENO"; then :
13214 ac_cv_lib_lber_ber_init=yes
13215 else
13216 ac_cv_lib_lber_ber_init=no
13218 rm -f core conftest.err conftest.$ac_objext \
13219 conftest$ac_exeext conftest.$ac_ext
13220 LIBS=$ac_check_lib_save_LIBS
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13223 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13224 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
13226 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13228 LDAPLIBS="-lldap_r -llber"
13235 ac_wine_check_funcs_save_LIBS="$LIBS"
13236 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13237 for ac_func in \
13238 ldap_count_references \
13239 ldap_first_reference \
13240 ldap_next_reference \
13241 ldap_parse_reference \
13242 ldap_parse_sort_control \
13243 ldap_parse_sortresponse_control \
13244 ldap_parse_vlv_control \
13245 ldap_parse_vlvresponse_control
13246 do :
13247 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13248 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13249 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13250 cat >>confdefs.h <<_ACEOF
13251 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13252 _ACEOF
13255 done
13257 LIBS="$ac_wine_check_funcs_save_LIBS"
13259 if test "x$LDAPLIBS" = "x"; then :
13260 case "x$with_ldap" in
13261 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13262 xno) ;;
13263 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13264 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13265 esac
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13269 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13270 if test "${wine_cv_one_arg_mkdir+set}" = set; then :
13271 $as_echo_n "(cached) " >&6
13272 else
13273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h. */
13275 #include <sys/stat.h>
13277 main ()
13279 mkdir("foo");
13281 return 0;
13283 _ACEOF
13284 if ac_fn_c_try_compile "$LINENO"; then :
13285 wine_cv_one_arg_mkdir=yes
13286 else
13287 wine_cv_one_arg_mkdir=no
13289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13292 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13293 if test "$wine_cv_one_arg_mkdir" = "yes"
13294 then
13296 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13302 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13303 if test "${ac_cv_c_const+set}" = set; then :
13304 $as_echo_n "(cached) " >&6
13305 else
13306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h. */
13310 main ()
13312 /* FIXME: Include the comments suggested by Paul. */
13313 #ifndef __cplusplus
13314 /* Ultrix mips cc rejects this. */
13315 typedef int charset[2];
13316 const charset cs;
13317 /* SunOS 4.1.1 cc rejects this. */
13318 char const *const *pcpcc;
13319 char **ppc;
13320 /* NEC SVR4.0.2 mips cc rejects this. */
13321 struct point {int x, y;};
13322 static struct point const zero = {0,0};
13323 /* AIX XL C 1.02.0.0 rejects this.
13324 It does not let you subtract one const X* pointer from another in
13325 an arm of an if-expression whose if-part is not a constant
13326 expression */
13327 const char *g = "string";
13328 pcpcc = &g + (g ? g-g : 0);
13329 /* HPUX 7.0 cc rejects these. */
13330 ++pcpcc;
13331 ppc = (char**) pcpcc;
13332 pcpcc = (char const *const *) ppc;
13333 { /* SCO 3.2v4 cc rejects this. */
13334 char *t;
13335 char const *s = 0 ? (char *) 0 : (char const *) 0;
13337 *t++ = 0;
13338 if (s) return 0;
13340 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13341 int x[] = {25, 17};
13342 const int *foo = &x[0];
13343 ++foo;
13345 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13346 typedef const int *iptr;
13347 iptr p = 0;
13348 ++p;
13350 { /* AIX XL C 1.02.0.0 rejects this saying
13351 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13352 struct s { int j; const int *ap[3]; };
13353 struct s *b; b->j = 5;
13355 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13356 const int foo = 10;
13357 if (!foo) return 0;
13359 return !cs[0] && !zero.x;
13360 #endif
13363 return 0;
13365 _ACEOF
13366 if ac_fn_c_try_compile "$LINENO"; then :
13367 ac_cv_c_const=yes
13368 else
13369 ac_cv_c_const=no
13371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13374 $as_echo "$ac_cv_c_const" >&6; }
13375 if test $ac_cv_c_const = no; then
13377 $as_echo "#define const /**/" >>confdefs.h
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13382 $as_echo_n "checking for inline... " >&6; }
13383 if test "${ac_cv_c_inline+set}" = set; then :
13384 $as_echo_n "(cached) " >&6
13385 else
13386 ac_cv_c_inline=no
13387 for ac_kw in inline __inline__ __inline; do
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13390 #ifndef __cplusplus
13391 typedef int foo_t;
13392 static $ac_kw foo_t static_foo () {return 0; }
13393 $ac_kw foo_t foo () {return 0; }
13394 #endif
13396 _ACEOF
13397 if ac_fn_c_try_compile "$LINENO"; then :
13398 ac_cv_c_inline=$ac_kw
13400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13401 test "$ac_cv_c_inline" != no && break
13402 done
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13406 $as_echo "$ac_cv_c_inline" >&6; }
13408 case $ac_cv_c_inline in
13409 inline | yes) ;;
13411 case $ac_cv_c_inline in
13412 no) ac_val=;;
13413 *) ac_val=$ac_cv_c_inline;;
13414 esac
13415 cat >>confdefs.h <<_ACEOF
13416 #ifndef __cplusplus
13417 #define inline $ac_val
13418 #endif
13419 _ACEOF
13421 esac
13423 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13424 if test "x$ac_cv_type_mode_t" = x""yes; then :
13426 cat >>confdefs.h <<_ACEOF
13427 #define HAVE_MODE_T 1
13428 _ACEOF
13432 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13433 if test "x$ac_cv_type_off_t" = x""yes; then :
13435 cat >>confdefs.h <<_ACEOF
13436 #define HAVE_OFF_T 1
13437 _ACEOF
13441 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13442 if test "x$ac_cv_type_pid_t" = x""yes; then :
13444 cat >>confdefs.h <<_ACEOF
13445 #define HAVE_PID_T 1
13446 _ACEOF
13450 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13451 if test "x$ac_cv_type_size_t" = x""yes; then :
13453 cat >>confdefs.h <<_ACEOF
13454 #define HAVE_SIZE_T 1
13455 _ACEOF
13459 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13460 if test "x$ac_cv_type_ssize_t" = x""yes; then :
13462 cat >>confdefs.h <<_ACEOF
13463 #define HAVE_SSIZE_T 1
13464 _ACEOF
13468 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13469 if test "x$ac_cv_type_long_long" = x""yes; then :
13471 cat >>confdefs.h <<_ACEOF
13472 #define HAVE_LONG_LONG 1
13473 _ACEOF
13477 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13478 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
13480 cat >>confdefs.h <<_ACEOF
13481 #define HAVE_FSBLKCNT_T 1
13482 _ACEOF
13486 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13487 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
13489 cat >>confdefs.h <<_ACEOF
13490 #define HAVE_FSFILCNT_T 1
13491 _ACEOF
13496 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13497 #include <signal.h>
13499 if test "x$ac_cv_type_sigset_t" = x""yes; then :
13501 cat >>confdefs.h <<_ACEOF
13502 #define HAVE_SIGSET_T 1
13503 _ACEOF
13508 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13510 if test "x$ac_cv_type_request_sense" = x""yes; then :
13512 cat >>confdefs.h <<_ACEOF
13513 #define HAVE_REQUEST_SENSE 1
13514 _ACEOF
13520 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13521 #ifdef HAVE_SYS_SOCKET_H
13522 #include <sys/socket.h>
13523 #endif
13524 #ifdef HAVE_SYS_SOCKETVAR_H
13525 #include <sys/socketvar.h>
13526 #endif
13527 #ifdef HAVE_NET_ROUTE_H
13528 #include <net/route.h>
13529 #endif
13530 #ifdef HAVE_NETINET_IN_H
13531 #include <netinet/in.h>
13532 #endif
13533 #ifdef HAVE_NETINET_IN_SYSTM_H
13534 #include <netinet/in_systm.h>
13535 #endif
13536 #ifdef HAVE_NETINET_IP_H
13537 #include <netinet/ip.h>
13538 #endif
13539 #ifdef HAVE_NETINET_IN_PCB_H
13540 #include <netinet/in_pcb.h>
13541 #endif
13543 if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
13545 cat >>confdefs.h <<_ACEOF
13546 #define HAVE_STRUCT_XINPGEN 1
13547 _ACEOF
13553 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13554 #include <linux/input.h>
13555 #endif
13557 if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
13559 cat >>confdefs.h <<_ACEOF
13560 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13561 _ACEOF
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13568 $as_echo_n "checking for sigaddset... " >&6; }
13569 if test "${wine_cv_have_sigaddset+set}" = set; then :
13570 $as_echo_n "(cached) " >&6
13571 else
13572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h. */
13574 #include <signal.h>
13576 main ()
13578 sigset_t set; sigaddset(&set,SIGTERM);
13580 return 0;
13582 _ACEOF
13583 if ac_fn_c_try_link "$LINENO"; then :
13584 wine_cv_have_sigaddset=yes
13585 else
13586 wine_cv_have_sigaddset=no
13588 rm -f core conftest.err conftest.$ac_objext \
13589 conftest$ac_exeext conftest.$ac_ext
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13592 $as_echo "$wine_cv_have_sigaddset" >&6; }
13593 if test "$wine_cv_have_sigaddset" = "yes"
13594 then
13596 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13602 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13603 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13604 $as_echo_n "(cached) " >&6
13605 else
13606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607 /* end confdefs.h. */
13608 #include <netdb.h>
13610 main ()
13613 char *name=0;
13614 struct hostent he;
13615 struct hostent *result;
13616 char *buf=0;
13617 int bufsize=0;
13618 int res,errnr;
13619 char *addr=0;
13620 int addrlen=0;
13621 int addrtype=0;
13622 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13623 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13626 return 0;
13628 _ACEOF
13629 if ac_fn_c_try_link "$LINENO"; then :
13630 wine_cv_linux_gethostbyname_r_6=yes
13631 else
13632 wine_cv_linux_gethostbyname_r_6=no
13635 rm -f core conftest.err conftest.$ac_objext \
13636 conftest$ac_exeext conftest.$ac_ext
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13640 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13641 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13642 then
13644 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13648 if test "$ac_cv_header_linux_joystick_h" = "yes"
13649 then
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13651 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13652 if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
13653 $as_echo_n "(cached) " >&6
13654 else
13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h. */
13658 #include <sys/ioctl.h>
13659 #include <sys/types.h>
13660 #include <linux/joystick.h>
13662 struct js_event blub;
13663 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13664 #error "no 2.2 header"
13665 #endif
13668 main ()
13670 /*empty*/
13672 return 0;
13674 _ACEOF
13675 if ac_fn_c_try_compile "$LINENO"; then :
13676 wine_cv_linux_joystick_22_api=yes
13677 else
13678 wine_cv_linux_joystick_22_api=no
13680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13684 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13685 if test "$wine_cv_linux_joystick_22_api" = "yes"
13686 then
13688 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13694 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13695 #ifdef HAVE_SYS_PARAM_H
13696 # include <sys/param.h>
13697 #endif
13698 #ifdef HAVE_SYS_MOUNT_H
13699 # include <sys/mount.h>
13700 #endif
13701 #ifdef HAVE_SYS_VFS_H
13702 # include <sys/vfs.h>
13703 #endif
13704 #ifdef HAVE_SYS_STATFS_H
13705 # include <sys/statfs.h>
13706 #endif
13708 if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
13710 cat >>confdefs.h <<_ACEOF
13711 #define HAVE_STRUCT_STATFS_F_BFREE 1
13712 _ACEOF
13716 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13717 #ifdef HAVE_SYS_PARAM_H
13718 # include <sys/param.h>
13719 #endif
13720 #ifdef HAVE_SYS_MOUNT_H
13721 # include <sys/mount.h>
13722 #endif
13723 #ifdef HAVE_SYS_VFS_H
13724 # include <sys/vfs.h>
13725 #endif
13726 #ifdef HAVE_SYS_STATFS_H
13727 # include <sys/statfs.h>
13728 #endif
13730 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
13732 cat >>confdefs.h <<_ACEOF
13733 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13734 _ACEOF
13738 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13739 #ifdef HAVE_SYS_PARAM_H
13740 # include <sys/param.h>
13741 #endif
13742 #ifdef HAVE_SYS_MOUNT_H
13743 # include <sys/mount.h>
13744 #endif
13745 #ifdef HAVE_SYS_VFS_H
13746 # include <sys/vfs.h>
13747 #endif
13748 #ifdef HAVE_SYS_STATFS_H
13749 # include <sys/statfs.h>
13750 #endif
13752 if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
13754 cat >>confdefs.h <<_ACEOF
13755 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13756 _ACEOF
13760 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13761 #ifdef HAVE_SYS_PARAM_H
13762 # include <sys/param.h>
13763 #endif
13764 #ifdef HAVE_SYS_MOUNT_H
13765 # include <sys/mount.h>
13766 #endif
13767 #ifdef HAVE_SYS_VFS_H
13768 # include <sys/vfs.h>
13769 #endif
13770 #ifdef HAVE_SYS_STATFS_H
13771 # include <sys/statfs.h>
13772 #endif
13774 if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
13776 cat >>confdefs.h <<_ACEOF
13777 #define HAVE_STRUCT_STATFS_F_FFREE 1
13778 _ACEOF
13782 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13783 #ifdef HAVE_SYS_PARAM_H
13784 # include <sys/param.h>
13785 #endif
13786 #ifdef HAVE_SYS_MOUNT_H
13787 # include <sys/mount.h>
13788 #endif
13789 #ifdef HAVE_SYS_VFS_H
13790 # include <sys/vfs.h>
13791 #endif
13792 #ifdef HAVE_SYS_STATFS_H
13793 # include <sys/statfs.h>
13794 #endif
13796 if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
13798 cat >>confdefs.h <<_ACEOF
13799 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13800 _ACEOF
13804 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13805 #ifdef HAVE_SYS_PARAM_H
13806 # include <sys/param.h>
13807 #endif
13808 #ifdef HAVE_SYS_MOUNT_H
13809 # include <sys/mount.h>
13810 #endif
13811 #ifdef HAVE_SYS_VFS_H
13812 # include <sys/vfs.h>
13813 #endif
13814 #ifdef HAVE_SYS_STATFS_H
13815 # include <sys/statfs.h>
13816 #endif
13818 if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
13820 cat >>confdefs.h <<_ACEOF
13821 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13822 _ACEOF
13828 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13829 #include <sys/statvfs.h>
13830 #endif
13832 if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
13834 cat >>confdefs.h <<_ACEOF
13835 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13836 _ACEOF
13842 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13843 #ifdef HAVE_SYS_SOCKET_H
13844 # include <sys/socket.h>
13845 #endif
13846 #ifdef HAVE_SYS_UN_H
13847 # include <sys/un.h>
13848 #endif
13850 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
13852 cat >>confdefs.h <<_ACEOF
13853 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13854 _ACEOF
13858 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13859 #ifdef HAVE_SYS_SOCKET_H
13860 # include <sys/socket.h>
13861 #endif
13862 #ifdef HAVE_SYS_UN_H
13863 # include <sys/un.h>
13864 #endif
13866 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13868 cat >>confdefs.h <<_ACEOF
13869 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13870 _ACEOF
13874 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13875 #ifdef HAVE_SYS_SOCKET_H
13876 # include <sys/socket.h>
13877 #endif
13878 #ifdef HAVE_SYS_UN_H
13879 # include <sys/un.h>
13880 #endif
13882 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
13884 cat >>confdefs.h <<_ACEOF
13885 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13886 _ACEOF
13892 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13893 #ifdef HAVE_SCSI_SG_H
13894 #include <scsi/sg.h>
13895 #endif
13897 if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
13899 cat >>confdefs.h <<_ACEOF
13900 #define HAVE_SCSIREQ_T_CMD 1
13901 _ACEOF
13905 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>
13906 #ifdef HAVE_SCSI_SG_H
13907 #include <scsi/sg.h>
13908 #endif
13910 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
13912 cat >>confdefs.h <<_ACEOF
13913 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13914 _ACEOF
13920 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13922 if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
13924 cat >>confdefs.h <<_ACEOF
13925 #define HAVE_SIGINFO_T_SI_FD 1
13926 _ACEOF
13932 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13933 #ifdef HAVE_SYS_MTIO_H
13934 #include <sys/mtio.h>
13935 #endif
13937 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
13939 cat >>confdefs.h <<_ACEOF
13940 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13941 _ACEOF
13945 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13946 #ifdef HAVE_SYS_MTIO_H
13947 #include <sys/mtio.h>
13948 #endif
13950 if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
13952 cat >>confdefs.h <<_ACEOF
13953 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13954 _ACEOF
13958 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13959 #ifdef HAVE_SYS_MTIO_H
13960 #include <sys/mtio.h>
13961 #endif
13963 if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
13965 cat >>confdefs.h <<_ACEOF
13966 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13967 _ACEOF
13973 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13974 #include <getopt.h>
13975 #endif
13977 if test "x$ac_cv_member_struct_option_name" = x""yes; then :
13979 cat >>confdefs.h <<_ACEOF
13980 #define HAVE_STRUCT_OPTION_NAME 1
13981 _ACEOF
13987 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13988 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
13990 cat >>confdefs.h <<_ACEOF
13991 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13992 _ACEOF
13996 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13997 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
13999 cat >>confdefs.h <<_ACEOF
14000 #define HAVE_STRUCT_STAT_ST_MTIM 1
14001 _ACEOF
14005 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14006 if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
14008 cat >>confdefs.h <<_ACEOF
14009 #define HAVE_STRUCT_STAT_ST_CTIM 1
14010 _ACEOF
14014 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14015 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
14017 cat >>confdefs.h <<_ACEOF
14018 #define HAVE_STRUCT_STAT_ST_ATIM 1
14019 _ACEOF
14025 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
14026 #include <sys/types.h>
14027 #endif
14028 #ifdef HAVE_NETINET_IN_H
14029 #include <netinet/in.h>
14030 #endif
14032 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
14034 cat >>confdefs.h <<_ACEOF
14035 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14036 _ACEOF
14042 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14043 #include <sys/types.h>
14044 #endif
14045 #ifdef HAVE_NETINET_IN_H
14046 # include <netinet/in.h>
14047 #endif
14048 #ifdef HAVE_ARPA_NAMESER_H
14049 # include <arpa/nameser.h>
14050 #endif
14052 if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
14054 cat >>confdefs.h <<_ACEOF
14055 #define HAVE_NS_MSG__MSG_PTR 1
14056 _ACEOF
14062 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14063 #include <sys/types.h>
14064 #endif
14065 #ifdef HAVE_ALIAS_H
14066 #include <alias.h>
14067 #endif
14068 #ifdef HAVE_SYS_SOCKET_H
14069 #include <sys/socket.h>
14070 #endif
14071 #ifdef HAVE_SYS_SOCKETVAR_H
14072 #include <sys/socketvar.h>
14073 #endif
14074 #ifdef HAVE_SYS_TIMEOUT_H
14075 #include <sys/timeout.h>
14076 #endif
14077 #ifdef HAVE_NETINET_IN_H
14078 #include <netinet/in.h>
14079 #endif
14080 #ifdef HAVE_NETINET_IN_SYSTM_H
14081 #include <netinet/in_systm.h>
14082 #endif
14083 #ifdef HAVE_NETINET_IP_H
14084 #include <netinet/ip.h>
14085 #endif
14086 #ifdef HAVE_NETINET_IP_VAR_H
14087 #include <netinet/ip_var.h>
14088 #endif
14089 #ifdef HAVE_NETINET_IP_ICMP_H
14090 #include <netinet/ip_icmp.h>
14091 #endif
14092 #ifdef HAVE_NETINET_ICMP_VAR
14093 #include <netinet/icmp_var.h>
14094 #endif
14096 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
14098 cat >>confdefs.h <<_ACEOF
14099 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14100 _ACEOF
14106 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14107 #include <sys/types.h>
14108 #endif
14109 #ifdef HAVE_NET_IF_H
14110 # include <net/if.h>
14111 #endif
14113 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
14115 cat >>confdefs.h <<_ACEOF
14116 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14117 _ACEOF
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14124 $as_echo_n "checking for timezone variable... " >&6; }
14125 if test "${ac_cv_have_timezone+set}" = set; then :
14126 $as_echo_n "(cached) " >&6
14127 else
14128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h. */
14130 #include <time.h>
14132 main ()
14134 timezone = 1
14136 return 0;
14138 _ACEOF
14139 if ac_fn_c_try_link "$LINENO"; then :
14140 ac_cv_have_timezone="yes"
14141 else
14142 ac_cv_have_timezone="no"
14144 rm -f core conftest.err conftest.$ac_objext \
14145 conftest$ac_exeext conftest.$ac_ext
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14148 $as_echo "$ac_cv_have_timezone" >&6; }
14149 if test "$ac_cv_have_timezone" = "yes"
14150 then
14152 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14156 $as_echo_n "checking for daylight variable... " >&6; }
14157 if test "${ac_cv_have_daylight+set}" = set; then :
14158 $as_echo_n "(cached) " >&6
14159 else
14160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161 /* end confdefs.h. */
14162 #include <time.h>
14164 main ()
14166 daylight = 1
14168 return 0;
14170 _ACEOF
14171 if ac_fn_c_try_link "$LINENO"; then :
14172 ac_cv_have_daylight="yes"
14173 else
14174 ac_cv_have_daylight="no"
14176 rm -f core conftest.err conftest.$ac_objext \
14177 conftest$ac_exeext conftest.$ac_ext
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14180 $as_echo "$ac_cv_have_daylight" >&6; }
14181 if test "$ac_cv_have_daylight" = "yes"
14182 then
14184 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14189 $as_echo_n "checking for isinf... " >&6; }
14190 if test "${ac_cv_have_isinf+set}" = set; then :
14191 $as_echo_n "(cached) " >&6
14192 else
14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h. */
14195 #include <math.h>
14197 main ()
14199 float f = 0.0; int i=isinf(f)
14201 return 0;
14203 _ACEOF
14204 if ac_fn_c_try_link "$LINENO"; then :
14205 ac_cv_have_isinf="yes"
14206 else
14207 ac_cv_have_isinf="no"
14209 rm -f core conftest.err conftest.$ac_objext \
14210 conftest$ac_exeext conftest.$ac_ext
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14213 $as_echo "$ac_cv_have_isinf" >&6; }
14214 if test "$ac_cv_have_isinf" = "yes"
14215 then
14217 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14222 $as_echo_n "checking for isnan... " >&6; }
14223 if test "${ac_cv_have_isnan+set}" = set; then :
14224 $as_echo_n "(cached) " >&6
14225 else
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14228 #include <math.h>
14230 main ()
14232 float f = 0.0; int i=isnan(f)
14234 return 0;
14236 _ACEOF
14237 if ac_fn_c_try_link "$LINENO"; then :
14238 ac_cv_have_isnan="yes"
14239 else
14240 ac_cv_have_isnan="no"
14242 rm -f core conftest.err conftest.$ac_objext \
14243 conftest$ac_exeext conftest.$ac_ext
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14246 $as_echo "$ac_cv_have_isnan" >&6; }
14247 if test "$ac_cv_have_isnan" = "yes"
14248 then
14250 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14255 case $host_cpu in
14256 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14257 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14258 if test "${ac_cv_cpp_def___i386__+set}" = set; then :
14259 $as_echo_n "(cached) " >&6
14260 else
14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h. */
14263 #ifndef __i386__
14265 #endif
14266 _ACEOF
14267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14268 $EGREP "yes" >/dev/null 2>&1; then :
14269 ac_cv_cpp_def___i386__=yes
14270 else
14271 ac_cv_cpp_def___i386__=no
14273 rm -f conftest*
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14277 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14278 if test $ac_cv_cpp_def___i386__ = yes; then :
14279 CFLAGS="$CFLAGS -D__i386__"
14280 LINTFLAGS="$LINTFLAGS -D__i386__"
14281 fi ;;
14282 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14283 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14284 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
14285 $as_echo_n "(cached) " >&6
14286 else
14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14288 /* end confdefs.h. */
14289 #ifndef __x86_64__
14291 #endif
14292 _ACEOF
14293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14294 $EGREP "yes" >/dev/null 2>&1; then :
14295 ac_cv_cpp_def___x86_64__=yes
14296 else
14297 ac_cv_cpp_def___x86_64__=no
14299 rm -f conftest*
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14303 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14304 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14305 CFLAGS="$CFLAGS -D__x86_64__"
14306 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14307 fi ;;
14308 *alpha*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
14309 $as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
14310 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
14311 $as_echo_n "(cached) " >&6
14312 else
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14315 #ifndef __ALPHA__
14317 #endif
14318 _ACEOF
14319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14320 $EGREP "yes" >/dev/null 2>&1; then :
14321 ac_cv_cpp_def___ALPHA__=yes
14322 else
14323 ac_cv_cpp_def___ALPHA__=no
14325 rm -f conftest*
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
14329 $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
14330 if test $ac_cv_cpp_def___ALPHA__ = yes; then :
14331 CFLAGS="$CFLAGS -D__ALPHA__"
14332 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
14333 fi ;;
14334 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14335 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14336 if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
14337 $as_echo_n "(cached) " >&6
14338 else
14339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14340 /* end confdefs.h. */
14341 #ifndef __sparc__
14343 #endif
14344 _ACEOF
14345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14346 $EGREP "yes" >/dev/null 2>&1; then :
14347 ac_cv_cpp_def___sparc__=yes
14348 else
14349 ac_cv_cpp_def___sparc__=no
14351 rm -f conftest*
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14355 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14356 if test $ac_cv_cpp_def___sparc__ = yes; then :
14357 CFLAGS="$CFLAGS -D__sparc__"
14358 LINTFLAGS="$LINTFLAGS -D__sparc__"
14359 fi ;;
14360 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14361 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14362 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
14363 $as_echo_n "(cached) " >&6
14364 else
14365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14366 /* end confdefs.h. */
14367 #ifndef __powerpc__
14369 #endif
14370 _ACEOF
14371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14372 $EGREP "yes" >/dev/null 2>&1; then :
14373 ac_cv_cpp_def___powerpc__=yes
14374 else
14375 ac_cv_cpp_def___powerpc__=no
14377 rm -f conftest*
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14381 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14382 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14383 CFLAGS="$CFLAGS -D__powerpc__"
14384 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14385 fi ;;
14386 esac
14388 case $host_vendor in
14389 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14390 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14391 if test "${ac_cv_cpp_def___sun__+set}" = set; then :
14392 $as_echo_n "(cached) " >&6
14393 else
14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h. */
14396 #ifndef __sun__
14398 #endif
14399 _ACEOF
14400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14401 $EGREP "yes" >/dev/null 2>&1; then :
14402 ac_cv_cpp_def___sun__=yes
14403 else
14404 ac_cv_cpp_def___sun__=no
14406 rm -f conftest*
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14410 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14411 if test $ac_cv_cpp_def___sun__ = yes; then :
14412 CFLAGS="$CFLAGS -D__sun__"
14413 LINTFLAGS="$LINTFLAGS -D__sun__"
14414 fi ;;
14415 esac
14421 ac_config_commands="$ac_config_commands include/stamp-h"
14424 ALL_MAKEFILE_DEPENDS="
14425 # Rules automatically generated by configure
14427 .INIT: Makefile
14428 .MAKEFILEDEPS:
14429 all: Makefile
14430 Makefile: Makefile.in Make.vars.in Make.rules config.status
14431 @./config.status Make.tmp Makefile"
14433 ALL_POT_FILES=""
14434 ALL_WINETEST_DEPENDS="# Test binaries"
14436 ALL_TEST_BINARIES=""
14439 wine_fn_append_file ()
14441 as_fn_append $1 " \\$as_nl $2"
14444 wine_fn_append_rule ()
14446 as_fn_append $1 "$as_nl$2"
14449 wine_fn_has_flag ()
14451 expr ",$2," : ".*,$1,.*" >/dev/null
14454 wine_fn_all_dir_rules ()
14456 ac_dir=$1
14457 ac_alldeps=$2
14458 ac_makedep="\$(MAKEDEP)"
14459 ac_input=Make.vars.in:$ac_dir/Makefile.in
14460 if test $ac_dir != tools
14461 then
14462 ac_alldeps="$2 $ac_makedep"
14464 case $2 in
14465 *.in) ac_input=$ac_input:$2 ;;
14466 *) ac_makedep="$2 $ac_makedep" ;;
14467 esac
14469 wine_fn_append_file ALL_DIRS $ac_dir
14470 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14471 "__clean__: $ac_dir/__clean__
14472 .PHONY: $ac_dir/__clean__
14473 $ac_dir/__clean__: $ac_dir/Makefile
14474 @cd $ac_dir && \$(MAKE) clean
14475 \$(RM) $ac_dir/Makefile
14476 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14477 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14478 depend: $ac_dir/__depend__
14479 .PHONY: $ac_dir/__depend__
14480 $ac_dir/__depend__: $ac_makedep dummy
14481 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14484 wine_fn_config_makefile ()
14486 ac_dir=$1
14487 ac_enable=$2
14488 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14489 return 0
14492 wine_fn_all_dir_rules $ac_dir Make.rules
14493 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14494 "all: $ac_dir
14495 .PHONY: $ac_dir
14496 $ac_dir: $ac_dir/Makefile dummy
14497 @cd $ac_dir && \$(MAKE)
14498 install:: $ac_dir
14499 @cd $ac_dir && \$(MAKE) install
14500 install-lib:: $ac_dir
14501 @cd $ac_dir && \$(MAKE) install-lib
14502 install-dev:: $ac_dir
14503 @cd $ac_dir && \$(MAKE) install-dev
14504 uninstall:: $ac_dir/Makefile
14505 @cd $ac_dir && \$(MAKE) uninstall"
14508 wine_fn_config_lib ()
14510 ac_name=$1
14511 ac_dir=dlls/$ac_name
14512 wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules
14513 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14514 "all __builddeps__: $ac_dir
14515 $ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
14516 @cd $ac_dir && \$(MAKE)
14517 install install-dev:: $ac_dir
14518 @cd $ac_dir && \$(MAKE) install
14519 uninstall:: $ac_dir/Makefile
14520 @cd $ac_dir && \$(MAKE) uninstall"
14523 wine_fn_config_dll ()
14525 ac_name=$1
14526 ac_dir=dlls/$ac_name
14527 ac_enable=$2
14528 ac_flags=$3
14529 ac_implib=${4:-$ac_name}
14530 ac_file=$ac_dir/lib$ac_implib
14531 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14532 ac_implibflags=""
14534 case $ac_name in
14535 *16) ac_implibflags=" -m16" ;;
14536 esac
14538 wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14540 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14541 test "$ac_enable" != enable_win16 || return 0
14542 else
14543 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14544 "all: $ac_dir
14545 .PHONY: $ac_dir
14546 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14547 @cd $ac_dir && \$(MAKE)
14548 install:: $ac_dir/Makefile __builddeps__
14549 @cd $ac_dir && \$(MAKE) install
14550 install-lib:: $ac_dir/Makefile __builddeps__
14551 @cd $ac_dir && \$(MAKE) install-lib
14552 uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14553 @cd $ac_dir && \$(MAKE) \$@"
14555 if test "x$enable_maintainer_mode" = xyes
14556 then
14557 if wine_fn_has_flag mc $ac_flags
14558 then
14559 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14560 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14561 "$ac_dir/msg.pot: $ac_dir"
14563 if wine_fn_has_flag po $ac_flags
14564 then
14565 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14566 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14567 "$ac_dir/rsrc.pot: $ac_dir"
14572 if wine_fn_has_flag staticimplib $ac_flags
14573 then
14574 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14575 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14576 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14577 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14578 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14579 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14580 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14581 install-dev:: $ac_dir/Makefile __builddeps__
14582 @cd $ac_dir && \$(MAKE) install-dev"
14583 if test "x$CROSSTEST_DISABLE" = x
14584 then
14585 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14586 "__builddeps__: $ac_file.cross.a
14587 $ac_file.cross.a: $ac_dir/Makefile dummy
14588 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14591 elif wine_fn_has_flag implib $ac_flags
14592 then
14593 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14594 "__builddeps__: $ac_file.$IMPLIBEXT
14595 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14596 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14597 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14598 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14599 install-dev:: $ac_dir/Makefile __builddeps__
14600 @cd $ac_dir && \$(MAKE) install-dev"
14601 if test "x$CROSSTEST_DISABLE" = x
14602 then
14603 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14604 "__builddeps__: $ac_file.cross.a
14605 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14606 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14609 if test "$ac_name" != "$ac_implib"
14610 then
14611 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14612 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14613 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14614 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14615 clean::
14616 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14617 if test "x$CROSSTEST_DISABLE" = x
14618 then
14619 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14620 "__builddeps__: dlls/lib$ac_implib.cross.a
14621 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14622 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14628 wine_fn_config_program ()
14630 ac_name=$1
14631 ac_dir=programs/$ac_name
14632 ac_enable=$2
14633 ac_flags=$3
14634 wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules
14636 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14638 else
14639 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14640 "all: $ac_dir
14641 .PHONY: $ac_dir
14642 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14643 @cd $ac_dir && \$(MAKE)"
14645 if test "x$enable_maintainer_mode" = xyes
14646 then
14647 if wine_fn_has_flag mc $ac_flags
14648 then
14649 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14650 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14651 "$ac_dir/msg.pot: $ac_dir"
14653 if wine_fn_has_flag po $ac_flags
14654 then
14655 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14656 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14657 "$ac_dir/rsrc.pot: $ac_dir"
14661 wine_fn_has_flag install $ac_flags || return
14662 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14663 "install install-lib:: $ac_dir/Makefile __builddeps__
14664 @cd $ac_dir && \$(MAKE) install
14665 uninstall:: $ac_dir/Makefile
14666 @cd $ac_dir && \$(MAKE) uninstall"
14667 if test -n "$DLLEXT" -a "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14668 then
14669 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14670 "install install-lib:: tools \$(DESTDIR)\$(bindir)
14671 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14672 uninstall::
14673 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14678 wine_fn_config_test ()
14680 ac_dir=$1
14681 ac_name=$2
14682 wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14683 wine_fn_append_rule ALL_WINETEST_DEPENDS \
14684 "$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT
14685 cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14686 $ac_name.rc:
14687 echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14688 $ac_name.res: $ac_name.rc $ac_name.exe"
14689 wine_fn_all_dir_rules $ac_dir Maketest.rules
14691 if test "x$enable_tests" = x""no; then :
14693 else
14694 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14695 "all programs/winetest: $ac_dir
14696 .PHONY: $ac_dir
14697 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14698 @cd $ac_dir && \$(MAKE)
14699 test: $ac_dir/__test__
14700 .PHONY: $ac_dir/__test__
14701 $ac_dir/__test__: dummy
14702 @cd $ac_dir && \$(MAKE) test
14703 testclean::
14704 \$(RM) $ac_dir/*.ok"
14706 if test "x$CROSSTEST_DISABLE" = x
14707 then
14708 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14709 "crosstest: $ac_dir/__crosstest__
14710 .PHONY: $ac_dir/__crosstest__
14711 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14712 @cd $ac_dir && \$(MAKE) crosstest"
14717 wine_fn_config_tool ()
14719 ac_dir=$1
14720 wine_fn_all_dir_rules $ac_dir Make.rules
14722 if test "x$enable_tools" = x""no; then :
14724 else
14725 case $ac_dir in
14726 tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14727 "install:: $ac_dir
14728 @cd $ac_dir && \$(MAKE) install
14729 install-lib:: $ac_dir
14730 @cd $ac_dir && \$(MAKE) install-lib
14731 install-dev:: $ac_dir
14732 @cd $ac_dir && \$(MAKE) install-dev" ;;
14733 *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14734 "install install-dev:: $ac_dir
14735 @cd $ac_dir && \$(MAKE) install" ;;
14736 esac
14737 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14738 "uninstall:: $ac_dir/Makefile
14739 @cd $ac_dir && \$(MAKE) uninstall
14740 all __tooldeps__: $ac_dir
14741 .PHONY: $ac_dir
14742 $ac_dir: $ac_dir/Makefile libs/port dummy
14743 @cd $ac_dir && \$(MAKE)"
14744 case $ac_dir in
14745 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14746 esac
14750 wine_fn_config_makerules ()
14752 ac_rules=$1
14753 ac_deps=$2
14754 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14755 "$ac_rules: $ac_rules.in $ac_deps config.status
14756 @./config.status $ac_rules
14757 distclean::
14758 \$(RM) $ac_rules"
14761 wine_fn_config_symlink ()
14763 ac_link=$1
14764 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14765 "$ac_link:
14766 @./config.status $ac_link
14767 distclean::
14768 \$(RM) $ac_link"
14771 if test "x$CROSSTEST_DISABLE" != x
14772 then
14773 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14774 "crosstest:
14775 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14777 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14778 wine_fn_config_symlink dlls/shell32/AUTHORS
14779 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14780 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14781 if test "x$enable_fonts" != xno; then
14782 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14783 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14785 if test "x$enable_fonts" != xno; then
14786 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14787 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14789 if test "x$enable_fonts" != xno; then
14790 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14791 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14793 if test "x$enable_fonts" != xno; then
14794 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14795 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14797 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14798 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14799 ac_config_links="$ac_config_links wine:tools/winewrapper"
14800 wine_fn_config_symlink wine
14802 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14804 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14806 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14808 ac_config_commands="$ac_config_commands dlls/user32/resources"
14810 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14812 ac_config_commands="$ac_config_commands include/wine"
14815 wine_fn_config_makerules Make.rules
14816 MAKE_RULES=Make.rules
14817 ac_config_files="$ac_config_files Make.rules"
14819 wine_fn_config_makerules Maketest.rules Make.rules
14820 MAKE_TEST_RULES=Maketest.rules
14821 ac_config_files="$ac_config_files Maketest.rules"
14823 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14824 MAKE_DLL_RULES=dlls/Makedll.rules
14825 ac_config_files="$ac_config_files dlls/Makedll.rules"
14827 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14828 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14829 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14831 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14832 MAKE_PROG_RULES=programs/Makeprog.rules
14833 ac_config_files="$ac_config_files programs/Makeprog.rules"
14836 wine_fn_config_dll acledit enable_acledit
14837 wine_fn_config_dll aclui enable_aclui implib
14838 wine_fn_config_dll activeds enable_activeds implib
14839 wine_fn_config_dll actxprxy enable_actxprxy
14840 wine_fn_config_lib adsiid
14841 wine_fn_config_dll advapi32 enable_advapi32 implib
14842 wine_fn_config_test dlls/advapi32/tests advapi32_test
14843 wine_fn_config_dll advpack enable_advpack implib
14844 wine_fn_config_test dlls/advpack/tests advpack_test
14845 wine_fn_config_dll amstream enable_amstream
14846 wine_fn_config_test dlls/amstream/tests amstream_test
14847 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14848 wine_fn_config_dll atl enable_atl implib
14849 wine_fn_config_test dlls/atl/tests atl_test
14850 wine_fn_config_dll authz enable_authz
14851 wine_fn_config_dll avicap32 enable_avicap32 implib
14852 wine_fn_config_dll avifil32 enable_avifil32 po,implib
14853 wine_fn_config_test dlls/avifil32/tests avifil32_test
14854 wine_fn_config_dll avifile.dll16 enable_win16
14855 wine_fn_config_dll avrt enable_avrt implib
14856 wine_fn_config_dll bcrypt enable_bcrypt
14857 wine_fn_config_dll browseui enable_browseui po
14858 wine_fn_config_test dlls/browseui/tests browseui_test
14859 wine_fn_config_dll cabinet enable_cabinet implib
14860 wine_fn_config_test dlls/cabinet/tests cabinet_test
14861 wine_fn_config_dll capi2032 enable_capi2032 implib
14862 wine_fn_config_dll cards enable_cards implib
14863 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14864 wine_fn_config_dll clusapi enable_clusapi implib
14865 wine_fn_config_dll comcat enable_comcat
14866 wine_fn_config_test dlls/comcat/tests comcat_test
14867 wine_fn_config_dll comctl32 enable_comctl32 po,implib
14868 wine_fn_config_test dlls/comctl32/tests comctl32_test
14869 wine_fn_config_dll comdlg32 enable_comdlg32 po,implib
14870 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14871 wine_fn_config_dll comm.drv16 enable_win16
14872 wine_fn_config_dll commdlg.dll16 enable_win16
14873 wine_fn_config_dll compobj.dll16 enable_win16
14874 wine_fn_config_dll compstui enable_compstui implib
14875 wine_fn_config_dll credui enable_credui po,implib
14876 wine_fn_config_test dlls/credui/tests credui_test
14877 wine_fn_config_dll crtdll enable_crtdll implib
14878 wine_fn_config_dll crypt32 enable_crypt32 po,implib
14879 wine_fn_config_test dlls/crypt32/tests crypt32_test
14880 wine_fn_config_dll cryptdlg enable_cryptdlg po
14881 wine_fn_config_dll cryptdll enable_cryptdll implib
14882 wine_fn_config_dll cryptnet enable_cryptnet implib
14883 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14884 wine_fn_config_dll cryptui enable_cryptui po,implib
14885 wine_fn_config_test dlls/cryptui/tests cryptui_test
14886 wine_fn_config_dll ctapi32 enable_ctapi32
14887 wine_fn_config_dll ctl3d.dll16 enable_win16
14888 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14889 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14890 wine_fn_config_dll d3d10 enable_d3d10 implib
14891 wine_fn_config_test dlls/d3d10/tests d3d10_test
14892 wine_fn_config_dll d3d10core enable_d3d10core implib
14893 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14894 wine_fn_config_dll d3d8 enable_d3d8 implib
14895 wine_fn_config_test dlls/d3d8/tests d3d8_test
14896 wine_fn_config_dll d3d9 enable_d3d9 implib
14897 wine_fn_config_test dlls/d3d9/tests d3d9_test
14898 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14899 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14900 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14901 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14902 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14903 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14904 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14905 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14906 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14907 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14908 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14909 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14910 wine_fn_config_dll d3dim enable_d3dim implib
14911 wine_fn_config_dll d3drm enable_d3drm implib
14912 wine_fn_config_test dlls/d3drm/tests d3drm_test
14913 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14914 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14915 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14916 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14917 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14918 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14919 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14920 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14921 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14922 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14923 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14924 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14925 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14926 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14927 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14928 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14929 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14930 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14931 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14932 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14933 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14934 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14935 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14936 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
14937 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14938 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14939 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14940 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14941 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14942 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14943 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14944 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
14945 wine_fn_config_dll d3dxof enable_d3dxof implib
14946 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14947 wine_fn_config_dll dbgeng enable_dbgeng implib
14948 wine_fn_config_dll dbghelp enable_dbghelp implib
14949 wine_fn_config_dll dciman32 enable_dciman32 implib
14950 wine_fn_config_dll ddeml.dll16 enable_win16
14951 wine_fn_config_dll ddraw enable_ddraw implib
14952 wine_fn_config_test dlls/ddraw/tests ddraw_test
14953 wine_fn_config_dll ddrawex enable_ddrawex
14954 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14955 wine_fn_config_dll devenum enable_devenum po
14956 wine_fn_config_dll dinput enable_dinput implib,staticimplib
14957 wine_fn_config_test dlls/dinput/tests dinput_test
14958 wine_fn_config_dll dinput8 enable_dinput8 implib
14959 wine_fn_config_dll dispdib.dll16 enable_win16
14960 wine_fn_config_dll dispex enable_dispex
14961 wine_fn_config_test dlls/dispex/tests dispex_test
14962 wine_fn_config_dll display.drv16 enable_win16
14963 wine_fn_config_dll dmband enable_dmband
14964 wine_fn_config_dll dmcompos enable_dmcompos
14965 wine_fn_config_dll dmime enable_dmime
14966 wine_fn_config_test dlls/dmime/tests dmime_test
14967 wine_fn_config_dll dmloader enable_dmloader
14968 wine_fn_config_test dlls/dmloader/tests dmloader_test
14969 wine_fn_config_dll dmscript enable_dmscript
14970 wine_fn_config_dll dmstyle enable_dmstyle
14971 wine_fn_config_dll dmsynth enable_dmsynth
14972 wine_fn_config_dll dmusic enable_dmusic
14973 wine_fn_config_dll dmusic32 enable_dmusic32 implib
14974 wine_fn_config_dll dnsapi enable_dnsapi implib
14975 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14976 wine_fn_config_dll dplay enable_dplay implib
14977 wine_fn_config_dll dplayx enable_dplayx implib
14978 wine_fn_config_test dlls/dplayx/tests dplayx_test
14979 wine_fn_config_dll dpnaddr enable_dpnaddr
14980 wine_fn_config_dll dpnet enable_dpnet implib
14981 wine_fn_config_dll dpnhpast enable_dpnhpast
14982 wine_fn_config_dll dpnlobby enable_dpnlobby
14983 wine_fn_config_dll dpwsockx enable_dpwsockx
14984 wine_fn_config_dll drmclien enable_drmclien
14985 wine_fn_config_dll dsound enable_dsound implib
14986 wine_fn_config_test dlls/dsound/tests dsound_test
14987 wine_fn_config_dll dssenh enable_dssenh
14988 wine_fn_config_dll dswave enable_dswave
14989 wine_fn_config_dll dwmapi enable_dwmapi implib
14990 wine_fn_config_dll dxdiagn enable_dxdiagn
14991 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
14992 wine_fn_config_lib dxerr8
14993 wine_fn_config_lib dxerr9
14994 wine_fn_config_dll dxgi enable_dxgi implib
14995 wine_fn_config_test dlls/dxgi/tests dxgi_test
14996 wine_fn_config_lib dxguid
14997 wine_fn_config_dll explorerframe enable_explorerframe
14998 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
14999 wine_fn_config_dll faultrep enable_faultrep implib
15000 wine_fn_config_test dlls/faultrep/tests faultrep_test
15001 wine_fn_config_dll fltlib enable_fltlib
15002 wine_fn_config_dll fusion enable_fusion
15003 wine_fn_config_test dlls/fusion/tests fusion_test
15004 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15005 wine_fn_config_dll gameux enable_gameux
15006 wine_fn_config_test dlls/gameux/tests gameux_test
15007 wine_fn_config_dll gdi.exe16 enable_win16
15008 wine_fn_config_dll gdi32 enable_gdi32 implib
15009 wine_fn_config_test dlls/gdi32/tests gdi32_test
15010 wine_fn_config_dll gdiplus enable_gdiplus implib
15011 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15012 wine_fn_config_dll glu32 enable_glu32 implib
15013 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
15014 wine_fn_config_dll gpkcsp enable_gpkcsp
15015 wine_fn_config_dll hal enable_hal
15016 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15017 wine_fn_config_dll hid enable_hid implib
15018 wine_fn_config_dll hlink enable_hlink implib
15019 wine_fn_config_test dlls/hlink/tests hlink_test
15020 wine_fn_config_dll hnetcfg enable_hnetcfg
15021 wine_fn_config_dll httpapi enable_httpapi
15022 wine_fn_config_dll iccvid enable_iccvid po
15023 wine_fn_config_dll icmp enable_icmp
15024 wine_fn_config_dll ifsmgr.vxd enable_win16
15025 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15026 wine_fn_config_dll imagehlp enable_imagehlp implib
15027 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15028 wine_fn_config_dll imm.dll16 enable_win16
15029 wine_fn_config_dll imm32 enable_imm32 implib
15030 wine_fn_config_test dlls/imm32/tests imm32_test
15031 wine_fn_config_dll inetcomm enable_inetcomm implib
15032 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15033 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15034 wine_fn_config_dll inetmib1 enable_inetmib1
15035 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15036 wine_fn_config_dll infosoft enable_infosoft
15037 wine_fn_config_test dlls/infosoft/tests infosoft_test
15038 wine_fn_config_dll initpki enable_initpki
15039 wine_fn_config_dll inkobj enable_inkobj
15040 wine_fn_config_dll inseng enable_inseng
15041 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15042 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15043 wine_fn_config_dll itircl enable_itircl
15044 wine_fn_config_dll itss enable_itss
15045 wine_fn_config_test dlls/itss/tests itss_test
15046 wine_fn_config_dll jscript enable_jscript po
15047 wine_fn_config_test dlls/jscript/tests jscript_test
15048 wine_fn_config_dll kernel32 enable_kernel32 mc,implib
15049 wine_fn_config_test dlls/kernel32/tests kernel32_test
15050 wine_fn_config_dll keyboard.drv16 enable_win16
15051 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15052 wine_fn_config_dll ktmw32 enable_ktmw32
15053 wine_fn_config_dll loadperf enable_loadperf implib
15054 wine_fn_config_dll localspl enable_localspl po
15055 wine_fn_config_test dlls/localspl/tests localspl_test
15056 wine_fn_config_dll localui enable_localui po
15057 wine_fn_config_test dlls/localui/tests localui_test
15058 wine_fn_config_dll lz32 enable_lz32 implib
15059 wine_fn_config_test dlls/lz32/tests lz32_test
15060 wine_fn_config_dll lzexpand.dll16 enable_win16
15061 wine_fn_config_dll mapi32 enable_mapi32 po,implib
15062 wine_fn_config_test dlls/mapi32/tests mapi32_test
15063 wine_fn_config_dll mapistub enable_mapistub
15064 wine_fn_config_dll mciavi32 enable_mciavi32
15065 wine_fn_config_dll mcicda enable_mcicda
15066 wine_fn_config_dll mciqtz32 enable_mciqtz32
15067 wine_fn_config_dll mciseq enable_mciseq
15068 wine_fn_config_dll mciwave enable_mciwave
15069 wine_fn_config_dll midimap enable_midimap
15070 wine_fn_config_dll mlang enable_mlang implib
15071 wine_fn_config_test dlls/mlang/tests mlang_test
15072 wine_fn_config_dll mmdevapi enable_mmdevapi
15073 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15074 wine_fn_config_dll mmdevldr.vxd enable_win16
15075 wine_fn_config_dll mmsystem.dll16 enable_win16
15076 wine_fn_config_dll monodebg.vxd enable_win16
15077 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15078 wine_fn_config_dll mouse.drv16 enable_win16
15079 wine_fn_config_dll mpr enable_mpr po,implib
15080 wine_fn_config_dll mprapi enable_mprapi implib
15081 wine_fn_config_dll msacm.dll16 enable_win16
15082 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15083 wine_fn_config_dll msacm32 enable_msacm32 implib
15084 wine_fn_config_test dlls/msacm32/tests msacm32_test
15085 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15086 wine_fn_config_dll mscat32 enable_mscat32
15087 wine_fn_config_dll mscms enable_mscms implib
15088 wine_fn_config_test dlls/mscms/tests mscms_test
15089 wine_fn_config_dll mscoree enable_mscoree
15090 wine_fn_config_test dlls/mscoree/tests mscoree_test
15091 wine_fn_config_dll msctf enable_msctf
15092 wine_fn_config_test dlls/msctf/tests msctf_test
15093 wine_fn_config_dll msdaps enable_msdaps
15094 wine_fn_config_dll msdmo enable_msdmo implib
15095 wine_fn_config_dll msftedit enable_msftedit
15096 wine_fn_config_dll msg711.acm enable_msg711_acm
15097 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15098 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15099 wine_fn_config_dll mshtml enable_mshtml po,implib
15100 wine_fn_config_test dlls/mshtml/tests mshtml_test
15101 wine_fn_config_dll msi enable_msi po,implib
15102 wine_fn_config_test dlls/msi/tests msi_test
15103 wine_fn_config_dll msimg32 enable_msimg32 implib
15104 wine_fn_config_dll msimtf enable_msimtf
15105 wine_fn_config_dll msisip enable_msisip
15106 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15107 wine_fn_config_dll msnet32 enable_msnet32
15108 wine_fn_config_dll msrle32 enable_msrle32 po
15109 wine_fn_config_dll mssign32 enable_mssign32
15110 wine_fn_config_dll mssip32 enable_mssip32
15111 wine_fn_config_dll mstask enable_mstask
15112 wine_fn_config_test dlls/mstask/tests mstask_test
15113 wine_fn_config_dll msvcirt enable_msvcirt
15114 wine_fn_config_dll msvcp80 enable_msvcp80
15115 wine_fn_config_dll msvcp90 enable_msvcp90
15116 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15117 wine_fn_config_dll msvcr100 enable_msvcr100
15118 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15119 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15120 wine_fn_config_dll msvcr80 enable_msvcr80
15121 wine_fn_config_dll msvcr90 enable_msvcr90
15122 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15123 wine_fn_config_dll msvcrt enable_msvcrt implib
15124 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15125 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15126 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15127 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15128 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15129 wine_fn_config_dll msvfw32 enable_msvfw32 po,implib
15130 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15131 wine_fn_config_dll msvidc32 enable_msvidc32 po
15132 wine_fn_config_dll msvideo.dll16 enable_win16
15133 wine_fn_config_dll mswsock enable_mswsock implib
15134 wine_fn_config_dll msxml enable_msxml
15135 wine_fn_config_dll msxml2 enable_msxml2
15136 wine_fn_config_dll msxml3 enable_msxml3
15137 wine_fn_config_test dlls/msxml3/tests msxml3_test
15138 wine_fn_config_dll msxml4 enable_msxml4
15139 wine_fn_config_dll msxml6 enable_msxml6
15140 wine_fn_config_dll nddeapi enable_nddeapi implib
15141 wine_fn_config_dll netapi32 enable_netapi32 implib
15142 wine_fn_config_test dlls/netapi32/tests netapi32_test
15143 wine_fn_config_dll newdev enable_newdev implib
15144 wine_fn_config_dll normaliz enable_normaliz implib
15145 wine_fn_config_dll npmshtml enable_npmshtml
15146 wine_fn_config_dll ntdll enable_ntdll implib
15147 wine_fn_config_test dlls/ntdll/tests ntdll_test
15148 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15149 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15150 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15151 wine_fn_config_dll ntprint enable_ntprint
15152 wine_fn_config_test dlls/ntprint/tests ntprint_test
15153 wine_fn_config_dll objsel enable_objsel
15154 wine_fn_config_dll odbc32 enable_odbc32 implib
15155 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15156 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15157 wine_fn_config_dll ole2.dll16 enable_win16
15158 wine_fn_config_dll ole2conv.dll16 enable_win16
15159 wine_fn_config_dll ole2disp.dll16 enable_win16
15160 wine_fn_config_dll ole2nls.dll16 enable_win16
15161 wine_fn_config_dll ole2prox.dll16 enable_win16
15162 wine_fn_config_dll ole2thk.dll16 enable_win16
15163 wine_fn_config_dll ole32 enable_ole32 implib
15164 wine_fn_config_test dlls/ole32/tests ole32_test
15165 wine_fn_config_dll oleacc enable_oleacc po,implib
15166 wine_fn_config_test dlls/oleacc/tests oleacc_test
15167 wine_fn_config_dll oleaut32 enable_oleaut32 po,implib
15168 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15169 wine_fn_config_dll olecli.dll16 enable_win16
15170 wine_fn_config_dll olecli32 enable_olecli32 implib
15171 wine_fn_config_dll oledb32 enable_oledb32
15172 wine_fn_config_test dlls/oledb32/tests oledb32_test
15173 wine_fn_config_dll oledlg enable_oledlg po,implib
15174 wine_fn_config_dll olepro32 enable_olepro32 implib
15175 wine_fn_config_dll olesvr.dll16 enable_win16
15176 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15177 wine_fn_config_dll olethk32 enable_olethk32
15178 wine_fn_config_dll openal32 enable_openal32
15179 wine_fn_config_dll opencl enable_opencl
15180 wine_fn_config_dll opengl32 enable_opengl32 implib
15181 wine_fn_config_test dlls/opengl32/tests opengl32_test
15182 wine_fn_config_dll pdh enable_pdh implib
15183 wine_fn_config_test dlls/pdh/tests pdh_test
15184 wine_fn_config_dll pidgen enable_pidgen
15185 wine_fn_config_dll powrprof enable_powrprof implib
15186 wine_fn_config_dll printui enable_printui
15187 wine_fn_config_dll propsys enable_propsys implib
15188 wine_fn_config_test dlls/propsys/tests propsys_test
15189 wine_fn_config_dll psapi enable_psapi implib
15190 wine_fn_config_test dlls/psapi/tests psapi_test
15191 wine_fn_config_dll pstorec enable_pstorec
15192 wine_fn_config_dll qcap enable_qcap
15193 wine_fn_config_dll qedit enable_qedit
15194 wine_fn_config_test dlls/qedit/tests qedit_test
15195 wine_fn_config_dll qmgr enable_qmgr
15196 wine_fn_config_test dlls/qmgr/tests qmgr_test
15197 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15198 wine_fn_config_dll quartz enable_quartz implib
15199 wine_fn_config_test dlls/quartz/tests quartz_test
15200 wine_fn_config_dll query enable_query
15201 wine_fn_config_dll rasapi16.dll16 enable_win16
15202 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15203 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15204 wine_fn_config_dll rasdlg enable_rasdlg implib
15205 wine_fn_config_dll resutils enable_resutils implib
15206 wine_fn_config_dll riched20 enable_riched20 implib
15207 wine_fn_config_test dlls/riched20/tests riched20_test
15208 wine_fn_config_dll riched32 enable_riched32
15209 wine_fn_config_test dlls/riched32/tests riched32_test
15210 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15211 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15212 wine_fn_config_dll rsabase enable_rsabase
15213 wine_fn_config_dll rsaenh enable_rsaenh implib
15214 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15215 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15216 wine_fn_config_dll rtutils enable_rtutils implib
15217 wine_fn_config_dll samlib enable_samlib
15218 wine_fn_config_dll sane.ds enable_sane_ds po
15219 wine_fn_config_dll sccbase enable_sccbase
15220 wine_fn_config_dll schannel enable_schannel
15221 wine_fn_config_test dlls/schannel/tests schannel_test
15222 wine_fn_config_dll secur32 enable_secur32 implib
15223 wine_fn_config_test dlls/secur32/tests secur32_test
15224 wine_fn_config_dll security enable_security
15225 wine_fn_config_dll sensapi enable_sensapi implib
15226 wine_fn_config_dll serialui enable_serialui implib
15227 wine_fn_config_test dlls/serialui/tests serialui_test
15228 wine_fn_config_dll setupapi enable_setupapi po,implib
15229 wine_fn_config_test dlls/setupapi/tests setupapi_test
15230 wine_fn_config_dll setupx.dll16 enable_win16
15231 wine_fn_config_dll sfc enable_sfc implib
15232 wine_fn_config_dll sfc_os enable_sfc_os implib
15233 wine_fn_config_dll shdoclc enable_shdoclc po
15234 wine_fn_config_dll shdocvw enable_shdocvw po,implib
15235 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15236 wine_fn_config_dll shell.dll16 enable_win16
15237 wine_fn_config_dll shell32 enable_shell32 po,implib
15238 wine_fn_config_test dlls/shell32/tests shell32_test
15239 wine_fn_config_dll shfolder enable_shfolder implib
15240 wine_fn_config_dll shlwapi enable_shlwapi po,implib
15241 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15242 wine_fn_config_dll slbcsp enable_slbcsp
15243 wine_fn_config_dll slc enable_slc implib
15244 wine_fn_config_dll snmpapi enable_snmpapi implib
15245 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15246 wine_fn_config_dll softpub enable_softpub
15247 wine_fn_config_dll sound.drv16 enable_win16
15248 wine_fn_config_dll spoolss enable_spoolss implib
15249 wine_fn_config_test dlls/spoolss/tests spoolss_test
15250 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15251 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15252 wine_fn_config_dll sti enable_sti implib
15253 wine_fn_config_test dlls/sti/tests sti_test
15254 wine_fn_config_dll storage.dll16 enable_win16
15255 wine_fn_config_dll stress.dll16 enable_win16
15256 wine_fn_config_lib strmbase
15257 wine_fn_config_lib strmiids
15258 wine_fn_config_dll svrapi enable_svrapi
15259 wine_fn_config_dll sxs enable_sxs
15260 wine_fn_config_dll system.drv16 enable_win16
15261 wine_fn_config_dll t2embed enable_t2embed
15262 wine_fn_config_dll tapi32 enable_tapi32 implib
15263 wine_fn_config_dll toolhelp.dll16 enable_win16
15264 wine_fn_config_dll traffic enable_traffic
15265 wine_fn_config_dll twain.dll16 enable_win16
15266 wine_fn_config_dll twain_32 enable_twain_32
15267 wine_fn_config_test dlls/twain_32/tests twain_32_test
15268 wine_fn_config_dll typelib.dll16 enable_win16
15269 wine_fn_config_dll unicows enable_unicows implib
15270 wine_fn_config_dll updspapi enable_updspapi
15271 wine_fn_config_dll url enable_url implib
15272 wine_fn_config_dll urlmon enable_urlmon implib
15273 wine_fn_config_test dlls/urlmon/tests urlmon_test
15274 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15275 wine_fn_config_dll user.exe16 enable_win16
15276 wine_fn_config_dll user32 enable_user32 po,implib
15277 wine_fn_config_test dlls/user32/tests user32_test
15278 wine_fn_config_dll userenv enable_userenv implib
15279 wine_fn_config_test dlls/userenv/tests userenv_test
15280 wine_fn_config_dll usp10 enable_usp10 implib
15281 wine_fn_config_test dlls/usp10/tests usp10_test
15282 wine_fn_config_lib uuid
15283 wine_fn_config_dll uxtheme enable_uxtheme implib
15284 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15285 wine_fn_config_dll vdhcp.vxd enable_win16
15286 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15287 wine_fn_config_dll ver.dll16 enable_win16
15288 wine_fn_config_dll version enable_version implib
15289 wine_fn_config_test dlls/version/tests version_test
15290 wine_fn_config_dll vmm.vxd enable_win16
15291 wine_fn_config_dll vnbt.vxd enable_win16
15292 wine_fn_config_dll vnetbios.vxd enable_win16
15293 wine_fn_config_dll vtdapi.vxd enable_win16
15294 wine_fn_config_dll vwin32.vxd enable_win16
15295 wine_fn_config_dll w32skrnl enable_win16
15296 wine_fn_config_dll w32sys.dll16 enable_win16
15297 wine_fn_config_dll wbemprox enable_wbemprox
15298 wine_fn_config_dll wer enable_wer implib
15299 wine_fn_config_test dlls/wer/tests wer_test
15300 wine_fn_config_dll wiaservc enable_wiaservc
15301 wine_fn_config_dll win32s16.dll16 enable_win16
15302 wine_fn_config_dll win87em.dll16 enable_win16
15303 wine_fn_config_dll winaspi.dll16 enable_win16
15304 wine_fn_config_dll windebug.dll16 enable_win16
15305 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15306 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15307 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15308 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15309 wine_fn_config_lib winecrt0
15310 wine_fn_config_dll wined3d enable_wined3d implib
15311 wine_fn_config_dll wineesd.drv enable_wineesd_drv
15312 wine_fn_config_dll winegstreamer enable_winegstreamer
15313 wine_fn_config_dll winejack.drv enable_winejack_drv
15314 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15315 wine_fn_config_dll winemapi enable_winemapi
15316 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15317 wine_fn_config_dll winenas.drv enable_winenas_drv
15318 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15319 wine_fn_config_dll wineps.drv enable_wineps_drv
15320 wine_fn_config_dll wineps16.drv16 enable_win16
15321 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15322 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15323 wine_fn_config_dll winex11.drv enable_winex11_drv
15324 wine_fn_config_dll wing.dll16 enable_win16
15325 wine_fn_config_dll wing32 enable_wing32
15326 wine_fn_config_dll winhttp enable_winhttp implib
15327 wine_fn_config_test dlls/winhttp/tests winhttp_test
15328 wine_fn_config_dll wininet enable_wininet po,implib
15329 wine_fn_config_test dlls/wininet/tests wininet_test
15330 wine_fn_config_dll winmm enable_winmm po,implib
15331 wine_fn_config_test dlls/winmm/tests winmm_test
15332 wine_fn_config_dll winnls.dll16 enable_win16
15333 wine_fn_config_dll winnls32 enable_winnls32 implib
15334 wine_fn_config_dll winscard enable_winscard implib
15335 wine_fn_config_dll winsock.dll16 enable_win16
15336 wine_fn_config_dll winspool.drv enable_winspool_drv po,implib winspool
15337 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15338 wine_fn_config_dll wintab.dll16 enable_win16
15339 wine_fn_config_dll wintab32 enable_wintab32 implib
15340 wine_fn_config_test dlls/wintab32/tests wintab32_test
15341 wine_fn_config_dll wintrust enable_wintrust implib
15342 wine_fn_config_test dlls/wintrust/tests wintrust_test
15343 wine_fn_config_dll wlanapi enable_wlanapi
15344 wine_fn_config_dll wldap32 enable_wldap32 po,implib
15345 wine_fn_config_test dlls/wldap32/tests wldap32_test
15346 wine_fn_config_dll wmi enable_wmi
15347 wine_fn_config_dll wmiutils enable_wmiutils
15348 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15349 wine_fn_config_dll wow32 enable_win16 implib
15350 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15351 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15352 wine_fn_config_dll wsock32 enable_wsock32 implib
15353 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15354 wine_fn_config_dll wuapi enable_wuapi
15355 wine_fn_config_dll wuaueng enable_wuaueng
15356 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15357 wine_fn_config_dll xinput1_1 enable_xinput1_1
15358 wine_fn_config_dll xinput1_2 enable_xinput1_2
15359 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15360 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15361 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15362 wine_fn_config_dll xmllite enable_xmllite
15363 wine_fn_config_test dlls/xmllite/tests xmllite_test
15364 wine_fn_config_makefile documentation enable_documentation
15365 wine_fn_config_makefile fonts enable_fonts
15366 wine_fn_config_makefile include enable_include
15367 wine_fn_config_makefile libs/port enable_libs_port
15368 wine_fn_config_makefile libs/wine enable_libs_wine
15369 wine_fn_config_makefile libs/wpp enable_libs_wpp
15370 wine_fn_config_makefile loader enable_loader
15371 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15372 wine_fn_config_program attrib enable_attrib install
15373 wine_fn_config_program cabarc enable_cabarc install
15374 wine_fn_config_program cacls enable_cacls install
15375 wine_fn_config_program clock enable_clock po,install
15376 wine_fn_config_program cmd enable_cmd po,install
15377 wine_fn_config_test programs/cmd/tests cmd.exe_test
15378 wine_fn_config_program cmdlgtst enable_cmdlgtst
15379 wine_fn_config_program control enable_control install
15380 wine_fn_config_program dxdiag enable_dxdiag install
15381 wine_fn_config_program eject enable_eject install
15382 wine_fn_config_program expand enable_expand install
15383 wine_fn_config_program explorer enable_explorer install
15384 wine_fn_config_program extrac32 enable_extrac32 install
15385 wine_fn_config_program hh enable_hh install
15386 wine_fn_config_program icinfo enable_icinfo install
15387 wine_fn_config_program iexplore enable_iexplore install
15388 wine_fn_config_program ipconfig enable_ipconfig po,install
15389 wine_fn_config_program lodctr enable_lodctr install
15390 wine_fn_config_program mofcomp enable_mofcomp install
15391 wine_fn_config_program mshta enable_mshta install
15392 wine_fn_config_program msiexec enable_msiexec install,installbin
15393 wine_fn_config_program net enable_net po,install
15394 wine_fn_config_program netsh enable_netsh install
15395 wine_fn_config_program ngen enable_ngen install
15396 wine_fn_config_program notepad enable_notepad po,install,installbin
15397 wine_fn_config_program oleview enable_oleview po,install
15398 wine_fn_config_program ping enable_ping install
15399 wine_fn_config_program plugplay enable_plugplay install
15400 wine_fn_config_program progman enable_progman po,install
15401 wine_fn_config_program reg enable_reg po,install
15402 wine_fn_config_program regedit enable_regedit po,install,installbin
15403 wine_fn_config_test programs/regedit/tests regedit.exe_test
15404 wine_fn_config_program regsvcs enable_regsvcs install
15405 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin
15406 wine_fn_config_program rpcss enable_rpcss install
15407 wine_fn_config_program rundll.exe16 enable_win16 install
15408 wine_fn_config_program rundll32 enable_rundll32 install
15409 wine_fn_config_program sc enable_sc install
15410 wine_fn_config_program secedit enable_secedit install
15411 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15412 wine_fn_config_program services enable_services install
15413 wine_fn_config_program spoolsv enable_spoolsv install
15414 wine_fn_config_program start enable_start po,install
15415 wine_fn_config_program svchost enable_svchost install
15416 wine_fn_config_program taskkill enable_taskkill po,install
15417 wine_fn_config_program taskmgr enable_taskmgr po,install
15418 wine_fn_config_program termsv enable_termsv install
15419 wine_fn_config_program uninstaller enable_uninstaller po,install
15420 wine_fn_config_program unlodctr enable_unlodctr install
15421 wine_fn_config_program view enable_view po
15422 wine_fn_config_program wineboot enable_wineboot install,installbin
15423 wine_fn_config_program winebrowser enable_winebrowser install
15424 wine_fn_config_program winecfg enable_winecfg po,install,installbin
15425 wine_fn_config_program wineconsole enable_wineconsole po,install,installbin
15426 wine_fn_config_program winedbg enable_winedbg po,install,installbin
15427 wine_fn_config_program winedevice enable_winedevice install
15428 wine_fn_config_program winefile enable_winefile po,install,installbin
15429 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15430 wine_fn_config_program winemine enable_winemine po,install,installbin
15431 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15432 wine_fn_config_program winepath enable_winepath install,installbin
15433 wine_fn_config_program winetest enable_winetest
15434 wine_fn_config_program winevdm enable_win16 install
15435 wine_fn_config_program winhelp.exe16 enable_win16 install
15436 wine_fn_config_program winhlp32 enable_winhlp32 po,install
15437 wine_fn_config_program winoldap.mod16 enable_win16 install
15438 wine_fn_config_program winver enable_winver install
15439 wine_fn_config_program wmic enable_wmic install
15440 wine_fn_config_program wordpad enable_wordpad po,install
15441 wine_fn_config_program write enable_write po,install
15442 wine_fn_config_program wscript enable_wscript install
15443 wine_fn_config_program xcopy enable_xcopy po,install
15444 wine_fn_config_makefile server enable_server
15445 wine_fn_config_tool tools
15446 wine_fn_config_tool tools/widl
15447 wine_fn_config_tool tools/winebuild
15448 wine_fn_config_tool tools/winedump
15449 wine_fn_config_tool tools/winegcc
15450 wine_fn_config_tool tools/wmc
15451 wine_fn_config_tool tools/wrc
15453 LINGUAS="\
15454 ar \
15455 bg \
15456 ca \
15457 cs \
15458 da \
15459 de \
15460 el \
15461 en \
15462 en_US \
15463 eo \
15464 es \
15465 fa \
15466 fi \
15467 fr \
15468 he \
15469 hi \
15470 hu \
15471 it \
15472 ja \
15473 ko \
15474 lt \
15475 ml \
15476 nb_NO \
15477 nl \
15478 or \
15479 pa \
15480 pl \
15481 pt_BR \
15482 pt_PT \
15483 rm \
15484 ro \
15485 ru \
15486 sk \
15487 sl \
15488 sr_RS@cyrillic \
15489 sr_RS@latin \
15490 sv \
15491 te \
15492 th \
15493 tr \
15494 uk \
15495 wa \
15496 zh_CN \
15497 zh_TW"
15501 ac_config_commands="$ac_config_commands Makefile"
15504 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15508 if test "x$enable_maintainer_mode" = xyes
15509 then
15510 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15511 cd \$(srcdir) && autoconf --warnings=all
15512 \$(srcdir)/include/config.h.in: include/stamp-h.in
15513 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15514 cd \$(srcdir) && autoheader --warnings=all
15515 @echo timestamp > \$@
15517 ALL_POT_FILES =$ALL_POT_FILES
15518 all: \$(ALL_PO_FILES)
15519 \$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
15520 msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15521 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15522 msgcat -o \$@ \$(ALL_POT_FILES)"
15525 if test -n "$with_wine64"
15526 then
15527 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15528 fonts server:
15529 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15530 $with_wine64/loader/wine:
15531 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15532 $with_wine64/loader/wine-preloader:
15533 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15534 clean::
15535 \$(RM) fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15538 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
15539 -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
15541 cat >confcache <<\_ACEOF
15542 # This file is a shell script that caches the results of configure
15543 # tests run on this system so they can be shared between configure
15544 # scripts and configure runs, see configure's option --config-cache.
15545 # It is not useful on other systems. If it contains results you don't
15546 # want to keep, you may remove or edit it.
15548 # config.status only pays attention to the cache file if you give it
15549 # the --recheck option to rerun configure.
15551 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15552 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15553 # following values.
15555 _ACEOF
15557 # The following way of writing the cache mishandles newlines in values,
15558 # but we know of no workaround that is simple, portable, and efficient.
15559 # So, we kill variables containing newlines.
15560 # Ultrix sh set writes to stderr and can't be redirected directly,
15561 # and sets the high bit in the cache file unless we assign to the vars.
15563 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15564 eval ac_val=\$$ac_var
15565 case $ac_val in #(
15566 *${as_nl}*)
15567 case $ac_var in #(
15568 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15569 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15570 esac
15571 case $ac_var in #(
15572 _ | IFS | as_nl) ;; #(
15573 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15574 *) { eval $ac_var=; unset $ac_var;} ;;
15575 esac ;;
15576 esac
15577 done
15579 (set) 2>&1 |
15580 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15581 *${as_nl}ac_space=\ *)
15582 # `set' does not quote correctly, so add quotes: double-quote
15583 # substitution turns \\\\ into \\, and sed turns \\ into \.
15584 sed -n \
15585 "s/'/'\\\\''/g;
15586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15587 ;; #(
15589 # `set' quotes correctly as required by POSIX, so do not add quotes.
15590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15592 esac |
15593 sort
15595 sed '
15596 /^ac_cv_env_/b end
15597 t clear
15598 :clear
15599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15600 t end
15601 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15602 :end' >>confcache
15603 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15604 if test -w "$cache_file"; then
15605 test "x$cache_file" != "x/dev/null" &&
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15607 $as_echo "$as_me: updating cache $cache_file" >&6;}
15608 cat confcache >$cache_file
15609 else
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15611 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15614 rm -f confcache
15616 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15617 # Let make expand exec_prefix.
15618 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15620 DEFS=-DHAVE_CONFIG_H
15622 ac_libobjs=
15623 ac_ltlibobjs=
15625 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15626 # 1. Remove the extension, and $U if already installed.
15627 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15628 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15629 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15630 # will be set to the directory where LIBOBJS objects are built.
15631 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15632 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15633 done
15634 LIBOBJS=$ac_libobjs
15636 LTLIBOBJS=$ac_ltlibobjs
15640 : ${CONFIG_STATUS=./config.status}
15641 ac_write_fail=0
15642 ac_clean_files_save=$ac_clean_files
15643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15645 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15646 as_write_fail=0
15647 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15648 #! $SHELL
15649 # Generated by $as_me.
15650 # Run this file to recreate the current configuration.
15651 # Compiler output produced by configure, useful for debugging
15652 # configure, is in config.log if it exists.
15654 debug=false
15655 ac_cs_recheck=false
15656 ac_cs_silent=false
15658 SHELL=\${CONFIG_SHELL-$SHELL}
15659 export SHELL
15660 _ASEOF
15661 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15662 ## -------------------- ##
15663 ## M4sh Initialization. ##
15664 ## -------------------- ##
15666 # Be more Bourne compatible
15667 DUALCASE=1; export DUALCASE # for MKS sh
15668 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15669 emulate sh
15670 NULLCMD=:
15671 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15672 # is contrary to our usage. Disable this feature.
15673 alias -g '${1+"$@"}'='"$@"'
15674 setopt NO_GLOB_SUBST
15675 else
15676 case `(set -o) 2>/dev/null` in #(
15677 *posix*) :
15678 set -o posix ;; #(
15679 *) :
15681 esac
15685 as_nl='
15687 export as_nl
15688 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15689 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15690 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15691 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15692 # Prefer a ksh shell builtin over an external printf program on Solaris,
15693 # but without wasting forks for bash or zsh.
15694 if test -z "$BASH_VERSION$ZSH_VERSION" \
15695 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15696 as_echo='print -r --'
15697 as_echo_n='print -rn --'
15698 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15699 as_echo='printf %s\n'
15700 as_echo_n='printf %s'
15701 else
15702 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15703 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15704 as_echo_n='/usr/ucb/echo -n'
15705 else
15706 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15707 as_echo_n_body='eval
15708 arg=$1;
15709 case $arg in #(
15710 *"$as_nl"*)
15711 expr "X$arg" : "X\\(.*\\)$as_nl";
15712 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15713 esac;
15714 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15716 export as_echo_n_body
15717 as_echo_n='sh -c $as_echo_n_body as_echo'
15719 export as_echo_body
15720 as_echo='sh -c $as_echo_body as_echo'
15723 # The user is always right.
15724 if test "${PATH_SEPARATOR+set}" != set; then
15725 PATH_SEPARATOR=:
15726 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15727 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15728 PATH_SEPARATOR=';'
15733 # IFS
15734 # We need space, tab and new line, in precisely that order. Quoting is
15735 # there to prevent editors from complaining about space-tab.
15736 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15737 # splitting by setting IFS to empty value.)
15738 IFS=" "" $as_nl"
15740 # Find who we are. Look in the path if we contain no directory separator.
15741 case $0 in #((
15742 *[\\/]* ) as_myself=$0 ;;
15743 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15744 for as_dir in $PATH
15746 IFS=$as_save_IFS
15747 test -z "$as_dir" && as_dir=.
15748 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15749 done
15750 IFS=$as_save_IFS
15753 esac
15754 # We did not find ourselves, most probably we were run as `sh COMMAND'
15755 # in which case we are not to be found in the path.
15756 if test "x$as_myself" = x; then
15757 as_myself=$0
15759 if test ! -f "$as_myself"; then
15760 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15761 exit 1
15764 # Unset variables that we do not need and which cause bugs (e.g. in
15765 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15766 # suppresses any "Segmentation fault" message there. '((' could
15767 # trigger a bug in pdksh 5.2.14.
15768 for as_var in BASH_ENV ENV MAIL MAILPATH
15769 do eval test x\${$as_var+set} = xset \
15770 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15771 done
15772 PS1='$ '
15773 PS2='> '
15774 PS4='+ '
15776 # NLS nuisances.
15777 LC_ALL=C
15778 export LC_ALL
15779 LANGUAGE=C
15780 export LANGUAGE
15782 # CDPATH.
15783 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15786 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15787 # ----------------------------------------
15788 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15789 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15790 # script with STATUS, using 1 if that was 0.
15791 as_fn_error ()
15793 as_status=$1; test $as_status -eq 0 && as_status=1
15794 if test "$4"; then
15795 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15796 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15798 $as_echo "$as_me: error: $2" >&2
15799 as_fn_exit $as_status
15800 } # as_fn_error
15803 # as_fn_set_status STATUS
15804 # -----------------------
15805 # Set $? to STATUS, without forking.
15806 as_fn_set_status ()
15808 return $1
15809 } # as_fn_set_status
15811 # as_fn_exit STATUS
15812 # -----------------
15813 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15814 as_fn_exit ()
15816 set +e
15817 as_fn_set_status $1
15818 exit $1
15819 } # as_fn_exit
15821 # as_fn_unset VAR
15822 # ---------------
15823 # Portably unset VAR.
15824 as_fn_unset ()
15826 { eval $1=; unset $1;}
15828 as_unset=as_fn_unset
15829 # as_fn_append VAR VALUE
15830 # ----------------------
15831 # Append the text in VALUE to the end of the definition contained in VAR. Take
15832 # advantage of any shell optimizations that allow amortized linear growth over
15833 # repeated appends, instead of the typical quadratic growth present in naive
15834 # implementations.
15835 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15836 eval 'as_fn_append ()
15838 eval $1+=\$2
15840 else
15841 as_fn_append ()
15843 eval $1=\$$1\$2
15845 fi # as_fn_append
15847 # as_fn_arith ARG...
15848 # ------------------
15849 # Perform arithmetic evaluation on the ARGs, and store the result in the
15850 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15851 # must be portable across $(()) and expr.
15852 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15853 eval 'as_fn_arith ()
15855 as_val=$(( $* ))
15857 else
15858 as_fn_arith ()
15860 as_val=`expr "$@" || test $? -eq 1`
15862 fi # as_fn_arith
15865 if expr a : '\(a\)' >/dev/null 2>&1 &&
15866 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15867 as_expr=expr
15868 else
15869 as_expr=false
15872 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15873 as_basename=basename
15874 else
15875 as_basename=false
15878 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15879 as_dirname=dirname
15880 else
15881 as_dirname=false
15884 as_me=`$as_basename -- "$0" ||
15885 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15886 X"$0" : 'X\(//\)$' \| \
15887 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15888 $as_echo X/"$0" |
15889 sed '/^.*\/\([^/][^/]*\)\/*$/{
15890 s//\1/
15893 /^X\/\(\/\/\)$/{
15894 s//\1/
15897 /^X\/\(\/\).*/{
15898 s//\1/
15901 s/.*/./; q'`
15903 # Avoid depending upon Character Ranges.
15904 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15905 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15906 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15907 as_cr_digits='0123456789'
15908 as_cr_alnum=$as_cr_Letters$as_cr_digits
15910 ECHO_C= ECHO_N= ECHO_T=
15911 case `echo -n x` in #(((((
15912 -n*)
15913 case `echo 'xy\c'` in
15914 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15915 xy) ECHO_C='\c';;
15916 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15917 ECHO_T=' ';;
15918 esac;;
15920 ECHO_N='-n';;
15921 esac
15923 rm -f conf$$ conf$$.exe conf$$.file
15924 if test -d conf$$.dir; then
15925 rm -f conf$$.dir/conf$$.file
15926 else
15927 rm -f conf$$.dir
15928 mkdir conf$$.dir 2>/dev/null
15930 if (echo >conf$$.file) 2>/dev/null; then
15931 if ln -s conf$$.file conf$$ 2>/dev/null; then
15932 as_ln_s='ln -s'
15933 # ... but there are two gotchas:
15934 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15935 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15936 # In both cases, we have to default to `cp -p'.
15937 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15938 as_ln_s='cp -p'
15939 elif ln conf$$.file conf$$ 2>/dev/null; then
15940 as_ln_s=ln
15941 else
15942 as_ln_s='cp -p'
15944 else
15945 as_ln_s='cp -p'
15947 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15948 rmdir conf$$.dir 2>/dev/null
15951 # as_fn_mkdir_p
15952 # -------------
15953 # Create "$as_dir" as a directory, including parents if necessary.
15954 as_fn_mkdir_p ()
15957 case $as_dir in #(
15958 -*) as_dir=./$as_dir;;
15959 esac
15960 test -d "$as_dir" || eval $as_mkdir_p || {
15961 as_dirs=
15962 while :; do
15963 case $as_dir in #(
15964 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15965 *) as_qdir=$as_dir;;
15966 esac
15967 as_dirs="'$as_qdir' $as_dirs"
15968 as_dir=`$as_dirname -- "$as_dir" ||
15969 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15970 X"$as_dir" : 'X\(//\)[^/]' \| \
15971 X"$as_dir" : 'X\(//\)$' \| \
15972 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15973 $as_echo X"$as_dir" |
15974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15975 s//\1/
15978 /^X\(\/\/\)[^/].*/{
15979 s//\1/
15982 /^X\(\/\/\)$/{
15983 s//\1/
15986 /^X\(\/\).*/{
15987 s//\1/
15990 s/.*/./; q'`
15991 test -d "$as_dir" && break
15992 done
15993 test -z "$as_dirs" || eval "mkdir $as_dirs"
15994 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15997 } # as_fn_mkdir_p
15998 if mkdir -p . 2>/dev/null; then
15999 as_mkdir_p='mkdir -p "$as_dir"'
16000 else
16001 test -d ./-p && rmdir ./-p
16002 as_mkdir_p=false
16005 if test -x / >/dev/null 2>&1; then
16006 as_test_x='test -x'
16007 else
16008 if ls -dL / >/dev/null 2>&1; then
16009 as_ls_L_option=L
16010 else
16011 as_ls_L_option=
16013 as_test_x='
16014 eval sh -c '\''
16015 if test -d "$1"; then
16016 test -d "$1/.";
16017 else
16018 case $1 in #(
16019 -*)set "./$1";;
16020 esac;
16021 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16022 ???[sx]*):;;*)false;;esac;fi
16023 '\'' sh
16026 as_executable_p=$as_test_x
16028 # Sed expression to map a string onto a valid CPP name.
16029 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16031 # Sed expression to map a string onto a valid variable name.
16032 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16035 exec 6>&1
16036 ## ----------------------------------- ##
16037 ## Main body of $CONFIG_STATUS script. ##
16038 ## ----------------------------------- ##
16039 _ASEOF
16040 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16043 # Save the log message, to keep $0 and so on meaningful, and to
16044 # report actual input values of CONFIG_FILES etc. instead of their
16045 # values after options handling.
16046 ac_log="
16047 This file was extended by Wine $as_me 1.3.13, which was
16048 generated by GNU Autoconf 2.67. Invocation command line was
16050 CONFIG_FILES = $CONFIG_FILES
16051 CONFIG_HEADERS = $CONFIG_HEADERS
16052 CONFIG_LINKS = $CONFIG_LINKS
16053 CONFIG_COMMANDS = $CONFIG_COMMANDS
16054 $ $0 $@
16056 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16059 _ACEOF
16061 case $ac_config_files in *"
16062 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16063 esac
16065 case $ac_config_headers in *"
16066 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16067 esac
16070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16071 # Files that config.status was made for.
16072 config_files="$ac_config_files"
16073 config_headers="$ac_config_headers"
16074 config_links="$ac_config_links"
16075 config_commands="$ac_config_commands"
16077 _ACEOF
16079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16080 ac_cs_usage="\
16081 \`$as_me' instantiates files and other configuration actions
16082 from templates according to the current configuration. Unless the files
16083 and actions are specified as TAGs, all are instantiated by default.
16085 Usage: $0 [OPTION]... [TAG]...
16087 -h, --help print this help, then exit
16088 -V, --version print version number and configuration settings, then exit
16089 --config print configuration, then exit
16090 -q, --quiet, --silent
16091 do not print progress messages
16092 -d, --debug don't remove temporary files
16093 --recheck update $as_me by reconfiguring in the same conditions
16094 --file=FILE[:TEMPLATE]
16095 instantiate the configuration file FILE
16096 --header=FILE[:TEMPLATE]
16097 instantiate the configuration header FILE
16099 Configuration files:
16100 $config_files
16102 Configuration headers:
16103 $config_headers
16105 Configuration links:
16106 $config_links
16108 Configuration commands:
16109 $config_commands
16111 Report bugs to <wine-devel@winehq.org>.
16112 Wine home page: <http://www.winehq.org>."
16114 _ACEOF
16115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16116 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16117 ac_cs_version="\\
16118 Wine config.status 1.3.13
16119 configured by $0, generated by GNU Autoconf 2.67,
16120 with options \\"\$ac_cs_config\\"
16122 Copyright (C) 2010 Free Software Foundation, Inc.
16123 This config.status script is free software; the Free Software Foundation
16124 gives unlimited permission to copy, distribute and modify it."
16126 ac_pwd='$ac_pwd'
16127 srcdir='$srcdir'
16128 INSTALL='$INSTALL'
16129 test -n "\$AWK" || AWK=awk
16130 _ACEOF
16132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16133 # The default lists apply if the user does not specify any file.
16134 ac_need_defaults=:
16135 while test $# != 0
16137 case $1 in
16138 --*=?*)
16139 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16140 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16141 ac_shift=:
16143 --*=)
16144 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16145 ac_optarg=
16146 ac_shift=:
16149 ac_option=$1
16150 ac_optarg=$2
16151 ac_shift=shift
16153 esac
16155 case $ac_option in
16156 # Handling of the options.
16157 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16158 ac_cs_recheck=: ;;
16159 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16160 $as_echo "$ac_cs_version"; exit ;;
16161 --config | --confi | --conf | --con | --co | --c )
16162 $as_echo "$ac_cs_config"; exit ;;
16163 --debug | --debu | --deb | --de | --d | -d )
16164 debug=: ;;
16165 --file | --fil | --fi | --f )
16166 $ac_shift
16167 case $ac_optarg in
16168 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16169 '') as_fn_error $? "missing file argument" ;;
16170 esac
16171 as_fn_append CONFIG_FILES " '$ac_optarg'"
16172 ac_need_defaults=false;;
16173 --header | --heade | --head | --hea )
16174 $ac_shift
16175 case $ac_optarg in
16176 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16177 esac
16178 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16179 ac_need_defaults=false;;
16180 --he | --h)
16181 # Conflict between --help and --header
16182 as_fn_error $? "ambiguous option: \`$1'
16183 Try \`$0 --help' for more information.";;
16184 --help | --hel | -h )
16185 $as_echo "$ac_cs_usage"; exit ;;
16186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16187 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16188 ac_cs_silent=: ;;
16190 # This is an error.
16191 -*) as_fn_error $? "unrecognized option: \`$1'
16192 Try \`$0 --help' for more information." ;;
16194 *) as_fn_append ac_config_targets " $1"
16195 ac_need_defaults=false ;;
16197 esac
16198 shift
16199 done
16201 ac_configure_extra_args=
16203 if $ac_cs_silent; then
16204 exec 6>/dev/null
16205 ac_configure_extra_args="$ac_configure_extra_args --silent"
16208 _ACEOF
16209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16210 if \$ac_cs_recheck; then
16211 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16212 shift
16213 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16214 CONFIG_SHELL='$SHELL'
16215 export CONFIG_SHELL
16216 exec "\$@"
16219 _ACEOF
16220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16221 exec 5>>config.log
16223 echo
16224 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16225 ## Running $as_me. ##
16226 _ASBOX
16227 $as_echo "$ac_log"
16228 } >&5
16230 _ACEOF
16231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16233 # INIT-COMMANDS
16235 wine_fn_output_makefile ()
16237 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16238 $ALL_MAKEFILE_DEPENDS
16239 _WINE_EOF
16240 as_fn_error $? "could not create Makefile" "$LINENO" 5
16243 _ACEOF
16245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16247 # Handling of arguments.
16248 for ac_config_target in $ac_config_targets
16250 case $ac_config_target in
16251 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16252 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16253 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16254 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16255 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16256 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16257 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16258 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16259 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16260 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16261 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16262 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16263 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16264 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16265 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16266 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16267 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16268 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16269 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16270 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16271 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16272 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16273 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16275 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16276 esac
16277 done
16280 # If the user did not use the arguments to specify the items to instantiate,
16281 # then the envvar interface is used. Set only those that are not.
16282 # We use the long form for the default assignment because of an extremely
16283 # bizarre bug on SunOS 4.1.3.
16284 if $ac_need_defaults; then
16285 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16286 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16287 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16288 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16291 # Have a temporary directory for convenience. Make it in the build tree
16292 # simply because there is no reason against having it here, and in addition,
16293 # creating and moving files from /tmp can sometimes cause problems.
16294 # Hook for its removal unless debugging.
16295 # Note that there is a small window in which the directory will not be cleaned:
16296 # after its creation but before its name has been assigned to `$tmp'.
16297 $debug ||
16299 tmp=
16300 trap 'exit_status=$?
16301 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16303 trap 'as_fn_exit 1' 1 2 13 15
16305 # Create a (secure) tmp directory for tmp files.
16308 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16309 test -n "$tmp" && test -d "$tmp"
16310 } ||
16312 tmp=./conf$$-$RANDOM
16313 (umask 077 && mkdir "$tmp")
16314 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16316 # Set up the scripts for CONFIG_FILES section.
16317 # No need to generate them if there are no CONFIG_FILES.
16318 # This happens for instance with `./config.status config.h'.
16319 if test -n "$CONFIG_FILES"; then
16321 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16322 ac_cs_awk_getline=:
16323 ac_cs_awk_pipe_init=
16324 ac_cs_awk_read_file='
16325 while ((getline aline < (F[key])) > 0)
16326 print(aline)
16327 close(F[key])'
16328 ac_cs_awk_pipe_fini=
16329 else
16330 ac_cs_awk_getline=false
16331 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16332 ac_cs_awk_read_file='
16333 print "|#_!!_#|"
16334 print "cat " F[key] " &&"
16335 '$ac_cs_awk_pipe_init
16336 # The final `:' finishes the AND list.
16337 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16339 ac_cr=`echo X | tr X '\015'`
16340 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16341 # But we know of no other shell where ac_cr would be empty at this
16342 # point, so we can use a bashism as a fallback.
16343 if test "x$ac_cr" = x; then
16344 eval ac_cr=\$\'\\r\'
16346 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16347 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16348 ac_cs_awk_cr='\\r'
16349 else
16350 ac_cs_awk_cr=$ac_cr
16353 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16354 _ACEOF
16356 # Create commands to substitute file output variables.
16358 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16359 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16360 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16361 echo "_ACAWK" &&
16362 echo "_ACEOF"
16363 } >conf$$files.sh &&
16364 . ./conf$$files.sh ||
16365 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16366 rm -f conf$$files.sh
16369 echo "cat >conf$$subs.awk <<_ACEOF" &&
16370 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16371 echo "_ACEOF"
16372 } >conf$$subs.sh ||
16373 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16374 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16375 ac_delim='%!_!# '
16376 for ac_last_try in false false false false false :; do
16377 . ./conf$$subs.sh ||
16378 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16380 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16381 if test $ac_delim_n = $ac_delim_num; then
16382 break
16383 elif $ac_last_try; then
16384 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16385 else
16386 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16388 done
16389 rm -f conf$$subs.sh
16391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16392 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16393 _ACEOF
16394 sed -n '
16396 s/^/S["/; s/!.*/"]=/
16399 s/^[^!]*!//
16400 :repl
16401 t repl
16402 s/'"$ac_delim"'$//
16403 t delim
16406 s/\(.\{148\}\)..*/\1/
16407 t more1
16408 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16411 b repl
16412 :more1
16413 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16416 s/.\{148\}//
16417 t nl
16418 :delim
16420 s/\(.\{148\}\)..*/\1/
16421 t more2
16422 s/["\\]/\\&/g; s/^/"/; s/$/"/
16425 :more2
16426 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16429 s/.\{148\}//
16430 t delim
16431 ' <conf$$subs.awk | sed '
16432 /^[^""]/{
16434 s/\n//
16436 ' >>$CONFIG_STATUS || ac_write_fail=1
16437 rm -f conf$$subs.awk
16438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16439 _ACAWK
16440 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16441 for (key in S) S_is_set[key] = 1
16442 FS = "\a"
16443 \$ac_cs_awk_pipe_init
16446 line = $ 0
16447 nfields = split(line, field, "@")
16448 substed = 0
16449 len = length(field[1])
16450 for (i = 2; i < nfields; i++) {
16451 key = field[i]
16452 keylen = length(key)
16453 if (S_is_set[key]) {
16454 value = S[key]
16455 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16456 len += length(value) + length(field[++i])
16457 substed = 1
16458 } else
16459 len += 1 + keylen
16461 if (nfields == 3 && !substed) {
16462 key = field[2]
16463 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16464 \$ac_cs_awk_read_file
16465 next
16468 print line
16470 \$ac_cs_awk_pipe_fini
16471 _ACAWK
16472 _ACEOF
16473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16474 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16475 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16476 else
16478 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16479 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16480 _ACEOF
16482 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16483 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16484 # trailing colons and then remove the whole line if VPATH becomes empty
16485 # (actually we leave an empty line to preserve line numbers).
16486 if test "x$srcdir" = x.; then
16487 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16489 s///
16490 s/^/:/
16491 s/[ ]*$/:/
16492 s/:\$(srcdir):/:/g
16493 s/:\${srcdir}:/:/g
16494 s/:@srcdir@:/:/g
16495 s/^:*//
16496 s/:*$//
16498 s/\(=[ ]*\).*/\1/
16500 s/\n//
16501 s/^[^=]*=[ ]*$//
16505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16506 fi # test -n "$CONFIG_FILES"
16508 # Set up the scripts for CONFIG_HEADERS section.
16509 # No need to generate them if there are no CONFIG_HEADERS.
16510 # This happens for instance with `./config.status Makefile'.
16511 if test -n "$CONFIG_HEADERS"; then
16512 cat >"$tmp/defines.awk" <<\_ACAWK ||
16513 BEGIN {
16514 _ACEOF
16516 # Transform confdefs.h into an awk script `defines.awk', embedded as
16517 # here-document in config.status, that substitutes the proper values into
16518 # config.h.in to produce config.h.
16520 # Create a delimiter string that does not exist in confdefs.h, to ease
16521 # handling of long lines.
16522 ac_delim='%!_!# '
16523 for ac_last_try in false false :; do
16524 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16525 if test -z "$ac_t"; then
16526 break
16527 elif $ac_last_try; then
16528 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16529 else
16530 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16532 done
16534 # For the awk script, D is an array of macro values keyed by name,
16535 # likewise P contains macro parameters if any. Preserve backslash
16536 # newline sequences.
16538 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16539 sed -n '
16540 s/.\{148\}/&'"$ac_delim"'/g
16541 t rset
16542 :rset
16543 s/^[ ]*#[ ]*define[ ][ ]*/ /
16544 t def
16546 :def
16547 s/\\$//
16548 t bsnl
16549 s/["\\]/\\&/g
16550 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16551 D["\1"]=" \3"/p
16552 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16554 :bsnl
16555 s/["\\]/\\&/g
16556 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16557 D["\1"]=" \3\\\\\\n"\\/p
16558 t cont
16559 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16560 t cont
16562 :cont
16564 s/.\{148\}/&'"$ac_delim"'/g
16565 t clear
16566 :clear
16567 s/\\$//
16568 t bsnlc
16569 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16571 :bsnlc
16572 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16573 b cont
16574 ' <confdefs.h | sed '
16575 s/'"$ac_delim"'/"\\\
16576 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16579 for (key in D) D_is_set[key] = 1
16580 FS = "\a"
16582 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16583 line = \$ 0
16584 split(line, arg, " ")
16585 if (arg[1] == "#") {
16586 defundef = arg[2]
16587 mac1 = arg[3]
16588 } else {
16589 defundef = substr(arg[1], 2)
16590 mac1 = arg[2]
16592 split(mac1, mac2, "(") #)
16593 macro = mac2[1]
16594 prefix = substr(line, 1, index(line, defundef) - 1)
16595 if (D_is_set[macro]) {
16596 # Preserve the white space surrounding the "#".
16597 print prefix "define", macro P[macro] D[macro]
16598 next
16599 } else {
16600 # Replace #undef with comments. This is necessary, for example,
16601 # in the case of _POSIX_SOURCE, which is predefined and required
16602 # on some systems where configure will not decide to define it.
16603 if (defundef == "undef") {
16604 print "/*", prefix defundef, macro, "*/"
16605 next
16609 { print }
16610 _ACAWK
16611 _ACEOF
16612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16613 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16614 fi # test -n "$CONFIG_HEADERS"
16617 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16618 shift
16619 for ac_tag
16621 case $ac_tag in
16622 :[FHLC]) ac_mode=$ac_tag; continue;;
16623 esac
16624 case $ac_mode$ac_tag in
16625 :[FHL]*:*);;
16626 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16627 :[FH]-) ac_tag=-:-;;
16628 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16629 esac
16630 ac_save_IFS=$IFS
16631 IFS=:
16632 set x $ac_tag
16633 IFS=$ac_save_IFS
16634 shift
16635 ac_file=$1
16636 shift
16638 case $ac_mode in
16639 :L) ac_source=$1;;
16640 :[FH])
16641 ac_file_inputs=
16642 for ac_f
16644 case $ac_f in
16645 -) ac_f="$tmp/stdin";;
16646 *) # Look for the file first in the build tree, then in the source tree
16647 # (if the path is not absolute). The absolute path cannot be DOS-style,
16648 # because $ac_f cannot contain `:'.
16649 test -f "$ac_f" ||
16650 case $ac_f in
16651 [\\/$]*) false;;
16652 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16653 esac ||
16654 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16655 esac
16656 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16657 as_fn_append ac_file_inputs " '$ac_f'"
16658 done
16660 # Let's still pretend it is `configure' which instantiates (i.e., don't
16661 # use $as_me), people would be surprised to read:
16662 # /* config.h. Generated by config.status. */
16663 configure_input='Generated from '`
16664 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16665 `' by configure.'
16666 if test x"$ac_file" != x-; then
16667 configure_input="$ac_file. $configure_input"
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16669 $as_echo "$as_me: creating $ac_file" >&6;}
16671 # Neutralize special characters interpreted by sed in replacement strings.
16672 case $configure_input in #(
16673 *\&* | *\|* | *\\* )
16674 ac_sed_conf_input=`$as_echo "$configure_input" |
16675 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16676 *) ac_sed_conf_input=$configure_input;;
16677 esac
16679 case $ac_tag in
16680 *:-:* | *:-) cat >"$tmp/stdin" \
16681 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16682 esac
16684 esac
16686 ac_dir=`$as_dirname -- "$ac_file" ||
16687 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16688 X"$ac_file" : 'X\(//\)[^/]' \| \
16689 X"$ac_file" : 'X\(//\)$' \| \
16690 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16691 $as_echo X"$ac_file" |
16692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16693 s//\1/
16696 /^X\(\/\/\)[^/].*/{
16697 s//\1/
16700 /^X\(\/\/\)$/{
16701 s//\1/
16704 /^X\(\/\).*/{
16705 s//\1/
16708 s/.*/./; q'`
16709 as_dir="$ac_dir"; as_fn_mkdir_p
16710 ac_builddir=.
16712 case "$ac_dir" in
16713 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16715 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16716 # A ".." for each directory in $ac_dir_suffix.
16717 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16718 case $ac_top_builddir_sub in
16719 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16720 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16721 esac ;;
16722 esac
16723 ac_abs_top_builddir=$ac_pwd
16724 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16725 # for backward compatibility:
16726 ac_top_builddir=$ac_top_build_prefix
16728 case $srcdir in
16729 .) # We are building in place.
16730 ac_srcdir=.
16731 ac_top_srcdir=$ac_top_builddir_sub
16732 ac_abs_top_srcdir=$ac_pwd ;;
16733 [\\/]* | ?:[\\/]* ) # Absolute name.
16734 ac_srcdir=$srcdir$ac_dir_suffix;
16735 ac_top_srcdir=$srcdir
16736 ac_abs_top_srcdir=$srcdir ;;
16737 *) # Relative name.
16738 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16739 ac_top_srcdir=$ac_top_build_prefix$srcdir
16740 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16741 esac
16742 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16745 case $ac_mode in
16748 # CONFIG_FILE
16751 case $INSTALL in
16752 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16753 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16754 esac
16755 _ACEOF
16757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16758 # If the template does not know about datarootdir, expand it.
16759 # FIXME: This hack should be removed a few years after 2.60.
16760 ac_datarootdir_hack=; ac_datarootdir_seen=
16761 ac_sed_dataroot='
16762 /datarootdir/ {
16766 /@datadir@/p
16767 /@docdir@/p
16768 /@infodir@/p
16769 /@localedir@/p
16770 /@mandir@/p'
16771 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16772 *datarootdir*) ac_datarootdir_seen=yes;;
16773 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16775 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16776 _ACEOF
16777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16778 ac_datarootdir_hack='
16779 s&@datadir@&$datadir&g
16780 s&@docdir@&$docdir&g
16781 s&@infodir@&$infodir&g
16782 s&@localedir@&$localedir&g
16783 s&@mandir@&$mandir&g
16784 s&\\\${datarootdir}&$datarootdir&g' ;;
16785 esac
16786 _ACEOF
16788 # Neutralize VPATH when `$srcdir' = `.'.
16789 # Shell code in configure.ac might set extrasub.
16790 # FIXME: do we really want to maintain this feature?
16791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16792 ac_sed_extra="$ac_vpsub
16793 $extrasub
16794 _ACEOF
16795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16797 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16798 s|@configure_input@|$ac_sed_conf_input|;t t
16799 s&@top_builddir@&$ac_top_builddir_sub&;t t
16800 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16801 s&@srcdir@&$ac_srcdir&;t t
16802 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16803 s&@top_srcdir@&$ac_top_srcdir&;t t
16804 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16805 s&@builddir@&$ac_builddir&;t t
16806 s&@abs_builddir@&$ac_abs_builddir&;t t
16807 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16808 s&@INSTALL@&$ac_INSTALL&;t t
16809 $ac_datarootdir_hack
16811 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16812 if $ac_cs_awk_getline; then
16813 $AWK -f "$tmp/subs.awk"
16814 else
16815 $AWK -f "$tmp/subs.awk" | $SHELL
16816 fi >$tmp/out \
16817 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16819 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16820 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16821 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16823 which seems to be undefined. Please make sure it is defined" >&5
16824 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16825 which seems to be undefined. Please make sure it is defined" >&2;}
16827 rm -f "$tmp/stdin"
16828 case $ac_file in
16829 -) cat "$tmp/out" && rm -f "$tmp/out";;
16830 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16831 esac \
16832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16836 # CONFIG_HEADER
16838 if test x"$ac_file" != x-; then
16840 $as_echo "/* $configure_input */" \
16841 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16842 } >"$tmp/config.h" \
16843 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16844 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16846 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16847 else
16848 rm -f "$ac_file"
16849 mv "$tmp/config.h" "$ac_file" \
16850 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16852 else
16853 $as_echo "/* $configure_input */" \
16854 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16855 || as_fn_error $? "could not create -" "$LINENO" 5
16860 # CONFIG_LINK
16863 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16865 else
16866 # Prefer the file from the source tree if names are identical.
16867 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16868 ac_source=$srcdir/$ac_source
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16872 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16874 if test ! -r "$ac_source"; then
16875 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16877 rm -f "$ac_file"
16879 # Try a relative symlink, then a hard link, then a copy.
16880 case $ac_source in
16881 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16882 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16883 esac
16884 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16885 ln "$ac_source" "$ac_file" 2>/dev/null ||
16886 cp -p "$ac_source" "$ac_file" ||
16887 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16890 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16891 $as_echo "$as_me: executing $ac_file commands" >&6;}
16893 esac
16896 case $ac_file$ac_mode in
16897 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16898 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16899 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16900 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16901 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16902 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16903 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16904 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16905 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16906 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16907 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16908 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16909 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16910 "Makefile":C) wine_fn_output_makefile Makefile ;;
16912 esac
16913 done # for ac_tag
16916 as_fn_exit 0
16917 _ACEOF
16918 ac_clean_files=$ac_clean_files_save
16920 test $ac_write_fail = 0 ||
16921 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16924 # configure is writing to config.log, and then calls config.status.
16925 # config.status does its own redirection, appending to config.log.
16926 # Unfortunately, on DOS this fails, as config.log is still kept open
16927 # by configure, so config.status won't be able to write to it; its
16928 # output is simply discarded. So we exec the FD to /dev/null,
16929 # effectively closing config.log, so it can be properly (re)opened and
16930 # appended to by config.status. When coming back to configure, we
16931 # need to make the FD available again.
16932 if test "$no_create" != yes; then
16933 ac_cs_success=:
16934 ac_config_status_args=
16935 test "$silent" = yes &&
16936 ac_config_status_args="$ac_config_status_args --quiet"
16937 exec 5>/dev/null
16938 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16939 exec 5>>config.log
16940 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16941 # would make configure fail if this is the last instruction.
16942 $ac_cs_success || as_fn_exit 1
16944 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16946 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16950 if test "$no_create" = "yes"
16951 then
16952 exit 0
16955 ac_save_IFS="$IFS"
16956 if test "x$wine_notices != "x; then
16957 echo >&6
16958 IFS="|"
16959 for msg in $wine_notices; do
16960 IFS="$ac_save_IFS"
16961 if test -n "$msg"; then
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
16963 $as_echo "$as_me: $msg" >&6;}
16965 done
16967 IFS="|"
16968 for msg in $wine_warnings; do
16969 IFS="$ac_save_IFS"
16970 if test -n "$msg"; then
16971 echo >&2
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16973 $as_echo "$as_me: WARNING: $msg" >&2;}
16975 done
16976 IFS="$ac_save_IFS"
16978 echo "
16979 $as_me: Finished. Do '${ac_make}' to compile Wine.
16980 " >&6