kernel32: Remove a full stop from an error message for consistency.
[wine.git] / configure
blobae531d0484f70aba28147def67d8ac250539d6bd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Wine 1.3.37.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
153 esac
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 else
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: wine-devel@winehq.org about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
247 exit 1
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
265 { eval $1=; unset $1;}
267 as_unset=as_fn_unset
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
274 return $1
275 } # as_fn_set_status
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
318 /^X\(\/\/\)$/{
319 s//\1/
322 /^X\(\/\).*/{
323 s//\1/
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
343 eval $1+=\$2
345 else
346 as_fn_append ()
348 eval $1=\$$1\$2
350 fi # as_fn_append
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
360 as_val=$(( $* ))
362 else
363 as_fn_arith ()
365 as_val=`expr "$@" || test $? -eq 1`
367 fi # as_fn_arith
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
414 /^X\/\(\/\/\)$/{
415 s//\1/
418 /^X\/\(\/\).*/{
419 s//\1/
422 s/.*/./; q'`
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
445 :lineno
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
473 ECHO_N='-n';;
474 esac
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
497 else
498 as_ln_s='cp -p'
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 # Initializations.
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
560 # Identity of this package.
561 PACKAGE_NAME='Wine'
562 PACKAGE_TARNAME='wine'
563 PACKAGE_VERSION='1.3.37'
564 PACKAGE_STRING='Wine 1.3.37'
565 PACKAGE_BUGREPORT='wine-devel@winehq.org'
566 PACKAGE_URL='http://www.winehq.org'
568 ac_unique_file="server/atom.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='LTLIBOBJS
606 LIBOBJS
607 PORCFLAGS
608 LINGUAS
609 ALL_TEST_RESOURCES
610 LDAPLIBS
611 LIBPOLL
612 LIBDL
613 EXTRA_BINARIES
614 MAIN_BINARY
615 SOCKETLIBS
616 CRTLIBS
617 TOOLSEXT
618 LDPATH
619 UNWINDFLAGS
620 BUILTINFLAG
621 EXTRACFLAGS
622 LIBKSTAT
623 LIBOPENAL
624 LIBMPG123
625 PNGINCL
626 FONTCONFIGINCL
627 CUPSINCL
628 OSS4INCL
629 ALSALIBS
630 GSTREAMER_INCL
631 GSTREAMER_LIBS
632 LIBGETTEXTPO
633 ZLIB
634 FREETYPEINCL
635 FREETYPELIBS
636 ft_devel
637 LCMSLIBS
638 RESOLVLIBS
639 GPHOTO2INCL
640 GPHOTO2LIBS
641 gphoto2port_devel
642 gphoto2_devel
643 SANEINCL
644 sane_devel
645 GNUTLSINCL
646 HALINCL
647 DBUSINCL
648 XSLTINCL
649 XML2INCL
650 XML2LIBS
651 X_EXTRA_LIBS
652 X_LIBS
653 X_PRE_LIBS
654 X_CFLAGS
655 XMKMF
656 LIBPTHREAD
657 CROSSTARGET
658 CROSSCC
659 CROSSTEST_DISABLE
660 PRELINK
661 CARBONLIB
662 QUICKTIMELIB
663 LIBOPENCL
664 FRAMEWORK_OPENAL
665 COREAUDIO
666 SECURITYLIB
667 DISKARBITRATIONLIB
668 LDEXECFLAGS
669 APPLICATIONSERVICESLIB
670 IOKITLIB
671 COREFOUNDATIONLIB
672 DLLWRAP
673 DLLTOOL
675 LDRPATH_LOCAL
676 LDRPATH_INSTALL
677 IMPLIBEXT
678 LIBEXT
679 LDDLLFLAGS
680 LDSHARED
681 DLLFLAGS
682 DLLEXT
684 OPENGL_LIBS
685 XLIB
686 MAINTAINER_MODE
687 MSGFMT
688 ICOTOOL
689 CONVERT
690 RSVG
691 PKG_CONFIG
692 FONTFORGE
693 LINTFLAGS
694 LINT
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 LDCONFIG
699 EGREP
700 GREP
701 LN_S
702 RANLIB
703 ARFLAGS
704 ac_ct_AR
706 BISON
707 FLEX
708 TOOLSDIR
709 WOW64_DISABLE
710 TARGETFLAGS
711 CPPBIN
712 ac_ct_CXX
713 CXXFLAGS
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
722 SET_MAKE
723 host_os
724 host_vendor
725 host_cpu
726 host
727 build_os
728 build_vendor
729 build_cpu
730 build
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL'
769 ac_subst_files='MAKE_RULES
770 MAKE_TEST_RULES
771 MAKE_DLL_RULES
772 MAKE_IMPLIB_RULES
773 MAKE_PROG_RULES'
774 ac_user_opts='
775 enable_option_checking
776 enable_win16
777 enable_win64
778 enable_tests
779 enable_maintainer_mode
780 with_alsa
781 with_capi
782 with_cms
783 with_coreaudio
784 with_cups
785 with_curses
786 with_dbus
787 with_fontconfig
788 with_freetype
789 with_gettext
790 with_gettextpo
791 with_gphoto
792 with_glu
793 with_gnutls
794 with_gsm
795 with_gstreamer
796 with_hal
797 with_jpeg
798 with_ldap
799 with_mpg123
800 with_openal
801 with_opencl
802 with_opengl
803 with_openssl
804 with_oss
805 with_png
806 with_pthread
807 with_sane
808 with_tiff
809 with_v4l
810 with_xcomposite
811 with_xcursor
812 with_xinerama
813 with_xinput
814 with_xinput2
815 with_xml
816 with_xrandr
817 with_xrender
818 with_xshape
819 with_xshm
820 with_xslt
821 with_xxf86vm
822 with_zlib
823 with_wine_tools
824 with_wine64
825 enable_largefile
826 with_x
828 ac_precious_vars='build_alias
829 host_alias
830 target_alias
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
837 CXXFLAGS
840 XMKMF'
843 # Initialize some variables set by options.
844 ac_init_help=
845 ac_init_version=false
846 ac_unrecognized_opts=
847 ac_unrecognized_sep=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
891 ac_prev=
892 ac_dashdash=
893 for ac_option
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
902 case $ac_option in
903 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *=) ac_optarg= ;;
905 *) ac_optarg=yes ;;
906 esac
908 # Accept the important Cygnus configure options, so we can diagnose typos.
910 case $ac_dashdash$ac_option in
912 ac_dashdash=yes ;;
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
931 --config-cache | -C)
932 cache_file=config.cache ;;
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error $? "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1226 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information"
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1248 esac
1249 done
1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error $? "missing argument to $ac_option"
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 esac
1264 # Check all directory arguments for consistency.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
1278 case $ac_val in
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 esac
1282 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283 done
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
1296 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1297 If a cross compiler is detected then cross compile mode will be used" >&2
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306 test "$silent" = yes && exec 6>/dev/null
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error $? "pwd does not report name of working directory"
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1335 /^X\(\/\/\)$/{
1336 s//\1/
1339 /^X\(\/\).*/{
1340 s//\1/
1343 s/.*/./; q'`
1344 srcdir=$ac_confdir
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 srcdir=..
1348 else
1349 ac_srcdir_defaulted=no
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383 \`configure' configures Wine 1.3.37 to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1392 Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking ...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436 _ACEOF
1438 cat <<\_ACEOF
1440 X features:
1441 --x-includes=DIR X include files are in DIR
1442 --x-libraries=DIR X library files are in DIR
1444 System types:
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1447 _ACEOF
1450 if test -n "$ac_init_help"; then
1451 case $ac_init_help in
1452 short | recursive ) echo "Configuration of Wine 1.3.37:";;
1453 esac
1454 cat <<\_ACEOF
1456 Optional Features:
1457 --disable-option-checking ignore unrecognized --enable/--with options
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1460 --disable-win16 do not include Win16 support
1461 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1462 binaries)
1463 --disable-tests do not build the regression tests
1464 --enable-maintainer-mode
1465 enable maintainer-specific build rules
1466 --disable-largefile omit support for large files
1468 Optional Packages:
1469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1471 --without-alsa do not use the Alsa sound support
1472 --without-capi do not use CAPI (ISDN support)
1473 --without-cms do not use CMS (color management support)
1474 --without-coreaudio do not use the CoreAudio sound support
1475 --without-cups do not use CUPS
1476 --without-curses do not use (n)curses
1477 --without-dbus do not use DBus (dynamic device support)
1478 --without-fontconfig do not use fontconfig
1479 --without-freetype do not use the FreeType library
1480 --without-gettext do not use gettext
1481 --with-gettextpo use the GetTextPO library to rebuild po files
1482 --without-gphoto do not use gphoto (Digital Camera support)
1483 --without-glu do not use the GLU library
1484 --without-gnutls do not use GnuTLS (schannel support)
1485 --without-gsm do not use libgsm (GSM 06.10 codec support)
1486 --without-gstreamer do not use GStreamer (codecs support)
1487 --without-hal do not use HAL (dynamic device support)
1488 --without-jpeg do not use JPEG
1489 --without-ldap do not use LDAP
1490 --without-mpg123 do not use the mpg123 library
1491 --without-openal do not use OpenAL
1492 --without-opencl do not use OpenCL
1493 --without-opengl do not use OpenGL
1494 --without-openssl do not use OpenSSL
1495 --without-oss do not use the OSS sound support
1496 --without-png do not use PNG
1497 --without-pthread do not use the pthread library
1498 --without-sane do not use SANE (scanner support)
1499 --without-tiff do not use TIFF
1500 --without-v4l do not use v4l1 (v4l support)
1501 --without-xcomposite do not use the Xcomposite extension
1502 --without-xcursor do not use the Xcursor extension
1503 --without-xinerama do not use Xinerama (multi-monitor support)
1504 --without-xinput do not use the Xinput extension
1505 --without-xinput2 do not use the Xinput 2 extension
1506 --without-xml do not use XML
1507 --without-xrandr do not use Xrandr (resolution changes)
1508 --without-xrender do not use the Xrender extension
1509 --without-xshape do not use the Xshape extension
1510 --without-xshm do not use XShm (shared memory extension)
1511 --without-xslt do not use XSLT
1512 --without-xxf86vm do not use XFree video mode extension
1513 --without-zlib do not use Zlib (data compression)
1514 --with-wine-tools=DIR use Wine tools from directory DIR
1515 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1516 --with-x use the X Window System
1518 Some influential environment variables:
1519 CC C compiler command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522 nonstandard directory <lib dir>
1523 LIBS libraries to pass to the linker, e.g. -l<library>
1524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1525 you have headers in a nonstandard directory <include dir>
1526 CXX C++ compiler command
1527 CXXFLAGS C++ compiler flags
1528 CPP C preprocessor
1529 XMKMF Path to xmkmf, Makefile generator for X Window System
1531 Use these variables to override the choices made by `configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1534 Report bugs to <wine-devel@winehq.org>.
1535 Wine home page: <http://www.winehq.org>.
1536 _ACEOF
1537 ac_status=$?
1540 if test "$ac_init_help" = "recursive"; then
1541 # If there are subdirs, report their specific --help.
1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543 test -d "$ac_dir" ||
1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545 continue
1546 ac_builddir=.
1548 case "$ac_dir" in
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 esac ;;
1558 esac
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1564 case $srcdir in
1565 .) # We are building in place.
1566 ac_srcdir=.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1573 *) # Relative name.
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 esac
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for guested configure.
1582 if test -f "$ac_srcdir/configure.gnu"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585 elif test -f "$ac_srcdir/configure"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure" --help=recursive
1588 else
1589 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590 fi || ac_status=$?
1591 cd "$ac_pwd" || { ac_status=$?; break; }
1592 done
1595 test -n "$ac_init_help" && exit $ac_status
1596 if $ac_init_version; then
1597 cat <<\_ACEOF
1598 Wine configure 1.3.37
1599 generated by GNU Autoconf 2.68
1601 Copyright (C) 2010 Free Software Foundation, Inc.
1602 This configure script is free software; the Free Software Foundation
1603 gives unlimited permission to copy, distribute and modify it.
1604 _ACEOF
1605 exit
1608 ## ------------------------ ##
1609 ## Autoconf initialization. ##
1610 ## ------------------------ ##
1612 # ac_fn_c_try_compile LINENO
1613 # --------------------------
1614 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_compile ()
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext
1619 if { { ac_try="$ac_compile"
1620 case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_compile") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest.$ac_objext; then :
1638 ac_retval=0
1639 else
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1643 ac_retval=1
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1648 } # ac_fn_c_try_compile
1650 # ac_fn_cxx_try_compile LINENO
1651 # ----------------------------
1652 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_cxx_try_compile ()
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext
1657 if { { ac_try="$ac_compile"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_compile") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_cxx_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest.$ac_objext; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1681 ac_retval=1
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1686 } # ac_fn_cxx_try_compile
1688 # ac_fn_c_try_link LINENO
1689 # -----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_link ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext conftest$ac_exeext
1695 if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest$ac_exeext && {
1714 test "$cross_compiling" = yes ||
1715 $as_test_x conftest$ac_exeext
1716 }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1722 ac_retval=1
1724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726 # interfere with the next link command; also delete a directory that is
1727 # left behind by Apple's compiler. We do this before executing the actions.
1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1732 } # ac_fn_c_try_link
1734 # ac_fn_c_try_cpp LINENO
1735 # ----------------------
1736 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_cpp ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { { ac_try="$ac_cpp conftest.$ac_ext"
1741 case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1748 ac_status=$?
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } > conftest.i && {
1756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 }; then :
1759 ac_retval=0
1760 else
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1764 ac_retval=1
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1769 } # ac_fn_c_try_cpp
1771 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1772 # -------------------------------------------------------
1773 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1774 # the include files in INCLUDES and setting the cache variable VAR
1775 # accordingly.
1776 ac_fn_c_check_header_mongrel ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if eval \${$3+:} false; then :
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if eval \${$3+:} false; then :
1783 $as_echo_n "(cached) " >&6
1785 eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 else
1789 # Is the header compilable?
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1791 $as_echo_n "checking $2 usability... " >&6; }
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1795 #include <$2>
1796 _ACEOF
1797 if ac_fn_c_try_compile "$LINENO"; then :
1798 ac_header_compiler=yes
1799 else
1800 ac_header_compiler=no
1802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1804 $as_echo "$ac_header_compiler" >&6; }
1806 # Is the header present?
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1808 $as_echo_n "checking $2 presence... " >&6; }
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_c_try_cpp "$LINENO"; then :
1814 ac_header_preproc=yes
1815 else
1816 ac_header_preproc=no
1818 rm -f conftest.err conftest.i conftest.$ac_ext
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1820 $as_echo "$ac_header_preproc" >&6; }
1822 # So? What about this header?
1823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1824 yes:no: )
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1826 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1828 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830 no:yes:* )
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1832 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1834 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1836 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1838 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1840 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1841 ( $as_echo "## ------------------------------------ ##
1842 ## Report this to wine-devel@winehq.org ##
1843 ## ------------------------------------ ##"
1844 ) | sed "s/^/$as_me: WARNING: /" >&2
1846 esac
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1851 else
1852 eval "$3=\$ac_header_compiler"
1854 eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 } # ac_fn_c_check_header_mongrel
1862 # ac_fn_c_try_run LINENO
1863 # ----------------------
1864 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1865 # that executables *can* be run.
1866 ac_fn_c_try_run ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { { ac_try="$ac_link"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_link") 2>&5
1877 ac_status=$?
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1880 { { case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_try") 2>&5
1887 ac_status=$?
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; }; }; then :
1890 ac_retval=0
1891 else
1892 $as_echo "$as_me: program exited with status $ac_status" >&5
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1896 ac_retval=$ac_status
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 as_fn_set_status $ac_retval
1902 } # ac_fn_c_try_run
1904 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1905 # -------------------------------------------------------
1906 # Tests whether HEADER exists and can be compiled using the include files in
1907 # INCLUDES, setting the cache variable VAR accordingly.
1908 ac_fn_c_check_header_compile ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if eval \${$3+:} false; then :
1914 $as_echo_n "(cached) " >&6
1915 else
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1919 #include <$2>
1920 _ACEOF
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922 eval "$3=yes"
1923 else
1924 eval "$3=no"
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 } # ac_fn_c_check_header_compile
1935 # ac_fn_c_check_func LINENO FUNC VAR
1936 # ----------------------------------
1937 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1938 ac_fn_c_check_func ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942 $as_echo_n "checking for $2... " >&6; }
1943 if eval \${$3+:} false; then :
1944 $as_echo_n "(cached) " >&6
1945 else
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1948 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1950 #define $2 innocuous_$2
1952 /* System header to define __stub macros and hopefully few prototypes,
1953 which can conflict with char $2 (); below.
1954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1955 <limits.h> exists even on freestanding compilers. */
1957 #ifdef __STDC__
1958 # include <limits.h>
1959 #else
1960 # include <assert.h>
1961 #endif
1963 #undef $2
1965 /* Override any GCC internal prototype to avoid an error.
1966 Use char because int might match the return type of a GCC
1967 builtin and then its argument prototype would still apply. */
1968 #ifdef __cplusplus
1969 extern "C"
1970 #endif
1971 char $2 ();
1972 /* The GNU C library defines this for functions which it implements
1973 to always fail with ENOSYS. Some functions are actually named
1974 something starting with __ and the normal name is an alias. */
1975 #if defined __stub_$2 || defined __stub___$2
1976 choke me
1977 #endif
1980 main ()
1982 return $2 ();
1984 return 0;
1986 _ACEOF
1987 if ac_fn_c_try_link "$LINENO"; then :
1988 eval "$3=yes"
1989 else
1990 eval "$3=no"
1992 rm -f core conftest.err conftest.$ac_objext \
1993 conftest$ac_exeext conftest.$ac_ext
1995 eval ac_res=\$$3
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 } # ac_fn_c_check_func
2002 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2003 # ----------------------------------------------------
2004 # Tries to find if the field MEMBER exists in type AGGR, after including
2005 # INCLUDES, setting cache variable VAR accordingly.
2006 ac_fn_c_check_member ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2010 $as_echo_n "checking for $2.$3... " >&6; }
2011 if eval \${$4+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2018 main ()
2020 static $2 ac_aggr;
2021 if (ac_aggr.$3)
2022 return 0;
2024 return 0;
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 eval "$4=yes"
2029 else
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2034 main ()
2036 static $2 ac_aggr;
2037 if (sizeof ac_aggr.$3)
2038 return 0;
2040 return 0;
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044 eval "$4=yes"
2045 else
2046 eval "$4=no"
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 eval ac_res=\$$4
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 } # ac_fn_c_check_member
2059 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2060 # -------------------------------------------
2061 # Tests whether TYPE exists after having included INCLUDES, setting cache
2062 # variable VAR accordingly.
2063 ac_fn_c_check_type ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if eval \${$3+:} false; then :
2069 $as_echo_n "(cached) " >&6
2070 else
2071 eval "$3=no"
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2076 main ()
2078 if (sizeof ($2))
2079 return 0;
2081 return 0;
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2089 main ()
2091 if (sizeof (($2)))
2092 return 0;
2094 return 0;
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"; then :
2099 else
2100 eval "$3=yes"
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 eval ac_res=\$$3
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111 } # ac_fn_c_check_type
2112 cat >config.log <<_ACEOF
2113 This file contains any messages produced by compilers while
2114 running configure, to aid debugging if configure makes a mistake.
2116 It was created by Wine $as_me 1.3.37, which was
2117 generated by GNU Autoconf 2.68. Invocation command line was
2119 $ $0 $@
2121 _ACEOF
2122 exec 5>>config.log
2124 cat <<_ASUNAME
2125 ## --------- ##
2126 ## Platform. ##
2127 ## --------- ##
2129 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2130 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2131 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2132 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2133 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2135 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2136 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2138 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2139 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2140 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2141 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2142 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2143 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2144 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2146 _ASUNAME
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
2153 $as_echo "PATH: $as_dir"
2154 done
2155 IFS=$as_save_IFS
2157 } >&5
2159 cat >&5 <<_ACEOF
2162 ## ----------- ##
2163 ## Core tests. ##
2164 ## ----------- ##
2166 _ACEOF
2169 # Keep a trace of the command line.
2170 # Strip out --no-create and --no-recursion so they do not pile up.
2171 # Strip out --silent because we don't want to record it for future runs.
2172 # Also quote any args containing shell meta-characters.
2173 # Make two passes to allow for proper duplicate-argument suppression.
2174 ac_configure_args=
2175 ac_configure_args0=
2176 ac_configure_args1=
2177 ac_must_keep_next=false
2178 for ac_pass in 1 2
2180 for ac_arg
2182 case $ac_arg in
2183 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2185 | -silent | --silent | --silen | --sile | --sil)
2186 continue ;;
2187 *\'*)
2188 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2189 esac
2190 case $ac_pass in
2191 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2193 as_fn_append ac_configure_args1 " '$ac_arg'"
2194 if test $ac_must_keep_next = true; then
2195 ac_must_keep_next=false # Got value, back to normal.
2196 else
2197 case $ac_arg in
2198 *=* | --config-cache | -C | -disable-* | --disable-* \
2199 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2200 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2201 | -with-* | --with-* | -without-* | --without-* | --x)
2202 case "$ac_configure_args0 " in
2203 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2204 esac
2206 -* ) ac_must_keep_next=true ;;
2207 esac
2209 as_fn_append ac_configure_args " '$ac_arg'"
2211 esac
2212 done
2213 done
2214 { ac_configure_args0=; unset ac_configure_args0;}
2215 { ac_configure_args1=; unset ac_configure_args1;}
2217 # When interrupted or exit'd, cleanup temporary files, and complete
2218 # config.log. We remove comments because anyway the quotes in there
2219 # would cause problems or look ugly.
2220 # WARNING: Use '\'' to represent an apostrophe within the trap.
2221 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2222 trap 'exit_status=$?
2223 # Save into config.log some information that might help in debugging.
2225 echo
2227 $as_echo "## ---------------- ##
2228 ## Cache variables. ##
2229 ## ---------------- ##"
2230 echo
2231 # The following way of writing the cache mishandles newlines in values,
2233 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2234 eval ac_val=\$$ac_var
2235 case $ac_val in #(
2236 *${as_nl}*)
2237 case $ac_var in #(
2238 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2239 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2240 esac
2241 case $ac_var in #(
2242 _ | IFS | as_nl) ;; #(
2243 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2244 *) { eval $ac_var=; unset $ac_var;} ;;
2245 esac ;;
2246 esac
2247 done
2248 (set) 2>&1 |
2249 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2250 *${as_nl}ac_space=\ *)
2251 sed -n \
2252 "s/'\''/'\''\\\\'\'''\''/g;
2253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2254 ;; #(
2256 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2258 esac |
2259 sort
2261 echo
2263 $as_echo "## ----------------- ##
2264 ## Output variables. ##
2265 ## ----------------- ##"
2266 echo
2267 for ac_var in $ac_subst_vars
2269 eval ac_val=\$$ac_var
2270 case $ac_val in
2271 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2272 esac
2273 $as_echo "$ac_var='\''$ac_val'\''"
2274 done | sort
2275 echo
2277 if test -n "$ac_subst_files"; then
2278 $as_echo "## ------------------- ##
2279 ## File substitutions. ##
2280 ## ------------------- ##"
2281 echo
2282 for ac_var in $ac_subst_files
2284 eval ac_val=\$$ac_var
2285 case $ac_val in
2286 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2287 esac
2288 $as_echo "$ac_var='\''$ac_val'\''"
2289 done | sort
2290 echo
2293 if test -s confdefs.h; then
2294 $as_echo "## ----------- ##
2295 ## confdefs.h. ##
2296 ## ----------- ##"
2297 echo
2298 cat confdefs.h
2299 echo
2301 test "$ac_signal" != 0 &&
2302 $as_echo "$as_me: caught signal $ac_signal"
2303 $as_echo "$as_me: exit $exit_status"
2304 } >&5
2305 rm -f core *.core core.conftest.* &&
2306 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2307 exit $exit_status
2309 for ac_signal in 1 2 13 15; do
2310 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2311 done
2312 ac_signal=0
2314 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2315 rm -f -r conftest* confdefs.h
2317 $as_echo "/* confdefs.h */" > confdefs.h
2319 # Predefined preprocessor variables.
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_NAME "$PACKAGE_NAME"
2323 _ACEOF
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2327 _ACEOF
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2331 _ACEOF
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_STRING "$PACKAGE_STRING"
2335 _ACEOF
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2339 _ACEOF
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_URL "$PACKAGE_URL"
2343 _ACEOF
2346 # Let the site file select an alternate cache file if it wants to.
2347 # Prefer an explicitly selected file to automatically selected ones.
2348 ac_site_file1=NONE
2349 ac_site_file2=NONE
2350 if test -n "$CONFIG_SITE"; then
2351 # We do not want a PATH search for config.site.
2352 case $CONFIG_SITE in #((
2353 -*) ac_site_file1=./$CONFIG_SITE;;
2354 */*) ac_site_file1=$CONFIG_SITE;;
2355 *) ac_site_file1=./$CONFIG_SITE;;
2356 esac
2357 elif test "x$prefix" != xNONE; then
2358 ac_site_file1=$prefix/share/config.site
2359 ac_site_file2=$prefix/etc/config.site
2360 else
2361 ac_site_file1=$ac_default_prefix/share/config.site
2362 ac_site_file2=$ac_default_prefix/etc/config.site
2364 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2366 test "x$ac_site_file" = xNONE && continue
2367 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2369 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2370 sed 's/^/| /' "$ac_site_file" >&5
2371 . "$ac_site_file" \
2372 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2374 as_fn_error $? "failed to load site script $ac_site_file
2375 See \`config.log' for more details" "$LINENO" 5; }
2377 done
2379 if test -r "$cache_file"; then
2380 # Some versions of bash will fail to source /dev/null (special files
2381 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2382 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2384 $as_echo "$as_me: loading cache $cache_file" >&6;}
2385 case $cache_file in
2386 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2387 *) . "./$cache_file";;
2388 esac
2390 else
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2392 $as_echo "$as_me: creating cache $cache_file" >&6;}
2393 >$cache_file
2396 # Check that the precious variables saved in the cache have kept the same
2397 # value.
2398 ac_cache_corrupted=false
2399 for ac_var in $ac_precious_vars; do
2400 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2401 eval ac_new_set=\$ac_env_${ac_var}_set
2402 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2403 eval ac_new_val=\$ac_env_${ac_var}_value
2404 case $ac_old_set,$ac_new_set in
2405 set,)
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2407 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2408 ac_cache_corrupted=: ;;
2409 ,set)
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2411 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2412 ac_cache_corrupted=: ;;
2413 ,);;
2415 if test "x$ac_old_val" != "x$ac_new_val"; then
2416 # differences in whitespace do not lead to failure.
2417 ac_old_val_w=`echo x $ac_old_val`
2418 ac_new_val_w=`echo x $ac_new_val`
2419 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2421 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2422 ac_cache_corrupted=:
2423 else
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2425 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2426 eval $ac_var=\$ac_old_val
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2429 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2431 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2432 fi;;
2433 esac
2434 # Pass precious variables to config.status.
2435 if test "$ac_new_set" = set; then
2436 case $ac_new_val in
2437 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2438 *) ac_arg=$ac_var=$ac_new_val ;;
2439 esac
2440 case " $ac_configure_args " in
2441 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2442 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2443 esac
2445 done
2446 if $ac_cache_corrupted; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2450 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2451 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2453 ## -------------------- ##
2454 ## Main body of script. ##
2455 ## -------------------- ##
2457 ac_ext=c
2458 ac_cpp='$CPP $CPPFLAGS'
2459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2465 ac_config_headers="$ac_config_headers include/config.h"
2467 ac_aux_dir=
2468 for ac_dir in tools "$srcdir"/tools; do
2469 if test -f "$ac_dir/install-sh"; then
2470 ac_aux_dir=$ac_dir
2471 ac_install_sh="$ac_aux_dir/install-sh -c"
2472 break
2473 elif test -f "$ac_dir/install.sh"; then
2474 ac_aux_dir=$ac_dir
2475 ac_install_sh="$ac_aux_dir/install.sh -c"
2476 break
2477 elif test -f "$ac_dir/shtool"; then
2478 ac_aux_dir=$ac_dir
2479 ac_install_sh="$ac_aux_dir/shtool install -c"
2480 break
2482 done
2483 if test -z "$ac_aux_dir"; then
2484 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2487 # These three variables are undocumented and unsupported,
2488 # and are intended to be withdrawn in a future Autoconf release.
2489 # They can cause serious problems if a builder's source tree is in a directory
2490 # whose full name contains unusual characters.
2491 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2492 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2493 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2499 # Check whether --enable-win16 was given.
2500 if test "${enable_win16+set}" = set; then :
2501 enableval=$enable_win16;
2504 # Check whether --enable-win64 was given.
2505 if test "${enable_win64+set}" = set; then :
2506 enableval=$enable_win64;
2509 # Check whether --enable-tests was given.
2510 if test "${enable_tests+set}" = set; then :
2511 enableval=$enable_tests;
2514 # Check whether --enable-maintainer-mode was given.
2515 if test "${enable_maintainer_mode+set}" = set; then :
2516 enableval=$enable_maintainer_mode;
2521 # Check whether --with-alsa was given.
2522 if test "${with_alsa+set}" = set; then :
2523 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2527 # Check whether --with-capi was given.
2528 if test "${with_capi+set}" = set; then :
2529 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2533 # Check whether --with-cms was given.
2534 if test "${with_cms+set}" = set; then :
2535 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2539 # Check whether --with-coreaudio was given.
2540 if test "${with_coreaudio+set}" = set; then :
2541 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2545 # Check whether --with-cups was given.
2546 if test "${with_cups+set}" = set; then :
2547 withval=$with_cups;
2551 # Check whether --with-curses was given.
2552 if test "${with_curses+set}" = set; then :
2553 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2557 # Check whether --with-dbus was given.
2558 if test "${with_dbus+set}" = set; then :
2559 withval=$with_dbus;
2563 # Check whether --with-fontconfig was given.
2564 if test "${with_fontconfig+set}" = set; then :
2565 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2569 # Check whether --with-freetype was given.
2570 if test "${with_freetype+set}" = set; then :
2571 withval=$with_freetype;
2575 # Check whether --with-gettext was given.
2576 if test "${with_gettext+set}" = set; then :
2577 withval=$with_gettext;
2581 # Check whether --with-gettextpo was given.
2582 if test "${with_gettextpo+set}" = set; then :
2583 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2587 # Check whether --with-gphoto was given.
2588 if test "${with_gphoto+set}" = set; then :
2589 withval=$with_gphoto;
2593 # Check whether --with-glu was given.
2594 if test "${with_glu+set}" = set; then :
2595 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2599 # Check whether --with-gnutls was given.
2600 if test "${with_gnutls+set}" = set; then :
2601 withval=$with_gnutls;
2605 # Check whether --with-gsm was given.
2606 if test "${with_gsm+set}" = set; then :
2607 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2611 # Check whether --with-gstreamer was given.
2612 if test "${with_gstreamer+set}" = set; then :
2613 withval=$with_gstreamer;
2617 # Check whether --with-hal was given.
2618 if test "${with_hal+set}" = set; then :
2619 withval=$with_hal;
2623 # Check whether --with-jpeg was given.
2624 if test "${with_jpeg+set}" = set; then :
2625 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2629 # Check whether --with-ldap was given.
2630 if test "${with_ldap+set}" = set; then :
2631 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2635 # Check whether --with-mpg123 was given.
2636 if test "${with_mpg123+set}" = set; then :
2637 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2641 # Check whether --with-openal was given.
2642 if test "${with_openal+set}" = set; then :
2643 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2647 # Check whether --with-opencl was given.
2648 if test "${with_opencl+set}" = set; then :
2649 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2653 # Check whether --with-opengl was given.
2654 if test "${with_opengl+set}" = set; then :
2655 withval=$with_opengl;
2659 # Check whether --with-openssl was given.
2660 if test "${with_openssl+set}" = set; then :
2661 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2665 # Check whether --with-oss was given.
2666 if test "${with_oss+set}" = set; then :
2667 withval=$with_oss;
2671 # Check whether --with-png was given.
2672 if test "${with_png+set}" = set; then :
2673 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2677 # Check whether --with-pthread was given.
2678 if test "${with_pthread+set}" = set; then :
2679 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2683 # Check whether --with-sane was given.
2684 if test "${with_sane+set}" = set; then :
2685 withval=$with_sane;
2689 # Check whether --with-tiff was given.
2690 if test "${with_tiff+set}" = set; then :
2691 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2695 # Check whether --with-v4l was given.
2696 if test "${with_v4l+set}" = set; then :
2697 withval=$with_v4l;
2701 # Check whether --with-xcomposite was given.
2702 if test "${with_xcomposite+set}" = set; then :
2703 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2707 # Check whether --with-xcursor was given.
2708 if test "${with_xcursor+set}" = set; then :
2709 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2713 # Check whether --with-xinerama was given.
2714 if test "${with_xinerama+set}" = set; then :
2715 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2719 # Check whether --with-xinput was given.
2720 if test "${with_xinput+set}" = set; then :
2721 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2725 # Check whether --with-xinput2 was given.
2726 if test "${with_xinput2+set}" = set; then :
2727 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2731 # Check whether --with-xml was given.
2732 if test "${with_xml+set}" = set; then :
2733 withval=$with_xml;
2737 # Check whether --with-xrandr was given.
2738 if test "${with_xrandr+set}" = set; then :
2739 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2743 # Check whether --with-xrender was given.
2744 if test "${with_xrender+set}" = set; then :
2745 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2749 # Check whether --with-xshape was given.
2750 if test "${with_xshape+set}" = set; then :
2751 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2755 # Check whether --with-xshm was given.
2756 if test "${with_xshm+set}" = set; then :
2757 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2761 # Check whether --with-xslt was given.
2762 if test "${with_xslt+set}" = set; then :
2763 withval=$with_xslt;
2767 # Check whether --with-xxf86vm was given.
2768 if test "${with_xxf86vm+set}" = set; then :
2769 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
2773 # Check whether --with-zlib was given.
2774 if test "${with_zlib+set}" = set; then :
2775 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2780 # Check whether --with-wine-tools was given.
2781 if test "${with_wine_tools+set}" = set; then :
2782 withval=$with_wine_tools;
2786 # Check whether --with-wine64 was given.
2787 if test "${with_wine64+set}" = set; then :
2788 withval=$with_wine64;
2792 # Make sure we can run config.sub.
2793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2794 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2797 $as_echo_n "checking build system type... " >&6; }
2798 if ${ac_cv_build+:} false; then :
2799 $as_echo_n "(cached) " >&6
2800 else
2801 ac_build_alias=$build_alias
2802 test "x$ac_build_alias" = x &&
2803 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2804 test "x$ac_build_alias" = x &&
2805 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2806 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2811 $as_echo "$ac_cv_build" >&6; }
2812 case $ac_cv_build in
2813 *-*-*) ;;
2814 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2815 esac
2816 build=$ac_cv_build
2817 ac_save_IFS=$IFS; IFS='-'
2818 set x $ac_cv_build
2819 shift
2820 build_cpu=$1
2821 build_vendor=$2
2822 shift; shift
2823 # Remember, the first character of IFS is used to create $*,
2824 # except with old shells:
2825 build_os=$*
2826 IFS=$ac_save_IFS
2827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2831 $as_echo_n "checking host system type... " >&6; }
2832 if ${ac_cv_host+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834 else
2835 if test "x$host_alias" = x; then
2836 ac_cv_host=$ac_cv_build
2837 else
2838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2844 $as_echo "$ac_cv_host" >&6; }
2845 case $ac_cv_host in
2846 *-*-*) ;;
2847 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2848 esac
2849 host=$ac_cv_host
2850 ac_save_IFS=$IFS; IFS='-'
2851 set x $ac_cv_host
2852 shift
2853 host_cpu=$1
2854 host_vendor=$2
2855 shift; shift
2856 # Remember, the first character of IFS is used to create $*,
2857 # except with old shells:
2858 host_os=$*
2859 IFS=$ac_save_IFS
2860 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2864 case "$srcdir" in
2865 .) ;;
2866 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2867 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2868 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2869 fi ;;
2870 esac
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2874 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2875 set x ${MAKE-make}
2876 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2877 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2878 $as_echo_n "(cached) " >&6
2879 else
2880 cat >conftest.make <<\_ACEOF
2881 SHELL = /bin/sh
2882 all:
2883 @echo '@@@%%%=$(MAKE)=@@@%%%'
2884 _ACEOF
2885 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2886 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2887 *@@@%%%=?*=@@@%%%*)
2888 eval ac_cv_prog_make_${ac_make}_set=yes;;
2890 eval ac_cv_prog_make_${ac_make}_set=no;;
2891 esac
2892 rm -f conftest.make
2894 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2896 $as_echo "yes" >&6; }
2897 SET_MAKE=
2898 else
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2901 SET_MAKE="MAKE=${MAKE-make}"
2904 ac_ext=c
2905 ac_cpp='$CPP $CPPFLAGS'
2906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2909 if test -n "$ac_tool_prefix"; then
2910 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2911 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_CC+:} false; then :
2915 $as_echo_n "(cached) " >&6
2916 else
2917 if test -n "$CC"; then
2918 ac_cv_prog_CC="$CC" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2931 done
2932 done
2933 IFS=$as_save_IFS
2937 CC=$ac_cv_prog_CC
2938 if test -n "$CC"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2940 $as_echo "$CC" >&6; }
2941 else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2948 if test -z "$ac_cv_prog_CC"; then
2949 ac_ct_CC=$CC
2950 # Extract the first word of "gcc", so it can be a program name with args.
2951 set dummy gcc; ac_word=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2955 $as_echo_n "(cached) " >&6
2956 else
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 ac_cv_prog_ac_ct_CC="gcc"
2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2971 done
2972 done
2973 IFS=$as_save_IFS
2977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978 if test -n "$ac_ct_CC"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2980 $as_echo "$ac_ct_CC" >&6; }
2981 else
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2986 if test "x$ac_ct_CC" = x; then
2987 CC=""
2988 else
2989 case $cross_compiling:$ac_tool_warned in
2990 yes:)
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2993 ac_tool_warned=yes ;;
2994 esac
2995 CC=$ac_ct_CC
2997 else
2998 CC="$ac_cv_prog_CC"
3001 if test -z "$CC"; then
3002 if test -n "$ac_tool_prefix"; then
3003 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3004 set dummy ${ac_tool_prefix}cc; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if ${ac_cv_prog_CC+:} false; then :
3008 $as_echo_n "(cached) " >&6
3009 else
3010 if test -n "$CC"; then
3011 ac_cv_prog_CC="$CC" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 ac_cv_prog_CC="${ac_tool_prefix}cc"
3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 break 2
3024 done
3025 done
3026 IFS=$as_save_IFS
3030 CC=$ac_cv_prog_CC
3031 if test -n "$CC"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3033 $as_echo "$CC" >&6; }
3034 else
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3042 if test -z "$CC"; then
3043 # Extract the first word of "cc", so it can be a program name with args.
3044 set dummy cc; ac_word=$2
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if ${ac_cv_prog_CC+:} false; then :
3048 $as_echo_n "(cached) " >&6
3049 else
3050 if test -n "$CC"; then
3051 ac_cv_prog_CC="$CC" # Let the user override the test.
3052 else
3053 ac_prog_rejected=no
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3062 ac_prog_rejected=yes
3063 continue
3065 ac_cv_prog_CC="cc"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3069 done
3070 done
3071 IFS=$as_save_IFS
3073 if test $ac_prog_rejected = yes; then
3074 # We found a bogon in the path, so make sure we never use it.
3075 set dummy $ac_cv_prog_CC
3076 shift
3077 if test $# != 0; then
3078 # We chose a different compiler from the bogus one.
3079 # However, it has the same basename, so the bogon will be chosen
3080 # first if we set CC to just the basename; use the full file name.
3081 shift
3082 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3087 CC=$ac_cv_prog_CC
3088 if test -n "$CC"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3090 $as_echo "$CC" >&6; }
3091 else
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3098 if test -z "$CC"; then
3099 if test -n "$ac_tool_prefix"; then
3100 for ac_prog in cl.exe
3102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_CC+:} false; then :
3107 $as_echo_n "(cached) " >&6
3108 else
3109 if test -n "$CC"; then
3110 ac_cv_prog_CC="$CC" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3123 done
3124 done
3125 IFS=$as_save_IFS
3129 CC=$ac_cv_prog_CC
3130 if test -n "$CC"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132 $as_echo "$CC" >&6; }
3133 else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3139 test -n "$CC" && break
3140 done
3142 if test -z "$CC"; then
3143 ac_ct_CC=$CC
3144 for ac_prog in cl.exe
3146 # Extract the first word of "$ac_prog", so it can be a program name with args.
3147 set dummy $ac_prog; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 if test -n "$ac_ct_CC"; then
3154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3163 ac_cv_prog_ac_ct_CC="$ac_prog"
3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
3167 done
3168 done
3169 IFS=$as_save_IFS
3173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3174 if test -n "$ac_ct_CC"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3176 $as_echo "$ac_ct_CC" >&6; }
3177 else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3183 test -n "$ac_ct_CC" && break
3184 done
3186 if test "x$ac_ct_CC" = x; then
3187 CC=""
3188 else
3189 case $cross_compiling:$ac_tool_warned in
3190 yes:)
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3193 ac_tool_warned=yes ;;
3194 esac
3195 CC=$ac_ct_CC
3202 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204 as_fn_error $? "no acceptable C compiler found in \$PATH
3205 See \`config.log' for more details" "$LINENO" 5; }
3207 # Provide some information about the compiler.
3208 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3209 set X $ac_compile
3210 ac_compiler=$2
3211 for ac_option in --version -v -V -qversion; do
3212 { { ac_try="$ac_compiler $ac_option >&5"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3220 ac_status=$?
3221 if test -s conftest.err; then
3222 sed '10a\
3223 ... rest of stderr output deleted ...
3224 10q' conftest.err >conftest.er1
3225 cat conftest.er1 >&5
3227 rm -f conftest.er1 conftest.err
3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229 test $ac_status = 0; }
3230 done
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h. */
3236 main ()
3240 return 0;
3242 _ACEOF
3243 ac_clean_files_save=$ac_clean_files
3244 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3245 # Try to create an executable without -o first, disregard a.out.
3246 # It will help us diagnose broken compilers, and finding out an intuition
3247 # of exeext.
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3249 $as_echo_n "checking whether the C compiler works... " >&6; }
3250 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3252 # The possible output files:
3253 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3255 ac_rmfiles=
3256 for ac_file in $ac_files
3258 case $ac_file in
3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3260 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3261 esac
3262 done
3263 rm -f $ac_rmfiles
3265 if { { ac_try="$ac_link_default"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272 (eval "$ac_link_default") 2>&5
3273 ac_status=$?
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }; then :
3276 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3277 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3278 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3279 # so that the user can short-circuit this test for compilers unknown to
3280 # Autoconf.
3281 for ac_file in $ac_files ''
3283 test -f "$ac_file" || continue
3284 case $ac_file in
3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3287 [ab].out )
3288 # We found the default executable, but exeext='' is most
3289 # certainly right.
3290 break;;
3291 *.* )
3292 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3293 then :; else
3294 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3296 # We set ac_cv_exeext here because the later test for it is not
3297 # safe: cross compilers may not add the suffix if given an `-o'
3298 # argument, so we may need to know it at that point already.
3299 # Even if this section looks crufty: it has the advantage of
3300 # actually working.
3301 break;;
3303 break;;
3304 esac
3305 done
3306 test "$ac_cv_exeext" = no && ac_cv_exeext=
3308 else
3309 ac_file=''
3311 if test -z "$ac_file"; then :
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3314 $as_echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error 77 "C compiler cannot create executables
3320 See \`config.log' for more details" "$LINENO" 5; }
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323 $as_echo "yes" >&6; }
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3326 $as_echo_n "checking for C compiler default output file name... " >&6; }
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3328 $as_echo "$ac_file" >&6; }
3329 ac_exeext=$ac_cv_exeext
3331 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3332 ac_clean_files=$ac_clean_files_save
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3334 $as_echo_n "checking for suffix of executables... " >&6; }
3335 if { { ac_try="$ac_link"
3336 case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 $as_echo "$ac_try_echo"; } >&5
3342 (eval "$ac_link") 2>&5
3343 ac_status=$?
3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 test $ac_status = 0; }; then :
3346 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3347 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3348 # work properly (i.e., refer to `conftest.exe'), while it won't with
3349 # `rm'.
3350 for ac_file in conftest.exe conftest conftest.*; do
3351 test -f "$ac_file" || continue
3352 case $ac_file in
3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3354 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3355 break;;
3356 * ) break;;
3357 esac
3358 done
3359 else
3360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3363 See \`config.log' for more details" "$LINENO" 5; }
3365 rm -f conftest conftest$ac_cv_exeext
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3367 $as_echo "$ac_cv_exeext" >&6; }
3369 rm -f conftest.$ac_ext
3370 EXEEXT=$ac_cv_exeext
3371 ac_exeext=$EXEEXT
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3374 #include <stdio.h>
3376 main ()
3378 FILE *f = fopen ("conftest.out", "w");
3379 return ferror (f) || fclose (f) != 0;
3382 return 0;
3384 _ACEOF
3385 ac_clean_files="$ac_clean_files conftest.out"
3386 # Check that the compiler produces executables we can run. If not, either
3387 # the compiler is broken, or we cross compile.
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3389 $as_echo_n "checking whether we are cross compiling... " >&6; }
3390 if test "$cross_compiling" != yes; then
3391 { { ac_try="$ac_link"
3392 case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395 esac
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397 $as_echo "$ac_try_echo"; } >&5
3398 (eval "$ac_link") 2>&5
3399 ac_status=$?
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }
3402 if { ac_try='./conftest$ac_cv_exeext'
3403 { { case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_try") 2>&5
3410 ac_status=$?
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }; }; then
3413 cross_compiling=no
3414 else
3415 if test "$cross_compiling" = maybe; then
3416 cross_compiling=yes
3417 else
3418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error $? "cannot run C compiled programs.
3421 If you meant to cross compile, use \`--host'.
3422 See \`config.log' for more details" "$LINENO" 5; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3427 $as_echo "$cross_compiling" >&6; }
3429 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3430 ac_clean_files=$ac_clean_files_save
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3432 $as_echo_n "checking for suffix of object files... " >&6; }
3433 if ${ac_cv_objext+:} false; then :
3434 $as_echo_n "(cached) " >&6
3435 else
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3440 main ()
3444 return 0;
3446 _ACEOF
3447 rm -f conftest.o conftest.obj
3448 if { { ac_try="$ac_compile"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_compile") 2>&5
3456 ac_status=$?
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; then :
3459 for ac_file in conftest.o conftest.obj conftest.*; do
3460 test -f "$ac_file" || continue;
3461 case $ac_file in
3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3463 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3464 break;;
3465 esac
3466 done
3467 else
3468 $as_echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error $? "cannot compute suffix of object files: cannot compile
3474 See \`config.log' for more details" "$LINENO" 5; }
3476 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3479 $as_echo "$ac_cv_objext" >&6; }
3480 OBJEXT=$ac_cv_objext
3481 ac_objext=$OBJEXT
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3483 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3484 if ${ac_cv_c_compiler_gnu+:} false; then :
3485 $as_echo_n "(cached) " >&6
3486 else
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3491 main ()
3493 #ifndef __GNUC__
3494 choke me
3495 #endif
3498 return 0;
3500 _ACEOF
3501 if ac_fn_c_try_compile "$LINENO"; then :
3502 ac_compiler_gnu=yes
3503 else
3504 ac_compiler_gnu=no
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3511 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3512 if test $ac_compiler_gnu = yes; then
3513 GCC=yes
3514 else
3515 GCC=
3517 ac_test_CFLAGS=${CFLAGS+set}
3518 ac_save_CFLAGS=$CFLAGS
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3520 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3521 if ${ac_cv_prog_cc_g+:} false; then :
3522 $as_echo_n "(cached) " >&6
3523 else
3524 ac_save_c_werror_flag=$ac_c_werror_flag
3525 ac_c_werror_flag=yes
3526 ac_cv_prog_cc_g=no
3527 CFLAGS="-g"
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3532 main ()
3536 return 0;
3538 _ACEOF
3539 if ac_fn_c_try_compile "$LINENO"; then :
3540 ac_cv_prog_cc_g=yes
3541 else
3542 CFLAGS=""
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3547 main ()
3551 return 0;
3553 _ACEOF
3554 if ac_fn_c_try_compile "$LINENO"; then :
3556 else
3557 ac_c_werror_flag=$ac_save_c_werror_flag
3558 CFLAGS="-g"
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3563 main ()
3567 return 0;
3569 _ACEOF
3570 if ac_fn_c_try_compile "$LINENO"; then :
3571 ac_cv_prog_cc_g=yes
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 ac_c_werror_flag=$ac_save_c_werror_flag
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3581 $as_echo "$ac_cv_prog_cc_g" >&6; }
3582 if test "$ac_test_CFLAGS" = set; then
3583 CFLAGS=$ac_save_CFLAGS
3584 elif test $ac_cv_prog_cc_g = yes; then
3585 if test "$GCC" = yes; then
3586 CFLAGS="-g -O2"
3587 else
3588 CFLAGS="-g"
3590 else
3591 if test "$GCC" = yes; then
3592 CFLAGS="-O2"
3593 else
3594 CFLAGS=
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3598 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3599 if ${ac_cv_prog_cc_c89+:} false; then :
3600 $as_echo_n "(cached) " >&6
3601 else
3602 ac_cv_prog_cc_c89=no
3603 ac_save_CC=$CC
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606 #include <stdarg.h>
3607 #include <stdio.h>
3608 #include <sys/types.h>
3609 #include <sys/stat.h>
3610 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3611 struct buf { int x; };
3612 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3613 static char *e (p, i)
3614 char **p;
3615 int i;
3617 return p[i];
3619 static char *f (char * (*g) (char **, int), char **p, ...)
3621 char *s;
3622 va_list v;
3623 va_start (v,p);
3624 s = g (p, va_arg (v,int));
3625 va_end (v);
3626 return s;
3629 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3630 function prototypes and stuff, but not '\xHH' hex character constants.
3631 These don't provoke an error unfortunately, instead are silently treated
3632 as 'x'. The following induces an error, until -std is added to get
3633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3634 array size at least. It's necessary to write '\x00'==0 to get something
3635 that's true only with -std. */
3636 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3638 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3639 inside strings and character constants. */
3640 #define FOO(x) 'x'
3641 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3643 int test (int i, double x);
3644 struct s1 {int (*f) (int a);};
3645 struct s2 {int (*f) (double a);};
3646 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3647 int argc;
3648 char **argv;
3650 main ()
3652 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3654 return 0;
3656 _ACEOF
3657 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3658 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3660 CC="$ac_save_CC $ac_arg"
3661 if ac_fn_c_try_compile "$LINENO"; then :
3662 ac_cv_prog_cc_c89=$ac_arg
3664 rm -f core conftest.err conftest.$ac_objext
3665 test "x$ac_cv_prog_cc_c89" != "xno" && break
3666 done
3667 rm -f conftest.$ac_ext
3668 CC=$ac_save_CC
3671 # AC_CACHE_VAL
3672 case "x$ac_cv_prog_cc_c89" in
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3675 $as_echo "none needed" >&6; } ;;
3676 xno)
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3678 $as_echo "unsupported" >&6; } ;;
3680 CC="$CC $ac_cv_prog_cc_c89"
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3682 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3683 esac
3684 if test "x$ac_cv_prog_cc_c89" != xno; then :
3688 ac_ext=c
3689 ac_cpp='$CPP $CPPFLAGS'
3690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694 ac_ext=cpp
3695 ac_cpp='$CXXCPP $CPPFLAGS'
3696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3699 if test -z "$CXX"; then
3700 if test -n "$CCC"; then
3701 CXX=$CCC
3702 else
3703 if test -n "$ac_tool_prefix"; then
3704 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if ${ac_cv_prog_CXX+:} false; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 if test -n "$CXX"; then
3714 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3715 else
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3723 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 break 2
3727 done
3728 done
3729 IFS=$as_save_IFS
3733 CXX=$ac_cv_prog_CXX
3734 if test -n "$CXX"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3736 $as_echo "$CXX" >&6; }
3737 else
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3743 test -n "$CXX" && break
3744 done
3746 if test -z "$CXX"; then
3747 ac_ct_CXX=$CXX
3748 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3750 # Extract the first word of "$ac_prog", so it can be a program name with args.
3751 set dummy $ac_prog; ac_word=$2
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 $as_echo_n "checking for $ac_word... " >&6; }
3754 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 if test -n "$ac_ct_CXX"; then
3758 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3759 else
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767 ac_cv_prog_ac_ct_CXX="$ac_prog"
3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 break 2
3771 done
3772 done
3773 IFS=$as_save_IFS
3777 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3778 if test -n "$ac_ct_CXX"; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3780 $as_echo "$ac_ct_CXX" >&6; }
3781 else
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3787 test -n "$ac_ct_CXX" && break
3788 done
3790 if test "x$ac_ct_CXX" = x; then
3791 CXX="g++"
3792 else
3793 case $cross_compiling:$ac_tool_warned in
3794 yes:)
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3797 ac_tool_warned=yes ;;
3798 esac
3799 CXX=$ac_ct_CXX
3805 # Provide some information about the compiler.
3806 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3807 set X $ac_compile
3808 ac_compiler=$2
3809 for ac_option in --version -v -V -qversion; do
3810 { { ac_try="$ac_compiler $ac_option >&5"
3811 case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814 esac
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3818 ac_status=$?
3819 if test -s conftest.err; then
3820 sed '10a\
3821 ... rest of stderr output deleted ...
3822 10q' conftest.err >conftest.er1
3823 cat conftest.er1 >&5
3825 rm -f conftest.er1 conftest.err
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }
3828 done
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3831 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3832 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3833 $as_echo_n "(cached) " >&6
3834 else
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3839 main ()
3841 #ifndef __GNUC__
3842 choke me
3843 #endif
3846 return 0;
3848 _ACEOF
3849 if ac_fn_cxx_try_compile "$LINENO"; then :
3850 ac_compiler_gnu=yes
3851 else
3852 ac_compiler_gnu=no
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3859 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3860 if test $ac_compiler_gnu = yes; then
3861 GXX=yes
3862 else
3863 GXX=
3865 ac_test_CXXFLAGS=${CXXFLAGS+set}
3866 ac_save_CXXFLAGS=$CXXFLAGS
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3868 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3869 if ${ac_cv_prog_cxx_g+:} false; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3873 ac_cxx_werror_flag=yes
3874 ac_cv_prog_cxx_g=no
3875 CXXFLAGS="-g"
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3880 main ()
3884 return 0;
3886 _ACEOF
3887 if ac_fn_cxx_try_compile "$LINENO"; then :
3888 ac_cv_prog_cxx_g=yes
3889 else
3890 CXXFLAGS=""
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3895 main ()
3899 return 0;
3901 _ACEOF
3902 if ac_fn_cxx_try_compile "$LINENO"; then :
3904 else
3905 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3906 CXXFLAGS="-g"
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3911 main ()
3915 return 0;
3917 _ACEOF
3918 if ac_fn_cxx_try_compile "$LINENO"; then :
3919 ac_cv_prog_cxx_g=yes
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3929 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3930 if test "$ac_test_CXXFLAGS" = set; then
3931 CXXFLAGS=$ac_save_CXXFLAGS
3932 elif test $ac_cv_prog_cxx_g = yes; then
3933 if test "$GXX" = yes; then
3934 CXXFLAGS="-g -O2"
3935 else
3936 CXXFLAGS="-g"
3938 else
3939 if test "$GXX" = yes; then
3940 CXXFLAGS="-O2"
3941 else
3942 CXXFLAGS=
3945 ac_ext=c
3946 ac_cpp='$CPP $CPPFLAGS'
3947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951 if test -n "$ac_tool_prefix"; then
3952 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3953 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 $as_echo_n "checking for $ac_word... " >&6; }
3956 if ${ac_cv_prog_CPPBIN+:} false; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 if test -n "$CPPBIN"; then
3960 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3961 else
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3969 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 break 2
3973 done
3974 done
3975 IFS=$as_save_IFS
3979 CPPBIN=$ac_cv_prog_CPPBIN
3980 if test -n "$CPPBIN"; then
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3982 $as_echo "$CPPBIN" >&6; }
3983 else
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 $as_echo "no" >&6; }
3990 if test -z "$ac_cv_prog_CPPBIN"; then
3991 ac_ct_CPPBIN=$CPPBIN
3992 # Extract the first word of "cpp", so it can be a program name with args.
3993 set dummy cpp; ac_word=$2
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3995 $as_echo_n "checking for $ac_word... " >&6; }
3996 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
3997 $as_echo_n "(cached) " >&6
3998 else
3999 if test -n "$ac_ct_CPPBIN"; then
4000 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4001 else
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4009 ac_cv_prog_ac_ct_CPPBIN="cpp"
4010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 break 2
4013 done
4014 done
4015 IFS=$as_save_IFS
4019 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4020 if test -n "$ac_ct_CPPBIN"; then
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4022 $as_echo "$ac_ct_CPPBIN" >&6; }
4023 else
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025 $as_echo "no" >&6; }
4028 if test "x$ac_ct_CPPBIN" = x; then
4029 CPPBIN="cpp"
4030 else
4031 case $cross_compiling:$ac_tool_warned in
4032 yes:)
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4035 ac_tool_warned=yes ;;
4036 esac
4037 CPPBIN=$ac_ct_CPPBIN
4039 else
4040 CPPBIN="$ac_cv_prog_CPPBIN"
4044 cat >>confdefs.h <<_ACEOF
4045 #define EXEEXT "$ac_exeext"
4046 _ACEOF
4049 case $host in
4050 *-darwin*)
4051 if test "x$enable_win64" = "xyes"
4052 then
4053 CC="$CC -m64"
4054 CXX="$CXX -m64"
4055 host_cpu="x86_64"
4056 notice_platform="64-bit "
4057 TARGETFLAGS="-m64"
4059 else
4060 CC="$CC -m32"
4061 CXX="$CXX -m32"
4062 host_cpu="i386"
4063 notice_platform="32-bit "
4064 TARGETFLAGS="-m32"
4066 enable_win16=${enable_win16:-yes}
4069 x86_64*)
4070 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4071 then
4072 CC="$CC -m32"
4073 CXX="$CXX -m32"
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4075 $as_echo_n "checking whether $CC works... " >&6; }
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4081 main ()
4085 return 0;
4087 _ACEOF
4088 if ac_fn_c_try_link "$LINENO"; then :
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4090 $as_echo "yes" >&6; }
4091 else
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 $as_echo "no" >&6; }
4094 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4096 rm -f core conftest.err conftest.$ac_objext \
4097 conftest$ac_exeext conftest.$ac_ext
4098 host_cpu="i386"
4099 notice_platform="32-bit "
4100 TARGETFLAGS="-m32"
4102 enable_win16=${enable_win16:-yes}
4103 else
4104 if test "x${GCC}" = "xyes"
4105 then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4107 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110 #include <stdarg.h>
4112 main ()
4114 void func(__builtin_ms_va_list *args);
4116 return 0;
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4121 $as_echo "yes" >&6; }
4122 else
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 $as_echo "no" >&6; }
4125 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 TARGETFLAGS="-m64"
4133 *-mingw32*|*-cygwin*)
4134 enable_win16=${enable_win16:-no}
4135 CFLAGS="$CFLAGS -D_WIN32"
4137 i[3456789]86*)
4138 enable_win16=${enable_win16:-yes}
4140 esac
4142 enable_win16=${enable_win16:-no}
4143 enable_win64=${enable_win64:-no}
4145 enable_winetest=${enable_winetest:-$enable_tests}
4147 if test -n "$with_wine64"
4148 then
4149 if test "x$enable_win64" = "xyes"
4150 then
4151 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4152 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4154 WOW64_DISABLE=\#
4156 enable_fonts=${enable_fonts:-no}
4157 enable_server=${enable_server:-no}
4158 enable_tools=${enable_tools:-no}
4159 elif test "x$enable_win64" = "xyes"
4160 then
4161 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4165 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4166 if ${wine_cv_toolsdir+:} false; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 wine_cv_toolsdir="$with_wine_tools"
4170 if test -z "$with_wine_tools"; then
4171 if test "$cross_compiling" = "yes"; then
4172 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4173 elif test -n "$with_wine64"; then
4174 wine_cv_toolsdir="$with_wine64"
4177 if test -z "$wine_cv_toolsdir"; then
4178 wine_cv_toolsdir="\$(top_builddir)"
4179 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4180 case "$wine_cv_toolsdir" in
4181 /*) ;;
4182 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4183 esac
4184 else
4185 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4189 $as_echo "$wine_cv_toolsdir" >&6; }
4190 TOOLSDIR=$wine_cv_toolsdir
4192 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4193 then
4194 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4198 for ac_prog in flex
4200 # Extract the first word of "$ac_prog", so it can be a program name with args.
4201 set dummy $ac_prog; ac_word=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if ${ac_cv_prog_FLEX+:} false; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 if test -n "$FLEX"; then
4208 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4217 ac_cv_prog_FLEX="$ac_prog"
4218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 break 2
4221 done
4222 done
4223 IFS=$as_save_IFS
4227 FLEX=$ac_cv_prog_FLEX
4228 if test -n "$FLEX"; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4230 $as_echo "$FLEX" >&6; }
4231 else
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4237 test -n "$FLEX" && break
4238 done
4239 test -n "$FLEX" || FLEX="none"
4241 if test "$FLEX" = "none"
4242 then
4243 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4246 $as_echo_n "checking whether flex is recent enough... " >&6; }
4247 cat >conftest.l <<EOF
4248 %top{
4249 #include "prediluvian.h"
4253 if $FLEX -t conftest.l >/dev/null 2>&5
4254 then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4256 $as_echo "yes" >&6; }
4257 else
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4260 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4263 for ac_prog in bison
4265 # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set dummy $ac_prog; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_prog_BISON+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 if test -n "$BISON"; then
4273 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282 ac_cv_prog_BISON="$ac_prog"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 break 2
4286 done
4287 done
4288 IFS=$as_save_IFS
4292 BISON=$ac_cv_prog_BISON
4293 if test -n "$BISON"; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4295 $as_echo "$BISON" >&6; }
4296 else
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4302 test -n "$BISON" && break
4303 done
4304 test -n "$BISON" || BISON="none"
4306 if test "$BISON" = "none"
4307 then
4308 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4311 if test -n "$ac_tool_prefix"; then
4312 for ac_prog in ar gar
4314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if ${ac_cv_prog_AR+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 if test -n "$AR"; then
4322 ac_cv_prog_AR="$AR" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4335 done
4336 done
4337 IFS=$as_save_IFS
4341 AR=$ac_cv_prog_AR
4342 if test -n "$AR"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4344 $as_echo "$AR" >&6; }
4345 else
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4351 test -n "$AR" && break
4352 done
4354 if test -z "$AR"; then
4355 ac_ct_AR=$AR
4356 for ac_prog in ar gar
4358 # Extract the first word of "$ac_prog", so it can be a program name with args.
4359 set dummy $ac_prog; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 if test -n "$ac_ct_AR"; then
4366 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_prog_ac_ct_AR="$ac_prog"
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4379 done
4380 done
4381 IFS=$as_save_IFS
4385 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4386 if test -n "$ac_ct_AR"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4388 $as_echo "$ac_ct_AR" >&6; }
4389 else
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4395 test -n "$ac_ct_AR" && break
4396 done
4398 if test "x$ac_ct_AR" = x; then
4399 AR="ar"
4400 else
4401 case $cross_compiling:$ac_tool_warned in
4402 yes:)
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned=yes ;;
4406 esac
4407 AR=$ac_ct_AR
4411 ARFLAGS=rc
4413 if test -n "$ac_tool_prefix"; then
4414 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4415 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_prog_RANLIB+:} false; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 if test -n "$RANLIB"; then
4422 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4435 done
4436 done
4437 IFS=$as_save_IFS
4441 RANLIB=$ac_cv_prog_RANLIB
4442 if test -n "$RANLIB"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4444 $as_echo "$RANLIB" >&6; }
4445 else
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4452 if test -z "$ac_cv_prog_RANLIB"; then
4453 ac_ct_RANLIB=$RANLIB
4454 # Extract the first word of "ranlib", so it can be a program name with args.
4455 set dummy ranlib; ac_word=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 if test -n "$ac_ct_RANLIB"; then
4462 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 ac_cv_prog_ac_ct_RANLIB="ranlib"
4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4475 done
4476 done
4477 IFS=$as_save_IFS
4481 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4482 if test -n "$ac_ct_RANLIB"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4484 $as_echo "$ac_ct_RANLIB" >&6; }
4485 else
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4490 if test "x$ac_ct_RANLIB" = x; then
4491 RANLIB=":"
4492 else
4493 case $cross_compiling:$ac_tool_warned in
4494 yes:)
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4497 ac_tool_warned=yes ;;
4498 esac
4499 RANLIB=$ac_ct_RANLIB
4501 else
4502 RANLIB="$ac_cv_prog_RANLIB"
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4506 $as_echo_n "checking whether ln -s works... " >&6; }
4507 LN_S=$as_ln_s
4508 if test "$LN_S" = "ln -s"; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4510 $as_echo "yes" >&6; }
4511 else
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4513 $as_echo "no, using $LN_S" >&6; }
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4517 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4518 if ${ac_cv_path_GREP+:} false; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 if test -z "$GREP"; then
4522 ac_path_GREP_found=false
4523 # Loop through the user's path and test for each of PROGNAME-LIST
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_prog in grep ggrep; do
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4532 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4533 # Check for GNU ac_path_GREP and select it if it is found.
4534 # Check for GNU $ac_path_GREP
4535 case `"$ac_path_GREP" --version 2>&1` in
4536 *GNU*)
4537 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4539 ac_count=0
4540 $as_echo_n 0123456789 >"conftest.in"
4541 while :
4543 cat "conftest.in" "conftest.in" >"conftest.tmp"
4544 mv "conftest.tmp" "conftest.in"
4545 cp "conftest.in" "conftest.nl"
4546 $as_echo 'GREP' >> "conftest.nl"
4547 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4549 as_fn_arith $ac_count + 1 && ac_count=$as_val
4550 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4551 # Best one so far, save it but keep looking for a better one
4552 ac_cv_path_GREP="$ac_path_GREP"
4553 ac_path_GREP_max=$ac_count
4555 # 10*(2^10) chars as input seems more than enough
4556 test $ac_count -gt 10 && break
4557 done
4558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4559 esac
4561 $ac_path_GREP_found && break 3
4562 done
4563 done
4564 done
4565 IFS=$as_save_IFS
4566 if test -z "$ac_cv_path_GREP"; then
4567 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4569 else
4570 ac_cv_path_GREP=$GREP
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4575 $as_echo "$ac_cv_path_GREP" >&6; }
4576 GREP="$ac_cv_path_GREP"
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4580 $as_echo_n "checking for egrep... " >&6; }
4581 if ${ac_cv_path_EGREP+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4585 then ac_cv_path_EGREP="$GREP -E"
4586 else
4587 if test -z "$EGREP"; then
4588 ac_path_EGREP_found=false
4589 # Loop through the user's path and test for each of PROGNAME-LIST
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_prog in egrep; do
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4598 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4599 # Check for GNU ac_path_EGREP and select it if it is found.
4600 # Check for GNU $ac_path_EGREP
4601 case `"$ac_path_EGREP" --version 2>&1` in
4602 *GNU*)
4603 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4605 ac_count=0
4606 $as_echo_n 0123456789 >"conftest.in"
4607 while :
4609 cat "conftest.in" "conftest.in" >"conftest.tmp"
4610 mv "conftest.tmp" "conftest.in"
4611 cp "conftest.in" "conftest.nl"
4612 $as_echo 'EGREP' >> "conftest.nl"
4613 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4615 as_fn_arith $ac_count + 1 && ac_count=$as_val
4616 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4617 # Best one so far, save it but keep looking for a better one
4618 ac_cv_path_EGREP="$ac_path_EGREP"
4619 ac_path_EGREP_max=$ac_count
4621 # 10*(2^10) chars as input seems more than enough
4622 test $ac_count -gt 10 && break
4623 done
4624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4625 esac
4627 $ac_path_EGREP_found && break 3
4628 done
4629 done
4630 done
4631 IFS=$as_save_IFS
4632 if test -z "$ac_cv_path_EGREP"; then
4633 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4635 else
4636 ac_cv_path_EGREP=$EGREP
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4642 $as_echo "$ac_cv_path_EGREP" >&6; }
4643 EGREP="$ac_cv_path_EGREP"
4646 # Extract the first word of "ldconfig", so it can be a program name with args.
4647 set dummy ldconfig; ac_word=$2
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if ${ac_cv_path_LDCONFIG+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 case $LDCONFIG in
4654 [\\/]* | ?:[\\/]*)
4655 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in /sbin /usr/sbin $PATH
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4669 done
4670 done
4671 IFS=$as_save_IFS
4673 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4675 esac
4677 LDCONFIG=$ac_cv_path_LDCONFIG
4678 if test -n "$LDCONFIG"; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4680 $as_echo "$LDCONFIG" >&6; }
4681 else
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4687 # Find a good install program. We prefer a C program (faster),
4688 # so one script is as good as another. But avoid the broken or
4689 # incompatible versions:
4690 # SysV /etc/install, /usr/sbin/install
4691 # SunOS /usr/etc/install
4692 # IRIX /sbin/install
4693 # AIX /bin/install
4694 # AmigaOS /C/install, which installs bootblocks on floppy discs
4695 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4696 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4697 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4698 # OS/2's system install, which has a completely different semantic
4699 # ./install, which can be erroneously created by make from ./install.sh.
4700 # Reject install programs that cannot install multiple files.
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4702 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4703 if test -z "$INSTALL"; then
4704 if ${ac_cv_path_install+:} false; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 # Account for people who put trailing slashes in PATH elements.
4713 case $as_dir/ in #((
4714 ./ | .// | /[cC]/* | \
4715 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4716 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4717 /usr/ucb/* ) ;;
4719 # OSF1 and SCO ODT 3.0 have their own names for install.
4720 # Don't use installbsd from OSF since it installs stuff as root
4721 # by default.
4722 for ac_prog in ginstall scoinst install; do
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4725 if test $ac_prog = install &&
4726 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4727 # AIX install. It has an incompatible calling convention.
4729 elif test $ac_prog = install &&
4730 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4731 # program-specific install script used by HP pwplus--don't use.
4733 else
4734 rm -rf conftest.one conftest.two conftest.dir
4735 echo one > conftest.one
4736 echo two > conftest.two
4737 mkdir conftest.dir
4738 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4739 test -s conftest.one && test -s conftest.two &&
4740 test -s conftest.dir/conftest.one &&
4741 test -s conftest.dir/conftest.two
4742 then
4743 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4744 break 3
4748 done
4749 done
4751 esac
4753 done
4754 IFS=$as_save_IFS
4756 rm -rf conftest.one conftest.two conftest.dir
4759 if test "${ac_cv_path_install+set}" = set; then
4760 INSTALL=$ac_cv_path_install
4761 else
4762 # As a last resort, use the slow shell script. Don't cache a
4763 # value for INSTALL within a source directory, because that will
4764 # break other packages using the cache if that directory is
4765 # removed, or if the value is a relative name.
4766 INSTALL=$ac_install_sh
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4770 $as_echo "$INSTALL" >&6; }
4772 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4773 # It thinks the first close brace ends the variable substitution.
4774 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4776 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4778 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4780 case "$INSTALL" in
4781 [\\/$]* | ?:[\\/]* ) ;;
4782 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4783 esac
4785 for ac_prog in lclint lint
4787 # Extract the first word of "$ac_prog", so it can be a program name with args.
4788 set dummy $ac_prog; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if ${ac_cv_prog_LINT+:} false; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 if test -n "$LINT"; then
4795 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_LINT="$ac_prog"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4808 done
4809 done
4810 IFS=$as_save_IFS
4814 LINT=$ac_cv_prog_LINT
4815 if test -n "$LINT"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4817 $as_echo "$LINT" >&6; }
4818 else
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4824 test -n "$LINT" && break
4825 done
4827 if test "$LINT" = "lint"
4828 then
4829 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4833 for ac_prog in fontforge
4835 # Extract the first word of "$ac_prog", so it can be a program name with args.
4836 set dummy $ac_prog; ac_word=$2
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838 $as_echo_n "checking for $ac_word... " >&6; }
4839 if ${ac_cv_prog_FONTFORGE+:} false; then :
4840 $as_echo_n "(cached) " >&6
4841 else
4842 if test -n "$FONTFORGE"; then
4843 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4844 else
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4852 ac_cv_prog_FONTFORGE="$ac_prog"
4853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 break 2
4856 done
4857 done
4858 IFS=$as_save_IFS
4862 FONTFORGE=$ac_cv_prog_FONTFORGE
4863 if test -n "$FONTFORGE"; then
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4865 $as_echo "$FONTFORGE" >&6; }
4866 else
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868 $as_echo "no" >&6; }
4872 test -n "$FONTFORGE" && break
4873 done
4874 test -n "$FONTFORGE" || FONTFORGE="false"
4876 for ac_prog in pkg-config
4878 # Extract the first word of "$ac_prog", so it can be a program name with args.
4879 set dummy $ac_prog; ac_word=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 if test -n "$PKG_CONFIG"; then
4886 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_prog_PKG_CONFIG="$ac_prog"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4899 done
4900 done
4901 IFS=$as_save_IFS
4905 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4906 if test -n "$PKG_CONFIG"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4908 $as_echo "$PKG_CONFIG" >&6; }
4909 else
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4915 test -n "$PKG_CONFIG" && break
4916 done
4917 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4919 for ac_prog in rsvg
4921 # Extract the first word of "$ac_prog", so it can be a program name with args.
4922 set dummy $ac_prog; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if ${ac_cv_prog_RSVG+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 if test -n "$RSVG"; then
4929 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4930 else
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4938 ac_cv_prog_RSVG="$ac_prog"
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 break 2
4942 done
4943 done
4944 IFS=$as_save_IFS
4948 RSVG=$ac_cv_prog_RSVG
4949 if test -n "$RSVG"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4951 $as_echo "$RSVG" >&6; }
4952 else
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4958 test -n "$RSVG" && break
4959 done
4960 test -n "$RSVG" || RSVG="false"
4962 for ac_prog in convert
4964 # Extract the first word of "$ac_prog", so it can be a program name with args.
4965 set dummy $ac_prog; ac_word=$2
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 $as_echo_n "checking for $ac_word... " >&6; }
4968 if ${ac_cv_prog_CONVERT+:} false; then :
4969 $as_echo_n "(cached) " >&6
4970 else
4971 if test -n "$CONVERT"; then
4972 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
4973 else
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4977 IFS=$as_save_IFS
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4981 ac_cv_prog_CONVERT="$ac_prog"
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 break 2
4985 done
4986 done
4987 IFS=$as_save_IFS
4991 CONVERT=$ac_cv_prog_CONVERT
4992 if test -n "$CONVERT"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
4994 $as_echo "$CONVERT" >&6; }
4995 else
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
5001 test -n "$CONVERT" && break
5002 done
5003 test -n "$CONVERT" || CONVERT="false"
5005 for ac_prog in icotool
5007 # Extract the first word of "$ac_prog", so it can be a program name with args.
5008 set dummy $ac_prog; ac_word=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if ${ac_cv_prog_ICOTOOL+:} false; then :
5012 $as_echo_n "(cached) " >&6
5013 else
5014 if test -n "$ICOTOOL"; then
5015 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5016 else
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH
5020 IFS=$as_save_IFS
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024 ac_cv_prog_ICOTOOL="$ac_prog"
5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 break 2
5028 done
5029 done
5030 IFS=$as_save_IFS
5034 ICOTOOL=$ac_cv_prog_ICOTOOL
5035 if test -n "$ICOTOOL"; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5037 $as_echo "$ICOTOOL" >&6; }
5038 else
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5044 test -n "$ICOTOOL" && break
5045 done
5046 test -n "$ICOTOOL" || ICOTOOL="false"
5048 for ac_prog in msgfmt
5050 # Extract the first word of "$ac_prog", so it can be a program name with args.
5051 set dummy $ac_prog; ac_word=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_prog_MSGFMT+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 if test -n "$MSGFMT"; then
5058 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067 ac_cv_prog_MSGFMT="$ac_prog"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5071 done
5072 done
5073 IFS=$as_save_IFS
5077 MSGFMT=$ac_cv_prog_MSGFMT
5078 if test -n "$MSGFMT"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5080 $as_echo "$MSGFMT" >&6; }
5081 else
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5087 test -n "$MSGFMT" && break
5088 done
5089 test -n "$MSGFMT" || MSGFMT="false"
5092 if test "x$enable_maintainer_mode" != "xyes"
5093 then
5094 MAINTAINER_MODE=\#
5096 else
5097 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5098 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5100 if test "$CONVERT" = false
5101 then
5102 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5103 else
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5105 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5106 convert_version=`convert --version | head -n1`
5107 if test "x$convert_version" != "x"
5108 then
5109 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5110 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5111 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5112 then
5113 CONVERT=false
5116 if test "$CONVERT" = false
5117 then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5119 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5120 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5121 else
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5123 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5127 if test "$ICOTOOL" = false
5128 then
5129 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5130 else
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5132 $as_echo_n "checking for recent enough icotool... " >&6; }
5133 icotool_version=`icotool --version | head -n1`
5134 if test "x$icotool_version" != "x"
5135 then
5136 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5137 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5138 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5139 then
5140 ICOTOOL=false
5141 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5144 if test "$ICOTOOL" = false
5145 then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5147 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5148 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5149 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5151 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5155 with_gettext=yes
5156 with_gettextpo=yes
5157 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5160 test "x$with_gettext" != xno || MSGFMT=false
5161 if test "$MSGFMT" = false; then :
5162 case "x$with_gettext" in
5163 x) as_fn_append wine_warnings "|gettext tools not found, translations won't be built." ;;
5164 xno) ;;
5165 *) as_fn_error $? "gettext tools not found, translations won't be built.
5166 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5167 esac
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5172 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5173 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 ac_check_lib_save_LIBS=$LIBS
5177 LIBS="-li386 $LIBS"
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5181 /* Override any GCC internal prototype to avoid an error.
5182 Use char because int might match the return type of a GCC
5183 builtin and then its argument prototype would still apply. */
5184 #ifdef __cplusplus
5185 extern "C"
5186 #endif
5187 char i386_set_ldt ();
5189 main ()
5191 return i386_set_ldt ();
5193 return 0;
5195 _ACEOF
5196 if ac_fn_c_try_link "$LINENO"; then :
5197 ac_cv_lib_i386_i386_set_ldt=yes
5198 else
5199 ac_cv_lib_i386_i386_set_ldt=no
5201 rm -f core conftest.err conftest.$ac_objext \
5202 conftest$ac_exeext conftest.$ac_ext
5203 LIBS=$ac_check_lib_save_LIBS
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5206 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5207 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5208 cat >>confdefs.h <<_ACEOF
5209 #define HAVE_LIBI386 1
5210 _ACEOF
5212 LIBS="-li386 $LIBS"
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5217 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5218 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 ac_check_lib_save_LIBS=$LIBS
5222 LIBS="-lossaudio $LIBS"
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5226 /* Override any GCC internal prototype to avoid an error.
5227 Use char because int might match the return type of a GCC
5228 builtin and then its argument prototype would still apply. */
5229 #ifdef __cplusplus
5230 extern "C"
5231 #endif
5232 char _oss_ioctl ();
5234 main ()
5236 return _oss_ioctl ();
5238 return 0;
5240 _ACEOF
5241 if ac_fn_c_try_link "$LINENO"; then :
5242 ac_cv_lib_ossaudio__oss_ioctl=yes
5243 else
5244 ac_cv_lib_ossaudio__oss_ioctl=no
5246 rm -f core conftest.err conftest.$ac_objext \
5247 conftest$ac_exeext conftest.$ac_ext
5248 LIBS=$ac_check_lib_save_LIBS
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5251 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5252 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5253 cat >>confdefs.h <<_ACEOF
5254 #define HAVE_LIBOSSAUDIO 1
5255 _ACEOF
5257 LIBS="-lossaudio $LIBS"
5262 XLIB=""
5264 OPENGL_LIBS=""
5268 # Check whether --enable-largefile was given.
5269 if test "${enable_largefile+set}" = set; then :
5270 enableval=$enable_largefile;
5273 if test "$enable_largefile" != no; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5276 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5277 if ${ac_cv_sys_largefile_CC+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 ac_cv_sys_largefile_CC=no
5281 if test "$GCC" != yes; then
5282 ac_save_CC=$CC
5283 while :; do
5284 # IRIX 6.2 and later do not support large files by default,
5285 # so use the C compiler's -n32 option if that helps.
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288 #include <sys/types.h>
5289 /* Check that off_t can represent 2**63 - 1 correctly.
5290 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5291 since some C++ compilers masquerading as C compilers
5292 incorrectly reject 9223372036854775807. */
5293 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5294 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5295 && LARGE_OFF_T % 2147483647 == 1)
5296 ? 1 : -1];
5298 main ()
5302 return 0;
5304 _ACEOF
5305 if ac_fn_c_try_compile "$LINENO"; then :
5306 break
5308 rm -f core conftest.err conftest.$ac_objext
5309 CC="$CC -n32"
5310 if ac_fn_c_try_compile "$LINENO"; then :
5311 ac_cv_sys_largefile_CC=' -n32'; break
5313 rm -f core conftest.err conftest.$ac_objext
5314 break
5315 done
5316 CC=$ac_save_CC
5317 rm -f conftest.$ac_ext
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5321 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5322 if test "$ac_cv_sys_largefile_CC" != no; then
5323 CC=$CC$ac_cv_sys_largefile_CC
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5327 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5328 if ${ac_cv_sys_file_offset_bits+:} false; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 while :; do
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 #include <sys/types.h>
5335 /* Check that off_t can represent 2**63 - 1 correctly.
5336 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5337 since some C++ compilers masquerading as C compilers
5338 incorrectly reject 9223372036854775807. */
5339 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5341 && LARGE_OFF_T % 2147483647 == 1)
5342 ? 1 : -1];
5344 main ()
5348 return 0;
5350 _ACEOF
5351 if ac_fn_c_try_compile "$LINENO"; then :
5352 ac_cv_sys_file_offset_bits=no; break
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5357 #define _FILE_OFFSET_BITS 64
5358 #include <sys/types.h>
5359 /* Check that off_t can represent 2**63 - 1 correctly.
5360 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5361 since some C++ compilers masquerading as C compilers
5362 incorrectly reject 9223372036854775807. */
5363 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5364 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5365 && LARGE_OFF_T % 2147483647 == 1)
5366 ? 1 : -1];
5368 main ()
5372 return 0;
5374 _ACEOF
5375 if ac_fn_c_try_compile "$LINENO"; then :
5376 ac_cv_sys_file_offset_bits=64; break
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379 ac_cv_sys_file_offset_bits=unknown
5380 break
5381 done
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5384 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5385 case $ac_cv_sys_file_offset_bits in #(
5386 no | unknown) ;;
5388 cat >>confdefs.h <<_ACEOF
5389 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5390 _ACEOF
5392 esac
5393 rm -rf conftest*
5394 if test $ac_cv_sys_file_offset_bits = unknown; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5396 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5397 if ${ac_cv_sys_large_files+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 while :; do
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 #include <sys/types.h>
5404 /* Check that off_t can represent 2**63 - 1 correctly.
5405 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5406 since some C++ compilers masquerading as C compilers
5407 incorrectly reject 9223372036854775807. */
5408 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5409 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5410 && LARGE_OFF_T % 2147483647 == 1)
5411 ? 1 : -1];
5413 main ()
5417 return 0;
5419 _ACEOF
5420 if ac_fn_c_try_compile "$LINENO"; then :
5421 ac_cv_sys_large_files=no; break
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 #define _LARGE_FILES 1
5427 #include <sys/types.h>
5428 /* Check that off_t can represent 2**63 - 1 correctly.
5429 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5430 since some C++ compilers masquerading as C compilers
5431 incorrectly reject 9223372036854775807. */
5432 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5433 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5434 && LARGE_OFF_T % 2147483647 == 1)
5435 ? 1 : -1];
5437 main ()
5441 return 0;
5443 _ACEOF
5444 if ac_fn_c_try_compile "$LINENO"; then :
5445 ac_cv_sys_large_files=1; break
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448 ac_cv_sys_large_files=unknown
5449 break
5450 done
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5453 $as_echo "$ac_cv_sys_large_files" >&6; }
5454 case $ac_cv_sys_large_files in #(
5455 no | unknown) ;;
5457 cat >>confdefs.h <<_ACEOF
5458 #define _LARGE_FILES $ac_cv_sys_large_files
5459 _ACEOF
5461 esac
5462 rm -rf conftest*
5467 ac_ext=c
5468 ac_cpp='$CPP $CPPFLAGS'
5469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5473 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5474 # On Suns, sometimes $CPP names a directory.
5475 if test -n "$CPP" && test -d "$CPP"; then
5476 CPP=
5478 if test -z "$CPP"; then
5479 if ${ac_cv_prog_CPP+:} false; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 # Double quotes because CPP needs to be expanded
5483 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5485 ac_preproc_ok=false
5486 for ac_c_preproc_warn_flag in '' yes
5488 # Use a header file that comes with gcc, so configuring glibc
5489 # with a fresh cross-compiler works.
5490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5491 # <limits.h> exists even on freestanding compilers.
5492 # On the NeXT, cc -E runs the code through the compiler's parser,
5493 # not just through cpp. "Syntax error" is here to catch this case.
5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495 /* end confdefs.h. */
5496 #ifdef __STDC__
5497 # include <limits.h>
5498 #else
5499 # include <assert.h>
5500 #endif
5501 Syntax error
5502 _ACEOF
5503 if ac_fn_c_try_cpp "$LINENO"; then :
5505 else
5506 # Broken: fails on valid input.
5507 continue
5509 rm -f conftest.err conftest.i conftest.$ac_ext
5511 # OK, works on sane cases. Now check whether nonexistent headers
5512 # can be detected and how.
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515 #include <ac_nonexistent.h>
5516 _ACEOF
5517 if ac_fn_c_try_cpp "$LINENO"; then :
5518 # Broken: success on invalid input.
5519 continue
5520 else
5521 # Passes both tests.
5522 ac_preproc_ok=:
5523 break
5525 rm -f conftest.err conftest.i conftest.$ac_ext
5527 done
5528 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5529 rm -f conftest.i conftest.err conftest.$ac_ext
5530 if $ac_preproc_ok; then :
5531 break
5534 done
5535 ac_cv_prog_CPP=$CPP
5538 CPP=$ac_cv_prog_CPP
5539 else
5540 ac_cv_prog_CPP=$CPP
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5543 $as_echo "$CPP" >&6; }
5544 ac_preproc_ok=false
5545 for ac_c_preproc_warn_flag in '' yes
5547 # Use a header file that comes with gcc, so configuring glibc
5548 # with a fresh cross-compiler works.
5549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5550 # <limits.h> exists even on freestanding compilers.
5551 # On the NeXT, cc -E runs the code through the compiler's parser,
5552 # not just through cpp. "Syntax error" is here to catch this case.
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5555 #ifdef __STDC__
5556 # include <limits.h>
5557 #else
5558 # include <assert.h>
5559 #endif
5560 Syntax error
5561 _ACEOF
5562 if ac_fn_c_try_cpp "$LINENO"; then :
5564 else
5565 # Broken: fails on valid input.
5566 continue
5568 rm -f conftest.err conftest.i conftest.$ac_ext
5570 # OK, works on sane cases. Now check whether nonexistent headers
5571 # can be detected and how.
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #include <ac_nonexistent.h>
5575 _ACEOF
5576 if ac_fn_c_try_cpp "$LINENO"; then :
5577 # Broken: success on invalid input.
5578 continue
5579 else
5580 # Passes both tests.
5581 ac_preproc_ok=:
5582 break
5584 rm -f conftest.err conftest.i conftest.$ac_ext
5586 done
5587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5588 rm -f conftest.i conftest.err conftest.$ac_ext
5589 if $ac_preproc_ok; then :
5591 else
5592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5594 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5595 See \`config.log' for more details" "$LINENO" 5; }
5598 ac_ext=c
5599 ac_cpp='$CPP $CPPFLAGS'
5600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5606 $as_echo_n "checking for ANSI C header files... " >&6; }
5607 if ${ac_cv_header_stdc+:} false; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #include <stdlib.h>
5613 #include <stdarg.h>
5614 #include <string.h>
5615 #include <float.h>
5618 main ()
5622 return 0;
5624 _ACEOF
5625 if ac_fn_c_try_compile "$LINENO"; then :
5626 ac_cv_header_stdc=yes
5627 else
5628 ac_cv_header_stdc=no
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 if test $ac_cv_header_stdc = yes; then
5633 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5636 #include <string.h>
5638 _ACEOF
5639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5640 $EGREP "memchr" >/dev/null 2>&1; then :
5642 else
5643 ac_cv_header_stdc=no
5645 rm -f conftest*
5649 if test $ac_cv_header_stdc = yes; then
5650 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 #include <stdlib.h>
5655 _ACEOF
5656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5657 $EGREP "free" >/dev/null 2>&1; then :
5659 else
5660 ac_cv_header_stdc=no
5662 rm -f conftest*
5666 if test $ac_cv_header_stdc = yes; then
5667 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5668 if test "$cross_compiling" = yes; then :
5670 else
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 #include <ctype.h>
5674 #include <stdlib.h>
5675 #if ((' ' & 0x0FF) == 0x020)
5676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5678 #else
5679 # define ISLOWER(c) \
5680 (('a' <= (c) && (c) <= 'i') \
5681 || ('j' <= (c) && (c) <= 'r') \
5682 || ('s' <= (c) && (c) <= 'z'))
5683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5684 #endif
5686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5688 main ()
5690 int i;
5691 for (i = 0; i < 256; i++)
5692 if (XOR (islower (i), ISLOWER (i))
5693 || toupper (i) != TOUPPER (i))
5694 return 2;
5695 return 0;
5697 _ACEOF
5698 if ac_fn_c_try_run "$LINENO"; then :
5700 else
5701 ac_cv_header_stdc=no
5703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5704 conftest.$ac_objext conftest.beam conftest.$ac_ext
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5710 $as_echo "$ac_cv_header_stdc" >&6; }
5711 if test $ac_cv_header_stdc = yes; then
5713 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5717 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5718 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5719 inttypes.h stdint.h unistd.h
5720 do :
5721 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5722 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5724 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5725 cat >>confdefs.h <<_ACEOF
5726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5727 _ACEOF
5731 done
5734 for ac_header in \
5735 AL/al.h \
5736 ApplicationServices/ApplicationServices.h \
5737 AudioToolbox/AudioConverter.h \
5738 AudioUnit/AudioUnit.h \
5739 AudioUnit/AudioComponent.h \
5740 CL/cl.h \
5741 Carbon/Carbon.h \
5742 CoreAudio/CoreAudio.h \
5743 DiskArbitration/DiskArbitration.h \
5744 IOKit/IOKitLib.h \
5745 IOKit/hid/IOHIDLib.h \
5746 OpenAL/al.h \
5747 OpenCL/opencl.h \
5748 QuickTime/ImageCompression.h \
5749 Security/Security.h \
5750 alias.h \
5751 alsa/asoundlib.h \
5752 arpa/inet.h \
5753 arpa/nameser.h \
5754 asm/types.h \
5755 capi20.h \
5756 curses.h \
5757 direct.h \
5758 dirent.h \
5759 dlfcn.h \
5760 elf.h \
5761 float.h \
5762 fnmatch.h \
5763 fontconfig/fontconfig.h \
5764 getopt.h \
5765 gettext-po.h \
5766 grp.h \
5767 gsm.h \
5768 gsm/gsm.h \
5769 ieeefp.h \
5770 inet/mib2.h \
5771 io.h \
5772 jpeglib.h \
5773 kstat.h \
5774 lber.h \
5775 lcms.h \
5776 lcms/lcms.h \
5777 ldap.h \
5778 link.h \
5779 linux/cdrom.h \
5780 linux/compiler.h \
5781 linux/hdreg.h \
5782 linux/input.h \
5783 linux/ioctl.h \
5784 linux/joystick.h \
5785 linux/major.h \
5786 linux/param.h \
5787 linux/serial.h \
5788 linux/types.h \
5789 linux/ucdrom.h \
5790 mach-o/nlist.h \
5791 mach-o/loader.h \
5792 mach/mach.h \
5793 mach/machine.h \
5794 machine/cpu.h \
5795 machine/limits.h \
5796 machine/sysarch.h \
5797 mntent.h \
5798 mpg123.h \
5799 ncurses.h \
5800 netdb.h \
5801 netinet/in.h \
5802 netinet/in_systm.h \
5803 netinet/tcp.h \
5804 netinet/tcp_fsm.h \
5805 openssl/err.h \
5806 openssl/ssl.h \
5807 png.h \
5808 poll.h \
5809 port.h \
5810 process.h \
5811 pthread.h \
5812 pwd.h \
5813 regex.h \
5814 sched.h \
5815 scsi/scsi.h \
5816 scsi/scsi_ioctl.h \
5817 scsi/sg.h \
5818 stdbool.h \
5819 stdint.h \
5820 strings.h \
5821 stropts.h \
5822 sys/asoundlib.h \
5823 sys/attr.h \
5824 sys/cdio.h \
5825 sys/elf32.h \
5826 sys/epoll.h \
5827 sys/event.h \
5828 sys/exec_elf.h \
5829 sys/filio.h \
5830 sys/inotify.h \
5831 sys/ioctl.h \
5832 sys/ipc.h \
5833 sys/limits.h \
5834 sys/link.h \
5835 sys/mman.h \
5836 sys/modem.h \
5837 sys/msg.h \
5838 sys/mtio.h \
5839 sys/param.h \
5840 sys/poll.h \
5841 sys/prctl.h \
5842 sys/protosw.h \
5843 sys/ptrace.h \
5844 sys/resource.h \
5845 sys/scsiio.h \
5846 sys/shm.h \
5847 sys/signal.h \
5848 sys/socket.h \
5849 sys/socketvar.h \
5850 sys/sockio.h \
5851 sys/statvfs.h \
5852 sys/strtio.h \
5853 sys/syscall.h \
5854 sys/tihdr.h \
5855 sys/time.h \
5856 sys/timeout.h \
5857 sys/times.h \
5858 sys/uio.h \
5859 sys/un.h \
5860 sys/utsname.h \
5861 sys/vm86.h \
5862 sys/wait.h \
5863 syscall.h \
5864 termios.h \
5865 tiffio.h \
5866 unistd.h \
5867 utime.h \
5868 valgrind/memcheck.h \
5869 valgrind/valgrind.h \
5870 zlib.h
5872 do :
5873 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5874 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5875 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5876 cat >>confdefs.h <<_ACEOF
5877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5878 _ACEOF
5882 done
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5885 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5886 if ${ac_cv_header_stat_broken+:} false; then :
5887 $as_echo_n "(cached) " >&6
5888 else
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5891 #include <sys/types.h>
5892 #include <sys/stat.h>
5894 #if defined S_ISBLK && defined S_IFDIR
5895 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5896 #endif
5898 #if defined S_ISBLK && defined S_IFCHR
5899 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5900 #endif
5902 #if defined S_ISLNK && defined S_IFREG
5903 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5904 #endif
5906 #if defined S_ISSOCK && defined S_IFREG
5907 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5908 #endif
5910 _ACEOF
5911 if ac_fn_c_try_compile "$LINENO"; then :
5912 ac_cv_header_stat_broken=no
5913 else
5914 ac_cv_header_stat_broken=yes
5916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5919 $as_echo "$ac_cv_header_stat_broken" >&6; }
5920 if test $ac_cv_header_stat_broken = yes; then
5922 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5928 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5929 do :
5930 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5931 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5932 #ifdef HAVE_SYS_PARAM_H
5933 # include <sys/param.h>
5934 #endif
5936 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5937 cat >>confdefs.h <<_ACEOF
5938 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5939 _ACEOF
5943 done
5946 for ac_header in \
5947 netinet/ip.h \
5948 net/if.h \
5949 net/if_arp.h \
5950 net/if_dl.h \
5951 net/if_types.h \
5952 net/route.h \
5953 netinet/if_ether.h \
5954 netinet/if_inarp.h \
5955 netinet/in_pcb.h \
5956 netinet/ip_icmp.h \
5957 netinet/ip_var.h \
5958 netinet/udp.h \
5959 netipx/ipx.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_SOCKET_H
5965 # include <sys/socket.h>
5966 #endif
5967 #ifdef HAVE_SYS_SOCKETVAR_H
5968 # include <sys/socketvar.h>
5969 #endif
5970 #ifdef HAVE_NET_ROUTE_H
5971 # include <net/route.h>
5972 #endif
5973 #ifdef HAVE_NETINET_IN_H
5974 # include <netinet/in.h>
5975 #endif
5976 #ifdef HAVE_NETINET_IN_SYSTM_H
5977 # include <netinet/in_systm.h>
5978 #endif
5979 #ifdef HAVE_NET_IF_H
5980 # include <net/if.h>
5981 #endif
5982 #ifdef HAVE_NETINET_IP_H
5983 # include <netinet/ip.h>
5984 #endif
5986 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5987 cat >>confdefs.h <<_ACEOF
5988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5989 _ACEOF
5993 done
5996 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
5997 do :
5998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5999 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6000 #ifdef HAVE_ALIAS_H
6001 # include <alias.h>
6002 #endif
6003 #ifdef HAVE_SYS_SOCKET_H
6004 # include <sys/socket.h>
6005 #endif
6006 #ifdef HAVE_SYS_SOCKETVAR_H
6007 # include <sys/socketvar.h>
6008 #endif
6009 #ifdef HAVE_SYS_TIMEOUT_H
6010 # include <sys/timeout.h>
6011 #endif
6012 #ifdef HAVE_NETINET_IN_H
6013 # include <netinet/in.h>
6014 #endif
6015 #ifdef HAVE_NETINET_IN_SYSTM_H
6016 # include <netinet/in_systm.h>
6017 #endif
6018 #ifdef HAVE_NETINET_IP_H
6019 # include <netinet/ip.h>
6020 #endif
6021 #ifdef HAVE_NETINET_IP_VAR_H
6022 # include <netinet/ip_var.h>
6023 #endif
6024 #ifdef HAVE_NETINET_IP_ICMP_H
6025 # include <netinet/ip_icmp.h>
6026 #endif
6027 #ifdef HAVE_NETINET_UDP_H
6028 # include <netinet/udp.h>
6029 #endif
6030 #ifdef HAVE_NETINET_TCP_H
6031 # include <netinet/tcp.h>
6032 #endif
6033 #ifdef HAVE_NETINET_TCP_TIMER_H
6034 #include <netinet/tcp_timer.h>
6035 #endif
6037 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6038 cat >>confdefs.h <<_ACEOF
6039 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6040 _ACEOF
6044 done
6047 for ac_header in linux/ipx.h linux/irda.h
6048 do :
6049 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6050 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6051 #ifdef HAVE_ASM_TYPES_H
6052 # include <asm/types.h>
6053 #endif
6054 #ifdef HAVE_SYS_SOCKET_H
6055 # include <sys/socket.h>
6056 #endif
6057 #ifdef HAVE_LINUX_TYPES_H
6058 # include <linux/types.h>
6059 #endif
6061 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6062 cat >>confdefs.h <<_ACEOF
6063 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6064 _ACEOF
6068 done
6071 for ac_header in mach-o/dyld_images.h
6072 do :
6073 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6074 # include <stdbool.h>
6075 #endif
6076 #ifdef HAVE_STDINT_H
6077 # include <stdint.h>
6078 #endif
6080 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6081 cat >>confdefs.h <<_ACEOF
6082 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6083 _ACEOF
6087 done
6090 for ac_header in resolv.h
6091 do :
6092 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6093 #ifdef HAVE_SYS_SOCKET_H
6094 # include <sys/socket.h>
6095 #endif
6096 #ifdef HAVE_NETINET_IN_H
6097 # include <netinet/in.h>
6098 #endif
6099 #ifdef HAVE_ARPA_NAMESER_H
6100 # include <arpa/nameser.h>
6101 #endif
6103 if test "x$ac_cv_header_resolv_h" = xyes; then :
6104 cat >>confdefs.h <<_ACEOF
6105 #define HAVE_RESOLV_H 1
6106 _ACEOF
6110 done
6113 for ac_header in ifaddrs.h
6114 do :
6115 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6117 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6118 cat >>confdefs.h <<_ACEOF
6119 #define HAVE_IFADDRS_H 1
6120 _ACEOF
6124 done
6127 for ac_header in ucontext.h
6128 do :
6129 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6131 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6132 cat >>confdefs.h <<_ACEOF
6133 #define HAVE_UCONTEXT_H 1
6134 _ACEOF
6138 done
6141 for ac_header in sys/thr.h
6142 do :
6143 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6144 #ifdef HAVE_UCONTEXT_H
6145 #include <ucontext.h>
6146 #endif
6148 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6149 cat >>confdefs.h <<_ACEOF
6150 #define HAVE_SYS_THR_H 1
6151 _ACEOF
6155 done
6158 for ac_header in pthread_np.h
6159 do :
6160 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6161 #include <pthread.h>
6162 #endif
6164 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6165 cat >>confdefs.h <<_ACEOF
6166 #define HAVE_PTHREAD_NP_H 1
6167 _ACEOF
6171 done
6174 for ac_header in linux/videodev.h linux/videodev2.h
6175 do :
6176 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6177 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6178 #include <sys/time.h>
6179 #endif
6180 #include <sys/types.h>
6181 #ifdef HAVE_ASM_TYPES_H
6182 #include <asm/types.h>
6183 #endif
6185 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6186 cat >>confdefs.h <<_ACEOF
6187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6188 _ACEOF
6192 done
6195 for ac_header in linux/capi.h
6196 do :
6197 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6199 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6200 cat >>confdefs.h <<_ACEOF
6201 #define HAVE_LINUX_CAPI_H 1
6202 _ACEOF
6206 done
6210 DLLEXT=""
6212 DLLFLAGS="-D_REENTRANT"
6214 LDSHARED=""
6216 LDDLLFLAGS=""
6218 LIBEXT="so"
6220 IMPLIBEXT="def"
6222 LDRPATH_INSTALL=""
6224 LDRPATH_LOCAL=""
6226 STATIC_IMPLIBEXT="def.a"
6227 # Extract the first word of "ldd", so it can be a program name with args.
6228 set dummy ldd; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if ${ac_cv_path_LDD+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 case $LDD in
6235 [\\/]* | ?:[\\/]*)
6236 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 as_dummy="/sbin:/usr/sbin:$PATH"
6241 for as_dir in $as_dummy
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 break 2
6251 done
6252 done
6253 IFS=$as_save_IFS
6255 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6257 esac
6259 LDD=$ac_cv_path_LDD
6260 if test -n "$LDD"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6262 $as_echo "$LDD" >&6; }
6263 else
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265 $as_echo "no" >&6; }
6270 case $host_os in
6271 cygwin*|mingw32*)
6272 if test -n "$ac_tool_prefix"; then
6273 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6274 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276 $as_echo_n "checking for $ac_word... " >&6; }
6277 if ${ac_cv_prog_DLLTOOL+:} false; then :
6278 $as_echo_n "(cached) " >&6
6279 else
6280 if test -n "$DLLTOOL"; then
6281 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6282 else
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6286 IFS=$as_save_IFS
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 break 2
6294 done
6295 done
6296 IFS=$as_save_IFS
6300 DLLTOOL=$ac_cv_prog_DLLTOOL
6301 if test -n "$DLLTOOL"; then
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6303 $as_echo "$DLLTOOL" >&6; }
6304 else
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306 $as_echo "no" >&6; }
6311 if test -z "$ac_cv_prog_DLLTOOL"; then
6312 ac_ct_DLLTOOL=$DLLTOOL
6313 # Extract the first word of "dlltool", so it can be a program name with args.
6314 set dummy dlltool; ac_word=$2
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6318 $as_echo_n "(cached) " >&6
6319 else
6320 if test -n "$ac_ct_DLLTOOL"; then
6321 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6322 else
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6326 IFS=$as_save_IFS
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 break 2
6334 done
6335 done
6336 IFS=$as_save_IFS
6340 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6341 if test -n "$ac_ct_DLLTOOL"; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6343 $as_echo "$ac_ct_DLLTOOL" >&6; }
6344 else
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 $as_echo "no" >&6; }
6349 if test "x$ac_ct_DLLTOOL" = x; then
6350 DLLTOOL="false"
6351 else
6352 case $cross_compiling:$ac_tool_warned in
6353 yes:)
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6356 ac_tool_warned=yes ;;
6357 esac
6358 DLLTOOL=$ac_ct_DLLTOOL
6360 else
6361 DLLTOOL="$ac_cv_prog_DLLTOOL"
6364 if test -n "$ac_tool_prefix"; then
6365 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6366 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368 $as_echo_n "checking for $ac_word... " >&6; }
6369 if ${ac_cv_prog_DLLWRAP+:} false; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 if test -n "$DLLWRAP"; then
6373 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6374 else
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6382 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 break 2
6386 done
6387 done
6388 IFS=$as_save_IFS
6392 DLLWRAP=$ac_cv_prog_DLLWRAP
6393 if test -n "$DLLWRAP"; then
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6395 $as_echo "$DLLWRAP" >&6; }
6396 else
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 $as_echo "no" >&6; }
6403 if test -z "$ac_cv_prog_DLLWRAP"; then
6404 ac_ct_DLLWRAP=$DLLWRAP
6405 # Extract the first word of "dllwrap", so it can be a program name with args.
6406 set dummy dllwrap; ac_word=$2
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408 $as_echo_n "checking for $ac_word... " >&6; }
6409 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6410 $as_echo_n "(cached) " >&6
6411 else
6412 if test -n "$ac_ct_DLLWRAP"; then
6413 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6414 else
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6418 IFS=$as_save_IFS
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6422 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 break 2
6426 done
6427 done
6428 IFS=$as_save_IFS
6432 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6433 if test -n "$ac_ct_DLLWRAP"; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6435 $as_echo "$ac_ct_DLLWRAP" >&6; }
6436 else
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }
6441 if test "x$ac_ct_DLLWRAP" = x; then
6442 DLLWRAP="false"
6443 else
6444 case $cross_compiling:$ac_tool_warned in
6445 yes:)
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6448 ac_tool_warned=yes ;;
6449 esac
6450 DLLWRAP=$ac_ct_DLLWRAP
6452 else
6453 DLLWRAP="$ac_cv_prog_DLLWRAP"
6456 if test "$DLLWRAP" = "false"; then
6457 LIBEXT="a"
6458 else
6459 LIBEXT="dll"
6461 IMPLIBEXT="a"
6462 STATIC_IMPLIBEXT="a"
6463 enable_iphlpapi=${enable_iphlpapi:-no}
6464 enable_kernel32=${enable_kernel32:-no}
6465 enable_msvcrt=${enable_msvcrt:-no}
6466 enable_ntdll=${enable_ntdll:-no}
6467 enable_ws2_32=${enable_ws2_32:-no}
6468 enable_loader=${enable_loader:-no}
6469 enable_server=${enable_server:-no}
6470 with_x=${with_x:-no}
6471 with_pthread=${with_pthread:-no}
6473 darwin*|macosx*)
6474 DLLEXT=".so"
6475 LIBEXT="dylib"
6476 DLLFLAGS="$DLLFLAGS -fPIC"
6477 LDDLLFLAGS="-bundle -multiply_defined suppress"
6478 LIBWINE_LDFLAGS="-multiply_defined suppress"
6479 LDSHARED="\$(CC) -dynamiclib"
6480 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6481 COREFOUNDATIONLIB="-framework CoreFoundation"
6483 IOKITLIB="-framework IOKit -framework CoreFoundation"
6485 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6487 case $host_os in
6488 darwin11*)
6489 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6492 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6494 esac
6495 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6496 then
6497 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6500 if test "$ac_cv_header_Security_Security_h" = "yes"
6501 then
6502 SECURITYLIB="-framework Security -framework CoreFoundation"
6504 ac_save_LIBS="$LIBS"
6505 LIBS="$LIBS $SECURITYLIB"
6506 for ac_func in SSLCopyPeerCertificates
6507 do :
6508 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6509 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6510 cat >>confdefs.h <<_ACEOF
6511 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6512 _ACEOF
6515 done
6517 LIBS="$ac_save_LIBS"
6518 with_gnutls=${with_gnutls:-no}
6520 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6521 then
6522 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6523 then
6524 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6526 else
6527 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6530 ac_save_LIBS="$LIBS"
6531 LIBS="$LIBS $COREAUDIO"
6532 for ac_func in AUGraphAddNode
6533 do :
6534 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6535 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6536 cat >>confdefs.h <<_ACEOF
6537 #define HAVE_AUGRAPHADDNODE 1
6538 _ACEOF
6541 done
6543 LIBS="$ac_save_LIBS"
6545 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6546 then
6547 FRAMEWORK_OPENAL="-framework OpenAL"
6550 cat >>confdefs.h <<_ACEOF
6551 #define HAVE_OPENAL 1
6552 _ACEOF
6554 ac_cv_lib_openal=yes
6556 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6557 then
6558 LIBOPENCL="-framework OpenCL"
6560 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6562 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6563 then
6564 ac_save_LIBS="$LIBS"
6565 LIBS="$LIBS $IOKITLIB"
6566 for ac_func in IOHIDManagerCreate
6567 do :
6568 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6569 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6570 cat >>confdefs.h <<_ACEOF
6571 #define HAVE_IOHIDMANAGERCREATE 1
6572 _ACEOF
6575 done
6577 LIBS="$ac_save_LIBS"
6579 case $host_cpu in
6580 *powerpc*)
6581 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6582 esac
6583 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6584 then
6585 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6587 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6588 else
6589 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6591 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6592 then
6593 CARBONLIB="-framework Carbon"
6595 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6597 if test "x$enable_win16" = "xyes"
6598 then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6600 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6601 if test "$cross_compiling" = yes; then :
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6603 $as_echo "cross-compiling, assuming yes" >&6; }
6604 else
6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h. */
6607 asm(".text\n"
6608 "bad:\tnop;nop\n"
6609 "good:\tnop;nop\n\t"
6610 ".globl _testfunc\n"
6611 "_testfunc:\tcallw good");
6612 extern void testfunc();
6614 main ()
6616 unsigned short *p = (unsigned short *)testfunc;
6617 return p[0] != 0xe866 || p[1] != 0xfffa
6619 return 0;
6621 _ACEOF
6622 if ac_fn_c_try_run "$LINENO"; then :
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6624 $as_echo "yes" >&6; }
6625 else
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 $as_echo "no" >&6; }
6628 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
6630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6631 conftest.$ac_objext conftest.beam conftest.$ac_ext
6637 DLLFLAGS="$DLLFLAGS -fPIC"
6638 DLLEXT=".so"
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6640 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6641 if ${ac_cv_c_dll_gnuelf+:} false; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 ac_wine_try_cflags_saved=$CFLAGS
6645 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647 /* end confdefs.h. */
6648 void myfunc() {}
6649 _ACEOF
6650 if ac_fn_c_try_link "$LINENO"; then :
6651 ac_cv_c_dll_gnuelf="yes"
6652 else
6653 ac_cv_c_dll_gnuelf="no"
6655 rm -f core conftest.err conftest.$ac_objext \
6656 conftest$ac_exeext conftest.$ac_ext
6657 CFLAGS=$ac_wine_try_cflags_saved
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6660 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6661 if test "$ac_cv_c_dll_gnuelf" = "yes"
6662 then
6663 LDSHARED="\$(CC) -shared"
6664 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6666 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6667 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 ac_wine_try_cflags_saved=$CFLAGS
6671 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6674 int main(int argc, char **argv) { return 0; }
6675 _ACEOF
6676 if ac_fn_c_try_link "$LINENO"; then :
6677 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6678 else
6679 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6681 rm -f core conftest.err conftest.$ac_objext \
6682 conftest$ac_exeext conftest.$ac_ext
6683 CFLAGS=$ac_wine_try_cflags_saved
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6686 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6687 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6688 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6689 else
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6691 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6692 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 ac_wine_try_cflags_saved=$CFLAGS
6696 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6699 int main(int argc, char **argv) { return 0; }
6700 _ACEOF
6701 if ac_fn_c_try_link "$LINENO"; then :
6702 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6703 else
6704 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6706 rm -f core conftest.err conftest.$ac_objext \
6707 conftest$ac_exeext conftest.$ac_ext
6708 CFLAGS=$ac_wine_try_cflags_saved
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6711 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6712 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6713 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6718 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6719 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 ac_wine_try_cflags_saved=$CFLAGS
6723 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6726 int main(int argc, char **argv) { return 0; }
6727 _ACEOF
6728 if ac_fn_c_try_link "$LINENO"; then :
6729 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6730 else
6731 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6733 rm -f core conftest.err conftest.$ac_objext \
6734 conftest$ac_exeext conftest.$ac_ext
6735 CFLAGS=$ac_wine_try_cflags_saved
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6738 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6739 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6740 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6743 { $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
6744 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6745 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6746 $as_echo_n "(cached) " >&6
6747 else
6748 ac_wine_try_cflags_saved=$CFLAGS
6749 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h. */
6752 int main(int argc, char **argv) { return 0; }
6753 _ACEOF
6754 if ac_fn_c_try_link "$LINENO"; then :
6755 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6756 else
6757 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6759 rm -f core conftest.err conftest.$ac_objext \
6760 conftest$ac_exeext conftest.$ac_ext
6761 CFLAGS=$ac_wine_try_cflags_saved
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6764 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6765 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6766 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6769 echo '{ global: *; };' >conftest.map
6770 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6772 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6773 if eval \${$as_ac_var+:} false; then :
6774 $as_echo_n "(cached) " >&6
6775 else
6776 ac_wine_try_cflags_saved=$CFLAGS
6777 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6780 int main(int argc, char **argv) { return 0; }
6781 _ACEOF
6782 if ac_fn_c_try_link "$LINENO"; then :
6783 eval "$as_ac_var=yes"
6784 else
6785 eval "$as_ac_var=no"
6787 rm -f core conftest.err conftest.$ac_objext \
6788 conftest$ac_exeext conftest.$ac_ext
6789 CFLAGS=$ac_wine_try_cflags_saved
6791 eval ac_res=\$$as_ac_var
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6793 $as_echo "$ac_res" >&6; }
6794 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6795 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6797 rm -f conftest.map
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6800 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6801 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 ac_wine_try_cflags_saved=$CFLAGS
6805 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6808 int main(int argc, char **argv) { return 0; }
6809 _ACEOF
6810 if ac_fn_c_try_link "$LINENO"; then :
6811 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6812 else
6813 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6815 rm -f core conftest.err conftest.$ac_objext \
6816 conftest$ac_exeext conftest.$ac_ext
6817 CFLAGS=$ac_wine_try_cflags_saved
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6820 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6821 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6822 LDEXECFLAGS="-Wl,--export-dynamic"
6826 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6828 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6829 if eval \${$as_ac_var+:} false; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832 ac_wine_try_cflags_saved=$CFLAGS
6833 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6836 int main(int argc, char **argv) { return 0; }
6837 _ACEOF
6838 if ac_fn_c_try_link "$LINENO"; then :
6839 eval "$as_ac_var=yes"
6840 else
6841 eval "$as_ac_var=no"
6843 rm -f core conftest.err conftest.$ac_objext \
6844 conftest$ac_exeext conftest.$ac_ext
6845 CFLAGS=$ac_wine_try_cflags_saved
6847 eval ac_res=\$$as_ac_var
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6849 $as_echo "$ac_res" >&6; }
6850 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6851 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6852 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6853 else
6854 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6856 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6857 if eval \${$as_ac_var+:} false; then :
6858 $as_echo_n "(cached) " >&6
6859 else
6860 ac_wine_try_cflags_saved=$CFLAGS
6861 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6864 int main(int argc, char **argv) { return 0; }
6865 _ACEOF
6866 if ac_fn_c_try_link "$LINENO"; then :
6867 eval "$as_ac_var=yes"
6868 else
6869 eval "$as_ac_var=no"
6871 rm -f core conftest.err conftest.$ac_objext \
6872 conftest$ac_exeext conftest.$ac_ext
6873 CFLAGS=$ac_wine_try_cflags_saved
6875 eval ac_res=\$$as_ac_var
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6877 $as_echo "$ac_res" >&6; }
6878 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6879 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6880 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6885 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6886 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6887 $as_echo_n "(cached) " >&6
6888 else
6889 ac_wine_try_cflags_saved=$CFLAGS
6890 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892 /* end confdefs.h. */
6893 int main(int argc, char **argv) { return 0; }
6894 _ACEOF
6895 if ac_fn_c_try_link "$LINENO"; then :
6896 ac_cv_cflags__Wl___enable_new_dtags=yes
6897 else
6898 ac_cv_cflags__Wl___enable_new_dtags=no
6900 rm -f core conftest.err conftest.$ac_objext \
6901 conftest$ac_exeext conftest.$ac_ext
6902 CFLAGS=$ac_wine_try_cflags_saved
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6905 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6906 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6907 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6910 case $host_cpu in
6911 *i[3456789]86* | x86_64)
6912 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6914 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6915 if eval \${$as_ac_var+:} false; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 ac_wine_try_cflags_saved=$CFLAGS
6919 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921 /* end confdefs.h. */
6922 int main(int argc, char **argv) { return 0; }
6923 _ACEOF
6924 if ac_fn_c_try_link "$LINENO"; then :
6925 eval "$as_ac_var=yes"
6926 else
6927 eval "$as_ac_var=no"
6929 rm -f core conftest.err conftest.$ac_objext \
6930 conftest$ac_exeext conftest.$ac_ext
6931 CFLAGS=$ac_wine_try_cflags_saved
6933 eval ac_res=\$$as_ac_var
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6935 $as_echo "$ac_res" >&6; }
6936 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6937 case $host_os in
6938 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6939 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6940 esac
6943 # Extract the first word of "prelink", so it can be a program name with args.
6944 set dummy prelink; ac_word=$2
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6946 $as_echo_n "checking for $ac_word... " >&6; }
6947 if ${ac_cv_path_PRELINK+:} false; then :
6948 $as_echo_n "(cached) " >&6
6949 else
6950 case $PRELINK in
6951 [\\/]* | ?:[\\/]*)
6952 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in /sbin /usr/sbin $PATH
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6962 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 break 2
6966 done
6967 done
6968 IFS=$as_save_IFS
6970 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6972 esac
6974 PRELINK=$ac_cv_path_PRELINK
6975 if test -n "$PRELINK"; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6977 $as_echo "$PRELINK" >&6; }
6978 else
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6984 if test "x$PRELINK" = xfalse
6985 then
6986 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6989 esac
6991 else
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6993 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6994 if ${ac_cv_c_dll_unixware+:} false; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 ac_wine_try_cflags_saved=$CFLAGS
6998 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7001 void myfunc() {}
7002 _ACEOF
7003 if ac_fn_c_try_link "$LINENO"; then :
7004 ac_cv_c_dll_unixware="yes"
7005 else
7006 ac_cv_c_dll_unixware="no"
7008 rm -f core conftest.err conftest.$ac_objext \
7009 conftest$ac_exeext conftest.$ac_ext
7010 CFLAGS=$ac_wine_try_cflags_saved
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7013 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7014 if test "$ac_cv_c_dll_unixware" = "yes"
7015 then
7016 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7017 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7019 else
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7021 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7022 if ${ac_cv_c_dll_hpux+:} false; then :
7023 $as_echo_n "(cached) " >&6
7024 else
7025 ac_wine_try_cflags_saved=$CFLAGS
7026 CFLAGS="$CFLAGS -shared"
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7029 void myfunc() {}
7030 _ACEOF
7031 if ac_fn_c_try_link "$LINENO"; then :
7032 ac_cv_c_dll_hpux="yes"
7033 else
7034 ac_cv_c_dll_hpux="no"
7036 rm -f core conftest.err conftest.$ac_objext \
7037 conftest$ac_exeext conftest.$ac_ext
7038 CFLAGS=$ac_wine_try_cflags_saved
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7041 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7042 if test "$ac_cv_c_dll_hpux" = "yes"
7043 then
7044 LIBEXT="sl"
7045 DLLEXT=".sl"
7046 LDDLLFLAGS="-shared -fPIC"
7047 LDSHARED="\$(CC) -shared"
7052 esac
7054 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7055 enable_winequartz_drv=${enable_winequartz_drv:-no}
7057 if test "$LIBEXT" = "a"; then
7058 as_fn_error $? "could not find a way to build shared libraries.
7059 It is currently not possible to build Wine without shared library
7060 (.so) support to allow transparent switch between .so and .dll files.
7061 If you are using Linux, you will need a newer binutils.
7062 " "$LINENO" 5
7065 CROSSTEST_DISABLE=\#
7067 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7068 then
7069 case "$host_cpu" in
7070 i[3456789]86*)
7071 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 " ;;
7072 x86_64)
7073 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 " ;;
7075 ac_prefix_list="" ;;
7076 esac
7077 for ac_prog in $ac_prefix_list
7079 # Extract the first word of "$ac_prog", so it can be a program name with args.
7080 set dummy $ac_prog; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if ${ac_cv_prog_CROSSCC+:} false; then :
7084 $as_echo_n "(cached) " >&6
7085 else
7086 if test -n "$CROSSCC"; then
7087 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_prog_CROSSCC="$ac_prog"
7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7100 done
7101 done
7102 IFS=$as_save_IFS
7106 CROSSCC=$ac_cv_prog_CROSSCC
7107 if test -n "$CROSSCC"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7109 $as_echo "$CROSSCC" >&6; }
7110 else
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7116 test -n "$CROSSCC" && break
7117 done
7118 test -n "$CROSSCC" || CROSSCC="false"
7120 if test "$CROSSCC" != "false"
7121 then
7122 ac_save_CC="$CC"
7123 CC="$CROSSCC"
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7125 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7130 main ()
7134 return 0;
7136 _ACEOF
7137 if ac_fn_c_try_compile "$LINENO"; then :
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7139 $as_echo "yes" >&6; }
7140 set x $CROSSCC
7141 shift
7142 target=""
7143 while test $# -ge 1
7145 case "$1" in
7146 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7147 esac
7148 shift
7149 done
7150 if test -n "$target"
7151 then
7152 CROSSTEST_DISABLE=""
7153 CROSSTARGET="$target"
7156 else
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161 CC="$ac_save_CC"
7166 if test "$ac_cv_header_pthread_h" = "yes"
7167 then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7169 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7170 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 ac_check_lib_save_LIBS=$LIBS
7174 LIBS="-lpthread $LIBS"
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7178 /* Override any GCC internal prototype to avoid an error.
7179 Use char because int might match the return type of a GCC
7180 builtin and then its argument prototype would still apply. */
7181 #ifdef __cplusplus
7182 extern "C"
7183 #endif
7184 char pthread_create ();
7186 main ()
7188 return pthread_create ();
7190 return 0;
7192 _ACEOF
7193 if ac_fn_c_try_link "$LINENO"; then :
7194 ac_cv_lib_pthread_pthread_create=yes
7195 else
7196 ac_cv_lib_pthread_pthread_create=no
7198 rm -f core conftest.err conftest.$ac_objext \
7199 conftest$ac_exeext conftest.$ac_ext
7200 LIBS=$ac_check_lib_save_LIBS
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7203 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7204 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7205 LIBPTHREAD="-lpthread"
7210 if test "x$LIBPTHREAD" = "x"; then :
7211 case "x$with_pthread" in
7212 xno) ;;
7213 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7214 Wine cannot support threads without libpthread.
7215 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7216 esac
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7221 $as_echo_n "checking for X... " >&6; }
7224 # Check whether --with-x was given.
7225 if test "${with_x+set}" = set; then :
7226 withval=$with_x;
7229 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7230 if test "x$with_x" = xno; then
7231 # The user explicitly disabled X.
7232 have_x=disabled
7233 else
7234 case $x_includes,$x_libraries in #(
7235 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7236 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239 # One or both of the vars are not set, and there is no cached value.
7240 ac_x_includes=no ac_x_libraries=no
7241 rm -f -r conftest.dir
7242 if mkdir conftest.dir; then
7243 cd conftest.dir
7244 cat >Imakefile <<'_ACEOF'
7245 incroot:
7246 @echo incroot='${INCROOT}'
7247 usrlibdir:
7248 @echo usrlibdir='${USRLIBDIR}'
7249 libdir:
7250 @echo libdir='${LIBDIR}'
7251 _ACEOF
7252 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7253 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7254 for ac_var in incroot usrlibdir libdir; do
7255 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7256 done
7257 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7258 for ac_extension in a so sl dylib la dll; do
7259 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7260 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7261 ac_im_usrlibdir=$ac_im_libdir; break
7263 done
7264 # Screen out bogus values from the imake configuration. They are
7265 # bogus both because they are the default anyway, and because
7266 # using them would break gcc on systems where it needs fixed includes.
7267 case $ac_im_incroot in
7268 /usr/include) ac_x_includes= ;;
7269 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7270 esac
7271 case $ac_im_usrlibdir in
7272 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7273 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7274 esac
7276 cd ..
7277 rm -f -r conftest.dir
7280 # Standard set of common directories for X headers.
7281 # Check X11 before X11Rn because it is often a symlink to the current release.
7282 ac_x_header_dirs='
7283 /usr/X11/include
7284 /usr/X11R7/include
7285 /usr/X11R6/include
7286 /usr/X11R5/include
7287 /usr/X11R4/include
7289 /usr/include/X11
7290 /usr/include/X11R7
7291 /usr/include/X11R6
7292 /usr/include/X11R5
7293 /usr/include/X11R4
7295 /usr/local/X11/include
7296 /usr/local/X11R7/include
7297 /usr/local/X11R6/include
7298 /usr/local/X11R5/include
7299 /usr/local/X11R4/include
7301 /usr/local/include/X11
7302 /usr/local/include/X11R7
7303 /usr/local/include/X11R6
7304 /usr/local/include/X11R5
7305 /usr/local/include/X11R4
7307 /usr/X386/include
7308 /usr/x386/include
7309 /usr/XFree86/include/X11
7311 /usr/include
7312 /usr/local/include
7313 /usr/unsupported/include
7314 /usr/athena/include
7315 /usr/local/x11r5/include
7316 /usr/lpp/Xamples/include
7318 /usr/openwin/include
7319 /usr/openwin/share/include'
7321 if test "$ac_x_includes" = no; then
7322 # Guess where to find include files, by looking for Xlib.h.
7323 # First, try using that file with no special directory specified.
7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7326 #include <X11/Xlib.h>
7327 _ACEOF
7328 if ac_fn_c_try_cpp "$LINENO"; then :
7329 # We can compile using X headers with no special include directory.
7330 ac_x_includes=
7331 else
7332 for ac_dir in $ac_x_header_dirs; do
7333 if test -r "$ac_dir/X11/Xlib.h"; then
7334 ac_x_includes=$ac_dir
7335 break
7337 done
7339 rm -f conftest.err conftest.i conftest.$ac_ext
7340 fi # $ac_x_includes = no
7342 if test "$ac_x_libraries" = no; then
7343 # Check for the libraries.
7344 # See if we find them without any special options.
7345 # Don't add to $LIBS permanently.
7346 ac_save_LIBS=$LIBS
7347 LIBS="-lX11 $LIBS"
7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7350 #include <X11/Xlib.h>
7352 main ()
7354 XrmInitialize ()
7356 return 0;
7358 _ACEOF
7359 if ac_fn_c_try_link "$LINENO"; then :
7360 LIBS=$ac_save_LIBS
7361 # We can link X programs with no special library path.
7362 ac_x_libraries=
7363 else
7364 LIBS=$ac_save_LIBS
7365 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7367 # Don't even attempt the hair of trying to link an X program!
7368 for ac_extension in a so sl dylib la dll; do
7369 if test -r "$ac_dir/libX11.$ac_extension"; then
7370 ac_x_libraries=$ac_dir
7371 break 2
7373 done
7374 done
7376 rm -f core conftest.err conftest.$ac_objext \
7377 conftest$ac_exeext conftest.$ac_ext
7378 fi # $ac_x_libraries = no
7380 case $ac_x_includes,$ac_x_libraries in #(
7381 no,* | *,no | *\'*)
7382 # Didn't find X, or a directory has "'" in its name.
7383 ac_cv_have_x="have_x=no";; #(
7385 # Record where we found X for the cache.
7386 ac_cv_have_x="have_x=yes\
7387 ac_x_includes='$ac_x_includes'\
7388 ac_x_libraries='$ac_x_libraries'"
7389 esac
7391 ;; #(
7392 *) have_x=yes;;
7393 esac
7394 eval "$ac_cv_have_x"
7395 fi # $with_x != no
7397 if test "$have_x" != yes; then
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7399 $as_echo "$have_x" >&6; }
7400 no_x=yes
7401 else
7402 # If each of the values was on the command line, it overrides each guess.
7403 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7404 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7405 # Update the cache value to reflect the command line values.
7406 ac_cv_have_x="have_x=yes\
7407 ac_x_includes='$x_includes'\
7408 ac_x_libraries='$x_libraries'"
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7410 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7413 if test "$no_x" = yes; then
7414 # Not all programs may use this symbol, but it does not hurt to define it.
7416 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7418 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7419 else
7420 if test -n "$x_includes"; then
7421 X_CFLAGS="$X_CFLAGS -I$x_includes"
7424 # It would also be nice to do this for all -L options, not just this one.
7425 if test -n "$x_libraries"; then
7426 X_LIBS="$X_LIBS -L$x_libraries"
7427 # For Solaris; some versions of Sun CC require a space after -R and
7428 # others require no space. Words are not sufficient . . . .
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7430 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7431 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7432 ac_xsave_c_werror_flag=$ac_c_werror_flag
7433 ac_c_werror_flag=yes
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7438 main ()
7442 return 0;
7444 _ACEOF
7445 if ac_fn_c_try_link "$LINENO"; then :
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7448 X_LIBS="$X_LIBS -R$x_libraries"
7449 else
7450 LIBS="$ac_xsave_LIBS -R $x_libraries"
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7455 main ()
7459 return 0;
7461 _ACEOF
7462 if ac_fn_c_try_link "$LINENO"; then :
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7464 $as_echo "yes" >&6; }
7465 X_LIBS="$X_LIBS -R $x_libraries"
7466 else
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7468 $as_echo "neither works" >&6; }
7470 rm -f core conftest.err conftest.$ac_objext \
7471 conftest$ac_exeext conftest.$ac_ext
7473 rm -f core conftest.err conftest.$ac_objext \
7474 conftest$ac_exeext conftest.$ac_ext
7475 ac_c_werror_flag=$ac_xsave_c_werror_flag
7476 LIBS=$ac_xsave_LIBS
7479 # Check for system-dependent libraries X programs must link with.
7480 # Do this before checking for the system-independent R6 libraries
7481 # (-lICE), since we may need -lsocket or whatever for X linking.
7483 if test "$ISC" = yes; then
7484 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7485 else
7486 # Martyn Johnson says this is needed for Ultrix, if the X
7487 # libraries were built with DECnet support. And Karl Berry says
7488 # the Alpha needs dnet_stub (dnet does not exist).
7489 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h. */
7493 /* Override any GCC internal prototype to avoid an error.
7494 Use char because int might match the return type of a GCC
7495 builtin and then its argument prototype would still apply. */
7496 #ifdef __cplusplus
7497 extern "C"
7498 #endif
7499 char XOpenDisplay ();
7501 main ()
7503 return XOpenDisplay ();
7505 return 0;
7507 _ACEOF
7508 if ac_fn_c_try_link "$LINENO"; then :
7510 else
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7512 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7513 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 ac_check_lib_save_LIBS=$LIBS
7517 LIBS="-ldnet $LIBS"
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7521 /* Override any GCC internal prototype to avoid an error.
7522 Use char because int might match the return type of a GCC
7523 builtin and then its argument prototype would still apply. */
7524 #ifdef __cplusplus
7525 extern "C"
7526 #endif
7527 char dnet_ntoa ();
7529 main ()
7531 return dnet_ntoa ();
7533 return 0;
7535 _ACEOF
7536 if ac_fn_c_try_link "$LINENO"; then :
7537 ac_cv_lib_dnet_dnet_ntoa=yes
7538 else
7539 ac_cv_lib_dnet_dnet_ntoa=no
7541 rm -f core conftest.err conftest.$ac_objext \
7542 conftest$ac_exeext conftest.$ac_ext
7543 LIBS=$ac_check_lib_save_LIBS
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7546 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7547 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7548 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7551 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7553 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7554 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 ac_check_lib_save_LIBS=$LIBS
7558 LIBS="-ldnet_stub $LIBS"
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7562 /* Override any GCC internal prototype to avoid an error.
7563 Use char because int might match the return type of a GCC
7564 builtin and then its argument prototype would still apply. */
7565 #ifdef __cplusplus
7566 extern "C"
7567 #endif
7568 char dnet_ntoa ();
7570 main ()
7572 return dnet_ntoa ();
7574 return 0;
7576 _ACEOF
7577 if ac_fn_c_try_link "$LINENO"; then :
7578 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7579 else
7580 ac_cv_lib_dnet_stub_dnet_ntoa=no
7582 rm -f core conftest.err conftest.$ac_objext \
7583 conftest$ac_exeext conftest.$ac_ext
7584 LIBS=$ac_check_lib_save_LIBS
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7587 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7588 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7589 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7594 rm -f core conftest.err conftest.$ac_objext \
7595 conftest$ac_exeext conftest.$ac_ext
7596 LIBS="$ac_xsave_LIBS"
7598 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7599 # to get the SysV transport functions.
7600 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7601 # needs -lnsl.
7602 # The nsl library prevents programs from opening the X display
7603 # on Irix 5.2, according to T.E. Dickey.
7604 # The functions gethostbyname, getservbyname, and inet_addr are
7605 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7606 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7607 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7611 if test $ac_cv_func_gethostbyname = no; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7613 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7614 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7615 $as_echo_n "(cached) " >&6
7616 else
7617 ac_check_lib_save_LIBS=$LIBS
7618 LIBS="-lnsl $LIBS"
7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h. */
7622 /* Override any GCC internal prototype to avoid an error.
7623 Use char because int might match the return type of a GCC
7624 builtin and then its argument prototype would still apply. */
7625 #ifdef __cplusplus
7626 extern "C"
7627 #endif
7628 char gethostbyname ();
7630 main ()
7632 return gethostbyname ();
7634 return 0;
7636 _ACEOF
7637 if ac_fn_c_try_link "$LINENO"; then :
7638 ac_cv_lib_nsl_gethostbyname=yes
7639 else
7640 ac_cv_lib_nsl_gethostbyname=no
7642 rm -f core conftest.err conftest.$ac_objext \
7643 conftest$ac_exeext conftest.$ac_ext
7644 LIBS=$ac_check_lib_save_LIBS
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7647 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7648 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7649 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7652 if test $ac_cv_lib_nsl_gethostbyname = no; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7654 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7655 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7656 $as_echo_n "(cached) " >&6
7657 else
7658 ac_check_lib_save_LIBS=$LIBS
7659 LIBS="-lbsd $LIBS"
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h. */
7663 /* Override any GCC internal prototype to avoid an error.
7664 Use char because int might match the return type of a GCC
7665 builtin and then its argument prototype would still apply. */
7666 #ifdef __cplusplus
7667 extern "C"
7668 #endif
7669 char gethostbyname ();
7671 main ()
7673 return gethostbyname ();
7675 return 0;
7677 _ACEOF
7678 if ac_fn_c_try_link "$LINENO"; then :
7679 ac_cv_lib_bsd_gethostbyname=yes
7680 else
7681 ac_cv_lib_bsd_gethostbyname=no
7683 rm -f core conftest.err conftest.$ac_objext \
7684 conftest$ac_exeext conftest.$ac_ext
7685 LIBS=$ac_check_lib_save_LIBS
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7688 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7689 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7690 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7696 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7697 # socket/setsockopt and other routines are undefined under SCO ODT
7698 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7699 # on later versions), says Simon Leinen: it contains gethostby*
7700 # variants that don't use the name server (or something). -lsocket
7701 # must be given before -lnsl if both are needed. We assume that
7702 # if connect needs -lnsl, so does gethostbyname.
7703 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7704 if test "x$ac_cv_func_connect" = xyes; then :
7708 if test $ac_cv_func_connect = no; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7710 $as_echo_n "checking for connect in -lsocket... " >&6; }
7711 if ${ac_cv_lib_socket_connect+:} false; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 ac_check_lib_save_LIBS=$LIBS
7715 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7719 /* Override any GCC internal prototype to avoid an error.
7720 Use char because int might match the return type of a GCC
7721 builtin and then its argument prototype would still apply. */
7722 #ifdef __cplusplus
7723 extern "C"
7724 #endif
7725 char connect ();
7727 main ()
7729 return connect ();
7731 return 0;
7733 _ACEOF
7734 if ac_fn_c_try_link "$LINENO"; then :
7735 ac_cv_lib_socket_connect=yes
7736 else
7737 ac_cv_lib_socket_connect=no
7739 rm -f core conftest.err conftest.$ac_objext \
7740 conftest$ac_exeext conftest.$ac_ext
7741 LIBS=$ac_check_lib_save_LIBS
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7744 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7745 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7746 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7751 # Guillermo Gomez says -lposix is necessary on A/UX.
7752 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7753 if test "x$ac_cv_func_remove" = xyes; then :
7757 if test $ac_cv_func_remove = no; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7759 $as_echo_n "checking for remove in -lposix... " >&6; }
7760 if ${ac_cv_lib_posix_remove+:} false; then :
7761 $as_echo_n "(cached) " >&6
7762 else
7763 ac_check_lib_save_LIBS=$LIBS
7764 LIBS="-lposix $LIBS"
7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7768 /* Override any GCC internal prototype to avoid an error.
7769 Use char because int might match the return type of a GCC
7770 builtin and then its argument prototype would still apply. */
7771 #ifdef __cplusplus
7772 extern "C"
7773 #endif
7774 char remove ();
7776 main ()
7778 return remove ();
7780 return 0;
7782 _ACEOF
7783 if ac_fn_c_try_link "$LINENO"; then :
7784 ac_cv_lib_posix_remove=yes
7785 else
7786 ac_cv_lib_posix_remove=no
7788 rm -f core conftest.err conftest.$ac_objext \
7789 conftest$ac_exeext conftest.$ac_ext
7790 LIBS=$ac_check_lib_save_LIBS
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7793 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7794 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7795 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7800 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7801 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7802 if test "x$ac_cv_func_shmat" = xyes; then :
7806 if test $ac_cv_func_shmat = no; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7808 $as_echo_n "checking for shmat in -lipc... " >&6; }
7809 if ${ac_cv_lib_ipc_shmat+:} false; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 ac_check_lib_save_LIBS=$LIBS
7813 LIBS="-lipc $LIBS"
7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7817 /* Override any GCC internal prototype to avoid an error.
7818 Use char because int might match the return type of a GCC
7819 builtin and then its argument prototype would still apply. */
7820 #ifdef __cplusplus
7821 extern "C"
7822 #endif
7823 char shmat ();
7825 main ()
7827 return shmat ();
7829 return 0;
7831 _ACEOF
7832 if ac_fn_c_try_link "$LINENO"; then :
7833 ac_cv_lib_ipc_shmat=yes
7834 else
7835 ac_cv_lib_ipc_shmat=no
7837 rm -f core conftest.err conftest.$ac_objext \
7838 conftest$ac_exeext conftest.$ac_ext
7839 LIBS=$ac_check_lib_save_LIBS
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7842 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7843 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7844 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7850 # Check for libraries that X11R6 Xt/Xaw programs need.
7851 ac_save_LDFLAGS=$LDFLAGS
7852 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7853 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7854 # check for ICE first), but we must link in the order -lSM -lICE or
7855 # we get undefined symbols. So assume we have SM if we have ICE.
7856 # These have to be linked with before -lX11, unlike the other
7857 # libraries we check for below, so use a different variable.
7858 # John Interrante, Karl Berry
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7860 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7861 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 ac_check_lib_save_LIBS=$LIBS
7865 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7869 /* Override any GCC internal prototype to avoid an error.
7870 Use char because int might match the return type of a GCC
7871 builtin and then its argument prototype would still apply. */
7872 #ifdef __cplusplus
7873 extern "C"
7874 #endif
7875 char IceConnectionNumber ();
7877 main ()
7879 return IceConnectionNumber ();
7881 return 0;
7883 _ACEOF
7884 if ac_fn_c_try_link "$LINENO"; then :
7885 ac_cv_lib_ICE_IceConnectionNumber=yes
7886 else
7887 ac_cv_lib_ICE_IceConnectionNumber=no
7889 rm -f core conftest.err conftest.$ac_objext \
7890 conftest$ac_exeext conftest.$ac_ext
7891 LIBS=$ac_check_lib_save_LIBS
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7894 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7895 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7896 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7899 LDFLAGS=$ac_save_LDFLAGS
7904 if test "$have_x" = "yes"
7905 then
7906 XLIB="-lX11"
7907 ac_save_CPPFLAGS="$CPPFLAGS"
7908 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7911 $as_echo_n "checking for -lX11... " >&6; }
7912 if ${ac_cv_lib_soname_X11+:} false; then :
7913 $as_echo_n "(cached) " >&6
7914 else
7915 ac_check_soname_save_LIBS=$LIBS
7916 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h. */
7920 /* Override any GCC internal prototype to avoid an error.
7921 Use char because int might match the return type of a GCC
7922 builtin and then its argument prototype would still apply. */
7923 #ifdef __cplusplus
7924 extern "C"
7925 #endif
7926 char XCreateWindow ();
7928 main ()
7930 return XCreateWindow ();
7932 return 0;
7934 _ACEOF
7935 if ac_fn_c_try_link "$LINENO"; then :
7936 case "$LIBEXT" in
7937 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7938 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'` ;;
7939 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7940 esac
7942 rm -f core conftest.err conftest.$ac_objext \
7943 conftest$ac_exeext conftest.$ac_ext
7944 LIBS=$ac_check_soname_save_LIBS
7946 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7948 $as_echo "not found" >&6; }
7950 else
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7952 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7954 cat >>confdefs.h <<_ACEOF
7955 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7956 _ACEOF
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7961 $as_echo_n "checking for -lXext... " >&6; }
7962 if ${ac_cv_lib_soname_Xext+:} false; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 ac_check_soname_save_LIBS=$LIBS
7966 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7970 /* Override any GCC internal prototype to avoid an error.
7971 Use char because int might match the return type of a GCC
7972 builtin and then its argument prototype would still apply. */
7973 #ifdef __cplusplus
7974 extern "C"
7975 #endif
7976 char XextCreateExtension ();
7978 main ()
7980 return XextCreateExtension ();
7982 return 0;
7984 _ACEOF
7985 if ac_fn_c_try_link "$LINENO"; then :
7986 case "$LIBEXT" in
7987 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7988 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'` ;;
7989 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7990 esac
7992 rm -f core conftest.err conftest.$ac_objext \
7993 conftest$ac_exeext conftest.$ac_ext
7994 LIBS=$ac_check_soname_save_LIBS
7996 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7998 $as_echo "not found" >&6; }
8000 else
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8002 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8004 cat >>confdefs.h <<_ACEOF
8005 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8006 _ACEOF
8008 XLIB="-lXext $XLIB"
8011 for ac_header in X11/Xlib.h \
8012 X11/XKBlib.h \
8013 X11/Xutil.h \
8014 X11/Xcursor/Xcursor.h \
8015 X11/extensions/shape.h \
8016 X11/extensions/XInput.h \
8017 X11/extensions/XInput2.h \
8018 X11/extensions/XShm.h \
8019 X11/extensions/Xcomposite.h \
8020 X11/extensions/Xinerama.h \
8021 X11/extensions/Xrandr.h \
8022 X11/extensions/Xrender.h \
8023 X11/extensions/xf86vmode.h \
8024 X11/extensions/xf86vmproto.h
8025 do :
8026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8027 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8028 # include <X11/Xlib.h>
8029 #endif
8030 #ifdef HAVE_X11_XUTIL_H
8031 # include <X11/Xutil.h>
8032 #endif
8034 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8035 cat >>confdefs.h <<_ACEOF
8036 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8037 _ACEOF
8041 done
8044 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8045 then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8047 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8048 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8049 $as_echo_n "(cached) " >&6
8050 else
8051 ac_check_lib_save_LIBS=$LIBS
8052 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054 /* end confdefs.h. */
8056 /* Override any GCC internal prototype to avoid an error.
8057 Use char because int might match the return type of a GCC
8058 builtin and then its argument prototype would still apply. */
8059 #ifdef __cplusplus
8060 extern "C"
8061 #endif
8062 char XkbQueryExtension ();
8064 main ()
8066 return XkbQueryExtension ();
8068 return 0;
8070 _ACEOF
8071 if ac_fn_c_try_link "$LINENO"; then :
8072 ac_cv_lib_X11_XkbQueryExtension=yes
8073 else
8074 ac_cv_lib_X11_XkbQueryExtension=no
8076 rm -f core conftest.err conftest.$ac_objext \
8077 conftest$ac_exeext conftest.$ac_ext
8078 LIBS=$ac_check_lib_save_LIBS
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8081 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8082 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8084 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8090 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8091 then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8093 $as_echo_n "checking for -lXcursor... " >&6; }
8094 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 ac_check_soname_save_LIBS=$LIBS
8098 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h. */
8102 /* Override any GCC internal prototype to avoid an error.
8103 Use char because int might match the return type of a GCC
8104 builtin and then its argument prototype would still apply. */
8105 #ifdef __cplusplus
8106 extern "C"
8107 #endif
8108 char XcursorImageLoadCursor ();
8110 main ()
8112 return XcursorImageLoadCursor ();
8114 return 0;
8116 _ACEOF
8117 if ac_fn_c_try_link "$LINENO"; then :
8118 case "$LIBEXT" in
8119 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8120 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'` ;;
8121 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8122 esac
8124 rm -f core conftest.err conftest.$ac_objext \
8125 conftest$ac_exeext conftest.$ac_ext
8126 LIBS=$ac_check_soname_save_LIBS
8128 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8130 $as_echo "not found" >&6; }
8132 else
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8134 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8136 cat >>confdefs.h <<_ACEOF
8137 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8138 _ACEOF
8143 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8144 case "x$with_xcursor" in
8145 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8146 xno) ;;
8147 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8148 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8149 esac
8152 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8153 then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8155 $as_echo_n "checking for -lXi... " >&6; }
8156 if ${ac_cv_lib_soname_Xi+:} false; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 ac_check_soname_save_LIBS=$LIBS
8160 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8164 /* Override any GCC internal prototype to avoid an error.
8165 Use char because int might match the return type of a GCC
8166 builtin and then its argument prototype would still apply. */
8167 #ifdef __cplusplus
8168 extern "C"
8169 #endif
8170 char XOpenDevice ();
8172 main ()
8174 return XOpenDevice ();
8176 return 0;
8178 _ACEOF
8179 if ac_fn_c_try_link "$LINENO"; then :
8180 case "$LIBEXT" in
8181 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8182 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'` ;;
8183 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8184 esac
8186 rm -f core conftest.err conftest.$ac_objext \
8187 conftest$ac_exeext conftest.$ac_ext
8188 LIBS=$ac_check_soname_save_LIBS
8190 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8192 $as_echo "not found" >&6; }
8194 else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8196 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8198 cat >>confdefs.h <<_ACEOF
8199 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8200 _ACEOF
8205 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8206 case "x$with_xinput" in
8207 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8208 xno) ;;
8209 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8210 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8211 esac
8214 if test "x$ac_cv_lib_soname_Xi" != x
8215 then
8216 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8217 case "x$with_xinput2" in
8218 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8219 xno) ;;
8220 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8221 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8222 esac
8226 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8227 then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8229 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8230 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8231 $as_echo_n "(cached) " >&6
8232 else
8233 ac_check_lib_save_LIBS=$LIBS
8234 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8238 /* Override any GCC internal prototype to avoid an error.
8239 Use char because int might match the return type of a GCC
8240 builtin and then its argument prototype would still apply. */
8241 #ifdef __cplusplus
8242 extern "C"
8243 #endif
8244 char XShmQueryExtension ();
8246 main ()
8248 return XShmQueryExtension ();
8250 return 0;
8252 _ACEOF
8253 if ac_fn_c_try_link "$LINENO"; then :
8254 ac_cv_lib_Xext_XShmQueryExtension=yes
8255 else
8256 ac_cv_lib_Xext_XShmQueryExtension=no
8258 rm -f core conftest.err conftest.$ac_objext \
8259 conftest$ac_exeext conftest.$ac_ext
8260 LIBS=$ac_check_lib_save_LIBS
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8263 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8264 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8266 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8271 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8272 case "x$with_xshm" in
8273 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8274 xno) ;;
8275 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8276 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8277 esac
8280 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8281 then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8283 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8284 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8287 ac_check_lib_save_LIBS=$LIBS
8288 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8292 /* Override any GCC internal prototype to avoid an error.
8293 Use char because int might match the return type of a GCC
8294 builtin and then its argument prototype would still apply. */
8295 #ifdef __cplusplus
8296 extern "C"
8297 #endif
8298 char XShapeQueryExtension ();
8300 main ()
8302 return XShapeQueryExtension ();
8304 return 0;
8306 _ACEOF
8307 if ac_fn_c_try_link "$LINENO"; then :
8308 ac_cv_lib_Xext_XShapeQueryExtension=yes
8309 else
8310 ac_cv_lib_Xext_XShapeQueryExtension=no
8312 rm -f core conftest.err conftest.$ac_objext \
8313 conftest$ac_exeext conftest.$ac_ext
8314 LIBS=$ac_check_lib_save_LIBS
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8317 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8318 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8320 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8325 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8326 case "x$with_xshape" in
8327 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8328 xno) ;;
8329 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8330 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8331 esac
8334 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8335 then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8337 $as_echo_n "checking for -lXxf86vm... " >&6; }
8338 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8339 $as_echo_n "(cached) " >&6
8340 else
8341 ac_check_soname_save_LIBS=$LIBS
8342 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h. */
8346 /* Override any GCC internal prototype to avoid an error.
8347 Use char because int might match the return type of a GCC
8348 builtin and then its argument prototype would still apply. */
8349 #ifdef __cplusplus
8350 extern "C"
8351 #endif
8352 char XF86VidModeQueryExtension ();
8354 main ()
8356 return XF86VidModeQueryExtension ();
8358 return 0;
8360 _ACEOF
8361 if ac_fn_c_try_link "$LINENO"; then :
8362 case "$LIBEXT" in
8363 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8364 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'` ;;
8365 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8366 esac
8368 rm -f core conftest.err conftest.$ac_objext \
8369 conftest$ac_exeext conftest.$ac_ext
8370 LIBS=$ac_check_soname_save_LIBS
8372 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8374 $as_echo "not found" >&6; }
8376 else
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8378 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8380 cat >>confdefs.h <<_ACEOF
8381 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8382 _ACEOF
8387 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8388 case "x$with_xxf86vm" in
8389 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8390 xno) ;;
8391 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8392 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8393 esac
8396 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"
8397 then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8399 $as_echo_n "checking for -lXrender... " >&6; }
8400 if ${ac_cv_lib_soname_Xrender+:} false; then :
8401 $as_echo_n "(cached) " >&6
8402 else
8403 ac_check_soname_save_LIBS=$LIBS
8404 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h. */
8408 /* Override any GCC internal prototype to avoid an error.
8409 Use char because int might match the return type of a GCC
8410 builtin and then its argument prototype would still apply. */
8411 #ifdef __cplusplus
8412 extern "C"
8413 #endif
8414 char XRenderQueryExtension ();
8416 main ()
8418 return XRenderQueryExtension ();
8420 return 0;
8422 _ACEOF
8423 if ac_fn_c_try_link "$LINENO"; then :
8424 case "$LIBEXT" in
8425 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8426 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'` ;;
8427 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8428 esac
8430 rm -f core conftest.err conftest.$ac_objext \
8431 conftest$ac_exeext conftest.$ac_ext
8432 LIBS=$ac_check_soname_save_LIBS
8434 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8436 $as_echo "not found" >&6; }
8438 else
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8440 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8442 cat >>confdefs.h <<_ACEOF
8443 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8444 _ACEOF
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8447 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8448 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 ac_check_lib_save_LIBS=$LIBS
8452 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8456 /* Override any GCC internal prototype to avoid an error.
8457 Use char because int might match the return type of a GCC
8458 builtin and then its argument prototype would still apply. */
8459 #ifdef __cplusplus
8460 extern "C"
8461 #endif
8462 char XRenderSetPictureTransform ();
8464 main ()
8466 return XRenderSetPictureTransform ();
8468 return 0;
8470 _ACEOF
8471 if ac_fn_c_try_link "$LINENO"; then :
8472 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8473 else
8474 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8476 rm -f core conftest.err conftest.$ac_objext \
8477 conftest$ac_exeext conftest.$ac_ext
8478 LIBS=$ac_check_lib_save_LIBS
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8481 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8482 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8484 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8489 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8490 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 ac_check_lib_save_LIBS=$LIBS
8494 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8498 /* Override any GCC internal prototype to avoid an error.
8499 Use char because int might match the return type of a GCC
8500 builtin and then its argument prototype would still apply. */
8501 #ifdef __cplusplus
8502 extern "C"
8503 #endif
8504 char XRenderCreateLinearGradient ();
8506 main ()
8508 return XRenderCreateLinearGradient ();
8510 return 0;
8512 _ACEOF
8513 if ac_fn_c_try_link "$LINENO"; then :
8514 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8515 else
8516 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8518 rm -f core conftest.err conftest.$ac_objext \
8519 conftest$ac_exeext conftest.$ac_ext
8520 LIBS=$ac_check_lib_save_LIBS
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8523 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8524 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8526 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8533 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8534 case "x$with_xrender" in
8535 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8536 xno) ;;
8537 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8538 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8539 esac
8542 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8543 then
8544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h. */
8546 #include <X11/Xlib.h>
8547 #include <X11/extensions/Xrandr.h>
8549 main ()
8551 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8553 return 0;
8555 _ACEOF
8556 if ac_fn_c_try_compile "$LINENO"; then :
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8558 $as_echo_n "checking for -lXrandr... " >&6; }
8559 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 ac_check_soname_save_LIBS=$LIBS
8563 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8567 /* Override any GCC internal prototype to avoid an error.
8568 Use char because int might match the return type of a GCC
8569 builtin and then its argument prototype would still apply. */
8570 #ifdef __cplusplus
8571 extern "C"
8572 #endif
8573 char XRRQueryExtension ();
8575 main ()
8577 return XRRQueryExtension ();
8579 return 0;
8581 _ACEOF
8582 if ac_fn_c_try_link "$LINENO"; then :
8583 case "$LIBEXT" in
8584 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8585 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'` ;;
8586 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8587 esac
8589 rm -f core conftest.err conftest.$ac_objext \
8590 conftest$ac_exeext conftest.$ac_ext
8591 LIBS=$ac_check_soname_save_LIBS
8593 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8595 $as_echo "not found" >&6; }
8597 else
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8599 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8601 cat >>confdefs.h <<_ACEOF
8602 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8603 _ACEOF
8608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8611 case "x$with_xrandr" in
8612 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8613 xno) ;;
8614 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8615 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8616 esac
8619 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8620 then
8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h. */
8623 #include <X11/Xlib.h>
8624 #include <X11/extensions/Xinerama.h>
8626 main ()
8628 static typeof(XineramaQueryScreens) * func; if (func) return 0;
8630 return 0;
8632 _ACEOF
8633 if ac_fn_c_try_compile "$LINENO"; then :
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8635 $as_echo_n "checking for -lXinerama... " >&6; }
8636 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 ac_check_soname_save_LIBS=$LIBS
8640 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8644 /* Override any GCC internal prototype to avoid an error.
8645 Use char because int might match the return type of a GCC
8646 builtin and then its argument prototype would still apply. */
8647 #ifdef __cplusplus
8648 extern "C"
8649 #endif
8650 char XineramaQueryScreens ();
8652 main ()
8654 return XineramaQueryScreens ();
8656 return 0;
8658 _ACEOF
8659 if ac_fn_c_try_link "$LINENO"; then :
8660 case "$LIBEXT" in
8661 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8662 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'` ;;
8663 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8664 esac
8666 rm -f core conftest.err conftest.$ac_objext \
8667 conftest$ac_exeext conftest.$ac_ext
8668 LIBS=$ac_check_soname_save_LIBS
8670 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8672 $as_echo "not found" >&6; }
8674 else
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8676 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8678 cat >>confdefs.h <<_ACEOF
8679 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8680 _ACEOF
8685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8688 case "x$with_xinerama" in
8689 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8690 xno) ;;
8691 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8692 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8693 esac
8696 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8697 then
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8699 $as_echo_n "checking for -lXcomposite... " >&6; }
8700 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8701 $as_echo_n "(cached) " >&6
8702 else
8703 ac_check_soname_save_LIBS=$LIBS
8704 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h. */
8708 /* Override any GCC internal prototype to avoid an error.
8709 Use char because int might match the return type of a GCC
8710 builtin and then its argument prototype would still apply. */
8711 #ifdef __cplusplus
8712 extern "C"
8713 #endif
8714 char XCompositeRedirectWindow ();
8716 main ()
8718 return XCompositeRedirectWindow ();
8720 return 0;
8722 _ACEOF
8723 if ac_fn_c_try_link "$LINENO"; then :
8724 case "$LIBEXT" in
8725 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8726 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'` ;;
8727 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8728 esac
8730 rm -f core conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
8732 LIBS=$ac_check_soname_save_LIBS
8734 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8736 $as_echo "not found" >&6; }
8738 else
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8740 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8742 cat >>confdefs.h <<_ACEOF
8743 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8744 _ACEOF
8749 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8750 case "x$with_xcomposite" in
8751 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8752 xno) ;;
8753 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8754 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8755 esac
8758 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8759 #include <X11/Xlib.h>
8760 #endif
8762 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8764 cat >>confdefs.h <<_ACEOF
8765 #define HAVE_XICCALLBACK_CALLBACK 1
8766 _ACEOF
8770 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8771 #include <X11/Xlib.h>
8772 #endif
8774 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8776 cat >>confdefs.h <<_ACEOF
8777 #define HAVE_XEVENT_XCOOKIE 1
8778 _ACEOF
8785 opengl_msg=""
8786 if test "x$with_opengl" != "xno"
8787 then
8788 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8789 do :
8790 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8791 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8792 # include <GL/glx.h>
8793 #endif
8795 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8796 cat >>confdefs.h <<_ACEOF
8797 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8798 _ACEOF
8802 done
8804 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8805 then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8807 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8808 if ${wine_cv_opengl_header_version_OK+:} false; then :
8809 $as_echo_n "(cached) " >&6
8810 else
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8813 #include <GL/gl.h>
8815 main ()
8817 GLenum test = GL_UNSIGNED_SHORT_5_6_5; return (test == GL_UNSIGNED_SHORT_5_6_5);
8819 return 0;
8821 _ACEOF
8822 if ac_fn_c_try_compile "$LINENO"; then :
8823 wine_cv_opengl_header_version_OK="yes"
8824 else
8825 wine_cv_opengl_header_version_OK="no"
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8830 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8832 if test "$wine_cv_opengl_header_version_OK" = "yes"
8833 then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8835 $as_echo_n "checking for -lGL... " >&6; }
8836 if ${ac_cv_lib_soname_GL+:} false; then :
8837 $as_echo_n "(cached) " >&6
8838 else
8839 ac_check_soname_save_LIBS=$LIBS
8840 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8844 /* Override any GCC internal prototype to avoid an error.
8845 Use char because int might match the return type of a GCC
8846 builtin and then its argument prototype would still apply. */
8847 #ifdef __cplusplus
8848 extern "C"
8849 #endif
8850 char glXCreateContext ();
8852 main ()
8854 return glXCreateContext ();
8856 return 0;
8858 _ACEOF
8859 if ac_fn_c_try_link "$LINENO"; then :
8860 case "$LIBEXT" in
8861 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8862 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'` ;;
8863 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8864 esac
8866 rm -f core conftest.err conftest.$ac_objext \
8867 conftest$ac_exeext conftest.$ac_ext
8868 LIBS=$ac_check_soname_save_LIBS
8870 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8872 $as_echo "not found" >&6; }
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8874 $as_echo_n "checking for -lGL... " >&6; }
8875 if ${ac_cv_lib_soname_GL+:} false; then :
8876 $as_echo_n "(cached) " >&6
8877 else
8878 ac_check_soname_save_LIBS=$LIBS
8879 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"
8880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8883 /* Override any GCC internal prototype to avoid an error.
8884 Use char because int might match the return type of a GCC
8885 builtin and then its argument prototype would still apply. */
8886 #ifdef __cplusplus
8887 extern "C"
8888 #endif
8889 char glXCreateContext ();
8891 main ()
8893 return glXCreateContext ();
8895 return 0;
8897 _ACEOF
8898 if ac_fn_c_try_link "$LINENO"; then :
8899 case "$LIBEXT" in
8900 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8901 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'` ;;
8902 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8903 esac
8905 rm -f core conftest.err conftest.$ac_objext \
8906 conftest$ac_exeext conftest.$ac_ext
8907 LIBS=$ac_check_soname_save_LIBS
8909 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8911 $as_echo "not found" >&6; }
8912 if test -f /usr/X11R6/lib/libGL.a
8913 then
8914 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8915 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8916 else
8917 opengl_msg="No OpenGL library found on this system."
8919 else
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8921 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8923 cat >>confdefs.h <<_ACEOF
8924 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8925 _ACEOF
8927 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"
8929 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8932 else
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8934 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8936 cat >>confdefs.h <<_ACEOF
8937 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8938 _ACEOF
8940 OPENGL_LIBS="-lGL"
8942 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8945 if test "$ac_cv_header_GL_glu_h" = "yes"
8946 then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8948 $as_echo_n "checking for -lGLU... " >&6; }
8949 if ${ac_cv_lib_soname_GLU+:} false; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 ac_check_soname_save_LIBS=$LIBS
8953 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8957 /* Override any GCC internal prototype to avoid an error.
8958 Use char because int might match the return type of a GCC
8959 builtin and then its argument prototype would still apply. */
8960 #ifdef __cplusplus
8961 extern "C"
8962 #endif
8963 char gluLookAt ();
8965 main ()
8967 return gluLookAt ();
8969 return 0;
8971 _ACEOF
8972 if ac_fn_c_try_link "$LINENO"; then :
8973 case "$LIBEXT" in
8974 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8975 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'` ;;
8976 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8977 esac
8979 rm -f core conftest.err conftest.$ac_objext \
8980 conftest$ac_exeext conftest.$ac_ext
8981 LIBS=$ac_check_soname_save_LIBS
8983 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8985 $as_echo "not found" >&6; }
8987 else
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8989 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8991 cat >>confdefs.h <<_ACEOF
8992 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8993 _ACEOF
8998 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8999 case "x$with_glu" in
9000 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
9001 xno) ;;
9002 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9003 This is an error since --with-glu was requested." "$LINENO" 5 ;;
9004 esac
9006 else
9007 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
9009 else
9010 opengl_msg="OpenGL development headers not found."
9012 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
9013 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
9014 else
9015 enable_opengl32=${enable_opengl32:-no}
9016 enable_glu32=${enable_glu32:-no}
9018 if test -n "$opengl_msg"; then :
9019 case "x$with_opengl" in
9020 x) as_fn_append wine_warnings "|$opengl_msg
9021 OpenGL and Direct3D won't be supported." ;;
9022 xno) ;;
9023 *) as_fn_error $? "$opengl_msg
9024 OpenGL and Direct3D won't be supported.
9025 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9026 esac
9029 CPPFLAGS="$ac_save_CPPFLAGS"
9030 else
9031 XLIB=""
9032 X_CFLAGS=""
9033 X_LIBS=""
9034 enable_winex11_drv=${enable_winex11_drv:-no}
9035 enable_opengl32=${enable_opengl32:-no}
9036 enable_glu32=${enable_glu32:-no}
9038 if test "x$XLIB" = "x"; then :
9039 case "x$with_x" in
9040 xno) ;;
9041 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9042 without X support, which probably isn't what you want. You will need
9043 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9044 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9045 esac
9048 if test "$ac_cv_header_CL_cl_h" = "yes"
9049 then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9051 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9052 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9053 $as_echo_n "(cached) " >&6
9054 else
9055 ac_check_lib_save_LIBS=$LIBS
9056 LIBS="-lOpenCL $LIBS"
9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h. */
9060 /* Override any GCC internal prototype to avoid an error.
9061 Use char because int might match the return type of a GCC
9062 builtin and then its argument prototype would still apply. */
9063 #ifdef __cplusplus
9064 extern "C"
9065 #endif
9066 char clGetPlatformInfo ();
9068 main ()
9070 return clGetPlatformInfo ();
9072 return 0;
9074 _ACEOF
9075 if ac_fn_c_try_link "$LINENO"; then :
9076 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9077 else
9078 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9080 rm -f core conftest.err conftest.$ac_objext \
9081 conftest$ac_exeext conftest.$ac_ext
9082 LIBS=$ac_check_lib_save_LIBS
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9085 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9086 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9087 LIBOPENCL="-lOpenCL"
9092 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9093 case "x$with_opencl" in
9094 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9095 xno) ;;
9096 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9097 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9098 esac
9100 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9103 XML2LIBS=""
9105 XML2INCL=""
9107 XSLTINCL=""
9109 if test "x$with_xml" != "xno"
9110 then
9111 ac_save_CPPFLAGS="$CPPFLAGS"
9112 if test "$PKG_CONFIG" != "false"
9113 then
9114 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9115 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9116 else
9117 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9118 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9120 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9121 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9122 do :
9123 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9124 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9125 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9126 cat >>confdefs.h <<_ACEOF
9127 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9128 _ACEOF
9132 done
9134 if test "$ac_cv_header_libxml_parser_h" = "yes" -a "$ac_cv_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_header_libxml_SAX2_h" = "yes"
9135 then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9137 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9138 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 ac_check_lib_save_LIBS=$LIBS
9142 LIBS="-lxml2 $ac_xml_libs $LIBS"
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9146 /* Override any GCC internal prototype to avoid an error.
9147 Use char because int might match the return type of a GCC
9148 builtin and then its argument prototype would still apply. */
9149 #ifdef __cplusplus
9150 extern "C"
9151 #endif
9152 char xmlParseMemory ();
9154 main ()
9156 return xmlParseMemory ();
9158 return 0;
9160 _ACEOF
9161 if ac_fn_c_try_link "$LINENO"; then :
9162 ac_cv_lib_xml2_xmlParseMemory=yes
9163 else
9164 ac_cv_lib_xml2_xmlParseMemory=no
9166 rm -f core conftest.err conftest.$ac_objext \
9167 conftest$ac_exeext conftest.$ac_ext
9168 LIBS=$ac_check_lib_save_LIBS
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9171 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9172 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9174 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9176 XML2LIBS="$ac_xml_libs"
9177 XML2INCL="$ac_xml_cflags"
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9181 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9182 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9183 $as_echo_n "(cached) " >&6
9184 else
9185 ac_check_lib_save_LIBS=$LIBS
9186 LIBS="-lxml2 $ac_xml_libs $LIBS"
9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h. */
9190 /* Override any GCC internal prototype to avoid an error.
9191 Use char because int might match the return type of a GCC
9192 builtin and then its argument prototype would still apply. */
9193 #ifdef __cplusplus
9194 extern "C"
9195 #endif
9196 char xmlReadMemory ();
9198 main ()
9200 return xmlReadMemory ();
9202 return 0;
9204 _ACEOF
9205 if ac_fn_c_try_link "$LINENO"; then :
9206 ac_cv_lib_xml2_xmlReadMemory=yes
9207 else
9208 ac_cv_lib_xml2_xmlReadMemory=no
9210 rm -f core conftest.err conftest.$ac_objext \
9211 conftest$ac_exeext conftest.$ac_ext
9212 LIBS=$ac_check_lib_save_LIBS
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9215 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9216 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9218 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9223 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9224 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9225 $as_echo_n "(cached) " >&6
9226 else
9227 ac_check_lib_save_LIBS=$LIBS
9228 LIBS="-lxml2 $ac_xml_libs $LIBS"
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9232 /* Override any GCC internal prototype to avoid an error.
9233 Use char because int might match the return type of a GCC
9234 builtin and then its argument prototype would still apply. */
9235 #ifdef __cplusplus
9236 extern "C"
9237 #endif
9238 char xmlNewDocPI ();
9240 main ()
9242 return xmlNewDocPI ();
9244 return 0;
9246 _ACEOF
9247 if ac_fn_c_try_link "$LINENO"; then :
9248 ac_cv_lib_xml2_xmlNewDocPI=yes
9249 else
9250 ac_cv_lib_xml2_xmlNewDocPI=no
9252 rm -f core conftest.err conftest.$ac_objext \
9253 conftest$ac_exeext conftest.$ac_ext
9254 LIBS=$ac_check_lib_save_LIBS
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9257 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9258 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9260 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9265 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9266 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9267 $as_echo_n "(cached) " >&6
9268 else
9269 ac_check_lib_save_LIBS=$LIBS
9270 LIBS="-lxml2 $ac_xml_libs $LIBS"
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9274 /* Override any GCC internal prototype to avoid an error.
9275 Use char because int might match the return type of a GCC
9276 builtin and then its argument prototype would still apply. */
9277 #ifdef __cplusplus
9278 extern "C"
9279 #endif
9280 char xmlSchemaSetParserStructuredErrors ();
9282 main ()
9284 return xmlSchemaSetParserStructuredErrors ();
9286 return 0;
9288 _ACEOF
9289 if ac_fn_c_try_link "$LINENO"; then :
9290 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9291 else
9292 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9294 rm -f core conftest.err conftest.$ac_objext \
9295 conftest$ac_exeext conftest.$ac_ext
9296 LIBS=$ac_check_lib_save_LIBS
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9299 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9300 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9302 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9307 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9308 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9309 $as_echo_n "(cached) " >&6
9310 else
9311 ac_check_lib_save_LIBS=$LIBS
9312 LIBS="-lxml2 $ac_xml_libs $LIBS"
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9316 /* Override any GCC internal prototype to avoid an error.
9317 Use char because int might match the return type of a GCC
9318 builtin and then its argument prototype would still apply. */
9319 #ifdef __cplusplus
9320 extern "C"
9321 #endif
9322 char xmlSchemaSetValidStructuredErrors ();
9324 main ()
9326 return xmlSchemaSetValidStructuredErrors ();
9328 return 0;
9330 _ACEOF
9331 if ac_fn_c_try_link "$LINENO"; then :
9332 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9333 else
9334 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9336 rm -f core conftest.err conftest.$ac_objext \
9337 conftest$ac_exeext conftest.$ac_ext
9338 LIBS=$ac_check_lib_save_LIBS
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9341 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9342 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9344 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9349 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9350 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9351 $as_echo_n "(cached) " >&6
9352 else
9353 ac_check_lib_save_LIBS=$LIBS
9354 LIBS="-lxml2 $ac_xml_libs $LIBS"
9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9358 /* Override any GCC internal prototype to avoid an error.
9359 Use char because int might match the return type of a GCC
9360 builtin and then its argument prototype would still apply. */
9361 #ifdef __cplusplus
9362 extern "C"
9363 #endif
9364 char xmlFirstElementChild ();
9366 main ()
9368 return xmlFirstElementChild ();
9370 return 0;
9372 _ACEOF
9373 if ac_fn_c_try_link "$LINENO"; then :
9374 ac_cv_lib_xml2_xmlFirstElementChild=yes
9375 else
9376 ac_cv_lib_xml2_xmlFirstElementChild=no
9378 rm -f core conftest.err conftest.$ac_objext \
9379 conftest$ac_exeext conftest.$ac_ext
9380 LIBS=$ac_check_lib_save_LIBS
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9383 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9384 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9386 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9390 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9392 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9394 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9399 CPPFLAGS="$ac_save_CPPFLAGS"
9401 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9402 case "x$with_xml" in
9403 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9404 xno) ;;
9405 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9406 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9407 esac
9410 if test "x$with_xslt" != "xno"
9411 then
9412 if test "$PKG_CONFIG" != "false"
9413 then
9414 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9415 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9416 else
9417 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9418 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9420 ac_save_CPPFLAGS="$CPPFLAGS"
9421 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9422 for ac_header in libxslt/pattern.h libxslt/transform.h
9423 do :
9424 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9425 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9426 # include <libxslt/pattern.h>
9427 #endif
9429 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9430 cat >>confdefs.h <<_ACEOF
9431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9432 _ACEOF
9436 done
9438 CPPFLAGS="$ac_save_CPPFLAGS"
9439 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9440 then
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9442 $as_echo_n "checking for -lxslt... " >&6; }
9443 if ${ac_cv_lib_soname_xslt+:} false; then :
9444 $as_echo_n "(cached) " >&6
9445 else
9446 ac_check_soname_save_LIBS=$LIBS
9447 LIBS="-lxslt $ac_xslt_libs $LIBS"
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9451 /* Override any GCC internal prototype to avoid an error.
9452 Use char because int might match the return type of a GCC
9453 builtin and then its argument prototype would still apply. */
9454 #ifdef __cplusplus
9455 extern "C"
9456 #endif
9457 char xsltCompilePattern ();
9459 main ()
9461 return xsltCompilePattern ();
9463 return 0;
9465 _ACEOF
9466 if ac_fn_c_try_link "$LINENO"; then :
9467 case "$LIBEXT" in
9468 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9469 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'` ;;
9470 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9471 esac
9473 rm -f core conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext conftest.$ac_ext
9475 LIBS=$ac_check_soname_save_LIBS
9477 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9479 $as_echo "not found" >&6; }
9481 else
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9483 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9485 cat >>confdefs.h <<_ACEOF
9486 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9487 _ACEOF
9489 XSLTINCL="$ac_xslt_cflags"
9493 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9494 case "x$with_xslt" in
9495 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9496 xno) ;;
9497 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9498 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9499 esac
9502 if test "x$with_dbus" != "xno"
9503 then
9504 ac_save_CPPFLAGS="$CPPFLAGS"
9505 if test "$PKG_CONFIG" != "false"
9506 then
9507 ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`"
9508 ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`"
9509 CPPFLAGS="$CPPFLAGS $ac_dbus_cflags"
9511 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
9512 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
9514 $as_echo_n "checking for -ldbus-1... " >&6; }
9515 if ${ac_cv_lib_soname_dbus_1+:} false; then :
9516 $as_echo_n "(cached) " >&6
9517 else
9518 ac_check_soname_save_LIBS=$LIBS
9519 LIBS="-ldbus-1 $ac_dbus_libs $LIBS"
9520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521 /* end confdefs.h. */
9523 /* Override any GCC internal prototype to avoid an error.
9524 Use char because int might match the return type of a GCC
9525 builtin and then its argument prototype would still apply. */
9526 #ifdef __cplusplus
9527 extern "C"
9528 #endif
9529 char dbus_connection_close ();
9531 main ()
9533 return dbus_connection_close ();
9535 return 0;
9537 _ACEOF
9538 if ac_fn_c_try_link "$LINENO"; then :
9539 case "$LIBEXT" in
9540 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9541 dylib) ac_cv_lib_soname_dbus_1=`otool -L conftest$ac_exeext | grep "libdbus-1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libdbus-1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9542 *) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9543 esac
9545 rm -f core conftest.err conftest.$ac_objext \
9546 conftest$ac_exeext conftest.$ac_ext
9547 LIBS=$ac_check_soname_save_LIBS
9549 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9551 $as_echo "not found" >&6; }
9553 else
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
9555 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
9557 cat >>confdefs.h <<_ACEOF
9558 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
9559 _ACEOF
9561 DBUSINCL="$ac_dbus_cflags"
9567 CPPFLAGS="$ac_save_CPPFLAGS"
9569 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
9570 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9571 case "x$with_dbus" in
9572 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9573 xno) ;;
9574 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
9575 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
9576 esac
9579 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
9580 then
9581 ac_save_CPPFLAGS="$CPPFLAGS"
9582 if test "$PKG_CONFIG" != "false"
9583 then
9584 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9585 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9586 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9588 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
9589 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9591 $as_echo_n "checking for -lhal... " >&6; }
9592 if ${ac_cv_lib_soname_hal+:} false; then :
9593 $as_echo_n "(cached) " >&6
9594 else
9595 ac_check_soname_save_LIBS=$LIBS
9596 LIBS="-lhal $ac_hal_libs $LIBS"
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9600 /* Override any GCC internal prototype to avoid an error.
9601 Use char because int might match the return type of a GCC
9602 builtin and then its argument prototype would still apply. */
9603 #ifdef __cplusplus
9604 extern "C"
9605 #endif
9606 char libhal_ctx_new ();
9608 main ()
9610 return libhal_ctx_new ();
9612 return 0;
9614 _ACEOF
9615 if ac_fn_c_try_link "$LINENO"; then :
9616 case "$LIBEXT" in
9617 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9618 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'` ;;
9619 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9620 esac
9622 rm -f core conftest.err conftest.$ac_objext \
9623 conftest$ac_exeext conftest.$ac_ext
9624 LIBS=$ac_check_soname_save_LIBS
9626 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9628 $as_echo "not found" >&6; }
9630 else
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9632 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9634 cat >>confdefs.h <<_ACEOF
9635 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9636 _ACEOF
9638 HALINCL="$ac_hal_cflags"
9644 CPPFLAGS="$ac_save_CPPFLAGS"
9645 if test "x$ac_cv_lib_soname_hal" = "x" -a \
9646 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9647 case "x$with_hal" in
9648 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
9649 xno) ;;
9650 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
9651 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9652 esac
9656 if test "x$with_gnutls" != "xno"
9657 then
9658 ac_save_CPPFLAGS="$CPPFLAGS"
9659 if test "$PKG_CONFIG" != "false"
9660 then
9661 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9662 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9663 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9665 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9666 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h. */
9669 #include <gnutls/gnutls.h>
9671 main ()
9673 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
9675 return 0;
9677 _ACEOF
9678 if ac_fn_c_try_compile "$LINENO"; then :
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9680 $as_echo_n "checking for -lgnutls... " >&6; }
9681 if ${ac_cv_lib_soname_gnutls+:} false; then :
9682 $as_echo_n "(cached) " >&6
9683 else
9684 ac_check_soname_save_LIBS=$LIBS
9685 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h. */
9689 /* Override any GCC internal prototype to avoid an error.
9690 Use char because int might match the return type of a GCC
9691 builtin and then its argument prototype would still apply. */
9692 #ifdef __cplusplus
9693 extern "C"
9694 #endif
9695 char gnutls_global_init ();
9697 main ()
9699 return gnutls_global_init ();
9701 return 0;
9703 _ACEOF
9704 if ac_fn_c_try_link "$LINENO"; then :
9705 case "$LIBEXT" in
9706 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9707 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'` ;;
9708 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9709 esac
9711 rm -f core conftest.err conftest.$ac_objext \
9712 conftest$ac_exeext conftest.$ac_ext
9713 LIBS=$ac_check_soname_save_LIBS
9715 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9717 $as_echo "not found" >&6; }
9719 else
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9721 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9723 cat >>confdefs.h <<_ACEOF
9724 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9725 _ACEOF
9727 GNUTLSINCL="$ac_gnutls_cflags"
9731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9735 CPPFLAGS="$ac_save_CPPFLAGS"
9737 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9738 case "x$with_gnutls" in
9739 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9740 xno) ;;
9741 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9742 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9743 esac
9746 CURSESLIBS=""
9747 if test "$ac_cv_header_ncurses_h" = "yes"
9748 then
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9750 $as_echo_n "checking for -lncurses... " >&6; }
9751 if ${ac_cv_lib_soname_ncurses+:} false; then :
9752 $as_echo_n "(cached) " >&6
9753 else
9754 ac_check_soname_save_LIBS=$LIBS
9755 LIBS="-lncurses $LIBS"
9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h. */
9759 /* Override any GCC internal prototype to avoid an error.
9760 Use char because int might match the return type of a GCC
9761 builtin and then its argument prototype would still apply. */
9762 #ifdef __cplusplus
9763 extern "C"
9764 #endif
9765 char waddch ();
9767 main ()
9769 return waddch ();
9771 return 0;
9773 _ACEOF
9774 if ac_fn_c_try_link "$LINENO"; then :
9775 case "$LIBEXT" in
9776 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9777 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'` ;;
9778 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9779 esac
9781 rm -f core conftest.err conftest.$ac_objext \
9782 conftest$ac_exeext conftest.$ac_ext
9783 LIBS=$ac_check_soname_save_LIBS
9785 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9787 $as_echo "not found" >&6; }
9789 else
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9791 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9793 cat >>confdefs.h <<_ACEOF
9794 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9795 _ACEOF
9797 CURSESLIBS="-lncurses"
9799 elif test "$ac_cv_header_curses_h" = "yes"
9800 then
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9802 $as_echo_n "checking for -lcurses... " >&6; }
9803 if ${ac_cv_lib_soname_curses+:} false; then :
9804 $as_echo_n "(cached) " >&6
9805 else
9806 ac_check_soname_save_LIBS=$LIBS
9807 LIBS="-lcurses $LIBS"
9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h. */
9811 /* Override any GCC internal prototype to avoid an error.
9812 Use char because int might match the return type of a GCC
9813 builtin and then its argument prototype would still apply. */
9814 #ifdef __cplusplus
9815 extern "C"
9816 #endif
9817 char waddch ();
9819 main ()
9821 return waddch ();
9823 return 0;
9825 _ACEOF
9826 if ac_fn_c_try_link "$LINENO"; then :
9827 case "$LIBEXT" in
9828 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9829 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'` ;;
9830 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9831 esac
9833 rm -f core conftest.err conftest.$ac_objext \
9834 conftest$ac_exeext conftest.$ac_ext
9835 LIBS=$ac_check_soname_save_LIBS
9837 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9839 $as_echo "not found" >&6; }
9841 else
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9843 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9845 cat >>confdefs.h <<_ACEOF
9846 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9847 _ACEOF
9849 CURSESLIBS="-lcurses"
9852 ac_save_LIBS="$LIBS"
9853 LIBS="$LIBS $CURSESLIBS"
9854 for ac_func in mousemask
9855 do :
9856 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9857 if test "x$ac_cv_func_mousemask" = xyes; then :
9858 cat >>confdefs.h <<_ACEOF
9859 #define HAVE_MOUSEMASK 1
9860 _ACEOF
9863 done
9865 LIBS="$ac_save_LIBS"
9866 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9867 case "x$with_curses" in
9868 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9869 xno) ;;
9870 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9871 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9872 esac
9875 if test "x$with_sane" != "xno"
9876 then
9877 ac_save_CPPFLAGS="$CPPFLAGS"
9878 # Extract the first word of "sane-config", so it can be a program name with args.
9879 set dummy sane-config; ac_word=$2
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9881 $as_echo_n "checking for $ac_word... " >&6; }
9882 if ${ac_cv_prog_sane_devel+:} false; then :
9883 $as_echo_n "(cached) " >&6
9884 else
9885 if test -n "$sane_devel"; then
9886 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9887 else
9888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9889 for as_dir in $PATH
9891 IFS=$as_save_IFS
9892 test -z "$as_dir" && as_dir=.
9893 for ac_exec_ext in '' $ac_executable_extensions; do
9894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9895 ac_cv_prog_sane_devel="sane-config"
9896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9897 break 2
9899 done
9900 done
9901 IFS=$as_save_IFS
9903 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9906 sane_devel=$ac_cv_prog_sane_devel
9907 if test -n "$sane_devel"; then
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9909 $as_echo "$sane_devel" >&6; }
9910 else
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9912 $as_echo "no" >&6; }
9916 if test "$sane_devel" != "no"
9917 then
9918 ac_sane_incl="`$sane_devel --cflags`"
9919 ac_sane_libs="`$sane_devel --ldflags`"
9920 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9922 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9923 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9925 $as_echo_n "checking for -lsane... " >&6; }
9926 if ${ac_cv_lib_soname_sane+:} false; then :
9927 $as_echo_n "(cached) " >&6
9928 else
9929 ac_check_soname_save_LIBS=$LIBS
9930 LIBS="-lsane $ac_sane_libs $LIBS"
9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932 /* end confdefs.h. */
9934 /* Override any GCC internal prototype to avoid an error.
9935 Use char because int might match the return type of a GCC
9936 builtin and then its argument prototype would still apply. */
9937 #ifdef __cplusplus
9938 extern "C"
9939 #endif
9940 char sane_init ();
9942 main ()
9944 return sane_init ();
9946 return 0;
9948 _ACEOF
9949 if ac_fn_c_try_link "$LINENO"; then :
9950 case "$LIBEXT" in
9951 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9952 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'` ;;
9953 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9954 esac
9956 rm -f core conftest.err conftest.$ac_objext \
9957 conftest$ac_exeext conftest.$ac_ext
9958 LIBS=$ac_check_soname_save_LIBS
9960 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9962 $as_echo "not found" >&6; }
9964 else
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9966 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9968 cat >>confdefs.h <<_ACEOF
9969 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9970 _ACEOF
9972 SANEINCL="$ac_sane_incl"
9978 CPPFLAGS="$ac_save_CPPFLAGS"
9980 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9981 case "x$with_sane" in
9982 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9983 xno) ;;
9984 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9985 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9986 esac
9989 if test "x$with_v4l" != "xno"
9990 then
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9992 $as_echo_n "checking for -lv4l1... " >&6; }
9993 if ${ac_cv_lib_soname_v4l1+:} false; then :
9994 $as_echo_n "(cached) " >&6
9995 else
9996 ac_check_soname_save_LIBS=$LIBS
9997 LIBS="-lv4l1 $LIBS"
9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999 /* end confdefs.h. */
10001 /* Override any GCC internal prototype to avoid an error.
10002 Use char because int might match the return type of a GCC
10003 builtin and then its argument prototype would still apply. */
10004 #ifdef __cplusplus
10005 extern "C"
10006 #endif
10007 char v4l1_open ();
10009 main ()
10011 return v4l1_open ();
10013 return 0;
10015 _ACEOF
10016 if ac_fn_c_try_link "$LINENO"; then :
10017 case "$LIBEXT" in
10018 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10019 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'` ;;
10020 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10021 esac
10023 rm -f core conftest.err conftest.$ac_objext \
10024 conftest$ac_exeext conftest.$ac_ext
10025 LIBS=$ac_check_soname_save_LIBS
10027 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10029 $as_echo "not found" >&6; }
10031 else
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10033 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10035 cat >>confdefs.h <<_ACEOF
10036 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10037 _ACEOF
10042 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10043 case "x$with_v4l" in
10044 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10045 xno) ;;
10046 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10047 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10048 esac
10051 if test "x$with_gphoto" != "xno"
10052 then
10053 ac_save_CPPFLAGS="$CPPFLAGS"
10054 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10055 set dummy gphoto2-config; ac_word=$2
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10057 $as_echo_n "checking for $ac_word... " >&6; }
10058 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10059 $as_echo_n "(cached) " >&6
10060 else
10061 if test -n "$gphoto2_devel"; then
10062 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10063 else
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $PATH
10067 IFS=$as_save_IFS
10068 test -z "$as_dir" && as_dir=.
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10071 ac_cv_prog_gphoto2_devel="gphoto2-config"
10072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073 break 2
10075 done
10076 done
10077 IFS=$as_save_IFS
10079 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10082 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10083 if test -n "$gphoto2_devel"; then
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10085 $as_echo "$gphoto2_devel" >&6; }
10086 else
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10092 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10093 set dummy gphoto2-port-config; ac_word=$2
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10095 $as_echo_n "checking for $ac_word... " >&6; }
10096 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10097 $as_echo_n "(cached) " >&6
10098 else
10099 if test -n "$gphoto2port_devel"; then
10100 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10101 else
10102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10103 for as_dir in $PATH
10105 IFS=$as_save_IFS
10106 test -z "$as_dir" && as_dir=.
10107 for ac_exec_ext in '' $ac_executable_extensions; do
10108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10109 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10111 break 2
10113 done
10114 done
10115 IFS=$as_save_IFS
10117 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10120 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10121 if test -n "$gphoto2port_devel"; then
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10123 $as_echo "$gphoto2port_devel" >&6; }
10124 else
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126 $as_echo "no" >&6; }
10130 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10131 then
10132 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10133 ac_gphoto2_libs=""
10134 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10136 case "$i" in
10137 -L/usr/lib|-L/usr/lib64) ;;
10138 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10139 esac
10140 done
10141 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10143 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10144 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10145 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10147 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10148 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10149 $as_echo_n "(cached) " >&6
10150 else
10151 ac_check_lib_save_LIBS=$LIBS
10152 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h. */
10156 /* Override any GCC internal prototype to avoid an error.
10157 Use char because int might match the return type of a GCC
10158 builtin and then its argument prototype would still apply. */
10159 #ifdef __cplusplus
10160 extern "C"
10161 #endif
10162 char gp_camera_new ();
10164 main ()
10166 return gp_camera_new ();
10168 return 0;
10170 _ACEOF
10171 if ac_fn_c_try_link "$LINENO"; then :
10172 ac_cv_lib_gphoto2_gp_camera_new=yes
10173 else
10174 ac_cv_lib_gphoto2_gp_camera_new=no
10176 rm -f core conftest.err conftest.$ac_objext \
10177 conftest$ac_exeext conftest.$ac_ext
10178 LIBS=$ac_check_lib_save_LIBS
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10181 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10182 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10184 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10186 GPHOTO2LIBS="$ac_gphoto2_libs"
10188 GPHOTO2INCL="$ac_gphoto2_incl"
10195 CPPFLAGS="$ac_save_CPPFLAGS"
10197 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10198 case "x$with_gphoto" in
10199 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10200 xno) ;;
10201 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10202 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10203 esac
10207 if test "$ac_cv_header_resolv_h" = "yes"
10208 then
10209 ac_save_LIBS="$LIBS"
10210 for lib in '' -lresolv
10212 LIBS="$lib $ac_save_LIBS"
10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h. */
10215 #ifdef HAVE_NETINET_IN_H
10216 #include <netinet/in.h>
10217 #endif
10218 #include <resolv.h>
10220 main ()
10222 res_query("foo",ns_c_in,0,0,0);
10224 return 0;
10226 _ACEOF
10227 if ac_fn_c_try_link "$LINENO"; then :
10229 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10231 RESOLVLIBS="$lib"
10234 rm -f core conftest.err conftest.$ac_objext \
10235 conftest$ac_exeext conftest.$ac_ext
10236 if test "${RESOLVLIBS+set}" = set; then
10237 break
10239 done
10240 LIBS="$ac_save_LIBS"
10243 LCMSLIBS=""
10245 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10246 then
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10248 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10249 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10250 $as_echo_n "(cached) " >&6
10251 else
10252 ac_check_lib_save_LIBS=$LIBS
10253 LIBS="-llcms $LIBS"
10254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255 /* end confdefs.h. */
10257 /* Override any GCC internal prototype to avoid an error.
10258 Use char because int might match the return type of a GCC
10259 builtin and then its argument prototype would still apply. */
10260 #ifdef __cplusplus
10261 extern "C"
10262 #endif
10263 char cmsOpenProfileFromFile ();
10265 main ()
10267 return cmsOpenProfileFromFile ();
10269 return 0;
10271 _ACEOF
10272 if ac_fn_c_try_link "$LINENO"; then :
10273 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10274 else
10275 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10277 rm -f core conftest.err conftest.$ac_objext \
10278 conftest$ac_exeext conftest.$ac_ext
10279 LIBS=$ac_check_lib_save_LIBS
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10282 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10283 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10285 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10287 LCMSLIBS="-llcms"
10291 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10292 case "x$with_cms" in
10293 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10294 xno) ;;
10295 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10296 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10297 esac
10300 if test "x$with_freetype" != "xno"
10301 then
10302 for ac_prog in freetype-config freetype2-config
10304 # Extract the first word of "$ac_prog", so it can be a program name with args.
10305 set dummy $ac_prog; ac_word=$2
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10307 $as_echo_n "checking for $ac_word... " >&6; }
10308 if ${ac_cv_prog_ft_devel+:} false; then :
10309 $as_echo_n "(cached) " >&6
10310 else
10311 if test -n "$ft_devel"; then
10312 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10313 else
10314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10315 for as_dir in $PATH
10317 IFS=$as_save_IFS
10318 test -z "$as_dir" && as_dir=.
10319 for ac_exec_ext in '' $ac_executable_extensions; do
10320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10321 ac_cv_prog_ft_devel="$ac_prog"
10322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10323 break 2
10325 done
10326 done
10327 IFS=$as_save_IFS
10331 ft_devel=$ac_cv_prog_ft_devel
10332 if test -n "$ft_devel"; then
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10334 $as_echo "$ft_devel" >&6; }
10335 else
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10337 $as_echo "no" >&6; }
10341 test -n "$ft_devel" && break
10342 done
10343 test -n "$ft_devel" || ft_devel="no"
10345 if test "$ft_devel" != "no"
10346 then
10347 ac_freetype_incl=`$ft_devel --cflags`
10348 ac_freetype_libs=`$ft_devel --libs`
10350 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10352 $as_echo_n "checking for -lfreetype... " >&6; }
10353 if ${ac_cv_lib_soname_freetype+:} false; then :
10354 $as_echo_n "(cached) " >&6
10355 else
10356 ac_check_soname_save_LIBS=$LIBS
10357 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359 /* end confdefs.h. */
10361 /* Override any GCC internal prototype to avoid an error.
10362 Use char because int might match the return type of a GCC
10363 builtin and then its argument prototype would still apply. */
10364 #ifdef __cplusplus
10365 extern "C"
10366 #endif
10367 char FT_Init_FreeType ();
10369 main ()
10371 return FT_Init_FreeType ();
10373 return 0;
10375 _ACEOF
10376 if ac_fn_c_try_link "$LINENO"; then :
10377 case "$LIBEXT" in
10378 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10379 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'` ;;
10380 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10381 esac
10383 rm -f core conftest.err conftest.$ac_objext \
10384 conftest$ac_exeext conftest.$ac_ext
10385 LIBS=$ac_check_soname_save_LIBS
10387 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10389 $as_echo "not found" >&6; }
10390 ft_lib=no
10391 else
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10393 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10395 cat >>confdefs.h <<_ACEOF
10396 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10397 _ACEOF
10399 ft_lib=yes
10401 if test "$ft_lib" = "yes"
10402 then
10403 ac_save_CPPFLAGS="$CPPFLAGS"
10404 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10405 for ac_header in ft2build.h \
10406 freetype/freetype.h \
10407 freetype/ftglyph.h \
10408 freetype/fttypes.h \
10409 freetype/tttables.h \
10410 freetype/ftsnames.h \
10411 freetype/ttnameid.h \
10412 freetype/ftoutln.h \
10413 freetype/ftwinfnt.h \
10414 freetype/ftmodapi.h \
10415 freetype/ftlcdfil.h
10416 do :
10417 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10418 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10419 # include <ft2build.h>
10420 #endif
10422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10423 cat >>confdefs.h <<_ACEOF
10424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10425 _ACEOF
10429 done
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10433 #include <ft2build.h>
10434 #include <freetype/fttrigon.h>
10435 _ACEOF
10436 if ac_fn_c_try_cpp "$LINENO"; then :
10438 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10440 wine_cv_fttrigon=yes
10441 else
10442 wine_cv_fttrigon=no
10444 rm -f conftest.err conftest.i conftest.$ac_ext
10445 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10447 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10449 cat >>confdefs.h <<_ACEOF
10450 #define HAVE_FT_TRUETYPEENGINETYPE 1
10451 _ACEOF
10456 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10457 then
10459 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10461 FREETYPELIBS="$ac_freetype_libs"
10463 FREETYPEINCL="$ac_freetype_incl"
10468 if test "x$FREETYPELIBS" = "x"; then :
10469 case "x$with_freetype" in
10470 xno) ;;
10471 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10472 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10473 esac
10475 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10478 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10479 if ${ac_cv_c_ppdev+:} false; then :
10480 $as_echo_n "(cached) " >&6
10481 else
10482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483 /* end confdefs.h. */
10484 #ifdef HAVE_SYS_IOCTL_H
10485 # include <sys/ioctl.h>
10486 #endif
10487 #include <linux/ppdev.h>
10489 main ()
10491 ioctl (1,PPCLAIM,0)
10493 return 0;
10495 _ACEOF
10496 if ac_fn_c_try_compile "$LINENO"; then :
10497 ac_cv_c_ppdev="yes"
10498 else
10499 ac_cv_c_ppdev="no"
10501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10504 $as_echo "$ac_cv_c_ppdev" >&6; }
10505 if test "$ac_cv_c_ppdev" = "yes"
10506 then
10508 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10512 ac_wine_check_funcs_save_LIBS="$LIBS"
10513 LIBS="$LIBS $LIBPTHREAD"
10514 for ac_func in \
10515 pthread_attr_get_np \
10516 pthread_getattr_np \
10517 pthread_get_stackaddr_np \
10518 pthread_get_stacksize_np
10519 do :
10520 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10521 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10522 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10523 cat >>confdefs.h <<_ACEOF
10524 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10525 _ACEOF
10528 done
10530 LIBS="$ac_wine_check_funcs_save_LIBS"
10532 if test "$ac_cv_header_zlib_h" = "yes"
10533 then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10535 $as_echo_n "checking for inflate in -lz... " >&6; }
10536 if ${ac_cv_lib_z_inflate+:} false; then :
10537 $as_echo_n "(cached) " >&6
10538 else
10539 ac_check_lib_save_LIBS=$LIBS
10540 LIBS="-lz $LIBS"
10541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10542 /* end confdefs.h. */
10544 /* Override any GCC internal prototype to avoid an error.
10545 Use char because int might match the return type of a GCC
10546 builtin and then its argument prototype would still apply. */
10547 #ifdef __cplusplus
10548 extern "C"
10549 #endif
10550 char inflate ();
10552 main ()
10554 return inflate ();
10556 return 0;
10558 _ACEOF
10559 if ac_fn_c_try_link "$LINENO"; then :
10560 ac_cv_lib_z_inflate=yes
10561 else
10562 ac_cv_lib_z_inflate=no
10564 rm -f core conftest.err conftest.$ac_objext \
10565 conftest$ac_exeext conftest.$ac_ext
10566 LIBS=$ac_check_lib_save_LIBS
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10569 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10570 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10572 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10574 ZLIB="-lz"
10579 if test "x$ZLIB" = "x"; then :
10580 case "x$with_zlib" in
10581 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10582 xno) ;;
10583 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10584 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10585 esac
10588 if test "x$enable_tools" != xno
10589 then
10590 if test "$ac_cv_header_gettext_po_h" = "yes"
10591 then
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10593 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10594 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10595 $as_echo_n "(cached) " >&6
10596 else
10597 ac_check_lib_save_LIBS=$LIBS
10598 LIBS="-lgettextpo $LIBS"
10599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10600 /* end confdefs.h. */
10602 /* Override any GCC internal prototype to avoid an error.
10603 Use char because int might match the return type of a GCC
10604 builtin and then its argument prototype would still apply. */
10605 #ifdef __cplusplus
10606 extern "C"
10607 #endif
10608 char po_message_msgctxt ();
10610 main ()
10612 return po_message_msgctxt ();
10614 return 0;
10616 _ACEOF
10617 if ac_fn_c_try_link "$LINENO"; then :
10618 ac_cv_lib_gettextpo_po_message_msgctxt=yes
10619 else
10620 ac_cv_lib_gettextpo_po_message_msgctxt=no
10622 rm -f core conftest.err conftest.$ac_objext \
10623 conftest$ac_exeext conftest.$ac_ext
10624 LIBS=$ac_check_lib_save_LIBS
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10627 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10628 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10630 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10632 LIBGETTEXTPO="-lgettextpo"
10637 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
10638 case "x$with_gettextpo" in
10639 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
10640 xno) ;;
10641 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
10642 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10643 esac
10647 if test "x$with_gstreamer" != "xno"
10648 then
10649 ac_save_CPPFLAGS="$CPPFLAGS"
10650 if test "$PKG_CONFIG" != "false"; then
10651 ac_gst_incl=""
10652 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10654 case "$i" in
10655 -I*) ac_gst_incl="$ac_gst_incl $i";;
10656 esac
10657 done
10658 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10659 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10660 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10661 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10662 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10663 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10665 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h. */
10668 #include <gst/app/gstappsink.h>
10670 main ()
10672 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
10674 return 0;
10676 _ACEOF
10677 if ac_fn_c_try_compile "$LINENO"; then :
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10679 $as_echo "yes" >&6; }
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10681 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10682 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10683 $as_echo_n "(cached) " >&6
10684 else
10685 ac_check_lib_save_LIBS=$LIBS
10686 LIBS="-lgstreamer-0.10 $LIBS"
10687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h. */
10690 /* Override any GCC internal prototype to avoid an error.
10691 Use char because int might match the return type of a GCC
10692 builtin and then its argument prototype would still apply. */
10693 #ifdef __cplusplus
10694 extern "C"
10695 #endif
10696 char gst_pad_get_caps_reffed ();
10698 main ()
10700 return gst_pad_get_caps_reffed ();
10702 return 0;
10704 _ACEOF
10705 if ac_fn_c_try_link "$LINENO"; then :
10706 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10707 else
10708 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10710 rm -f core conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
10712 LIBS=$ac_check_lib_save_LIBS
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10715 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10716 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10718 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10719 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10720 $as_echo_n "(cached) " >&6
10721 else
10722 ac_check_lib_save_LIBS=$LIBS
10723 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10727 /* Override any GCC internal prototype to avoid an error.
10728 Use char because int might match the return type of a GCC
10729 builtin and then its argument prototype would still apply. */
10730 #ifdef __cplusplus
10731 extern "C"
10732 #endif
10733 char gst_app_buffer_new ();
10735 main ()
10737 return gst_app_buffer_new ();
10739 return 0;
10741 _ACEOF
10742 if ac_fn_c_try_link "$LINENO"; then :
10743 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10744 else
10745 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10747 rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10749 LIBS=$ac_check_lib_save_LIBS
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10752 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10753 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10754 GSTREAMER_LIBS="$ac_gst_libs"
10756 GSTREAMER_INCL="$ac_gst_incl"
10762 else
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764 $as_echo "no" >&6; }
10766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10774 CPPFLAGS="$ac_save_CPPFLAGS"
10776 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10777 case "x$with_gstreamer" in
10778 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10779 xno) ;;
10780 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10781 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10782 esac
10784 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10786 ALSALIBS=""
10788 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10789 then
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10791 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10792 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10793 $as_echo_n "(cached) " >&6
10794 else
10795 ac_check_lib_save_LIBS=$LIBS
10796 LIBS="-lasound $LIBS"
10797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h. */
10800 /* Override any GCC internal prototype to avoid an error.
10801 Use char because int might match the return type of a GCC
10802 builtin and then its argument prototype would still apply. */
10803 #ifdef __cplusplus
10804 extern "C"
10805 #endif
10806 char snd_pcm_hw_params_get_access_mask ();
10808 main ()
10810 return snd_pcm_hw_params_get_access_mask ();
10812 return 0;
10814 _ACEOF
10815 if ac_fn_c_try_link "$LINENO"; then :
10816 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10817 else
10818 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10820 rm -f core conftest.err conftest.$ac_objext \
10821 conftest$ac_exeext conftest.$ac_ext
10822 LIBS=$ac_check_lib_save_LIBS
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10825 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10826 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10829 #ifdef HAVE_ALSA_ASOUNDLIB_H
10830 #include <alsa/asoundlib.h>
10831 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10832 #include <sys/asoundlib.h>
10833 #endif
10835 main ()
10837 snd_pcm_hw_params_get_access_mask(NULL, NULL)
10839 return 0;
10841 _ACEOF
10842 if ac_fn_c_try_compile "$LINENO"; then :
10843 ALSALIBS="-lasound"
10845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10850 if test "x$with_oss" != xno
10851 then
10852 ac_save_CPPFLAGS="$CPPFLAGS"
10853 if test -f /etc/oss.conf
10854 then
10855 . /etc/oss.conf
10857 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10858 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10859 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10860 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10861 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
10863 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
10865 cat >>confdefs.h <<_ACEOF
10866 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
10867 _ACEOF
10869 OSS4INCL="$ac_oss_incl"
10876 CPPFLAGS="$ac_save_CPPFLAGS"
10877 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
10878 then
10879 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10884 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10885 then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10887 $as_echo_n "checking for -lcapi20... " >&6; }
10888 if ${ac_cv_lib_soname_capi20+:} false; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 ac_check_soname_save_LIBS=$LIBS
10892 LIBS="-lcapi20 $LIBS"
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10896 /* Override any GCC internal prototype to avoid an error.
10897 Use char because int might match the return type of a GCC
10898 builtin and then its argument prototype would still apply. */
10899 #ifdef __cplusplus
10900 extern "C"
10901 #endif
10902 char capi20_register ();
10904 main ()
10906 return capi20_register ();
10908 return 0;
10910 _ACEOF
10911 if ac_fn_c_try_link "$LINENO"; then :
10912 case "$LIBEXT" in
10913 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10914 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'` ;;
10915 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10916 esac
10918 rm -f core conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10920 LIBS=$ac_check_soname_save_LIBS
10922 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10924 $as_echo "not found" >&6; }
10926 else
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10928 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10930 cat >>confdefs.h <<_ACEOF
10931 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10932 _ACEOF
10937 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10938 case "x$with_capi" in
10939 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10940 xno) ;;
10941 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10942 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10943 esac
10946 CUPSINCL=""
10948 if test "x$with_cups" != "xno"
10949 then
10950 ac_save_CPPFLAGS="$CPPFLAGS"
10951 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10952 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10953 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10954 for ac_header in cups/cups.h
10955 do :
10956 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10957 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
10958 cat >>confdefs.h <<_ACEOF
10959 #define HAVE_CUPS_CUPS_H 1
10960 _ACEOF
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10962 $as_echo_n "checking for -lcups... " >&6; }
10963 if ${ac_cv_lib_soname_cups+:} false; then :
10964 $as_echo_n "(cached) " >&6
10965 else
10966 ac_check_soname_save_LIBS=$LIBS
10967 LIBS="-lcups $ac_cups_libs $LIBS"
10968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10969 /* end confdefs.h. */
10971 /* Override any GCC internal prototype to avoid an error.
10972 Use char because int might match the return type of a GCC
10973 builtin and then its argument prototype would still apply. */
10974 #ifdef __cplusplus
10975 extern "C"
10976 #endif
10977 char cupsGetDefault ();
10979 main ()
10981 return cupsGetDefault ();
10983 return 0;
10985 _ACEOF
10986 if ac_fn_c_try_link "$LINENO"; then :
10987 case "$LIBEXT" in
10988 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10989 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'` ;;
10990 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10991 esac
10993 rm -f core conftest.err conftest.$ac_objext \
10994 conftest$ac_exeext conftest.$ac_ext
10995 LIBS=$ac_check_soname_save_LIBS
10997 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10999 $as_echo "not found" >&6; }
11001 else
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11003 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11005 cat >>confdefs.h <<_ACEOF
11006 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11007 _ACEOF
11009 CUPSINCL="$ac_cups_cflags"
11013 done
11015 CPPFLAGS="$ac_save_CPPFLAGS"
11017 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11018 case "x$with_cups" in
11019 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11020 xno) ;;
11021 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11022 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11023 esac
11026 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11027 then
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11029 $as_echo_n "checking for -lfontconfig... " >&6; }
11030 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11033 ac_check_soname_save_LIBS=$LIBS
11034 LIBS="-lfontconfig $LIBS"
11035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 char FcInit ();
11046 main ()
11048 return FcInit ();
11050 return 0;
11052 _ACEOF
11053 if ac_fn_c_try_link "$LINENO"; then :
11054 case "$LIBEXT" in
11055 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11056 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'` ;;
11057 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11058 esac
11060 rm -f core conftest.err conftest.$ac_objext \
11061 conftest$ac_exeext conftest.$ac_ext
11062 LIBS=$ac_check_soname_save_LIBS
11064 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11066 $as_echo "not found" >&6; }
11068 else
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11070 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11072 cat >>confdefs.h <<_ACEOF
11073 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11074 _ACEOF
11078 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11079 then
11080 ac_save_CPPFLAGS="$CPPFLAGS"
11081 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11082 $as_unset ac_cv_header_fontconfig_fontconfig_h
11083 for ac_header in fontconfig/fontconfig.h
11084 do :
11085 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11086 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11087 cat >>confdefs.h <<_ACEOF
11088 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11089 _ACEOF
11093 done
11095 CPPFLAGS="$ac_save_CPPFLAGS"
11096 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11097 then
11098 FONTCONFIGINCL="$X_CFLAGS"
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11101 $as_echo_n "checking for -lfontconfig... " >&6; }
11102 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11103 $as_echo_n "(cached) " >&6
11104 else
11105 ac_check_soname_save_LIBS=$LIBS
11106 LIBS="-lfontconfig $X_LIBS $LIBS"
11107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11110 /* Override any GCC internal prototype to avoid an error.
11111 Use char because int might match the return type of a GCC
11112 builtin and then its argument prototype would still apply. */
11113 #ifdef __cplusplus
11114 extern "C"
11115 #endif
11116 char FcInit ();
11118 main ()
11120 return FcInit ();
11122 return 0;
11124 _ACEOF
11125 if ac_fn_c_try_link "$LINENO"; then :
11126 case "$LIBEXT" in
11127 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11128 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'` ;;
11129 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11130 esac
11132 rm -f core conftest.err conftest.$ac_objext \
11133 conftest$ac_exeext conftest.$ac_ext
11134 LIBS=$ac_check_soname_save_LIBS
11136 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11138 $as_echo "not found" >&6; }
11140 else
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11142 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11144 cat >>confdefs.h <<_ACEOF
11145 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11146 _ACEOF
11152 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11153 case "x$with_fontconfig" in
11154 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11155 xno) ;;
11156 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11157 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11158 esac
11161 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11162 then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11164 $as_echo_n "checking for -lssl... " >&6; }
11165 if ${ac_cv_lib_soname_ssl+:} false; then :
11166 $as_echo_n "(cached) " >&6
11167 else
11168 ac_check_soname_save_LIBS=$LIBS
11169 LIBS="-lssl $LIBS"
11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h. */
11173 /* Override any GCC internal prototype to avoid an error.
11174 Use char because int might match the return type of a GCC
11175 builtin and then its argument prototype would still apply. */
11176 #ifdef __cplusplus
11177 extern "C"
11178 #endif
11179 char SSL_library_init ();
11181 main ()
11183 return SSL_library_init ();
11185 return 0;
11187 _ACEOF
11188 if ac_fn_c_try_link "$LINENO"; then :
11189 case "$LIBEXT" in
11190 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11191 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'` ;;
11192 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11193 esac
11195 rm -f core conftest.err conftest.$ac_objext \
11196 conftest$ac_exeext conftest.$ac_ext
11197 LIBS=$ac_check_soname_save_LIBS
11199 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11201 $as_echo "not found" >&6; }
11203 else
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11205 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11207 cat >>confdefs.h <<_ACEOF
11208 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11209 _ACEOF
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11214 $as_echo_n "checking for -lcrypto... " >&6; }
11215 if ${ac_cv_lib_soname_crypto+:} false; then :
11216 $as_echo_n "(cached) " >&6
11217 else
11218 ac_check_soname_save_LIBS=$LIBS
11219 LIBS="-lcrypto $LIBS"
11220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h. */
11223 /* Override any GCC internal prototype to avoid an error.
11224 Use char because int might match the return type of a GCC
11225 builtin and then its argument prototype would still apply. */
11226 #ifdef __cplusplus
11227 extern "C"
11228 #endif
11229 char BIO_new_socket ();
11231 main ()
11233 return BIO_new_socket ();
11235 return 0;
11237 _ACEOF
11238 if ac_fn_c_try_link "$LINENO"; then :
11239 case "$LIBEXT" in
11240 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11241 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'` ;;
11242 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11243 esac
11245 rm -f core conftest.err conftest.$ac_objext \
11246 conftest$ac_exeext conftest.$ac_ext
11247 LIBS=$ac_check_soname_save_LIBS
11249 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11251 $as_echo "not found" >&6; }
11253 else
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11255 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11257 cat >>confdefs.h <<_ACEOF
11258 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11259 _ACEOF
11264 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11265 case "x$with_openssl" in
11266 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11267 xno) ;;
11268 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11269 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11270 esac
11273 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11274 then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11276 $as_echo_n "checking for -lgsm... " >&6; }
11277 if ${ac_cv_lib_soname_gsm+:} false; then :
11278 $as_echo_n "(cached) " >&6
11279 else
11280 ac_check_soname_save_LIBS=$LIBS
11281 LIBS="-lgsm $LIBS"
11282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11283 /* end confdefs.h. */
11285 /* Override any GCC internal prototype to avoid an error.
11286 Use char because int might match the return type of a GCC
11287 builtin and then its argument prototype would still apply. */
11288 #ifdef __cplusplus
11289 extern "C"
11290 #endif
11291 char gsm_create ();
11293 main ()
11295 return gsm_create ();
11297 return 0;
11299 _ACEOF
11300 if ac_fn_c_try_link "$LINENO"; then :
11301 case "$LIBEXT" in
11302 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11303 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'` ;;
11304 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11305 esac
11307 rm -f core conftest.err conftest.$ac_objext \
11308 conftest$ac_exeext conftest.$ac_ext
11309 LIBS=$ac_check_soname_save_LIBS
11311 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11313 $as_echo "not found" >&6; }
11315 else
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11317 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11319 cat >>confdefs.h <<_ACEOF
11320 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11321 _ACEOF
11326 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11327 case "x$with_gsm" in
11328 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11329 xno) ;;
11330 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11331 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11332 esac
11335 if test "$ac_cv_header_jpeglib_h" = "yes"
11336 then
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11338 $as_echo_n "checking for -ljpeg... " >&6; }
11339 if ${ac_cv_lib_soname_jpeg+:} false; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 ac_check_soname_save_LIBS=$LIBS
11343 LIBS="-ljpeg $LIBS"
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11347 /* Override any GCC internal prototype to avoid an error.
11348 Use char because int might match the return type of a GCC
11349 builtin and then its argument prototype would still apply. */
11350 #ifdef __cplusplus
11351 extern "C"
11352 #endif
11353 char jpeg_start_decompress ();
11355 main ()
11357 return jpeg_start_decompress ();
11359 return 0;
11361 _ACEOF
11362 if ac_fn_c_try_link "$LINENO"; then :
11363 case "$LIBEXT" in
11364 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11365 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'` ;;
11366 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11367 esac
11369 rm -f core conftest.err conftest.$ac_objext \
11370 conftest$ac_exeext conftest.$ac_ext
11371 LIBS=$ac_check_soname_save_LIBS
11373 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11375 $as_echo "not found" >&6; }
11377 else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11379 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11381 cat >>confdefs.h <<_ACEOF
11382 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11383 _ACEOF
11388 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11389 case "x$with_jpeg" in
11390 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11391 xno) ;;
11392 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11393 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11394 esac
11397 if test "$ac_cv_header_png_h" = "yes"
11398 then
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11400 $as_echo_n "checking for -lpng... " >&6; }
11401 if ${ac_cv_lib_soname_png+:} false; then :
11402 $as_echo_n "(cached) " >&6
11403 else
11404 ac_check_soname_save_LIBS=$LIBS
11405 LIBS="-lpng -lm -lz $LIBS"
11406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407 /* end confdefs.h. */
11409 /* Override any GCC internal prototype to avoid an error.
11410 Use char because int might match the return type of a GCC
11411 builtin and then its argument prototype would still apply. */
11412 #ifdef __cplusplus
11413 extern "C"
11414 #endif
11415 char png_create_read_struct ();
11417 main ()
11419 return png_create_read_struct ();
11421 return 0;
11423 _ACEOF
11424 if ac_fn_c_try_link "$LINENO"; then :
11425 case "$LIBEXT" in
11426 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11427 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'` ;;
11428 *) 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'` ;;
11429 esac
11431 rm -f core conftest.err conftest.$ac_objext \
11432 conftest$ac_exeext conftest.$ac_ext
11433 LIBS=$ac_check_soname_save_LIBS
11435 if test "x$ac_cv_lib_soname_png" = "x"; then :
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11437 $as_echo "not found" >&6; }
11439 else
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11441 $as_echo "$ac_cv_lib_soname_png" >&6; }
11443 cat >>confdefs.h <<_ACEOF
11444 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11445 _ACEOF
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11450 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11451 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11452 $as_echo_n "(cached) " >&6
11453 else
11454 ac_check_lib_save_LIBS=$LIBS
11455 LIBS="-lpng -lm -lz $LIBS"
11456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457 /* end confdefs.h. */
11459 /* Override any GCC internal prototype to avoid an error.
11460 Use char because int might match the return type of a GCC
11461 builtin and then its argument prototype would still apply. */
11462 #ifdef __cplusplus
11463 extern "C"
11464 #endif
11465 char png_set_expand_gray_1_2_4_to_8 ();
11467 main ()
11469 return png_set_expand_gray_1_2_4_to_8 ();
11471 return 0;
11473 _ACEOF
11474 if ac_fn_c_try_link "$LINENO"; then :
11475 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11476 else
11477 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11479 rm -f core conftest.err conftest.$ac_objext \
11480 conftest$ac_exeext conftest.$ac_ext
11481 LIBS=$ac_check_lib_save_LIBS
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11484 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11485 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11487 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11492 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11493 then
11494 ac_save_CPPFLAGS="$CPPFLAGS"
11495 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11496 $as_unset ac_cv_header_png_h
11497 for ac_header in png.h
11498 do :
11499 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11500 if test "x$ac_cv_header_png_h" = xyes; then :
11501 cat >>confdefs.h <<_ACEOF
11502 #define HAVE_PNG_H 1
11503 _ACEOF
11507 done
11509 CPPFLAGS="$ac_save_CPPFLAGS"
11510 if test "$ac_cv_header_png_h" = "yes"
11511 then
11512 PNGINCL="$X_CFLAGS"
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11515 $as_echo_n "checking for -lpng... " >&6; }
11516 if ${ac_cv_lib_soname_png+:} false; then :
11517 $as_echo_n "(cached) " >&6
11518 else
11519 ac_check_soname_save_LIBS=$LIBS
11520 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h. */
11524 /* Override any GCC internal prototype to avoid an error.
11525 Use char because int might match the return type of a GCC
11526 builtin and then its argument prototype would still apply. */
11527 #ifdef __cplusplus
11528 extern "C"
11529 #endif
11530 char png_create_read_struct ();
11532 main ()
11534 return png_create_read_struct ();
11536 return 0;
11538 _ACEOF
11539 if ac_fn_c_try_link "$LINENO"; then :
11540 case "$LIBEXT" in
11541 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11542 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'` ;;
11543 *) 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'` ;;
11544 esac
11546 rm -f core conftest.err conftest.$ac_objext \
11547 conftest$ac_exeext conftest.$ac_ext
11548 LIBS=$ac_check_soname_save_LIBS
11550 if test "x$ac_cv_lib_soname_png" = "x"; then :
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11552 $as_echo "not found" >&6; }
11554 else
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11556 $as_echo "$ac_cv_lib_soname_png" >&6; }
11558 cat >>confdefs.h <<_ACEOF
11559 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11560 _ACEOF
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11565 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11566 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11567 $as_echo_n "(cached) " >&6
11568 else
11569 ac_check_lib_save_LIBS=$LIBS
11570 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h. */
11574 /* Override any GCC internal prototype to avoid an error.
11575 Use char because int might match the return type of a GCC
11576 builtin and then its argument prototype would still apply. */
11577 #ifdef __cplusplus
11578 extern "C"
11579 #endif
11580 char png_set_expand_gray_1_2_4_to_8 ();
11582 main ()
11584 return png_set_expand_gray_1_2_4_to_8 ();
11586 return 0;
11588 _ACEOF
11589 if ac_fn_c_try_link "$LINENO"; then :
11590 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11591 else
11592 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11594 rm -f core conftest.err conftest.$ac_objext \
11595 conftest$ac_exeext conftest.$ac_ext
11596 LIBS=$ac_check_lib_save_LIBS
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11599 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11600 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11601 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11607 if test "x$ac_cv_lib_soname_png" = "x"; then :
11608 case "x$with_png" in
11609 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11610 xno) ;;
11611 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11612 This is an error since --with-png was requested." "$LINENO" 5 ;;
11613 esac
11616 if test "$ac_cv_header_tiffio_h" = "yes"
11617 then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11619 $as_echo_n "checking for -ltiff... " >&6; }
11620 if ${ac_cv_lib_soname_tiff+:} false; then :
11621 $as_echo_n "(cached) " >&6
11622 else
11623 ac_check_soname_save_LIBS=$LIBS
11624 LIBS="-ltiff $LIBS"
11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h. */
11628 /* Override any GCC internal prototype to avoid an error.
11629 Use char because int might match the return type of a GCC
11630 builtin and then its argument prototype would still apply. */
11631 #ifdef __cplusplus
11632 extern "C"
11633 #endif
11634 char TIFFClientOpen ();
11636 main ()
11638 return TIFFClientOpen ();
11640 return 0;
11642 _ACEOF
11643 if ac_fn_c_try_link "$LINENO"; then :
11644 case "$LIBEXT" in
11645 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11646 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'` ;;
11647 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11648 esac
11650 rm -f core conftest.err conftest.$ac_objext \
11651 conftest$ac_exeext conftest.$ac_ext
11652 LIBS=$ac_check_soname_save_LIBS
11654 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11656 $as_echo "not found" >&6; }
11658 else
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11660 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11662 cat >>confdefs.h <<_ACEOF
11663 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11664 _ACEOF
11669 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11670 case "x$with_tiff" in
11671 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11672 xno) ;;
11673 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11674 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11675 esac
11678 if test "$ac_cv_header_mpg123_h" = "yes"
11679 then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11681 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11682 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11683 $as_echo_n "(cached) " >&6
11684 else
11685 ac_check_lib_save_LIBS=$LIBS
11686 LIBS="-lmpg123 $LIBS"
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11690 /* Override any GCC internal prototype to avoid an error.
11691 Use char because int might match the return type of a GCC
11692 builtin and then its argument prototype would still apply. */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 char mpg123_feed ();
11698 main ()
11700 return mpg123_feed ();
11702 return 0;
11704 _ACEOF
11705 if ac_fn_c_try_link "$LINENO"; then :
11706 ac_cv_lib_mpg123_mpg123_feed=yes
11707 else
11708 ac_cv_lib_mpg123_mpg123_feed=no
11710 rm -f core conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11712 LIBS=$ac_check_lib_save_LIBS
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11715 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11716 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11717 LIBMPG123="-lmpg123"
11722 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11723 case "x$with_mpg123" in
11724 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11725 xno) ;;
11726 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11727 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11728 esac
11730 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}
11732 if test "$ac_cv_header_AL_al_h" = "yes"
11733 then
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11735 $as_echo_n "checking for -lopenal... " >&6; }
11736 if ${ac_cv_lib_soname_openal+:} false; then :
11737 $as_echo_n "(cached) " >&6
11738 else
11739 ac_check_soname_save_LIBS=$LIBS
11740 LIBS="-lopenal $LIBS"
11741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11742 /* end confdefs.h. */
11744 /* Override any GCC internal prototype to avoid an error.
11745 Use char because int might match the return type of a GCC
11746 builtin and then its argument prototype would still apply. */
11747 #ifdef __cplusplus
11748 extern "C"
11749 #endif
11750 char alGetSource3i ();
11752 main ()
11754 return alGetSource3i ();
11756 return 0;
11758 _ACEOF
11759 if ac_fn_c_try_link "$LINENO"; then :
11760 case "$LIBEXT" in
11761 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11762 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'` ;;
11763 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11764 esac
11766 rm -f core conftest.err conftest.$ac_objext \
11767 conftest$ac_exeext conftest.$ac_ext
11768 LIBS=$ac_check_soname_save_LIBS
11770 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11772 $as_echo "not found" >&6; }
11774 else
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11776 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11778 cat >>confdefs.h <<_ACEOF
11779 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11780 _ACEOF
11782 LIBOPENAL="-lopenal"
11784 ac_cv_lib_openal=yes
11786 cat >>confdefs.h <<_ACEOF
11787 #define HAVE_OPENAL 1
11788 _ACEOF
11792 if test "x$ac_cv_lib_openal" != xyes; then :
11793 case "x$with_openal" in
11794 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11795 xno) ;;
11796 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11797 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11798 esac
11800 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11802 if test "$ac_cv_header_kstat_h" = "yes"
11803 then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11805 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11806 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
11807 $as_echo_n "(cached) " >&6
11808 else
11809 ac_check_lib_save_LIBS=$LIBS
11810 LIBS="-lkstat $LIBS"
11811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812 /* end confdefs.h. */
11814 /* Override any GCC internal prototype to avoid an error.
11815 Use char because int might match the return type of a GCC
11816 builtin and then its argument prototype would still apply. */
11817 #ifdef __cplusplus
11818 extern "C"
11819 #endif
11820 char kstat_open ();
11822 main ()
11824 return kstat_open ();
11826 return 0;
11828 _ACEOF
11829 if ac_fn_c_try_link "$LINENO"; then :
11830 ac_cv_lib_kstat_kstat_open=yes
11831 else
11832 ac_cv_lib_kstat_kstat_open=no
11834 rm -f core conftest.err conftest.$ac_objext \
11835 conftest$ac_exeext conftest.$ac_ext
11836 LIBS=$ac_check_lib_save_LIBS
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11839 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11840 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
11842 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11844 LIBKSTAT="-lkstat"
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11851 $as_echo_n "checking for -lodbc... " >&6; }
11852 if ${ac_cv_lib_soname_odbc+:} false; then :
11853 $as_echo_n "(cached) " >&6
11854 else
11855 ac_check_soname_save_LIBS=$LIBS
11856 LIBS="-lodbc $LIBS"
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h. */
11860 /* Override any GCC internal prototype to avoid an error.
11861 Use char because int might match the return type of a GCC
11862 builtin and then its argument prototype would still apply. */
11863 #ifdef __cplusplus
11864 extern "C"
11865 #endif
11866 char SQLConnect ();
11868 main ()
11870 return SQLConnect ();
11872 return 0;
11874 _ACEOF
11875 if ac_fn_c_try_link "$LINENO"; then :
11876 case "$LIBEXT" in
11877 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11878 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'` ;;
11879 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11880 esac
11882 rm -f core conftest.err conftest.$ac_objext \
11883 conftest$ac_exeext conftest.$ac_ext
11884 LIBS=$ac_check_soname_save_LIBS
11886 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11888 $as_echo "not found" >&6; }
11889 cat >>confdefs.h <<_ACEOF
11890 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11891 _ACEOF
11893 else
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11895 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11897 cat >>confdefs.h <<_ACEOF
11898 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11899 _ACEOF
11904 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
11905 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
11906 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
11907 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
11909 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
11910 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
11911 "x$with_alsa$with_coreaudio$with_oss" != xnonono
11912 then
11913 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11917 EXTRACFLAGS=""
11919 if test "x${GCC}" = "xyes"
11920 then
11921 EXTRACFLAGS="-Wall -pipe"
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11924 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11925 if ${ac_cv_c_gcc_strength_bug+:} false; then :
11926 $as_echo_n "(cached) " >&6
11927 else
11928 if test "$cross_compiling" = yes; then :
11929 ac_cv_c_gcc_strength_bug="yes"
11930 else
11931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11932 /* end confdefs.h. */
11933 int L[4] = {0,1,2,3};
11935 main ()
11937 static int Array[3];
11938 unsigned int B = 3;
11939 int i;
11940 for(i=0; i<B; i++) Array[i] = i - 3;
11941 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11942 L[i] = 4;
11943 return (Array[1] != -2 || L[2] != 3)
11945 return 0;
11947 _ACEOF
11948 if ac_fn_c_try_run "$LINENO"; then :
11949 ac_cv_c_gcc_strength_bug="no"
11950 else
11951 ac_cv_c_gcc_strength_bug="yes"
11953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11954 conftest.$ac_objext conftest.beam conftest.$ac_ext
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11959 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11960 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11961 then
11962 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11966 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11967 if ${ac_cv_cflags__fno_builtin+:} false; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 ac_wine_try_cflags_saved=$CFLAGS
11971 CFLAGS="$CFLAGS -fno-builtin"
11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973 /* end confdefs.h. */
11974 int main(int argc, char **argv) { return 0; }
11975 _ACEOF
11976 if ac_fn_c_try_link "$LINENO"; then :
11977 ac_cv_cflags__fno_builtin=yes
11978 else
11979 ac_cv_cflags__fno_builtin=no
11981 rm -f core conftest.err conftest.$ac_objext \
11982 conftest$ac_exeext conftest.$ac_ext
11983 CFLAGS=$ac_wine_try_cflags_saved
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11986 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11987 if test $ac_cv_cflags__fno_builtin = yes; then :
11988 BUILTINFLAG="-fno-builtin"
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11992 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11993 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
11994 $as_echo_n "(cached) " >&6
11995 else
11996 ac_wine_try_cflags_saved=$CFLAGS
11997 CFLAGS="$CFLAGS -fno-strict-aliasing"
11998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999 /* end confdefs.h. */
12000 int main(int argc, char **argv) { return 0; }
12001 _ACEOF
12002 if ac_fn_c_try_link "$LINENO"; then :
12003 ac_cv_cflags__fno_strict_aliasing=yes
12004 else
12005 ac_cv_cflags__fno_strict_aliasing=no
12007 rm -f core conftest.err conftest.$ac_objext \
12008 conftest$ac_exeext conftest.$ac_ext
12009 CFLAGS=$ac_wine_try_cflags_saved
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12012 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12013 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12014 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12017 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12018 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12019 $as_echo_n "(cached) " >&6
12020 else
12021 ac_wine_try_cflags_saved=$CFLAGS
12022 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h. */
12025 int main(int argc, char **argv) { return 0; }
12026 _ACEOF
12027 if ac_fn_c_try_link "$LINENO"; then :
12028 ac_cv_cflags__Wdeclaration_after_statement=yes
12029 else
12030 ac_cv_cflags__Wdeclaration_after_statement=no
12032 rm -f core conftest.err conftest.$ac_objext \
12033 conftest$ac_exeext conftest.$ac_ext
12034 CFLAGS=$ac_wine_try_cflags_saved
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12037 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12038 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12039 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12042 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12043 if ${ac_cv_cflags__Wempty_body+:} false; then :
12044 $as_echo_n "(cached) " >&6
12045 else
12046 ac_wine_try_cflags_saved=$CFLAGS
12047 CFLAGS="$CFLAGS -Wempty-body"
12048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h. */
12050 int main(int argc, char **argv) { return 0; }
12051 _ACEOF
12052 if ac_fn_c_try_link "$LINENO"; then :
12053 ac_cv_cflags__Wempty_body=yes
12054 else
12055 ac_cv_cflags__Wempty_body=no
12057 rm -f core conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
12059 CFLAGS=$ac_wine_try_cflags_saved
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12062 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12063 if test $ac_cv_cflags__Wempty_body = yes; then :
12064 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12067 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12068 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12069 $as_echo_n "(cached) " >&6
12070 else
12071 ac_wine_try_cflags_saved=$CFLAGS
12072 CFLAGS="$CFLAGS -Wstrict-prototypes"
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12075 int main(int argc, char **argv) { return 0; }
12076 _ACEOF
12077 if ac_fn_c_try_link "$LINENO"; then :
12078 ac_cv_cflags__Wstrict_prototypes=yes
12079 else
12080 ac_cv_cflags__Wstrict_prototypes=no
12082 rm -f core conftest.err conftest.$ac_objext \
12083 conftest$ac_exeext conftest.$ac_ext
12084 CFLAGS=$ac_wine_try_cflags_saved
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12087 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12088 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12089 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12092 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12093 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12094 $as_echo_n "(cached) " >&6
12095 else
12096 ac_wine_try_cflags_saved=$CFLAGS
12097 CFLAGS="$CFLAGS -Wtype-limits"
12098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099 /* end confdefs.h. */
12100 int main(int argc, char **argv) { return 0; }
12101 _ACEOF
12102 if ac_fn_c_try_link "$LINENO"; then :
12103 ac_cv_cflags__Wtype_limits=yes
12104 else
12105 ac_cv_cflags__Wtype_limits=no
12107 rm -f core conftest.err conftest.$ac_objext \
12108 conftest$ac_exeext conftest.$ac_ext
12109 CFLAGS=$ac_wine_try_cflags_saved
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12112 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12113 if test $ac_cv_cflags__Wtype_limits = yes; then :
12114 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12117 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12118 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12119 $as_echo_n "(cached) " >&6
12120 else
12121 ac_wine_try_cflags_saved=$CFLAGS
12122 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125 int main(int argc, char **argv) { return 0; }
12126 _ACEOF
12127 if ac_fn_c_try_link "$LINENO"; then :
12128 ac_cv_cflags__Wunused_but_set_parameter=yes
12129 else
12130 ac_cv_cflags__Wunused_but_set_parameter=no
12132 rm -f core conftest.err conftest.$ac_objext \
12133 conftest$ac_exeext conftest.$ac_ext
12134 CFLAGS=$ac_wine_try_cflags_saved
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12137 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12138 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12139 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12142 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12143 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12144 $as_echo_n "(cached) " >&6
12145 else
12146 ac_wine_try_cflags_saved=$CFLAGS
12147 CFLAGS="$CFLAGS -Wwrite-strings"
12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12150 int main(int argc, char **argv) { return 0; }
12151 _ACEOF
12152 if ac_fn_c_try_link "$LINENO"; then :
12153 ac_cv_cflags__Wwrite_strings=yes
12154 else
12155 ac_cv_cflags__Wwrite_strings=no
12157 rm -f core conftest.err conftest.$ac_objext \
12158 conftest$ac_exeext conftest.$ac_ext
12159 CFLAGS=$ac_wine_try_cflags_saved
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12162 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12163 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12164 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12167 case $host_cpu in
12168 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12169 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12170 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12171 $as_echo_n "(cached) " >&6
12172 else
12173 ac_wine_try_cflags_saved=$CFLAGS
12174 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h. */
12177 int main(int argc, char **argv) { return 0; }
12178 _ACEOF
12179 if ac_fn_c_try_link "$LINENO"; then :
12180 ac_cv_cflags__fno_omit_frame_pointer=yes
12181 else
12182 ac_cv_cflags__fno_omit_frame_pointer=no
12184 rm -f core conftest.err conftest.$ac_objext \
12185 conftest$ac_exeext conftest.$ac_ext
12186 CFLAGS=$ac_wine_try_cflags_saved
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12189 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12190 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12191 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12192 fi ;;
12193 esac
12195 case $host in
12196 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12197 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12198 if ${ac_cv_cflags__Wno_format+:} false; then :
12199 $as_echo_n "(cached) " >&6
12200 else
12201 ac_wine_try_cflags_saved=$CFLAGS
12202 CFLAGS="$CFLAGS -Wno-format"
12203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204 /* end confdefs.h. */
12205 int main(int argc, char **argv) { return 0; }
12206 _ACEOF
12207 if ac_fn_c_try_link "$LINENO"; then :
12208 ac_cv_cflags__Wno_format=yes
12209 else
12210 ac_cv_cflags__Wno_format=no
12212 rm -f core conftest.err conftest.$ac_objext \
12213 conftest$ac_exeext conftest.$ac_ext
12214 CFLAGS=$ac_wine_try_cflags_saved
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12217 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12218 if test $ac_cv_cflags__Wno_format = yes; then :
12219 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12220 fi ;;
12221 esac
12223 saved_CFLAGS="$CFLAGS"
12224 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12226 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12227 if ${ac_cv_c_string_h_warnings+:} false; then :
12228 $as_echo_n "(cached) " >&6
12229 else
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12232 #include <string.h>
12234 main ()
12238 return 0;
12240 _ACEOF
12241 if ac_fn_c_try_compile "$LINENO"; then :
12242 ac_cv_c_string_h_warnings=no
12243 else
12244 ac_cv_c_string_h_warnings=yes
12246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12249 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12250 CFLAGS="$saved_CFLAGS"
12251 if test "$ac_cv_c_string_h_warnings" = "no"
12252 then
12253 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12256 saved_CFLAGS="$CFLAGS"
12257 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12259 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12260 if ${ac_cv_c_logicalop_noisy+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12265 #include <string.h>
12267 main ()
12269 char*f(const char *h,char n) {return strchr(h,n);}
12271 return 0;
12273 _ACEOF
12274 if ac_fn_c_try_compile "$LINENO"; then :
12275 ac_cv_c_logicalop_noisy=no
12276 else
12277 ac_cv_c_logicalop_noisy=yes
12279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12282 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12283 CFLAGS="$saved_CFLAGS"
12284 if test "$ac_cv_c_logicalop_noisy" = "no"
12285 then
12286 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12289 if test "x$enable_maintainer_mode" = "xyes"
12290 then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12292 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12293 if ${ac_cv_cflags__Werror+:} false; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 ac_wine_try_cflags_saved=$CFLAGS
12297 CFLAGS="$CFLAGS -Werror"
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12300 int main(int argc, char **argv) { return 0; }
12301 _ACEOF
12302 if ac_fn_c_try_link "$LINENO"; then :
12303 ac_cv_cflags__Werror=yes
12304 else
12305 ac_cv_cflags__Werror=no
12307 rm -f core conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
12309 CFLAGS=$ac_wine_try_cflags_saved
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12312 $as_echo "$ac_cv_cflags__Werror" >&6; }
12313 if test $ac_cv_cflags__Werror = yes; then :
12314 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12318 saved_CFLAGS="$CFLAGS"
12319 CFLAGS="$CFLAGS -Werror"
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12321 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12322 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12326 /* end confdefs.h. */
12327 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12329 main ()
12333 return 0;
12335 _ACEOF
12336 if ac_fn_c_try_compile "$LINENO"; then :
12337 ac_cv_have_ms_hook_prologue="yes"
12338 else
12339 ac_cv_have_ms_hook_prologue="no"
12341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12344 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12345 CFLAGS="$saved_CFLAGS"
12346 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12347 then
12349 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12351 else
12352 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12359 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12360 if ${ac_cv_c_fortify_enabled+:} false; then :
12361 $as_echo_n "(cached) " >&6
12362 else
12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12365 #include <string.h>
12367 main ()
12369 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12370 #error Fortify enabled
12371 #endif
12373 return 0;
12375 _ACEOF
12376 if ac_fn_c_try_compile "$LINENO"; then :
12377 ac_cv_c_fortify_enabled=no
12378 else
12379 ac_cv_c_fortify_enabled=yes
12381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12384 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12385 if test "$ac_cv_c_fortify_enabled" = yes
12386 then
12387 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12392 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12393 if ${ac_cv_c_extern_prefix+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12398 extern int ac_test;
12400 main ()
12402 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12404 return 0;
12406 _ACEOF
12407 if ac_fn_c_try_link "$LINENO"; then :
12408 ac_cv_c_extern_prefix="yes"
12409 else
12410 ac_cv_c_extern_prefix="no"
12412 rm -f core conftest.err conftest.$ac_objext \
12413 conftest$ac_exeext conftest.$ac_ext
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12416 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12418 case $host_cpu in
12419 *i[3456789]86*)
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12421 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12422 if ${ac_cv_c_stdcall_suffix+:} false; then :
12423 $as_echo_n "(cached) " >&6
12424 else
12425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426 /* end confdefs.h. */
12427 #ifndef _MSC_VER
12428 #define __stdcall __attribute__((__stdcall__))
12429 #endif
12430 int __stdcall ac_test(int i) { return i; }
12432 main ()
12434 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12436 return 0;
12438 _ACEOF
12439 if ac_fn_c_try_link "$LINENO"; then :
12440 ac_cv_c_stdcall_suffix="yes"
12441 else
12442 ac_cv_c_stdcall_suffix="no"
12444 rm -f core conftest.err conftest.$ac_objext \
12445 conftest$ac_exeext conftest.$ac_ext
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12448 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12449 *) ac_cv_c_stdcall_suffix="no" ;;
12450 esac
12453 if test "$ac_cv_c_extern_prefix" = "yes"
12454 then
12455 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12457 asm_name_prefix="_"
12458 else
12459 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12461 asm_name_prefix=""
12465 if test "$ac_cv_c_stdcall_suffix" = "yes"
12466 then
12467 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12469 else
12470 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12476 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12477 if ${ac_cv_asm_func_def+:} false; then :
12478 $as_echo_n "(cached) " >&6
12479 else
12480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481 /* end confdefs.h. */
12484 main ()
12486 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12488 return 0;
12490 _ACEOF
12491 if ac_fn_c_try_link "$LINENO"; then :
12492 ac_cv_asm_func_def=".def"
12493 else
12494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h. */
12498 main ()
12500 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12502 return 0;
12504 _ACEOF
12505 if ac_fn_c_try_link "$LINENO"; then :
12506 ac_cv_asm_func_def=".type @function"
12507 else
12508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h. */
12512 main ()
12514 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12516 return 0;
12518 _ACEOF
12519 if ac_fn_c_try_link "$LINENO"; then :
12520 ac_cv_asm_func_def=".type 2"
12521 else
12522 ac_cv_asm_func_def="unknown"
12524 rm -f core conftest.err conftest.$ac_objext \
12525 conftest$ac_exeext conftest.$ac_ext
12527 rm -f core conftest.err conftest.$ac_objext \
12528 conftest$ac_exeext conftest.$ac_ext
12530 rm -f core conftest.err conftest.$ac_objext \
12531 conftest$ac_exeext conftest.$ac_ext
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12534 $as_echo "$ac_cv_asm_func_def" >&6; }
12537 case "$ac_cv_asm_func_def" in
12538 ".def")
12539 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12541 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12542 ".type @function")
12543 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12545 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12546 ".type 2")
12547 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12549 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12551 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12553 asm_func_header="" ;;
12554 esac
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12557 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12558 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12559 $as_echo_n "(cached) " >&6
12560 else
12561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562 /* end confdefs.h. */
12563 asm(".text\n\t.long 0");
12565 main ()
12569 return 0;
12571 _ACEOF
12572 if ac_fn_c_try_compile "$LINENO"; then :
12573 ac_cv_c_asm_outside_funcs="yes"
12574 else
12575 ac_cv_c_asm_outside_funcs="no"
12577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12580 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12583 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12584 if ${ac_cv_c_dot_previous+:} false; then :
12585 $as_echo_n "(cached) " >&6
12586 else
12587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12588 /* end confdefs.h. */
12591 main ()
12593 asm(".text\nac_test:\t.long 0\n\t.previous");
12595 return 0;
12597 _ACEOF
12598 if ac_fn_c_try_link "$LINENO"; then :
12599 ac_cv_c_dot_previous="yes"
12600 else
12601 ac_cv_c_dot_previous="no"
12603 rm -f core conftest.err conftest.$ac_objext \
12604 conftest$ac_exeext conftest.$ac_ext
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12607 $as_echo "$ac_cv_c_dot_previous" >&6; }
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12610 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12611 if ${ac_cv_c_cfi_support+:} false; then :
12612 $as_echo_n "(cached) " >&6
12613 else
12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h. */
12616 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12618 main ()
12622 return 0;
12624 _ACEOF
12625 if ac_fn_c_try_compile "$LINENO"; then :
12626 ac_cv_c_cfi_support="yes"
12627 else
12628 ac_cv_c_cfi_support="no"
12630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12633 $as_echo "$ac_cv_c_cfi_support" >&6; }
12635 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12636 asm_func_trailer=""
12637 if test "$ac_cv_c_dot_previous" = "yes"
12638 then
12639 asm_func_trailer="\\n\\t.previous"
12641 if test "$ac_cv_c_cfi_support" = "yes"
12642 then
12643 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12644 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12646 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12648 UNWINDFLAGS=-fasynchronous-unwind-tables
12650 else
12651 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12655 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12658 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12659 then
12660 cat >>confdefs.h <<_ACEOF
12661 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12662 _ACEOF
12664 else
12665 cat >>confdefs.h <<_ACEOF
12666 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12667 _ACEOF
12671 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12674 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12678 LDPATH=""
12680 case $build_os in
12681 cygwin*|mingw32*)
12682 TOOLSEXT=".exe"
12684 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12686 darwin*|macosx*)
12689 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12691 esac
12693 case $host_os in
12694 mingw32*)
12695 CRTLIBS="-lmsvcrt"
12697 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12700 esac
12702 MAIN_BINARY="wine"
12704 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12706 case $host_os in
12707 linux*)
12708 case $host_cpu in
12709 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12711 x86_64*) EXTRA_BINARIES="wine64-preloader"
12713 esac
12715 esac
12718 ac_save_CFLAGS="$CFLAGS"
12719 CFLAGS="$CFLAGS $BUILTINFLAG"
12720 for ac_func in \
12721 _finite \
12722 _isnan \
12723 _pclose \
12724 _popen \
12725 _snprintf \
12726 _spawnvp \
12727 _strdup \
12728 _stricmp \
12729 _strnicmp \
12730 _strtoi64 \
12731 _strtoui64 \
12732 _vsnprintf \
12733 asctime_r \
12734 chsize \
12735 dlopen \
12736 epoll_create \
12737 ffs \
12738 finite \
12739 fnmatch \
12740 fork \
12741 fpclass \
12742 fstatfs \
12743 fstatvfs \
12744 ftruncate \
12745 futimes \
12746 futimesat \
12747 getattrlist \
12748 getdirentries \
12749 getopt_long \
12750 getpagesize \
12751 getpwuid \
12752 gettimeofday \
12753 getuid \
12754 kqueue \
12755 lstat \
12756 memmove \
12757 mmap \
12758 pclose \
12759 pipe2 \
12760 poll \
12761 popen \
12762 port_create \
12763 prctl \
12764 pread \
12765 pwrite \
12766 readdir \
12767 readlink \
12768 sched_yield \
12769 select \
12770 setproctitle \
12771 setrlimit \
12772 settimeofday \
12773 sigaltstack \
12774 sigprocmask \
12775 snprintf \
12776 spawnvp \
12777 statfs \
12778 statvfs \
12779 strcasecmp \
12780 strdup \
12781 strerror \
12782 strncasecmp \
12783 strtold \
12784 strtoll \
12785 strtoull \
12786 symlink \
12787 tcgetattr \
12788 thr_kill2 \
12789 timegm \
12790 usleep \
12791 vsnprintf \
12792 wait4 \
12793 waitpid \
12795 do :
12796 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12797 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12798 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12799 cat >>confdefs.h <<_ACEOF
12800 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12801 _ACEOF
12804 done
12806 CFLAGS="$ac_save_CFLAGS"
12808 if test "$ac_cv_func_dlopen" = no
12809 then
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12811 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12812 if ${ac_cv_lib_dl_dlopen+:} false; then :
12813 $as_echo_n "(cached) " >&6
12814 else
12815 ac_check_lib_save_LIBS=$LIBS
12816 LIBS="-ldl $LIBS"
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12820 /* Override any GCC internal prototype to avoid an error.
12821 Use char because int might match the return type of a GCC
12822 builtin and then its argument prototype would still apply. */
12823 #ifdef __cplusplus
12824 extern "C"
12825 #endif
12826 char dlopen ();
12828 main ()
12830 return dlopen ();
12832 return 0;
12834 _ACEOF
12835 if ac_fn_c_try_link "$LINENO"; then :
12836 ac_cv_lib_dl_dlopen=yes
12837 else
12838 ac_cv_lib_dl_dlopen=no
12840 rm -f core conftest.err conftest.$ac_objext \
12841 conftest$ac_exeext conftest.$ac_ext
12842 LIBS=$ac_check_lib_save_LIBS
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12845 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12846 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12847 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12848 LIBDL="-ldl"
12853 ac_wine_check_funcs_save_LIBS="$LIBS"
12854 LIBS="$LIBS $LIBDL"
12855 for ac_func in dladdr
12856 do :
12857 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12858 if test "x$ac_cv_func_dladdr" = xyes; then :
12859 cat >>confdefs.h <<_ACEOF
12860 #define HAVE_DLADDR 1
12861 _ACEOF
12864 done
12866 LIBS="$ac_wine_check_funcs_save_LIBS"
12868 if test "$ac_cv_func_poll" = no
12869 then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12871 $as_echo_n "checking for poll in -lpoll... " >&6; }
12872 if ${ac_cv_lib_poll_poll+:} false; then :
12873 $as_echo_n "(cached) " >&6
12874 else
12875 ac_check_lib_save_LIBS=$LIBS
12876 LIBS="-lpoll $LIBS"
12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h. */
12880 /* Override any GCC internal prototype to avoid an error.
12881 Use char because int might match the return type of a GCC
12882 builtin and then its argument prototype would still apply. */
12883 #ifdef __cplusplus
12884 extern "C"
12885 #endif
12886 char poll ();
12888 main ()
12890 return poll ();
12892 return 0;
12894 _ACEOF
12895 if ac_fn_c_try_link "$LINENO"; then :
12896 ac_cv_lib_poll_poll=yes
12897 else
12898 ac_cv_lib_poll_poll=no
12900 rm -f core conftest.err conftest.$ac_objext \
12901 conftest$ac_exeext conftest.$ac_ext
12902 LIBS=$ac_check_lib_save_LIBS
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12905 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12906 if test "x$ac_cv_lib_poll_poll" = xyes; then :
12907 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12908 LIBPOLL="-lpoll"
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12915 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12916 if ${ac_cv_search_gethostbyname+:} false; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 ac_func_search_save_LIBS=$LIBS
12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h. */
12923 /* Override any GCC internal prototype to avoid an error.
12924 Use char because int might match the return type of a GCC
12925 builtin and then its argument prototype would still apply. */
12926 #ifdef __cplusplus
12927 extern "C"
12928 #endif
12929 char gethostbyname ();
12931 main ()
12933 return gethostbyname ();
12935 return 0;
12937 _ACEOF
12938 for ac_lib in '' nsl; do
12939 if test -z "$ac_lib"; then
12940 ac_res="none required"
12941 else
12942 ac_res=-l$ac_lib
12943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12945 if ac_fn_c_try_link "$LINENO"; then :
12946 ac_cv_search_gethostbyname=$ac_res
12948 rm -f core conftest.err conftest.$ac_objext \
12949 conftest$ac_exeext
12950 if ${ac_cv_search_gethostbyname+:} false; then :
12951 break
12953 done
12954 if ${ac_cv_search_gethostbyname+:} false; then :
12956 else
12957 ac_cv_search_gethostbyname=no
12959 rm conftest.$ac_ext
12960 LIBS=$ac_func_search_save_LIBS
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12963 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12964 ac_res=$ac_cv_search_gethostbyname
12965 if test "$ac_res" != no; then :
12966 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12972 $as_echo_n "checking for library containing connect... " >&6; }
12973 if ${ac_cv_search_connect+:} false; then :
12974 $as_echo_n "(cached) " >&6
12975 else
12976 ac_func_search_save_LIBS=$LIBS
12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978 /* end confdefs.h. */
12980 /* Override any GCC internal prototype to avoid an error.
12981 Use char because int might match the return type of a GCC
12982 builtin and then its argument prototype would still apply. */
12983 #ifdef __cplusplus
12984 extern "C"
12985 #endif
12986 char connect ();
12988 main ()
12990 return connect ();
12992 return 0;
12994 _ACEOF
12995 for ac_lib in '' socket; do
12996 if test -z "$ac_lib"; then
12997 ac_res="none required"
12998 else
12999 ac_res=-l$ac_lib
13000 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13002 if ac_fn_c_try_link "$LINENO"; then :
13003 ac_cv_search_connect=$ac_res
13005 rm -f core conftest.err conftest.$ac_objext \
13006 conftest$ac_exeext
13007 if ${ac_cv_search_connect+:} false; then :
13008 break
13010 done
13011 if ${ac_cv_search_connect+:} false; then :
13013 else
13014 ac_cv_search_connect=no
13016 rm conftest.$ac_ext
13017 LIBS=$ac_func_search_save_LIBS
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13020 $as_echo "$ac_cv_search_connect" >&6; }
13021 ac_res=$ac_cv_search_connect
13022 if test "$ac_res" != no; then :
13023 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13029 $as_echo_n "checking for library containing inet_aton... " >&6; }
13030 if ${ac_cv_search_inet_aton+:} false; then :
13031 $as_echo_n "(cached) " >&6
13032 else
13033 ac_func_search_save_LIBS=$LIBS
13034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035 /* end confdefs.h. */
13037 /* Override any GCC internal prototype to avoid an error.
13038 Use char because int might match the return type of a GCC
13039 builtin and then its argument prototype would still apply. */
13040 #ifdef __cplusplus
13041 extern "C"
13042 #endif
13043 char inet_aton ();
13045 main ()
13047 return inet_aton ();
13049 return 0;
13051 _ACEOF
13052 for ac_lib in '' resolv; do
13053 if test -z "$ac_lib"; then
13054 ac_res="none required"
13055 else
13056 ac_res=-l$ac_lib
13057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13059 if ac_fn_c_try_link "$LINENO"; then :
13060 ac_cv_search_inet_aton=$ac_res
13062 rm -f core conftest.err conftest.$ac_objext \
13063 conftest$ac_exeext
13064 if ${ac_cv_search_inet_aton+:} false; then :
13065 break
13067 done
13068 if ${ac_cv_search_inet_aton+:} false; then :
13070 else
13071 ac_cv_search_inet_aton=no
13073 rm conftest.$ac_ext
13074 LIBS=$ac_func_search_save_LIBS
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13077 $as_echo "$ac_cv_search_inet_aton" >&6; }
13078 ac_res=$ac_cv_search_inet_aton
13079 if test "$ac_res" != no; then :
13080 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13085 for ac_func in \
13086 getaddrinfo \
13087 getnameinfo \
13088 getnetbyname \
13089 getprotobyname \
13090 getprotobynumber \
13091 getservbyport \
13092 inet_network \
13093 inet_ntop \
13094 inet_pton \
13095 sendmsg \
13096 socketpair \
13098 do :
13099 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13100 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13101 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13102 cat >>confdefs.h <<_ACEOF
13103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13104 _ACEOF
13107 done
13110 LDAPLIBS=""
13112 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13113 then
13114 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13116 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13118 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13119 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13120 $as_echo_n "(cached) " >&6
13121 else
13122 ac_check_lib_save_LIBS=$LIBS
13123 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h. */
13127 /* Override any GCC internal prototype to avoid an error.
13128 Use char because int might match the return type of a GCC
13129 builtin and then its argument prototype would still apply. */
13130 #ifdef __cplusplus
13131 extern "C"
13132 #endif
13133 char ldap_initialize ();
13135 main ()
13137 return ldap_initialize ();
13139 return 0;
13141 _ACEOF
13142 if ac_fn_c_try_link "$LINENO"; then :
13143 ac_cv_lib_ldap_r_ldap_initialize=yes
13144 else
13145 ac_cv_lib_ldap_r_ldap_initialize=no
13147 rm -f core conftest.err conftest.$ac_objext \
13148 conftest$ac_exeext conftest.$ac_ext
13149 LIBS=$ac_check_lib_save_LIBS
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13152 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13153 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13155 $as_echo_n "checking for ber_init in -llber... " >&6; }
13156 if ${ac_cv_lib_lber_ber_init+:} false; then :
13157 $as_echo_n "(cached) " >&6
13158 else
13159 ac_check_lib_save_LIBS=$LIBS
13160 LIBS="-llber $LIBPTHREAD $LIBS"
13161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162 /* end confdefs.h. */
13164 /* Override any GCC internal prototype to avoid an error.
13165 Use char because int might match the return type of a GCC
13166 builtin and then its argument prototype would still apply. */
13167 #ifdef __cplusplus
13168 extern "C"
13169 #endif
13170 char ber_init ();
13172 main ()
13174 return ber_init ();
13176 return 0;
13178 _ACEOF
13179 if ac_fn_c_try_link "$LINENO"; then :
13180 ac_cv_lib_lber_ber_init=yes
13181 else
13182 ac_cv_lib_lber_ber_init=no
13184 rm -f core conftest.err conftest.$ac_objext \
13185 conftest$ac_exeext conftest.$ac_ext
13186 LIBS=$ac_check_lib_save_LIBS
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13189 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13190 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13192 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13194 LDAPLIBS="-lldap_r -llber"
13201 ac_wine_check_funcs_save_LIBS="$LIBS"
13202 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13203 for ac_func in \
13204 ldap_count_references \
13205 ldap_first_reference \
13206 ldap_next_reference \
13207 ldap_parse_reference \
13208 ldap_parse_sort_control \
13209 ldap_parse_sortresponse_control \
13210 ldap_parse_vlv_control \
13211 ldap_parse_vlvresponse_control
13212 do :
13213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13214 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13215 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13216 cat >>confdefs.h <<_ACEOF
13217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13218 _ACEOF
13221 done
13223 LIBS="$ac_wine_check_funcs_save_LIBS"
13225 if test "x$LDAPLIBS" = "x"; then :
13226 case "x$with_ldap" in
13227 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13228 xno) ;;
13229 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13230 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13231 esac
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13235 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13236 if ${wine_cv_one_arg_mkdir+:} false; then :
13237 $as_echo_n "(cached) " >&6
13238 else
13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13241 #include <sys/stat.h>
13243 main ()
13245 mkdir("foo");
13247 return 0;
13249 _ACEOF
13250 if ac_fn_c_try_compile "$LINENO"; then :
13251 wine_cv_one_arg_mkdir=yes
13252 else
13253 wine_cv_one_arg_mkdir=no
13255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13258 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13259 if test "$wine_cv_one_arg_mkdir" = "yes"
13260 then
13262 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13267 $as_echo_n "checking for sched_setaffinity... " >&6; }
13268 if ${wine_cv_have_sched_setaffinity+:} false; then :
13269 $as_echo_n "(cached) " >&6
13270 else
13271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h. */
13273 #define _GNU_SOURCE
13274 #include <sched.h>
13276 main ()
13278 sched_setaffinity(0, 0, 0);
13280 return 0;
13282 _ACEOF
13283 if ac_fn_c_try_link "$LINENO"; then :
13284 wine_cv_have_sched_setaffinity=yes
13285 else
13286 wine_cv_have_sched_setaffinity=no
13288 rm -f core conftest.err conftest.$ac_objext \
13289 conftest$ac_exeext conftest.$ac_ext
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13292 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13293 if test "$wine_cv_have_sched_setaffinity" = "yes"
13294 then
13296 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13302 $as_echo_n "checking for inline... " >&6; }
13303 if ${ac_cv_c_inline+:} false; then :
13304 $as_echo_n "(cached) " >&6
13305 else
13306 ac_cv_c_inline=no
13307 for ac_kw in inline __inline__ __inline; do
13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h. */
13310 #ifndef __cplusplus
13311 typedef int foo_t;
13312 static $ac_kw foo_t static_foo () {return 0; }
13313 $ac_kw foo_t foo () {return 0; }
13314 #endif
13316 _ACEOF
13317 if ac_fn_c_try_compile "$LINENO"; then :
13318 ac_cv_c_inline=$ac_kw
13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321 test "$ac_cv_c_inline" != no && break
13322 done
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13326 $as_echo "$ac_cv_c_inline" >&6; }
13328 case $ac_cv_c_inline in
13329 inline | yes) ;;
13331 case $ac_cv_c_inline in
13332 no) ac_val=;;
13333 *) ac_val=$ac_cv_c_inline;;
13334 esac
13335 cat >>confdefs.h <<_ACEOF
13336 #ifndef __cplusplus
13337 #define inline $ac_val
13338 #endif
13339 _ACEOF
13341 esac
13343 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13344 if test "x$ac_cv_type_mode_t" = xyes; then :
13346 cat >>confdefs.h <<_ACEOF
13347 #define HAVE_MODE_T 1
13348 _ACEOF
13352 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13353 if test "x$ac_cv_type_off_t" = xyes; then :
13355 cat >>confdefs.h <<_ACEOF
13356 #define HAVE_OFF_T 1
13357 _ACEOF
13361 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13362 if test "x$ac_cv_type_pid_t" = xyes; then :
13364 cat >>confdefs.h <<_ACEOF
13365 #define HAVE_PID_T 1
13366 _ACEOF
13370 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13371 if test "x$ac_cv_type_size_t" = xyes; then :
13373 cat >>confdefs.h <<_ACEOF
13374 #define HAVE_SIZE_T 1
13375 _ACEOF
13379 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13380 if test "x$ac_cv_type_ssize_t" = xyes; then :
13382 cat >>confdefs.h <<_ACEOF
13383 #define HAVE_SSIZE_T 1
13384 _ACEOF
13388 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13389 if test "x$ac_cv_type_long_long" = xyes; then :
13391 cat >>confdefs.h <<_ACEOF
13392 #define HAVE_LONG_LONG 1
13393 _ACEOF
13397 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13398 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13400 cat >>confdefs.h <<_ACEOF
13401 #define HAVE_FSBLKCNT_T 1
13402 _ACEOF
13406 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13407 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13409 cat >>confdefs.h <<_ACEOF
13410 #define HAVE_FSFILCNT_T 1
13411 _ACEOF
13416 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13417 #include <signal.h>
13419 if test "x$ac_cv_type_sigset_t" = xyes; then :
13421 cat >>confdefs.h <<_ACEOF
13422 #define HAVE_SIGSET_T 1
13423 _ACEOF
13428 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13430 if test "x$ac_cv_type_request_sense" = xyes; then :
13432 cat >>confdefs.h <<_ACEOF
13433 #define HAVE_REQUEST_SENSE 1
13434 _ACEOF
13440 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13441 #ifdef HAVE_SYS_SOCKET_H
13442 #include <sys/socket.h>
13443 #endif
13444 #ifdef HAVE_SYS_SOCKETVAR_H
13445 #include <sys/socketvar.h>
13446 #endif
13447 #ifdef HAVE_NET_ROUTE_H
13448 #include <net/route.h>
13449 #endif
13450 #ifdef HAVE_NETINET_IN_H
13451 #include <netinet/in.h>
13452 #endif
13453 #ifdef HAVE_NETINET_IN_SYSTM_H
13454 #include <netinet/in_systm.h>
13455 #endif
13456 #ifdef HAVE_NETINET_IP_H
13457 #include <netinet/ip.h>
13458 #endif
13459 #ifdef HAVE_NETINET_IN_PCB_H
13460 #include <netinet/in_pcb.h>
13461 #endif
13463 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13465 cat >>confdefs.h <<_ACEOF
13466 #define HAVE_STRUCT_XINPGEN 1
13467 _ACEOF
13473 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13474 #include <linux/input.h>
13475 #endif
13477 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13479 cat >>confdefs.h <<_ACEOF
13480 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13481 _ACEOF
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13488 $as_echo_n "checking for sigaddset... " >&6; }
13489 if ${wine_cv_have_sigaddset+:} false; then :
13490 $as_echo_n "(cached) " >&6
13491 else
13492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13493 /* end confdefs.h. */
13494 #include <signal.h>
13496 main ()
13498 sigset_t set; sigaddset(&set,SIGTERM);
13500 return 0;
13502 _ACEOF
13503 if ac_fn_c_try_link "$LINENO"; then :
13504 wine_cv_have_sigaddset=yes
13505 else
13506 wine_cv_have_sigaddset=no
13508 rm -f core conftest.err conftest.$ac_objext \
13509 conftest$ac_exeext conftest.$ac_ext
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13512 $as_echo "$wine_cv_have_sigaddset" >&6; }
13513 if test "$wine_cv_have_sigaddset" = "yes"
13514 then
13516 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13522 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13523 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13524 $as_echo_n "(cached) " >&6
13525 else
13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527 /* end confdefs.h. */
13528 #include <netdb.h>
13530 main ()
13533 char *name=0;
13534 struct hostent he;
13535 struct hostent *result;
13536 char *buf=0;
13537 int bufsize=0;
13538 int errnr;
13539 char *addr=0;
13540 int addrlen=0;
13541 int addrtype=0;
13542 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13543 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13546 return 0;
13548 _ACEOF
13549 if ac_fn_c_try_link "$LINENO"; then :
13550 wine_cv_linux_gethostbyname_r_6=yes
13551 else
13552 wine_cv_linux_gethostbyname_r_6=no
13555 rm -f core conftest.err conftest.$ac_objext \
13556 conftest$ac_exeext conftest.$ac_ext
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13560 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13561 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13562 then
13564 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13568 if test "$ac_cv_header_linux_joystick_h" = "yes"
13569 then
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13571 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13572 if ${wine_cv_linux_joystick_22_api+:} false; then :
13573 $as_echo_n "(cached) " >&6
13574 else
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13578 #include <sys/ioctl.h>
13579 #include <sys/types.h>
13580 #include <linux/joystick.h>
13582 struct js_event blub;
13583 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13584 #error "no 2.2 header"
13585 #endif
13588 main ()
13590 /*empty*/
13592 return 0;
13594 _ACEOF
13595 if ac_fn_c_try_compile "$LINENO"; then :
13596 wine_cv_linux_joystick_22_api=yes
13597 else
13598 wine_cv_linux_joystick_22_api=no
13600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13604 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13605 if test "$wine_cv_linux_joystick_22_api" = "yes"
13606 then
13608 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13614 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13615 #ifdef HAVE_SYS_PARAM_H
13616 # include <sys/param.h>
13617 #endif
13618 #ifdef HAVE_SYS_MOUNT_H
13619 # include <sys/mount.h>
13620 #endif
13621 #ifdef HAVE_SYS_VFS_H
13622 # include <sys/vfs.h>
13623 #endif
13624 #ifdef HAVE_SYS_STATFS_H
13625 # include <sys/statfs.h>
13626 #endif
13628 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13630 cat >>confdefs.h <<_ACEOF
13631 #define HAVE_STRUCT_STATFS_F_BFREE 1
13632 _ACEOF
13636 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13637 #ifdef HAVE_SYS_PARAM_H
13638 # include <sys/param.h>
13639 #endif
13640 #ifdef HAVE_SYS_MOUNT_H
13641 # include <sys/mount.h>
13642 #endif
13643 #ifdef HAVE_SYS_VFS_H
13644 # include <sys/vfs.h>
13645 #endif
13646 #ifdef HAVE_SYS_STATFS_H
13647 # include <sys/statfs.h>
13648 #endif
13650 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13652 cat >>confdefs.h <<_ACEOF
13653 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13654 _ACEOF
13658 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13659 #ifdef HAVE_SYS_PARAM_H
13660 # include <sys/param.h>
13661 #endif
13662 #ifdef HAVE_SYS_MOUNT_H
13663 # include <sys/mount.h>
13664 #endif
13665 #ifdef HAVE_SYS_VFS_H
13666 # include <sys/vfs.h>
13667 #endif
13668 #ifdef HAVE_SYS_STATFS_H
13669 # include <sys/statfs.h>
13670 #endif
13672 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13674 cat >>confdefs.h <<_ACEOF
13675 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13676 _ACEOF
13680 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13681 #ifdef HAVE_SYS_PARAM_H
13682 # include <sys/param.h>
13683 #endif
13684 #ifdef HAVE_SYS_MOUNT_H
13685 # include <sys/mount.h>
13686 #endif
13687 #ifdef HAVE_SYS_VFS_H
13688 # include <sys/vfs.h>
13689 #endif
13690 #ifdef HAVE_SYS_STATFS_H
13691 # include <sys/statfs.h>
13692 #endif
13694 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13696 cat >>confdefs.h <<_ACEOF
13697 #define HAVE_STRUCT_STATFS_F_FFREE 1
13698 _ACEOF
13702 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13703 #ifdef HAVE_SYS_PARAM_H
13704 # include <sys/param.h>
13705 #endif
13706 #ifdef HAVE_SYS_MOUNT_H
13707 # include <sys/mount.h>
13708 #endif
13709 #ifdef HAVE_SYS_VFS_H
13710 # include <sys/vfs.h>
13711 #endif
13712 #ifdef HAVE_SYS_STATFS_H
13713 # include <sys/statfs.h>
13714 #endif
13716 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13718 cat >>confdefs.h <<_ACEOF
13719 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13720 _ACEOF
13724 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13725 #ifdef HAVE_SYS_PARAM_H
13726 # include <sys/param.h>
13727 #endif
13728 #ifdef HAVE_SYS_MOUNT_H
13729 # include <sys/mount.h>
13730 #endif
13731 #ifdef HAVE_SYS_VFS_H
13732 # include <sys/vfs.h>
13733 #endif
13734 #ifdef HAVE_SYS_STATFS_H
13735 # include <sys/statfs.h>
13736 #endif
13738 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13740 cat >>confdefs.h <<_ACEOF
13741 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13742 _ACEOF
13748 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13749 #include <sys/statvfs.h>
13750 #endif
13752 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
13754 cat >>confdefs.h <<_ACEOF
13755 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13756 _ACEOF
13762 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13763 #ifdef HAVE_SYS_SOCKET_H
13764 # include <sys/socket.h>
13765 #endif
13766 #ifdef HAVE_SYS_UN_H
13767 # include <sys/un.h>
13768 #endif
13770 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
13772 cat >>confdefs.h <<_ACEOF
13773 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13774 _ACEOF
13778 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13779 #ifdef HAVE_SYS_SOCKET_H
13780 # include <sys/socket.h>
13781 #endif
13782 #ifdef HAVE_SYS_UN_H
13783 # include <sys/un.h>
13784 #endif
13786 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13788 cat >>confdefs.h <<_ACEOF
13789 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13790 _ACEOF
13794 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13795 #ifdef HAVE_SYS_SOCKET_H
13796 # include <sys/socket.h>
13797 #endif
13798 #ifdef HAVE_SYS_UN_H
13799 # include <sys/un.h>
13800 #endif
13802 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
13804 cat >>confdefs.h <<_ACEOF
13805 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13806 _ACEOF
13812 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13813 #ifdef HAVE_SCSI_SG_H
13814 #include <scsi/sg.h>
13815 #endif
13817 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
13819 cat >>confdefs.h <<_ACEOF
13820 #define HAVE_SCSIREQ_T_CMD 1
13821 _ACEOF
13825 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>
13826 #ifdef HAVE_SCSI_SG_H
13827 #include <scsi/sg.h>
13828 #endif
13830 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
13832 cat >>confdefs.h <<_ACEOF
13833 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13834 _ACEOF
13840 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13842 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
13844 cat >>confdefs.h <<_ACEOF
13845 #define HAVE_SIGINFO_T_SI_FD 1
13846 _ACEOF
13852 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13853 #ifdef HAVE_SYS_MTIO_H
13854 #include <sys/mtio.h>
13855 #endif
13857 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
13859 cat >>confdefs.h <<_ACEOF
13860 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13861 _ACEOF
13865 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13866 #ifdef HAVE_SYS_MTIO_H
13867 #include <sys/mtio.h>
13868 #endif
13870 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
13872 cat >>confdefs.h <<_ACEOF
13873 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13874 _ACEOF
13878 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13879 #ifdef HAVE_SYS_MTIO_H
13880 #include <sys/mtio.h>
13881 #endif
13883 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
13885 cat >>confdefs.h <<_ACEOF
13886 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13887 _ACEOF
13893 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13894 #include <getopt.h>
13895 #endif
13897 if test "x$ac_cv_member_struct_option_name" = xyes; then :
13899 cat >>confdefs.h <<_ACEOF
13900 #define HAVE_STRUCT_OPTION_NAME 1
13901 _ACEOF
13907 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13908 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13910 cat >>confdefs.h <<_ACEOF
13911 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13912 _ACEOF
13916 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13917 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
13919 cat >>confdefs.h <<_ACEOF
13920 #define HAVE_STRUCT_STAT_ST_MTIM 1
13921 _ACEOF
13925 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13926 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
13928 cat >>confdefs.h <<_ACEOF
13929 #define HAVE_STRUCT_STAT_ST_CTIM 1
13930 _ACEOF
13934 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13935 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
13937 cat >>confdefs.h <<_ACEOF
13938 #define HAVE_STRUCT_STAT_ST_ATIM 1
13939 _ACEOF
13945 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
13946 #include <sys/types.h>
13947 #endif
13948 #ifdef HAVE_NETINET_IN_H
13949 #include <netinet/in.h>
13950 #endif
13952 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
13954 cat >>confdefs.h <<_ACEOF
13955 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13956 _ACEOF
13962 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13963 #include <sys/types.h>
13964 #endif
13965 #ifdef HAVE_NETINET_IN_H
13966 # include <netinet/in.h>
13967 #endif
13968 #ifdef HAVE_ARPA_NAMESER_H
13969 # include <arpa/nameser.h>
13970 #endif
13972 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
13974 cat >>confdefs.h <<_ACEOF
13975 #define HAVE_NS_MSG__MSG_PTR 1
13976 _ACEOF
13982 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13983 #include <sys/types.h>
13984 #endif
13985 #ifdef HAVE_ALIAS_H
13986 #include <alias.h>
13987 #endif
13988 #ifdef HAVE_SYS_SOCKET_H
13989 #include <sys/socket.h>
13990 #endif
13991 #ifdef HAVE_SYS_SOCKETVAR_H
13992 #include <sys/socketvar.h>
13993 #endif
13994 #ifdef HAVE_SYS_TIMEOUT_H
13995 #include <sys/timeout.h>
13996 #endif
13997 #ifdef HAVE_NETINET_IN_H
13998 #include <netinet/in.h>
13999 #endif
14000 #ifdef HAVE_NETINET_IN_SYSTM_H
14001 #include <netinet/in_systm.h>
14002 #endif
14003 #ifdef HAVE_NETINET_IP_H
14004 #include <netinet/ip.h>
14005 #endif
14006 #ifdef HAVE_NETINET_IP_VAR_H
14007 #include <netinet/ip_var.h>
14008 #endif
14009 #ifdef HAVE_NETINET_IP_ICMP_H
14010 #include <netinet/ip_icmp.h>
14011 #endif
14012 #ifdef HAVE_NETINET_ICMP_VAR
14013 #include <netinet/icmp_var.h>
14014 #endif
14016 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14018 cat >>confdefs.h <<_ACEOF
14019 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14020 _ACEOF
14026 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14027 #include <sys/types.h>
14028 #endif
14029 #ifdef HAVE_NET_IF_H
14030 # include <net/if.h>
14031 #endif
14033 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14035 cat >>confdefs.h <<_ACEOF
14036 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14037 _ACEOF
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14044 $as_echo_n "checking for timezone variable... " >&6; }
14045 if ${ac_cv_have_timezone+:} false; then :
14046 $as_echo_n "(cached) " >&6
14047 else
14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h. */
14050 #include <time.h>
14052 main ()
14054 timezone = 1
14056 return 0;
14058 _ACEOF
14059 if ac_fn_c_try_link "$LINENO"; then :
14060 ac_cv_have_timezone="yes"
14061 else
14062 ac_cv_have_timezone="no"
14064 rm -f core conftest.err conftest.$ac_objext \
14065 conftest$ac_exeext conftest.$ac_ext
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14068 $as_echo "$ac_cv_have_timezone" >&6; }
14069 if test "$ac_cv_have_timezone" = "yes"
14070 then
14072 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14076 $as_echo_n "checking for daylight variable... " >&6; }
14077 if ${ac_cv_have_daylight+:} false; then :
14078 $as_echo_n "(cached) " >&6
14079 else
14080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081 /* end confdefs.h. */
14082 #include <time.h>
14084 main ()
14086 daylight = 1
14088 return 0;
14090 _ACEOF
14091 if ac_fn_c_try_link "$LINENO"; then :
14092 ac_cv_have_daylight="yes"
14093 else
14094 ac_cv_have_daylight="no"
14096 rm -f core conftest.err conftest.$ac_objext \
14097 conftest$ac_exeext conftest.$ac_ext
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14100 $as_echo "$ac_cv_have_daylight" >&6; }
14101 if test "$ac_cv_have_daylight" = "yes"
14102 then
14104 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14108 ac_save_LIBS="$LIBS"
14109 LIBS="$LIBS -lm"
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14111 $as_echo_n "checking for isinf... " >&6; }
14112 if ${ac_cv_have_isinf+:} false; then :
14113 $as_echo_n "(cached) " >&6
14114 else
14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14116 /* end confdefs.h. */
14117 #include <math.h>
14119 main ()
14121 float f = 0.0; return isinf(f)
14123 return 0;
14125 _ACEOF
14126 if ac_fn_c_try_link "$LINENO"; then :
14127 ac_cv_have_isinf="yes"
14128 else
14129 ac_cv_have_isinf="no"
14131 rm -f core conftest.err conftest.$ac_objext \
14132 conftest$ac_exeext conftest.$ac_ext
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14135 $as_echo "$ac_cv_have_isinf" >&6; }
14136 if test "$ac_cv_have_isinf" = "yes"
14137 then
14139 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14144 $as_echo_n "checking for isnan... " >&6; }
14145 if ${ac_cv_have_isnan+:} false; then :
14146 $as_echo_n "(cached) " >&6
14147 else
14148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h. */
14150 #include <math.h>
14152 main ()
14154 float f = 0.0; return isnan(f)
14156 return 0;
14158 _ACEOF
14159 if ac_fn_c_try_link "$LINENO"; then :
14160 ac_cv_have_isnan="yes"
14161 else
14162 ac_cv_have_isnan="no"
14164 rm -f core conftest.err conftest.$ac_objext \
14165 conftest$ac_exeext conftest.$ac_ext
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14168 $as_echo "$ac_cv_have_isnan" >&6; }
14169 if test "$ac_cv_have_isnan" = "yes"
14170 then
14172 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14175 LIBS="$ac_save_LIBS"
14178 case $host_cpu in
14179 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14180 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14181 if ${ac_cv_cpp_def___i386__+:} false; then :
14182 $as_echo_n "(cached) " >&6
14183 else
14184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14185 /* end confdefs.h. */
14186 #ifndef __i386__
14188 #endif
14189 _ACEOF
14190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14191 $EGREP "yes" >/dev/null 2>&1; then :
14192 ac_cv_cpp_def___i386__=yes
14193 else
14194 ac_cv_cpp_def___i386__=no
14196 rm -f conftest*
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14200 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14201 if test $ac_cv_cpp_def___i386__ = yes; then :
14202 CFLAGS="$CFLAGS -D__i386__"
14203 LINTFLAGS="$LINTFLAGS -D__i386__"
14204 fi ;;
14205 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14206 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14207 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14208 $as_echo_n "(cached) " >&6
14209 else
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14212 #ifndef __x86_64__
14214 #endif
14215 _ACEOF
14216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14217 $EGREP "yes" >/dev/null 2>&1; then :
14218 ac_cv_cpp_def___x86_64__=yes
14219 else
14220 ac_cv_cpp_def___x86_64__=no
14222 rm -f conftest*
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14226 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14227 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14228 CFLAGS="$CFLAGS -D__x86_64__"
14229 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14230 fi ;;
14231 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14232 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14233 if ${ac_cv_cpp_def___sparc64__+:} false; then :
14234 $as_echo_n "(cached) " >&6
14235 else
14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237 /* end confdefs.h. */
14238 #ifndef __sparc64__
14240 #endif
14241 _ACEOF
14242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14243 $EGREP "yes" >/dev/null 2>&1; then :
14244 ac_cv_cpp_def___sparc64__=yes
14245 else
14246 ac_cv_cpp_def___sparc64__=no
14248 rm -f conftest*
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14252 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14253 if test $ac_cv_cpp_def___sparc64__ = yes; then :
14254 CFLAGS="$CFLAGS -D__sparc64__"
14255 LINTFLAGS="$LINTFLAGS -D__sparc64__"
14256 fi ;;
14257 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14258 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14259 if ${ac_cv_cpp_def___sparc__+:} false; then :
14260 $as_echo_n "(cached) " >&6
14261 else
14262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263 /* end confdefs.h. */
14264 #ifndef __sparc__
14266 #endif
14267 _ACEOF
14268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14269 $EGREP "yes" >/dev/null 2>&1; then :
14270 ac_cv_cpp_def___sparc__=yes
14271 else
14272 ac_cv_cpp_def___sparc__=no
14274 rm -f conftest*
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14278 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14279 if test $ac_cv_cpp_def___sparc__ = yes; then :
14280 CFLAGS="$CFLAGS -D__sparc__"
14281 LINTFLAGS="$LINTFLAGS -D__sparc__"
14282 fi ;;
14283 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
14284 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
14285 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
14286 $as_echo_n "(cached) " >&6
14287 else
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14290 #ifndef __powerpc64__
14292 #endif
14293 _ACEOF
14294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14295 $EGREP "yes" >/dev/null 2>&1; then :
14296 ac_cv_cpp_def___powerpc64__=yes
14297 else
14298 ac_cv_cpp_def___powerpc64__=no
14300 rm -f conftest*
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
14304 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
14305 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
14306 CFLAGS="$CFLAGS -D__powerpc64__"
14307 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
14308 fi ;;
14309 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14310 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14311 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14312 $as_echo_n "(cached) " >&6
14313 else
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14316 #ifndef __powerpc__
14318 #endif
14319 _ACEOF
14320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14321 $EGREP "yes" >/dev/null 2>&1; then :
14322 ac_cv_cpp_def___powerpc__=yes
14323 else
14324 ac_cv_cpp_def___powerpc__=no
14326 rm -f conftest*
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14330 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14331 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14332 CFLAGS="$CFLAGS -D__powerpc__"
14333 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14334 fi ;;
14335 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14336 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14337 if ${ac_cv_cpp_def___arm__+:} false; then :
14338 $as_echo_n "(cached) " >&6
14339 else
14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h. */
14342 #ifndef __arm__
14344 #endif
14345 _ACEOF
14346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14347 $EGREP "yes" >/dev/null 2>&1; then :
14348 ac_cv_cpp_def___arm__=yes
14349 else
14350 ac_cv_cpp_def___arm__=no
14352 rm -f conftest*
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14356 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14357 if test $ac_cv_cpp_def___arm__ = yes; then :
14358 CFLAGS="$CFLAGS -D__arm__"
14359 LINTFLAGS="$LINTFLAGS -D__arm__"
14360 fi ;;
14361 esac
14363 case $host_vendor in
14364 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14365 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14366 if ${ac_cv_cpp_def___sun__+:} false; then :
14367 $as_echo_n "(cached) " >&6
14368 else
14369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370 /* end confdefs.h. */
14371 #ifndef __sun__
14373 #endif
14374 _ACEOF
14375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14376 $EGREP "yes" >/dev/null 2>&1; then :
14377 ac_cv_cpp_def___sun__=yes
14378 else
14379 ac_cv_cpp_def___sun__=no
14381 rm -f conftest*
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14385 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14386 if test $ac_cv_cpp_def___sun__ = yes; then :
14387 CFLAGS="$CFLAGS -D__sun__"
14388 LINTFLAGS="$LINTFLAGS -D__sun__"
14389 fi ;;
14390 esac
14396 ac_config_commands="$ac_config_commands include/stamp-h"
14399 ALL_MAKEFILE_DEPENDS="
14400 # Rules automatically generated by configure
14402 .INIT: Makefile
14403 .MAKEFILEDEPS:
14404 all: Makefile
14405 Makefile: Makefile.in Make.vars.in Make.rules config.status
14406 @./config.status Make.tmp Makefile"
14408 ALL_POT_FILES=""
14409 ALL_TEST_RESOURCES=""
14412 wine_fn_append_file ()
14414 as_fn_append $1 " \\$as_nl $2"
14417 wine_fn_append_rule ()
14419 as_fn_append $1 "$as_nl$2"
14422 wine_fn_has_flag ()
14424 expr ",$2," : ".*,$1,.*" >/dev/null
14427 wine_fn_all_dir_rules ()
14429 ac_dir=$1
14430 ac_alldeps=$2
14431 ac_makedep="\$(MAKEDEP)"
14432 ac_input=Make.vars.in:$ac_dir/Makefile.in
14433 if test $ac_dir != tools
14434 then
14435 ac_alldeps="$2 $ac_makedep"
14437 case $2 in
14438 *.in) ac_input=$ac_input:$2 ;;
14439 *) ac_makedep="$2 $ac_makedep" ;;
14440 esac
14442 wine_fn_append_file ALL_DIRS $ac_dir
14443 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14444 "__clean__: $ac_dir/__clean__
14445 .PHONY: $ac_dir/__clean__
14446 $ac_dir/__clean__: $ac_dir/Makefile
14447 @cd $ac_dir && \$(MAKE) clean
14448 \$(RM) $ac_dir/Makefile
14449 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14450 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14451 depend: $ac_dir/__depend__
14452 .PHONY: $ac_dir/__depend__
14453 $ac_dir/__depend__: $ac_makedep dummy
14454 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14457 wine_fn_pot_rules ()
14459 ac_dir=$1
14460 ac_flags=$2
14462 test "x$with_gettextpo" = xyes || return
14464 if wine_fn_has_flag mc $ac_flags
14465 then
14466 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14467 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14468 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
14469 @cd $ac_dir && \$(MAKE) msg.pot
14470 $ac_dir/msg.pot: tools/wmc include"
14472 if wine_fn_has_flag po $ac_flags
14473 then
14474 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14475 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14476 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
14477 @cd $ac_dir && \$(MAKE) rsrc.pot
14478 $ac_dir/rsrc.pot: tools/wrc include"
14482 wine_fn_config_makefile ()
14484 ac_dir=$1
14485 ac_enable=$2
14486 ac_flags=$3
14487 ac_rules=$4
14488 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14489 return 0
14492 wine_fn_all_dir_rules $ac_dir ${ac_rules:-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)"
14499 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14501 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14502 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14503 $ac_dir/__install__:: $ac_dir
14504 @cd $ac_dir && \$(MAKE) install
14505 $ac_dir/__uninstall__:: $ac_dir/Makefile
14506 @cd $ac_dir && \$(MAKE) uninstall
14507 install:: $ac_dir/__install__
14508 __uninstall__: $ac_dir/__uninstall__"
14510 if wine_fn_has_flag install-lib $ac_flags
14511 then
14512 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14513 ".PHONY: $ac_dir/__install-lib__
14514 $ac_dir/__install-lib__:: $ac_dir
14515 @cd $ac_dir && \$(MAKE) install-lib
14516 install-lib:: $ac_dir/__install-lib__"
14519 if wine_fn_has_flag install-dev $ac_flags
14520 then
14521 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14522 ".PHONY: $ac_dir/__install-dev
14523 $ac_dir/__install-dev__:: $ac_dir
14524 @cd $ac_dir && \$(MAKE) install-dev
14525 install-dev:: $ac_dir/__install-dev__"
14529 wine_fn_config_lib ()
14531 ac_name=$1
14532 ac_flags=$2
14533 ac_dir=dlls/$ac_name
14534 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14536 if wine_fn_has_flag install-dev $ac_flags
14537 then :
14538 else
14539 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14540 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14541 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14542 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14543 $ac_dir/__uninstall__::
14544 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14545 install install-dev:: $ac_dir/__install__
14546 __uninstall__: $ac_dir/__uninstall__"
14549 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14550 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
14553 wine_fn_config_dll ()
14555 ac_name=$1
14556 ac_dir=dlls/$ac_name
14557 ac_enable=$2
14558 ac_flags=$3
14559 ac_implib=${4:-$ac_name}
14560 ac_file=$ac_dir/lib$ac_implib
14561 ac_dll=$ac_name
14562 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14563 ac_implibflags=""
14565 case $ac_name in
14566 *16) ac_implibflags=" -m16" ;;
14567 *.*) ;;
14568 *) ac_dll=$ac_dll.dll ;;
14569 esac
14571 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
14573 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14574 test "$ac_enable" != enable_win16 || return 0
14575 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14576 else
14577 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14578 "$ac_dir: __builddeps__
14579 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14580 @cd $ac_dir && \$(MAKE) \$@"
14582 if wine_fn_has_flag install-lib $ac_flags
14583 then :
14584 else
14585 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14586 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14587 install install-lib:: $ac_dir/__install-lib__
14588 __uninstall__: $ac_dir/__uninstall__"
14589 if test -n "$DLLEXT"
14590 then
14591 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14592 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14593 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14594 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14595 $ac_dir/__uninstall__::
14596 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14597 else
14598 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14599 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14600 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14601 $ac_dir/__uninstall__::
14602 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14606 wine_fn_pot_rules $ac_dir $ac_flags
14609 if wine_fn_has_flag staticimplib $ac_flags
14610 then
14611 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14612 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14613 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14614 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14615 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14616 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14617 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14618 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14619 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14620 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14621 $ac_dir/__uninstall__::
14622 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14623 install install-dev:: $ac_dir/__install-dev__
14624 __uninstall__: $ac_dir/__uninstall__"
14626 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14627 then
14628 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14629 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14630 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14631 $ac_dir/__uninstall__::
14632 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14635 if test "x$CROSSTEST_DISABLE" = x
14636 then
14637 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14638 "__builddeps__: $ac_file.cross.a
14639 $ac_file.cross.a: $ac_dir/Makefile dummy
14640 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14643 elif wine_fn_has_flag implib $ac_flags
14644 then
14645 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14646 "__builddeps__: $ac_file.$IMPLIBEXT
14647 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14648 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14649 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14650 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14651 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14652 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14653 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14654 $ac_dir/__uninstall__::
14655 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14656 install install-dev:: $ac_dir/__install-dev__
14657 __uninstall__: $ac_dir/__uninstall__"
14658 if test "x$CROSSTEST_DISABLE" = x
14659 then
14660 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14661 "__builddeps__: $ac_file.cross.a
14662 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14663 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14666 if test "$ac_name" != "$ac_implib"
14667 then
14668 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14669 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14670 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14671 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14672 clean::
14673 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14674 if test "x$CROSSTEST_DISABLE" = x
14675 then
14676 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14677 "__builddeps__: dlls/lib$ac_implib.cross.a
14678 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14679 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14685 wine_fn_config_program ()
14687 ac_name=$1
14688 ac_dir=programs/$ac_name
14689 ac_enable=$2
14690 ac_flags=$3
14691 ac_program=$ac_name
14693 case $ac_name in
14694 *.*) ;;
14695 *) ac_program=$ac_program.exe ;;
14696 esac
14698 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
14700 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14702 else
14703 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14704 "$ac_dir: __builddeps__"
14706 wine_fn_pot_rules $ac_dir $ac_flags
14708 wine_fn_has_flag install $ac_flags || return
14709 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14710 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14711 install install-lib:: $ac_dir/__install__
14712 __uninstall__: $ac_dir/__uninstall__"
14714 if test -n "$DLLEXT"
14715 then
14716 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14717 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14718 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
14719 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
14720 $ac_dir/__uninstall__::
14721 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
14723 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14724 then
14725 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14726 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
14727 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14728 $ac_dir/__uninstall__::
14729 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14731 else
14732 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14733 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14734 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
14735 $ac_dir/__uninstall__::
14736 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
14739 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
14740 then
14741 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14742 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
14743 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
14744 $ac_dir/__uninstall__::
14745 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
14750 wine_fn_config_test ()
14752 ac_dir=$1
14753 ac_name=$2
14754 ac_flags=$3
14755 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
14756 wine_fn_all_dir_rules $ac_dir Maketest.rules
14758 if test "x$enable_tests" = xno; then :
14760 else
14761 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14762 "all: $ac_dir
14763 .PHONY: $ac_dir
14764 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
14765 @cd $ac_dir && \$(MAKE)
14766 programs/winetest: $ac_dir
14767 check test: $ac_dir/__test__
14768 .PHONY: $ac_dir/__test__
14769 $ac_dir/__test__: dummy
14770 @cd $ac_dir && \$(MAKE) test
14771 testclean::
14772 \$(RM) $ac_dir/*.ok"
14774 if test "x$CROSSTEST_DISABLE" = x
14775 then
14776 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14777 "crosstest: $ac_dir/__crosstest__
14778 .PHONY: $ac_dir/__crosstest__
14779 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14780 @cd $ac_dir && \$(MAKE) crosstest"
14785 wine_fn_config_tool ()
14787 ac_dir=$1
14788 ac_flags=$2
14789 if test "x$enable_tools" = xno; then :
14790 return 0
14793 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
14795 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14796 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
14797 case $ac_dir in
14798 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14799 esac
14802 wine_fn_config_makerules ()
14804 ac_rules=$1
14805 ac_deps=$2
14806 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14807 "$ac_rules: $ac_rules.in $ac_deps config.status
14808 @./config.status $ac_rules
14809 distclean::
14810 \$(RM) $ac_rules"
14813 wine_fn_config_symlink ()
14815 ac_link=$1
14816 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14817 "$ac_link:
14818 @./config.status $ac_link
14819 distclean::
14820 \$(RM) $ac_link"
14823 if test "x$CROSSTEST_DISABLE" != x
14824 then
14825 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14826 "crosstest:
14827 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14829 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14830 wine_fn_config_symlink dlls/shell32/AUTHORS
14831 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14832 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14833 if test "x$enable_fonts" != xno; then
14834 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14835 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14837 if test "x$enable_fonts" != xno; then
14838 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14839 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14841 if test "x$enable_fonts" != xno; then
14842 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14843 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14845 if test "x$enable_fonts" != xno; then
14846 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14847 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14849 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
14850 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
14851 if test "x$enable_tools" != xno; then
14852 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14853 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14855 ac_config_links="$ac_config_links wine:tools/winewrapper"
14856 wine_fn_config_symlink wine
14857 if test "x$enable_win64" != xno; then
14858 ac_config_links="$ac_config_links wine64:tools/winewrapper"
14859 wine_fn_config_symlink wine64
14862 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14864 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14866 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14868 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14870 ac_config_commands="$ac_config_commands dlls/user32/resources"
14872 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14874 ac_config_commands="$ac_config_commands include/wine"
14877 wine_fn_config_makerules Make.rules
14878 MAKE_RULES=Make.rules
14879 ac_config_files="$ac_config_files Make.rules"
14881 wine_fn_config_makerules Maketest.rules Make.rules
14882 MAKE_TEST_RULES=Maketest.rules
14883 ac_config_files="$ac_config_files Maketest.rules"
14885 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14886 MAKE_DLL_RULES=dlls/Makedll.rules
14887 ac_config_files="$ac_config_files dlls/Makedll.rules"
14889 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14890 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14891 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14893 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14894 MAKE_PROG_RULES=programs/Makeprog.rules
14895 ac_config_files="$ac_config_files programs/Makeprog.rules"
14898 wine_fn_config_dll acledit enable_acledit
14899 wine_fn_config_dll aclui enable_aclui implib
14900 wine_fn_config_dll activeds enable_activeds implib
14901 wine_fn_config_dll actxprxy enable_actxprxy
14902 wine_fn_config_lib adsiid
14903 wine_fn_config_dll advapi32 enable_advapi32 implib
14904 wine_fn_config_test dlls/advapi32/tests advapi32_test
14905 wine_fn_config_dll advpack enable_advpack implib
14906 wine_fn_config_test dlls/advpack/tests advpack_test
14907 wine_fn_config_dll amstream enable_amstream
14908 wine_fn_config_test dlls/amstream/tests amstream_test
14909 wine_fn_config_dll apphelp enable_apphelp
14910 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14911 wine_fn_config_dll atl enable_atl implib
14912 wine_fn_config_test dlls/atl/tests atl_test
14913 wine_fn_config_dll authz enable_authz
14914 wine_fn_config_dll avicap32 enable_avicap32 implib
14915 wine_fn_config_dll avifil32 enable_avifil32 implib,po
14916 wine_fn_config_test dlls/avifil32/tests avifil32_test
14917 wine_fn_config_dll avifile.dll16 enable_win16
14918 wine_fn_config_dll avrt enable_avrt implib
14919 wine_fn_config_dll bcrypt enable_bcrypt
14920 wine_fn_config_dll browseui enable_browseui po
14921 wine_fn_config_test dlls/browseui/tests browseui_test
14922 wine_fn_config_dll cabinet enable_cabinet implib
14923 wine_fn_config_test dlls/cabinet/tests cabinet_test
14924 wine_fn_config_dll capi2032 enable_capi2032 implib
14925 wine_fn_config_dll cards enable_cards implib
14926 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14927 wine_fn_config_dll clusapi enable_clusapi implib
14928 wine_fn_config_dll comcat enable_comcat
14929 wine_fn_config_test dlls/comcat/tests comcat_test
14930 wine_fn_config_dll comctl32 enable_comctl32 implib,po
14931 wine_fn_config_test dlls/comctl32/tests comctl32_test
14932 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
14933 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14934 wine_fn_config_dll comm.drv16 enable_win16
14935 wine_fn_config_dll commdlg.dll16 enable_win16
14936 wine_fn_config_dll compobj.dll16 enable_win16
14937 wine_fn_config_dll compstui enable_compstui implib
14938 wine_fn_config_dll credui enable_credui implib,po
14939 wine_fn_config_test dlls/credui/tests credui_test
14940 wine_fn_config_dll crtdll enable_crtdll implib
14941 wine_fn_config_dll crypt32 enable_crypt32 implib,po
14942 wine_fn_config_test dlls/crypt32/tests crypt32_test
14943 wine_fn_config_dll cryptdlg enable_cryptdlg po
14944 wine_fn_config_dll cryptdll enable_cryptdll implib
14945 wine_fn_config_dll cryptnet enable_cryptnet implib
14946 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14947 wine_fn_config_dll cryptui enable_cryptui implib,po
14948 wine_fn_config_test dlls/cryptui/tests cryptui_test
14949 wine_fn_config_dll ctapi32 enable_ctapi32
14950 wine_fn_config_dll ctl3d.dll16 enable_win16
14951 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14952 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14953 wine_fn_config_dll d3d10 enable_d3d10 implib
14954 wine_fn_config_test dlls/d3d10/tests d3d10_test
14955 wine_fn_config_dll d3d10core enable_d3d10core implib
14956 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14957 wine_fn_config_dll d3d8 enable_d3d8 implib
14958 wine_fn_config_test dlls/d3d8/tests d3d8_test
14959 wine_fn_config_dll d3d9 enable_d3d9 implib
14960 wine_fn_config_test dlls/d3d9/tests d3d9_test
14961 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14962 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14963 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14964 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14965 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14966 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14967 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14968 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14969 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14970 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14971 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14972 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14973 wine_fn_config_dll d3dim enable_d3dim implib
14974 wine_fn_config_dll d3drm enable_d3drm implib
14975 wine_fn_config_test dlls/d3drm/tests d3drm_test
14976 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14977 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14978 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14979 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14980 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14981 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14982 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14983 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14984 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14985 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14986 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14987 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14988 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14989 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14990 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14991 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14992 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14993 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14994 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14995 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14996 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14997 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14998 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14999 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15000 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15001 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15002 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15003 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15004 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15005 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15006 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15007 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15008 wine_fn_config_dll d3dxof enable_d3dxof implib
15009 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15010 wine_fn_config_dll dbgeng enable_dbgeng implib
15011 wine_fn_config_dll dbghelp enable_dbghelp implib
15012 wine_fn_config_dll dciman32 enable_dciman32 implib
15013 wine_fn_config_dll ddeml.dll16 enable_win16
15014 wine_fn_config_dll ddraw enable_ddraw implib
15015 wine_fn_config_test dlls/ddraw/tests ddraw_test
15016 wine_fn_config_dll ddrawex enable_ddrawex
15017 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15018 wine_fn_config_dll devenum enable_devenum po
15019 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15020 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15021 wine_fn_config_test dlls/dinput/tests dinput_test
15022 wine_fn_config_dll dinput8 enable_dinput8 implib
15023 wine_fn_config_test dlls/dinput8/tests dinput8_test
15024 wine_fn_config_dll dispdib.dll16 enable_win16
15025 wine_fn_config_dll dispex enable_dispex
15026 wine_fn_config_test dlls/dispex/tests dispex_test
15027 wine_fn_config_dll display.drv16 enable_win16
15028 wine_fn_config_dll dmband enable_dmband
15029 wine_fn_config_dll dmcompos enable_dmcompos
15030 wine_fn_config_dll dmime enable_dmime
15031 wine_fn_config_test dlls/dmime/tests dmime_test
15032 wine_fn_config_dll dmloader enable_dmloader
15033 wine_fn_config_test dlls/dmloader/tests dmloader_test
15034 wine_fn_config_dll dmscript enable_dmscript
15035 wine_fn_config_dll dmstyle enable_dmstyle
15036 wine_fn_config_dll dmsynth enable_dmsynth
15037 wine_fn_config_dll dmusic enable_dmusic
15038 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15039 wine_fn_config_dll dnsapi enable_dnsapi implib
15040 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15041 wine_fn_config_dll dplay enable_dplay implib
15042 wine_fn_config_dll dplayx enable_dplayx implib
15043 wine_fn_config_test dlls/dplayx/tests dplayx_test
15044 wine_fn_config_dll dpnaddr enable_dpnaddr
15045 wine_fn_config_dll dpnet enable_dpnet implib
15046 wine_fn_config_test dlls/dpnet/tests dpnet_test
15047 wine_fn_config_dll dpnhpast enable_dpnhpast
15048 wine_fn_config_dll dpnlobby enable_dpnlobby
15049 wine_fn_config_dll dpwsockx enable_dpwsockx
15050 wine_fn_config_dll drmclien enable_drmclien
15051 wine_fn_config_dll dsound enable_dsound implib
15052 wine_fn_config_test dlls/dsound/tests dsound_test
15053 wine_fn_config_dll dssenh enable_dssenh
15054 wine_fn_config_dll dswave enable_dswave
15055 wine_fn_config_dll dwmapi enable_dwmapi implib
15056 wine_fn_config_dll dxdiagn enable_dxdiagn po
15057 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15058 wine_fn_config_lib dxerr8
15059 wine_fn_config_lib dxerr9
15060 wine_fn_config_dll dxgi enable_dxgi implib
15061 wine_fn_config_test dlls/dxgi/tests dxgi_test
15062 wine_fn_config_lib dxguid
15063 wine_fn_config_dll explorerframe enable_explorerframe
15064 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15065 wine_fn_config_dll faultrep enable_faultrep implib
15066 wine_fn_config_test dlls/faultrep/tests faultrep_test
15067 wine_fn_config_dll fltlib enable_fltlib
15068 wine_fn_config_dll fusion enable_fusion
15069 wine_fn_config_test dlls/fusion/tests fusion_test
15070 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15071 wine_fn_config_dll gameux enable_gameux
15072 wine_fn_config_test dlls/gameux/tests gameux_test
15073 wine_fn_config_dll gdi.exe16 enable_win16
15074 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15075 wine_fn_config_test dlls/gdi32/tests gdi32_test
15076 wine_fn_config_dll gdiplus enable_gdiplus implib
15077 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15078 wine_fn_config_dll glu32 enable_glu32 implib
15079 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15080 wine_fn_config_dll gpkcsp enable_gpkcsp
15081 wine_fn_config_dll hal enable_hal
15082 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15083 wine_fn_config_dll hid enable_hid implib
15084 wine_fn_config_dll hlink enable_hlink implib
15085 wine_fn_config_test dlls/hlink/tests hlink_test
15086 wine_fn_config_dll hnetcfg enable_hnetcfg
15087 wine_fn_config_dll httpapi enable_httpapi
15088 wine_fn_config_dll iccvid enable_iccvid po
15089 wine_fn_config_dll icmp enable_icmp
15090 wine_fn_config_dll ieframe enable_ieframe implib,po
15091 wine_fn_config_test dlls/ieframe/tests ieframe_test
15092 wine_fn_config_dll ifsmgr.vxd enable_win16
15093 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15094 wine_fn_config_dll imagehlp enable_imagehlp implib
15095 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15096 wine_fn_config_dll imm.dll16 enable_win16
15097 wine_fn_config_dll imm32 enable_imm32 implib
15098 wine_fn_config_test dlls/imm32/tests imm32_test
15099 wine_fn_config_dll inetcomm enable_inetcomm implib
15100 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15101 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15102 wine_fn_config_dll inetmib1 enable_inetmib1
15103 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15104 wine_fn_config_dll infosoft enable_infosoft
15105 wine_fn_config_test dlls/infosoft/tests infosoft_test
15106 wine_fn_config_dll initpki enable_initpki
15107 wine_fn_config_dll inkobj enable_inkobj
15108 wine_fn_config_dll inseng enable_inseng
15109 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15110 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15111 wine_fn_config_dll itircl enable_itircl
15112 wine_fn_config_dll itss enable_itss
15113 wine_fn_config_test dlls/itss/tests itss_test
15114 wine_fn_config_dll jscript enable_jscript po
15115 wine_fn_config_test dlls/jscript/tests jscript_test
15116 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15117 wine_fn_config_test dlls/kernel32/tests kernel32_test
15118 wine_fn_config_dll keyboard.drv16 enable_win16
15119 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15120 wine_fn_config_dll ktmw32 enable_ktmw32
15121 wine_fn_config_dll loadperf enable_loadperf implib
15122 wine_fn_config_dll localspl enable_localspl po
15123 wine_fn_config_test dlls/localspl/tests localspl_test
15124 wine_fn_config_dll localui enable_localui po
15125 wine_fn_config_test dlls/localui/tests localui_test
15126 wine_fn_config_dll lz32 enable_lz32 implib
15127 wine_fn_config_test dlls/lz32/tests lz32_test
15128 wine_fn_config_dll lzexpand.dll16 enable_win16
15129 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15130 wine_fn_config_test dlls/mapi32/tests mapi32_test
15131 wine_fn_config_dll mapistub enable_mapistub
15132 wine_fn_config_dll mciavi32 enable_mciavi32
15133 wine_fn_config_dll mcicda enable_mcicda
15134 wine_fn_config_dll mciqtz32 enable_mciqtz32
15135 wine_fn_config_dll mciseq enable_mciseq
15136 wine_fn_config_dll mciwave enable_mciwave
15137 wine_fn_config_dll midimap enable_midimap
15138 wine_fn_config_dll mlang enable_mlang implib
15139 wine_fn_config_test dlls/mlang/tests mlang_test
15140 wine_fn_config_dll mmcndmgr enable_mmcndmgr
15141 wine_fn_config_dll mmdevapi enable_mmdevapi
15142 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15143 wine_fn_config_dll mmdevldr.vxd enable_win16
15144 wine_fn_config_dll mmsystem.dll16 enable_win16
15145 wine_fn_config_dll monodebg.vxd enable_win16
15146 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15147 wine_fn_config_dll mouse.drv16 enable_win16
15148 wine_fn_config_dll mpr enable_mpr implib,po
15149 wine_fn_config_dll mprapi enable_mprapi implib
15150 wine_fn_config_dll msacm.dll16 enable_win16
15151 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15152 wine_fn_config_dll msacm32 enable_msacm32 implib,po
15153 wine_fn_config_test dlls/msacm32/tests msacm32_test
15154 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15155 wine_fn_config_dll mscat32 enable_mscat32
15156 wine_fn_config_dll mscms enable_mscms implib
15157 wine_fn_config_test dlls/mscms/tests mscms_test
15158 wine_fn_config_dll mscoree enable_mscoree
15159 wine_fn_config_test dlls/mscoree/tests mscoree_test
15160 wine_fn_config_dll msctf enable_msctf
15161 wine_fn_config_test dlls/msctf/tests msctf_test
15162 wine_fn_config_dll msdaps enable_msdaps
15163 wine_fn_config_dll msdmo enable_msdmo implib
15164 wine_fn_config_dll msftedit enable_msftedit
15165 wine_fn_config_dll msg711.acm enable_msg711_acm
15166 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15167 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15168 wine_fn_config_dll mshtml enable_mshtml implib,po
15169 wine_fn_config_test dlls/mshtml/tests mshtml_test
15170 wine_fn_config_dll msi enable_msi implib,po
15171 wine_fn_config_test dlls/msi/tests msi_test
15172 wine_fn_config_dll msimg32 enable_msimg32 implib
15173 wine_fn_config_dll msimsg enable_msimsg
15174 wine_fn_config_dll msimtf enable_msimtf
15175 wine_fn_config_dll msisip enable_msisip
15176 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15177 wine_fn_config_dll msnet32 enable_msnet32
15178 wine_fn_config_dll mspatcha enable_mspatcha
15179 wine_fn_config_dll msrle32 enable_msrle32 po
15180 wine_fn_config_dll mssign32 enable_mssign32
15181 wine_fn_config_dll mssip32 enable_mssip32
15182 wine_fn_config_dll mstask enable_mstask
15183 wine_fn_config_test dlls/mstask/tests mstask_test
15184 wine_fn_config_dll msvcirt enable_msvcirt
15185 wine_fn_config_dll msvcp100 enable_msvcp100
15186 wine_fn_config_dll msvcp60 enable_msvcp60
15187 wine_fn_config_dll msvcp70 enable_msvcp70
15188 wine_fn_config_dll msvcp71 enable_msvcp71
15189 wine_fn_config_dll msvcp80 enable_msvcp80
15190 wine_fn_config_dll msvcp90 enable_msvcp90
15191 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15192 wine_fn_config_dll msvcr100 enable_msvcr100
15193 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15194 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15195 wine_fn_config_dll msvcr80 enable_msvcr80
15196 wine_fn_config_dll msvcr90 enable_msvcr90
15197 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15198 wine_fn_config_dll msvcrt enable_msvcrt implib
15199 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15200 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15201 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15202 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15203 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15204 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
15205 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15206 wine_fn_config_dll msvidc32 enable_msvidc32 po
15207 wine_fn_config_dll msvideo.dll16 enable_win16
15208 wine_fn_config_dll mswsock enable_mswsock implib
15209 wine_fn_config_dll msxml enable_msxml
15210 wine_fn_config_dll msxml2 enable_msxml2
15211 wine_fn_config_dll msxml3 enable_msxml3
15212 wine_fn_config_test dlls/msxml3/tests msxml3_test
15213 wine_fn_config_dll msxml4 enable_msxml4
15214 wine_fn_config_dll msxml6 enable_msxml6
15215 wine_fn_config_dll nddeapi enable_nddeapi implib
15216 wine_fn_config_dll netapi32 enable_netapi32 implib
15217 wine_fn_config_test dlls/netapi32/tests netapi32_test
15218 wine_fn_config_dll newdev enable_newdev implib
15219 wine_fn_config_dll normaliz enable_normaliz implib
15220 wine_fn_config_dll npmshtml enable_npmshtml
15221 wine_fn_config_dll ntdll enable_ntdll implib
15222 wine_fn_config_test dlls/ntdll/tests ntdll_test
15223 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15224 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15225 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15226 wine_fn_config_dll ntprint enable_ntprint
15227 wine_fn_config_test dlls/ntprint/tests ntprint_test
15228 wine_fn_config_dll objsel enable_objsel
15229 wine_fn_config_dll odbc32 enable_odbc32 implib
15230 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15231 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15232 wine_fn_config_dll ole2.dll16 enable_win16
15233 wine_fn_config_dll ole2conv.dll16 enable_win16
15234 wine_fn_config_dll ole2disp.dll16 enable_win16
15235 wine_fn_config_dll ole2nls.dll16 enable_win16
15236 wine_fn_config_dll ole2prox.dll16 enable_win16
15237 wine_fn_config_dll ole2thk.dll16 enable_win16
15238 wine_fn_config_dll ole32 enable_ole32 implib
15239 wine_fn_config_test dlls/ole32/tests ole32_test
15240 wine_fn_config_dll oleacc enable_oleacc implib,po
15241 wine_fn_config_test dlls/oleacc/tests oleacc_test
15242 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
15243 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15244 wine_fn_config_dll olecli.dll16 enable_win16
15245 wine_fn_config_dll olecli32 enable_olecli32 implib
15246 wine_fn_config_dll oledb32 enable_oledb32
15247 wine_fn_config_test dlls/oledb32/tests oledb32_test
15248 wine_fn_config_dll oledlg enable_oledlg implib,po
15249 wine_fn_config_dll olepro32 enable_olepro32 implib
15250 wine_fn_config_dll olesvr.dll16 enable_win16
15251 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15252 wine_fn_config_dll olethk32 enable_olethk32
15253 wine_fn_config_dll openal32 enable_openal32
15254 wine_fn_config_dll opencl enable_opencl
15255 wine_fn_config_dll opengl32 enable_opengl32 implib
15256 wine_fn_config_test dlls/opengl32/tests opengl32_test
15257 wine_fn_config_dll pdh enable_pdh implib
15258 wine_fn_config_test dlls/pdh/tests pdh_test
15259 wine_fn_config_dll photometadatahandler enable_photometadatahandler
15260 wine_fn_config_dll pidgen enable_pidgen
15261 wine_fn_config_dll powrprof enable_powrprof implib
15262 wine_fn_config_dll printui enable_printui
15263 wine_fn_config_dll propsys enable_propsys implib
15264 wine_fn_config_test dlls/propsys/tests propsys_test
15265 wine_fn_config_dll psapi enable_psapi implib
15266 wine_fn_config_test dlls/psapi/tests psapi_test
15267 wine_fn_config_dll pstorec enable_pstorec
15268 wine_fn_config_dll qcap enable_qcap
15269 wine_fn_config_dll qedit enable_qedit
15270 wine_fn_config_test dlls/qedit/tests qedit_test
15271 wine_fn_config_dll qmgr enable_qmgr
15272 wine_fn_config_test dlls/qmgr/tests qmgr_test
15273 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15274 wine_fn_config_dll quartz enable_quartz implib
15275 wine_fn_config_test dlls/quartz/tests quartz_test
15276 wine_fn_config_dll query enable_query
15277 wine_fn_config_dll rasapi16.dll16 enable_win16
15278 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15279 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15280 wine_fn_config_dll rasdlg enable_rasdlg implib
15281 wine_fn_config_dll regapi enable_regapi
15282 wine_fn_config_dll resutils enable_resutils implib
15283 wine_fn_config_dll riched20 enable_riched20 implib
15284 wine_fn_config_test dlls/riched20/tests riched20_test
15285 wine_fn_config_dll riched32 enable_riched32
15286 wine_fn_config_test dlls/riched32/tests riched32_test
15287 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15288 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15289 wine_fn_config_dll rsabase enable_rsabase
15290 wine_fn_config_dll rsaenh enable_rsaenh implib
15291 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15292 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15293 wine_fn_config_dll rtutils enable_rtutils implib
15294 wine_fn_config_dll samlib enable_samlib
15295 wine_fn_config_dll sane.ds enable_sane_ds po
15296 wine_fn_config_dll scarddlg enable_scarddlg
15297 wine_fn_config_dll sccbase enable_sccbase
15298 wine_fn_config_dll schannel enable_schannel
15299 wine_fn_config_test dlls/schannel/tests schannel_test
15300 wine_fn_config_dll scrrun enable_scrrun
15301 wine_fn_config_dll secur32 enable_secur32 implib
15302 wine_fn_config_test dlls/secur32/tests secur32_test
15303 wine_fn_config_dll security enable_security
15304 wine_fn_config_dll sensapi enable_sensapi implib
15305 wine_fn_config_dll serialui enable_serialui implib,po
15306 wine_fn_config_test dlls/serialui/tests serialui_test
15307 wine_fn_config_dll setupapi enable_setupapi implib,po
15308 wine_fn_config_test dlls/setupapi/tests setupapi_test
15309 wine_fn_config_dll setupx.dll16 enable_win16
15310 wine_fn_config_dll sfc enable_sfc implib
15311 wine_fn_config_dll sfc_os enable_sfc_os implib
15312 wine_fn_config_dll shdoclc enable_shdoclc po
15313 wine_fn_config_dll shdocvw enable_shdocvw implib
15314 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15315 wine_fn_config_dll shell.dll16 enable_win16
15316 wine_fn_config_dll shell32 enable_shell32 implib,po
15317 wine_fn_config_test dlls/shell32/tests shell32_test
15318 wine_fn_config_dll shfolder enable_shfolder implib
15319 wine_fn_config_dll shlwapi enable_shlwapi implib,po
15320 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15321 wine_fn_config_dll slbcsp enable_slbcsp
15322 wine_fn_config_dll slc enable_slc implib
15323 wine_fn_config_dll snmpapi enable_snmpapi implib
15324 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15325 wine_fn_config_dll softpub enable_softpub
15326 wine_fn_config_dll sound.drv16 enable_win16
15327 wine_fn_config_dll spoolss enable_spoolss implib
15328 wine_fn_config_test dlls/spoolss/tests spoolss_test
15329 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15330 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15331 wine_fn_config_dll sti enable_sti implib
15332 wine_fn_config_test dlls/sti/tests sti_test
15333 wine_fn_config_dll storage.dll16 enable_win16
15334 wine_fn_config_dll stress.dll16 enable_win16
15335 wine_fn_config_lib strmbase
15336 wine_fn_config_lib strmiids
15337 wine_fn_config_dll svrapi enable_svrapi
15338 wine_fn_config_dll sxs enable_sxs
15339 wine_fn_config_dll system.drv16 enable_win16
15340 wine_fn_config_dll t2embed enable_t2embed
15341 wine_fn_config_dll tapi32 enable_tapi32 implib
15342 wine_fn_config_dll toolhelp.dll16 enable_win16
15343 wine_fn_config_dll traffic enable_traffic
15344 wine_fn_config_dll twain.dll16 enable_win16
15345 wine_fn_config_dll twain_32 enable_twain_32
15346 wine_fn_config_test dlls/twain_32/tests twain_32_test
15347 wine_fn_config_dll typelib.dll16 enable_win16
15348 wine_fn_config_dll unicows enable_unicows implib
15349 wine_fn_config_dll updspapi enable_updspapi
15350 wine_fn_config_dll url enable_url implib
15351 wine_fn_config_dll urlmon enable_urlmon implib
15352 wine_fn_config_test dlls/urlmon/tests urlmon_test
15353 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15354 wine_fn_config_dll user.exe16 enable_win16
15355 wine_fn_config_dll user32 enable_user32 implib,po
15356 wine_fn_config_test dlls/user32/tests user32_test
15357 wine_fn_config_dll userenv enable_userenv implib
15358 wine_fn_config_test dlls/userenv/tests userenv_test
15359 wine_fn_config_dll usp10 enable_usp10 implib
15360 wine_fn_config_test dlls/usp10/tests usp10_test
15361 wine_fn_config_lib uuid
15362 wine_fn_config_dll uxtheme enable_uxtheme implib
15363 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15364 wine_fn_config_dll vbscript enable_vbscript
15365 wine_fn_config_test dlls/vbscript/tests vbscript_test
15366 wine_fn_config_dll vcomp enable_vcomp
15367 wine_fn_config_dll vdhcp.vxd enable_win16
15368 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15369 wine_fn_config_dll ver.dll16 enable_win16
15370 wine_fn_config_dll version enable_version implib
15371 wine_fn_config_test dlls/version/tests version_test
15372 wine_fn_config_dll vmm.vxd enable_win16
15373 wine_fn_config_dll vnbt.vxd enable_win16
15374 wine_fn_config_dll vnetbios.vxd enable_win16
15375 wine_fn_config_dll vtdapi.vxd enable_win16
15376 wine_fn_config_dll vwin32.vxd enable_win16
15377 wine_fn_config_dll w32skrnl enable_win16
15378 wine_fn_config_dll w32sys.dll16 enable_win16
15379 wine_fn_config_dll wbemprox enable_wbemprox
15380 wine_fn_config_dll wer enable_wer implib
15381 wine_fn_config_test dlls/wer/tests wer_test
15382 wine_fn_config_dll wiaservc enable_wiaservc
15383 wine_fn_config_dll win32s16.dll16 enable_win16
15384 wine_fn_config_dll win87em.dll16 enable_win16
15385 wine_fn_config_dll winaspi.dll16 enable_win16
15386 wine_fn_config_dll windebug.dll16 enable_win16
15387 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15388 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15389 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15390 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15391 wine_fn_config_lib winecrt0
15392 wine_fn_config_dll wined3d enable_wined3d implib
15393 wine_fn_config_dll winegstreamer enable_winegstreamer
15394 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15395 wine_fn_config_dll winemapi enable_winemapi
15396 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15397 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15398 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
15399 wine_fn_config_dll wineps16.drv16 enable_win16
15400 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15401 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15402 wine_fn_config_dll winex11.drv enable_winex11_drv
15403 wine_fn_config_dll wing.dll16 enable_win16
15404 wine_fn_config_dll wing32 enable_wing32
15405 wine_fn_config_dll winhttp enable_winhttp implib
15406 wine_fn_config_test dlls/winhttp/tests winhttp_test
15407 wine_fn_config_dll wininet enable_wininet implib,po
15408 wine_fn_config_test dlls/wininet/tests wininet_test
15409 wine_fn_config_dll winmm enable_winmm implib,po
15410 wine_fn_config_test dlls/winmm/tests winmm_test
15411 wine_fn_config_dll winnls.dll16 enable_win16
15412 wine_fn_config_dll winnls32 enable_winnls32 implib
15413 wine_fn_config_dll winscard enable_winscard implib
15414 wine_fn_config_dll winsock.dll16 enable_win16
15415 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
15416 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15417 wine_fn_config_dll winsta enable_winsta
15418 wine_fn_config_dll wintab.dll16 enable_win16
15419 wine_fn_config_dll wintab32 enable_wintab32 implib
15420 wine_fn_config_test dlls/wintab32/tests wintab32_test
15421 wine_fn_config_dll wintrust enable_wintrust implib
15422 wine_fn_config_test dlls/wintrust/tests wintrust_test
15423 wine_fn_config_dll wlanapi enable_wlanapi
15424 wine_fn_config_dll wldap32 enable_wldap32 implib,po
15425 wine_fn_config_test dlls/wldap32/tests wldap32_test
15426 wine_fn_config_dll wmi enable_wmi
15427 wine_fn_config_dll wmiutils enable_wmiutils
15428 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15429 wine_fn_config_dll wow32 enable_win16 implib
15430 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15431 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15432 wine_fn_config_dll wshom.ocx enable_wshom_ocx
15433 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
15434 wine_fn_config_dll wsock32 enable_wsock32 implib
15435 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15436 wine_fn_config_dll wuapi enable_wuapi
15437 wine_fn_config_dll wuaueng enable_wuaueng
15438 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15439 wine_fn_config_dll xinput1_1 enable_xinput1_1
15440 wine_fn_config_dll xinput1_2 enable_xinput1_2
15441 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15442 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15443 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15444 wine_fn_config_dll xmllite enable_xmllite
15445 wine_fn_config_test dlls/xmllite/tests xmllite_test
15446 wine_fn_config_dll xolehlp enable_xolehlp
15447 wine_fn_config_dll xpsprint enable_xpsprint
15448 wine_fn_config_makefile documentation enable_documentation
15449 wine_fn_config_makefile fonts enable_fonts install-lib
15450 wine_fn_config_makefile include enable_include install-dev
15451 wine_fn_config_makefile libs/port enable_libs_port
15452 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
15453 wine_fn_config_makefile libs/wpp enable_libs_wpp
15454 wine_fn_config_makefile loader enable_loader install-lib,manpage
15455 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15456 wine_fn_config_program attrib enable_attrib install,po
15457 wine_fn_config_program cabarc enable_cabarc install
15458 wine_fn_config_program cacls enable_cacls install
15459 wine_fn_config_program clock enable_clock install,po
15460 wine_fn_config_program cmd enable_cmd install,po
15461 wine_fn_config_test programs/cmd/tests cmd.exe_test
15462 wine_fn_config_program control enable_control install
15463 wine_fn_config_program cscript enable_cscript install
15464 wine_fn_config_program dxdiag enable_dxdiag install,po
15465 wine_fn_config_program eject enable_eject install
15466 wine_fn_config_program expand enable_expand install
15467 wine_fn_config_program explorer enable_explorer install,po
15468 wine_fn_config_program extrac32 enable_extrac32 install
15469 wine_fn_config_program hh enable_hh install
15470 wine_fn_config_program hostname enable_hostname install,po
15471 wine_fn_config_program icinfo enable_icinfo install
15472 wine_fn_config_program iexplore enable_iexplore install
15473 wine_fn_config_program ipconfig enable_ipconfig install,po
15474 wine_fn_config_program lodctr enable_lodctr install
15475 wine_fn_config_program mofcomp enable_mofcomp install
15476 wine_fn_config_program mshta enable_mshta install
15477 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
15478 wine_fn_config_program net enable_net install,po
15479 wine_fn_config_program netsh enable_netsh install
15480 wine_fn_config_program ngen enable_ngen install
15481 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
15482 wine_fn_config_program oleview enable_oleview install,po
15483 wine_fn_config_program ping enable_ping install
15484 wine_fn_config_program plugplay enable_plugplay install
15485 wine_fn_config_program presentationfontcache enable_presentationfontcache install
15486 wine_fn_config_program progman enable_progman install,po
15487 wine_fn_config_program reg enable_reg install,po
15488 wine_fn_config_program regasm enable_regasm install
15489 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
15490 wine_fn_config_test programs/regedit/tests regedit.exe_test
15491 wine_fn_config_program regsvcs enable_regsvcs install
15492 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
15493 wine_fn_config_program rpcss enable_rpcss install
15494 wine_fn_config_program rundll.exe16 enable_win16 install
15495 wine_fn_config_program rundll32 enable_rundll32 install
15496 wine_fn_config_program sc enable_sc install
15497 wine_fn_config_program secedit enable_secedit install
15498 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15499 wine_fn_config_program services enable_services install
15500 wine_fn_config_program spoolsv enable_spoolsv install
15501 wine_fn_config_program start enable_start install,po
15502 wine_fn_config_program svchost enable_svchost install
15503 wine_fn_config_program taskkill enable_taskkill install,po
15504 wine_fn_config_program taskmgr enable_taskmgr install,po
15505 wine_fn_config_program termsv enable_termsv install
15506 wine_fn_config_program uninstaller enable_uninstaller install,po
15507 wine_fn_config_program unlodctr enable_unlodctr install
15508 wine_fn_config_program view enable_view install,po
15509 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
15510 wine_fn_config_program winebrowser enable_winebrowser install
15511 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
15512 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
15513 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
15514 wine_fn_config_program winedevice enable_winedevice install
15515 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
15516 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15517 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
15518 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15519 wine_fn_config_program winepath enable_winepath install,installbin,manpage
15520 wine_fn_config_program winetest enable_winetest
15521 wine_fn_config_program winevdm enable_win16 install
15522 wine_fn_config_program winhelp.exe16 enable_win16 install
15523 wine_fn_config_program winhlp32 enable_winhlp32 install,po
15524 wine_fn_config_program winoldap.mod16 enable_win16 install
15525 wine_fn_config_program winver enable_winver install
15526 wine_fn_config_program wmic enable_wmic install
15527 wine_fn_config_program wordpad enable_wordpad install,po
15528 wine_fn_config_program write enable_write install,po
15529 wine_fn_config_program wscript enable_wscript install
15530 wine_fn_config_test programs/wscript/tests wscript.exe_test
15531 wine_fn_config_program xcopy enable_xcopy install,po
15532 wine_fn_config_makefile server enable_server install-lib,manpage
15533 wine_fn_config_tool tools install-dev,install-lib,manpage
15534 wine_fn_config_tool tools/widl install-dev,manpage
15535 wine_fn_config_tool tools/winebuild install-dev,manpage
15536 wine_fn_config_tool tools/winedump install-dev,manpage
15537 wine_fn_config_tool tools/winegcc install-dev,manpage
15538 wine_fn_config_tool tools/wmc install-dev,manpage
15539 wine_fn_config_tool tools/wrc install-dev,manpage
15541 LINGUAS="\
15542 ar \
15543 bg \
15544 ca \
15545 cs \
15546 da \
15547 de \
15548 el \
15549 en \
15550 en_US \
15551 eo \
15552 es \
15553 fa \
15554 fi \
15555 fr \
15556 he \
15557 hi \
15558 hu \
15559 it \
15560 ja \
15561 ko \
15562 lt \
15563 ml \
15564 nb_NO \
15565 nl \
15566 or \
15567 pa \
15568 pl \
15569 pt_BR \
15570 pt_PT \
15571 rm \
15572 ro \
15573 ru \
15574 sk \
15575 sl \
15576 sr_RS@cyrillic \
15577 sr_RS@latin \
15578 sv \
15579 te \
15580 th \
15581 tr \
15582 uk \
15583 wa \
15584 zh_CN \
15585 zh_TW"
15589 ac_config_commands="$ac_config_commands Makefile"
15592 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15596 if test "x$enable_maintainer_mode" = xyes
15597 then
15598 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15599 cd \$(srcdir) && autoconf --warnings=all
15600 \$(srcdir)/include/config.h.in: include/stamp-h.in
15601 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15602 cd \$(srcdir) && autoheader --warnings=all
15603 @echo timestamp > \$@"
15606 if test "x$with_gettextpo" = xyes
15607 then
15608 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
15609 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
15610 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
15611 msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15612 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15613 msgcat -o \$@ \$(ALL_POT_FILES)"
15616 if test "$MSGFMT" != false
15617 then
15618 PORCFLAGS="--po-dir=\$(top_builddir)/po"
15620 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
15621 else
15622 LINGUAS=
15625 if test "x$enable_tools" != xno
15626 then
15627 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15628 clean:: __clean__
15629 \$(RM) tools/makedep\$(EXEEXT)"
15632 if test -n "$with_wine64"
15633 then
15634 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15635 fonts server tools:
15636 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15637 $with_wine64/loader/wine:
15638 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15639 $with_wine64/loader/wine-preloader:
15640 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15641 clean::
15642 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15645 cat >confcache <<\_ACEOF
15646 # This file is a shell script that caches the results of configure
15647 # tests run on this system so they can be shared between configure
15648 # scripts and configure runs, see configure's option --config-cache.
15649 # It is not useful on other systems. If it contains results you don't
15650 # want to keep, you may remove or edit it.
15652 # config.status only pays attention to the cache file if you give it
15653 # the --recheck option to rerun configure.
15655 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15656 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15657 # following values.
15659 _ACEOF
15661 # The following way of writing the cache mishandles newlines in values,
15662 # but we know of no workaround that is simple, portable, and efficient.
15663 # So, we kill variables containing newlines.
15664 # Ultrix sh set writes to stderr and can't be redirected directly,
15665 # and sets the high bit in the cache file unless we assign to the vars.
15667 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15668 eval ac_val=\$$ac_var
15669 case $ac_val in #(
15670 *${as_nl}*)
15671 case $ac_var in #(
15672 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15673 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15674 esac
15675 case $ac_var in #(
15676 _ | IFS | as_nl) ;; #(
15677 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15678 *) { eval $ac_var=; unset $ac_var;} ;;
15679 esac ;;
15680 esac
15681 done
15683 (set) 2>&1 |
15684 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15685 *${as_nl}ac_space=\ *)
15686 # `set' does not quote correctly, so add quotes: double-quote
15687 # substitution turns \\\\ into \\, and sed turns \\ into \.
15688 sed -n \
15689 "s/'/'\\\\''/g;
15690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15691 ;; #(
15693 # `set' quotes correctly as required by POSIX, so do not add quotes.
15694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15696 esac |
15697 sort
15699 sed '
15700 /^ac_cv_env_/b end
15701 t clear
15702 :clear
15703 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15704 t end
15705 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15706 :end' >>confcache
15707 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15708 if test -w "$cache_file"; then
15709 if test "x$cache_file" != "x/dev/null"; then
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15711 $as_echo "$as_me: updating cache $cache_file" >&6;}
15712 if test ! -f "$cache_file" || test -h "$cache_file"; then
15713 cat confcache >"$cache_file"
15714 else
15715 case $cache_file in #(
15716 */* | ?:*)
15717 mv -f confcache "$cache_file"$$ &&
15718 mv -f "$cache_file"$$ "$cache_file" ;; #(
15720 mv -f confcache "$cache_file" ;;
15721 esac
15724 else
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15726 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15729 rm -f confcache
15731 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15732 # Let make expand exec_prefix.
15733 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15735 DEFS=-DHAVE_CONFIG_H
15737 ac_libobjs=
15738 ac_ltlibobjs=
15740 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15741 # 1. Remove the extension, and $U if already installed.
15742 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15743 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15744 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15745 # will be set to the directory where LIBOBJS objects are built.
15746 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15747 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15748 done
15749 LIBOBJS=$ac_libobjs
15751 LTLIBOBJS=$ac_ltlibobjs
15755 : "${CONFIG_STATUS=./config.status}"
15756 ac_write_fail=0
15757 ac_clean_files_save=$ac_clean_files
15758 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15760 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15761 as_write_fail=0
15762 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15763 #! $SHELL
15764 # Generated by $as_me.
15765 # Run this file to recreate the current configuration.
15766 # Compiler output produced by configure, useful for debugging
15767 # configure, is in config.log if it exists.
15769 debug=false
15770 ac_cs_recheck=false
15771 ac_cs_silent=false
15773 SHELL=\${CONFIG_SHELL-$SHELL}
15774 export SHELL
15775 _ASEOF
15776 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15777 ## -------------------- ##
15778 ## M4sh Initialization. ##
15779 ## -------------------- ##
15781 # Be more Bourne compatible
15782 DUALCASE=1; export DUALCASE # for MKS sh
15783 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15784 emulate sh
15785 NULLCMD=:
15786 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15787 # is contrary to our usage. Disable this feature.
15788 alias -g '${1+"$@"}'='"$@"'
15789 setopt NO_GLOB_SUBST
15790 else
15791 case `(set -o) 2>/dev/null` in #(
15792 *posix*) :
15793 set -o posix ;; #(
15794 *) :
15796 esac
15800 as_nl='
15802 export as_nl
15803 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15804 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15805 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15806 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15807 # Prefer a ksh shell builtin over an external printf program on Solaris,
15808 # but without wasting forks for bash or zsh.
15809 if test -z "$BASH_VERSION$ZSH_VERSION" \
15810 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15811 as_echo='print -r --'
15812 as_echo_n='print -rn --'
15813 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15814 as_echo='printf %s\n'
15815 as_echo_n='printf %s'
15816 else
15817 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15818 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15819 as_echo_n='/usr/ucb/echo -n'
15820 else
15821 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15822 as_echo_n_body='eval
15823 arg=$1;
15824 case $arg in #(
15825 *"$as_nl"*)
15826 expr "X$arg" : "X\\(.*\\)$as_nl";
15827 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15828 esac;
15829 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15831 export as_echo_n_body
15832 as_echo_n='sh -c $as_echo_n_body as_echo'
15834 export as_echo_body
15835 as_echo='sh -c $as_echo_body as_echo'
15838 # The user is always right.
15839 if test "${PATH_SEPARATOR+set}" != set; then
15840 PATH_SEPARATOR=:
15841 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15842 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15843 PATH_SEPARATOR=';'
15848 # IFS
15849 # We need space, tab and new line, in precisely that order. Quoting is
15850 # there to prevent editors from complaining about space-tab.
15851 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15852 # splitting by setting IFS to empty value.)
15853 IFS=" "" $as_nl"
15855 # Find who we are. Look in the path if we contain no directory separator.
15856 as_myself=
15857 case $0 in #((
15858 *[\\/]* ) as_myself=$0 ;;
15859 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15860 for as_dir in $PATH
15862 IFS=$as_save_IFS
15863 test -z "$as_dir" && as_dir=.
15864 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15865 done
15866 IFS=$as_save_IFS
15869 esac
15870 # We did not find ourselves, most probably we were run as `sh COMMAND'
15871 # in which case we are not to be found in the path.
15872 if test "x$as_myself" = x; then
15873 as_myself=$0
15875 if test ! -f "$as_myself"; then
15876 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15877 exit 1
15880 # Unset variables that we do not need and which cause bugs (e.g. in
15881 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15882 # suppresses any "Segmentation fault" message there. '((' could
15883 # trigger a bug in pdksh 5.2.14.
15884 for as_var in BASH_ENV ENV MAIL MAILPATH
15885 do eval test x\${$as_var+set} = xset \
15886 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15887 done
15888 PS1='$ '
15889 PS2='> '
15890 PS4='+ '
15892 # NLS nuisances.
15893 LC_ALL=C
15894 export LC_ALL
15895 LANGUAGE=C
15896 export LANGUAGE
15898 # CDPATH.
15899 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15902 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15903 # ----------------------------------------
15904 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15905 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15906 # script with STATUS, using 1 if that was 0.
15907 as_fn_error ()
15909 as_status=$1; test $as_status -eq 0 && as_status=1
15910 if test "$4"; then
15911 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15912 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15914 $as_echo "$as_me: error: $2" >&2
15915 as_fn_exit $as_status
15916 } # as_fn_error
15919 # as_fn_set_status STATUS
15920 # -----------------------
15921 # Set $? to STATUS, without forking.
15922 as_fn_set_status ()
15924 return $1
15925 } # as_fn_set_status
15927 # as_fn_exit STATUS
15928 # -----------------
15929 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15930 as_fn_exit ()
15932 set +e
15933 as_fn_set_status $1
15934 exit $1
15935 } # as_fn_exit
15937 # as_fn_unset VAR
15938 # ---------------
15939 # Portably unset VAR.
15940 as_fn_unset ()
15942 { eval $1=; unset $1;}
15944 as_unset=as_fn_unset
15945 # as_fn_append VAR VALUE
15946 # ----------------------
15947 # Append the text in VALUE to the end of the definition contained in VAR. Take
15948 # advantage of any shell optimizations that allow amortized linear growth over
15949 # repeated appends, instead of the typical quadratic growth present in naive
15950 # implementations.
15951 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15952 eval 'as_fn_append ()
15954 eval $1+=\$2
15956 else
15957 as_fn_append ()
15959 eval $1=\$$1\$2
15961 fi # as_fn_append
15963 # as_fn_arith ARG...
15964 # ------------------
15965 # Perform arithmetic evaluation on the ARGs, and store the result in the
15966 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15967 # must be portable across $(()) and expr.
15968 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15969 eval 'as_fn_arith ()
15971 as_val=$(( $* ))
15973 else
15974 as_fn_arith ()
15976 as_val=`expr "$@" || test $? -eq 1`
15978 fi # as_fn_arith
15981 if expr a : '\(a\)' >/dev/null 2>&1 &&
15982 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15983 as_expr=expr
15984 else
15985 as_expr=false
15988 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15989 as_basename=basename
15990 else
15991 as_basename=false
15994 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15995 as_dirname=dirname
15996 else
15997 as_dirname=false
16000 as_me=`$as_basename -- "$0" ||
16001 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16002 X"$0" : 'X\(//\)$' \| \
16003 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16004 $as_echo X/"$0" |
16005 sed '/^.*\/\([^/][^/]*\)\/*$/{
16006 s//\1/
16009 /^X\/\(\/\/\)$/{
16010 s//\1/
16013 /^X\/\(\/\).*/{
16014 s//\1/
16017 s/.*/./; q'`
16019 # Avoid depending upon Character Ranges.
16020 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16021 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16022 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16023 as_cr_digits='0123456789'
16024 as_cr_alnum=$as_cr_Letters$as_cr_digits
16026 ECHO_C= ECHO_N= ECHO_T=
16027 case `echo -n x` in #(((((
16028 -n*)
16029 case `echo 'xy\c'` in
16030 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16031 xy) ECHO_C='\c';;
16032 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16033 ECHO_T=' ';;
16034 esac;;
16036 ECHO_N='-n';;
16037 esac
16039 rm -f conf$$ conf$$.exe conf$$.file
16040 if test -d conf$$.dir; then
16041 rm -f conf$$.dir/conf$$.file
16042 else
16043 rm -f conf$$.dir
16044 mkdir conf$$.dir 2>/dev/null
16046 if (echo >conf$$.file) 2>/dev/null; then
16047 if ln -s conf$$.file conf$$ 2>/dev/null; then
16048 as_ln_s='ln -s'
16049 # ... but there are two gotchas:
16050 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16051 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16052 # In both cases, we have to default to `cp -p'.
16053 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16054 as_ln_s='cp -p'
16055 elif ln conf$$.file conf$$ 2>/dev/null; then
16056 as_ln_s=ln
16057 else
16058 as_ln_s='cp -p'
16060 else
16061 as_ln_s='cp -p'
16063 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16064 rmdir conf$$.dir 2>/dev/null
16067 # as_fn_mkdir_p
16068 # -------------
16069 # Create "$as_dir" as a directory, including parents if necessary.
16070 as_fn_mkdir_p ()
16073 case $as_dir in #(
16074 -*) as_dir=./$as_dir;;
16075 esac
16076 test -d "$as_dir" || eval $as_mkdir_p || {
16077 as_dirs=
16078 while :; do
16079 case $as_dir in #(
16080 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16081 *) as_qdir=$as_dir;;
16082 esac
16083 as_dirs="'$as_qdir' $as_dirs"
16084 as_dir=`$as_dirname -- "$as_dir" ||
16085 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16086 X"$as_dir" : 'X\(//\)[^/]' \| \
16087 X"$as_dir" : 'X\(//\)$' \| \
16088 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16089 $as_echo X"$as_dir" |
16090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16091 s//\1/
16094 /^X\(\/\/\)[^/].*/{
16095 s//\1/
16098 /^X\(\/\/\)$/{
16099 s//\1/
16102 /^X\(\/\).*/{
16103 s//\1/
16106 s/.*/./; q'`
16107 test -d "$as_dir" && break
16108 done
16109 test -z "$as_dirs" || eval "mkdir $as_dirs"
16110 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16113 } # as_fn_mkdir_p
16114 if mkdir -p . 2>/dev/null; then
16115 as_mkdir_p='mkdir -p "$as_dir"'
16116 else
16117 test -d ./-p && rmdir ./-p
16118 as_mkdir_p=false
16121 if test -x / >/dev/null 2>&1; then
16122 as_test_x='test -x'
16123 else
16124 if ls -dL / >/dev/null 2>&1; then
16125 as_ls_L_option=L
16126 else
16127 as_ls_L_option=
16129 as_test_x='
16130 eval sh -c '\''
16131 if test -d "$1"; then
16132 test -d "$1/.";
16133 else
16134 case $1 in #(
16135 -*)set "./$1";;
16136 esac;
16137 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16138 ???[sx]*):;;*)false;;esac;fi
16139 '\'' sh
16142 as_executable_p=$as_test_x
16144 # Sed expression to map a string onto a valid CPP name.
16145 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16147 # Sed expression to map a string onto a valid variable name.
16148 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16151 exec 6>&1
16152 ## ----------------------------------- ##
16153 ## Main body of $CONFIG_STATUS script. ##
16154 ## ----------------------------------- ##
16155 _ASEOF
16156 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16159 # Save the log message, to keep $0 and so on meaningful, and to
16160 # report actual input values of CONFIG_FILES etc. instead of their
16161 # values after options handling.
16162 ac_log="
16163 This file was extended by Wine $as_me 1.3.37, which was
16164 generated by GNU Autoconf 2.68. Invocation command line was
16166 CONFIG_FILES = $CONFIG_FILES
16167 CONFIG_HEADERS = $CONFIG_HEADERS
16168 CONFIG_LINKS = $CONFIG_LINKS
16169 CONFIG_COMMANDS = $CONFIG_COMMANDS
16170 $ $0 $@
16172 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16175 _ACEOF
16177 case $ac_config_files in *"
16178 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16179 esac
16181 case $ac_config_headers in *"
16182 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16183 esac
16186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16187 # Files that config.status was made for.
16188 config_files="$ac_config_files"
16189 config_headers="$ac_config_headers"
16190 config_links="$ac_config_links"
16191 config_commands="$ac_config_commands"
16193 _ACEOF
16195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16196 ac_cs_usage="\
16197 \`$as_me' instantiates files and other configuration actions
16198 from templates according to the current configuration. Unless the files
16199 and actions are specified as TAGs, all are instantiated by default.
16201 Usage: $0 [OPTION]... [TAG]...
16203 -h, --help print this help, then exit
16204 -V, --version print version number and configuration settings, then exit
16205 --config print configuration, then exit
16206 -q, --quiet, --silent
16207 do not print progress messages
16208 -d, --debug don't remove temporary files
16209 --recheck update $as_me by reconfiguring in the same conditions
16210 --file=FILE[:TEMPLATE]
16211 instantiate the configuration file FILE
16212 --header=FILE[:TEMPLATE]
16213 instantiate the configuration header FILE
16215 Configuration files:
16216 $config_files
16218 Configuration headers:
16219 $config_headers
16221 Configuration links:
16222 $config_links
16224 Configuration commands:
16225 $config_commands
16227 Report bugs to <wine-devel@winehq.org>.
16228 Wine home page: <http://www.winehq.org>."
16230 _ACEOF
16231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16232 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16233 ac_cs_version="\\
16234 Wine config.status 1.3.37
16235 configured by $0, generated by GNU Autoconf 2.68,
16236 with options \\"\$ac_cs_config\\"
16238 Copyright (C) 2010 Free Software Foundation, Inc.
16239 This config.status script is free software; the Free Software Foundation
16240 gives unlimited permission to copy, distribute and modify it."
16242 ac_pwd='$ac_pwd'
16243 srcdir='$srcdir'
16244 INSTALL='$INSTALL'
16245 test -n "\$AWK" || AWK=awk
16246 _ACEOF
16248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16249 # The default lists apply if the user does not specify any file.
16250 ac_need_defaults=:
16251 while test $# != 0
16253 case $1 in
16254 --*=?*)
16255 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16256 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16257 ac_shift=:
16259 --*=)
16260 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16261 ac_optarg=
16262 ac_shift=:
16265 ac_option=$1
16266 ac_optarg=$2
16267 ac_shift=shift
16269 esac
16271 case $ac_option in
16272 # Handling of the options.
16273 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16274 ac_cs_recheck=: ;;
16275 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16276 $as_echo "$ac_cs_version"; exit ;;
16277 --config | --confi | --conf | --con | --co | --c )
16278 $as_echo "$ac_cs_config"; exit ;;
16279 --debug | --debu | --deb | --de | --d | -d )
16280 debug=: ;;
16281 --file | --fil | --fi | --f )
16282 $ac_shift
16283 case $ac_optarg in
16284 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16285 '') as_fn_error $? "missing file argument" ;;
16286 esac
16287 as_fn_append CONFIG_FILES " '$ac_optarg'"
16288 ac_need_defaults=false;;
16289 --header | --heade | --head | --hea )
16290 $ac_shift
16291 case $ac_optarg in
16292 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16293 esac
16294 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16295 ac_need_defaults=false;;
16296 --he | --h)
16297 # Conflict between --help and --header
16298 as_fn_error $? "ambiguous option: \`$1'
16299 Try \`$0 --help' for more information.";;
16300 --help | --hel | -h )
16301 $as_echo "$ac_cs_usage"; exit ;;
16302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16303 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16304 ac_cs_silent=: ;;
16306 # This is an error.
16307 -*) as_fn_error $? "unrecognized option: \`$1'
16308 Try \`$0 --help' for more information." ;;
16310 *) as_fn_append ac_config_targets " $1"
16311 ac_need_defaults=false ;;
16313 esac
16314 shift
16315 done
16317 ac_configure_extra_args=
16319 if $ac_cs_silent; then
16320 exec 6>/dev/null
16321 ac_configure_extra_args="$ac_configure_extra_args --silent"
16324 _ACEOF
16325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16326 if \$ac_cs_recheck; then
16327 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16328 shift
16329 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16330 CONFIG_SHELL='$SHELL'
16331 export CONFIG_SHELL
16332 exec "\$@"
16335 _ACEOF
16336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16337 exec 5>>config.log
16339 echo
16340 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16341 ## Running $as_me. ##
16342 _ASBOX
16343 $as_echo "$ac_log"
16344 } >&5
16346 _ACEOF
16347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16349 # INIT-COMMANDS
16351 wine_fn_output_makefile ()
16353 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16354 $ALL_MAKEFILE_DEPENDS
16355 _WINE_EOF
16356 as_fn_error $? "could not create Makefile" "$LINENO" 5
16359 _ACEOF
16361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16363 # Handling of arguments.
16364 for ac_config_target in $ac_config_targets
16366 case $ac_config_target in
16367 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16368 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16369 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16370 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16371 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16372 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16373 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16374 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16375 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
16376 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16377 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16378 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
16379 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16380 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16381 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16382 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16383 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16384 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16385 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16386 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16387 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16388 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16389 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16390 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16391 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16392 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16394 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16395 esac
16396 done
16399 # If the user did not use the arguments to specify the items to instantiate,
16400 # then the envvar interface is used. Set only those that are not.
16401 # We use the long form for the default assignment because of an extremely
16402 # bizarre bug on SunOS 4.1.3.
16403 if $ac_need_defaults; then
16404 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16405 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16406 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16407 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16410 # Have a temporary directory for convenience. Make it in the build tree
16411 # simply because there is no reason against having it here, and in addition,
16412 # creating and moving files from /tmp can sometimes cause problems.
16413 # Hook for its removal unless debugging.
16414 # Note that there is a small window in which the directory will not be cleaned:
16415 # after its creation but before its name has been assigned to `$tmp'.
16416 $debug ||
16418 tmp= ac_tmp=
16419 trap 'exit_status=$?
16420 : "${ac_tmp:=$tmp}"
16421 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16423 trap 'as_fn_exit 1' 1 2 13 15
16425 # Create a (secure) tmp directory for tmp files.
16428 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16429 test -d "$tmp"
16430 } ||
16432 tmp=./conf$$-$RANDOM
16433 (umask 077 && mkdir "$tmp")
16434 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16435 ac_tmp=$tmp
16437 # Set up the scripts for CONFIG_FILES section.
16438 # No need to generate them if there are no CONFIG_FILES.
16439 # This happens for instance with `./config.status config.h'.
16440 if test -n "$CONFIG_FILES"; then
16442 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16443 ac_cs_awk_getline=:
16444 ac_cs_awk_pipe_init=
16445 ac_cs_awk_read_file='
16446 while ((getline aline < (F[key])) > 0)
16447 print(aline)
16448 close(F[key])'
16449 ac_cs_awk_pipe_fini=
16450 else
16451 ac_cs_awk_getline=false
16452 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16453 ac_cs_awk_read_file='
16454 print "|#_!!_#|"
16455 print "cat " F[key] " &&"
16456 '$ac_cs_awk_pipe_init
16457 # The final `:' finishes the AND list.
16458 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16460 ac_cr=`echo X | tr X '\015'`
16461 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16462 # But we know of no other shell where ac_cr would be empty at this
16463 # point, so we can use a bashism as a fallback.
16464 if test "x$ac_cr" = x; then
16465 eval ac_cr=\$\'\\r\'
16467 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16468 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16469 ac_cs_awk_cr='\\r'
16470 else
16471 ac_cs_awk_cr=$ac_cr
16474 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16475 _ACEOF
16477 # Create commands to substitute file output variables.
16479 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16480 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16481 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16482 echo "_ACAWK" &&
16483 echo "_ACEOF"
16484 } >conf$$files.sh &&
16485 . ./conf$$files.sh ||
16486 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16487 rm -f conf$$files.sh
16490 echo "cat >conf$$subs.awk <<_ACEOF" &&
16491 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16492 echo "_ACEOF"
16493 } >conf$$subs.sh ||
16494 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16495 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16496 ac_delim='%!_!# '
16497 for ac_last_try in false false false false false :; do
16498 . ./conf$$subs.sh ||
16499 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16501 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16502 if test $ac_delim_n = $ac_delim_num; then
16503 break
16504 elif $ac_last_try; then
16505 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16506 else
16507 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16509 done
16510 rm -f conf$$subs.sh
16512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16513 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16514 _ACEOF
16515 sed -n '
16517 s/^/S["/; s/!.*/"]=/
16520 s/^[^!]*!//
16521 :repl
16522 t repl
16523 s/'"$ac_delim"'$//
16524 t delim
16527 s/\(.\{148\}\)..*/\1/
16528 t more1
16529 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16532 b repl
16533 :more1
16534 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16537 s/.\{148\}//
16538 t nl
16539 :delim
16541 s/\(.\{148\}\)..*/\1/
16542 t more2
16543 s/["\\]/\\&/g; s/^/"/; s/$/"/
16546 :more2
16547 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16550 s/.\{148\}//
16551 t delim
16552 ' <conf$$subs.awk | sed '
16553 /^[^""]/{
16555 s/\n//
16557 ' >>$CONFIG_STATUS || ac_write_fail=1
16558 rm -f conf$$subs.awk
16559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16560 _ACAWK
16561 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16562 for (key in S) S_is_set[key] = 1
16563 FS = "\a"
16564 \$ac_cs_awk_pipe_init
16567 line = $ 0
16568 nfields = split(line, field, "@")
16569 substed = 0
16570 len = length(field[1])
16571 for (i = 2; i < nfields; i++) {
16572 key = field[i]
16573 keylen = length(key)
16574 if (S_is_set[key]) {
16575 value = S[key]
16576 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16577 len += length(value) + length(field[++i])
16578 substed = 1
16579 } else
16580 len += 1 + keylen
16582 if (nfields == 3 && !substed) {
16583 key = field[2]
16584 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16585 \$ac_cs_awk_read_file
16586 next
16589 print line
16591 \$ac_cs_awk_pipe_fini
16592 _ACAWK
16593 _ACEOF
16594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16595 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16596 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16597 else
16599 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16600 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16601 _ACEOF
16603 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16604 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16605 # trailing colons and then remove the whole line if VPATH becomes empty
16606 # (actually we leave an empty line to preserve line numbers).
16607 if test "x$srcdir" = x.; then
16608 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16610 s///
16611 s/^/:/
16612 s/[ ]*$/:/
16613 s/:\$(srcdir):/:/g
16614 s/:\${srcdir}:/:/g
16615 s/:@srcdir@:/:/g
16616 s/^:*//
16617 s/:*$//
16619 s/\(=[ ]*\).*/\1/
16621 s/\n//
16622 s/^[^=]*=[ ]*$//
16626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16627 fi # test -n "$CONFIG_FILES"
16629 # Set up the scripts for CONFIG_HEADERS section.
16630 # No need to generate them if there are no CONFIG_HEADERS.
16631 # This happens for instance with `./config.status Makefile'.
16632 if test -n "$CONFIG_HEADERS"; then
16633 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16634 BEGIN {
16635 _ACEOF
16637 # Transform confdefs.h into an awk script `defines.awk', embedded as
16638 # here-document in config.status, that substitutes the proper values into
16639 # config.h.in to produce config.h.
16641 # Create a delimiter string that does not exist in confdefs.h, to ease
16642 # handling of long lines.
16643 ac_delim='%!_!# '
16644 for ac_last_try in false false :; do
16645 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16646 if test -z "$ac_tt"; then
16647 break
16648 elif $ac_last_try; then
16649 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16650 else
16651 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16653 done
16655 # For the awk script, D is an array of macro values keyed by name,
16656 # likewise P contains macro parameters if any. Preserve backslash
16657 # newline sequences.
16659 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16660 sed -n '
16661 s/.\{148\}/&'"$ac_delim"'/g
16662 t rset
16663 :rset
16664 s/^[ ]*#[ ]*define[ ][ ]*/ /
16665 t def
16667 :def
16668 s/\\$//
16669 t bsnl
16670 s/["\\]/\\&/g
16671 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16672 D["\1"]=" \3"/p
16673 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16675 :bsnl
16676 s/["\\]/\\&/g
16677 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16678 D["\1"]=" \3\\\\\\n"\\/p
16679 t cont
16680 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16681 t cont
16683 :cont
16685 s/.\{148\}/&'"$ac_delim"'/g
16686 t clear
16687 :clear
16688 s/\\$//
16689 t bsnlc
16690 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16692 :bsnlc
16693 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16694 b cont
16695 ' <confdefs.h | sed '
16696 s/'"$ac_delim"'/"\\\
16697 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16700 for (key in D) D_is_set[key] = 1
16701 FS = "\a"
16703 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16704 line = \$ 0
16705 split(line, arg, " ")
16706 if (arg[1] == "#") {
16707 defundef = arg[2]
16708 mac1 = arg[3]
16709 } else {
16710 defundef = substr(arg[1], 2)
16711 mac1 = arg[2]
16713 split(mac1, mac2, "(") #)
16714 macro = mac2[1]
16715 prefix = substr(line, 1, index(line, defundef) - 1)
16716 if (D_is_set[macro]) {
16717 # Preserve the white space surrounding the "#".
16718 print prefix "define", macro P[macro] D[macro]
16719 next
16720 } else {
16721 # Replace #undef with comments. This is necessary, for example,
16722 # in the case of _POSIX_SOURCE, which is predefined and required
16723 # on some systems where configure will not decide to define it.
16724 if (defundef == "undef") {
16725 print "/*", prefix defundef, macro, "*/"
16726 next
16730 { print }
16731 _ACAWK
16732 _ACEOF
16733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16734 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16735 fi # test -n "$CONFIG_HEADERS"
16738 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16739 shift
16740 for ac_tag
16742 case $ac_tag in
16743 :[FHLC]) ac_mode=$ac_tag; continue;;
16744 esac
16745 case $ac_mode$ac_tag in
16746 :[FHL]*:*);;
16747 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16748 :[FH]-) ac_tag=-:-;;
16749 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16750 esac
16751 ac_save_IFS=$IFS
16752 IFS=:
16753 set x $ac_tag
16754 IFS=$ac_save_IFS
16755 shift
16756 ac_file=$1
16757 shift
16759 case $ac_mode in
16760 :L) ac_source=$1;;
16761 :[FH])
16762 ac_file_inputs=
16763 for ac_f
16765 case $ac_f in
16766 -) ac_f="$ac_tmp/stdin";;
16767 *) # Look for the file first in the build tree, then in the source tree
16768 # (if the path is not absolute). The absolute path cannot be DOS-style,
16769 # because $ac_f cannot contain `:'.
16770 test -f "$ac_f" ||
16771 case $ac_f in
16772 [\\/$]*) false;;
16773 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16774 esac ||
16775 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16776 esac
16777 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16778 as_fn_append ac_file_inputs " '$ac_f'"
16779 done
16781 # Let's still pretend it is `configure' which instantiates (i.e., don't
16782 # use $as_me), people would be surprised to read:
16783 # /* config.h. Generated by config.status. */
16784 configure_input='Generated from '`
16785 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16786 `' by configure.'
16787 if test x"$ac_file" != x-; then
16788 configure_input="$ac_file. $configure_input"
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16790 $as_echo "$as_me: creating $ac_file" >&6;}
16792 # Neutralize special characters interpreted by sed in replacement strings.
16793 case $configure_input in #(
16794 *\&* | *\|* | *\\* )
16795 ac_sed_conf_input=`$as_echo "$configure_input" |
16796 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16797 *) ac_sed_conf_input=$configure_input;;
16798 esac
16800 case $ac_tag in
16801 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16802 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16803 esac
16805 esac
16807 ac_dir=`$as_dirname -- "$ac_file" ||
16808 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16809 X"$ac_file" : 'X\(//\)[^/]' \| \
16810 X"$ac_file" : 'X\(//\)$' \| \
16811 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16812 $as_echo X"$ac_file" |
16813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16814 s//\1/
16817 /^X\(\/\/\)[^/].*/{
16818 s//\1/
16821 /^X\(\/\/\)$/{
16822 s//\1/
16825 /^X\(\/\).*/{
16826 s//\1/
16829 s/.*/./; q'`
16830 as_dir="$ac_dir"; as_fn_mkdir_p
16831 ac_builddir=.
16833 case "$ac_dir" in
16834 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16836 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16837 # A ".." for each directory in $ac_dir_suffix.
16838 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16839 case $ac_top_builddir_sub in
16840 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16841 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16842 esac ;;
16843 esac
16844 ac_abs_top_builddir=$ac_pwd
16845 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16846 # for backward compatibility:
16847 ac_top_builddir=$ac_top_build_prefix
16849 case $srcdir in
16850 .) # We are building in place.
16851 ac_srcdir=.
16852 ac_top_srcdir=$ac_top_builddir_sub
16853 ac_abs_top_srcdir=$ac_pwd ;;
16854 [\\/]* | ?:[\\/]* ) # Absolute name.
16855 ac_srcdir=$srcdir$ac_dir_suffix;
16856 ac_top_srcdir=$srcdir
16857 ac_abs_top_srcdir=$srcdir ;;
16858 *) # Relative name.
16859 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16860 ac_top_srcdir=$ac_top_build_prefix$srcdir
16861 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16862 esac
16863 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16866 case $ac_mode in
16869 # CONFIG_FILE
16872 case $INSTALL in
16873 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16874 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16875 esac
16876 _ACEOF
16878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16879 # If the template does not know about datarootdir, expand it.
16880 # FIXME: This hack should be removed a few years after 2.60.
16881 ac_datarootdir_hack=; ac_datarootdir_seen=
16882 ac_sed_dataroot='
16883 /datarootdir/ {
16887 /@datadir@/p
16888 /@docdir@/p
16889 /@infodir@/p
16890 /@localedir@/p
16891 /@mandir@/p'
16892 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16893 *datarootdir*) ac_datarootdir_seen=yes;;
16894 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16896 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16897 _ACEOF
16898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16899 ac_datarootdir_hack='
16900 s&@datadir@&$datadir&g
16901 s&@docdir@&$docdir&g
16902 s&@infodir@&$infodir&g
16903 s&@localedir@&$localedir&g
16904 s&@mandir@&$mandir&g
16905 s&\\\${datarootdir}&$datarootdir&g' ;;
16906 esac
16907 _ACEOF
16909 # Neutralize VPATH when `$srcdir' = `.'.
16910 # Shell code in configure.ac might set extrasub.
16911 # FIXME: do we really want to maintain this feature?
16912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16913 ac_sed_extra="$ac_vpsub
16914 $extrasub
16915 _ACEOF
16916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16919 s|@configure_input@|$ac_sed_conf_input|;t t
16920 s&@top_builddir@&$ac_top_builddir_sub&;t t
16921 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16922 s&@srcdir@&$ac_srcdir&;t t
16923 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16924 s&@top_srcdir@&$ac_top_srcdir&;t t
16925 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16926 s&@builddir@&$ac_builddir&;t t
16927 s&@abs_builddir@&$ac_abs_builddir&;t t
16928 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16929 s&@INSTALL@&$ac_INSTALL&;t t
16930 $ac_datarootdir_hack
16932 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16933 if $ac_cs_awk_getline; then
16934 $AWK -f "$ac_tmp/subs.awk"
16935 else
16936 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16937 fi \
16938 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16940 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16941 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16942 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16943 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16945 which seems to be undefined. Please make sure it is defined" >&5
16946 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16947 which seems to be undefined. Please make sure it is defined" >&2;}
16949 rm -f "$ac_tmp/stdin"
16950 case $ac_file in
16951 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16952 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16953 esac \
16954 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16958 # CONFIG_HEADER
16960 if test x"$ac_file" != x-; then
16962 $as_echo "/* $configure_input */" \
16963 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16964 } >"$ac_tmp/config.h" \
16965 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16966 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16968 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16969 else
16970 rm -f "$ac_file"
16971 mv "$ac_tmp/config.h" "$ac_file" \
16972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16974 else
16975 $as_echo "/* $configure_input */" \
16976 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16977 || as_fn_error $? "could not create -" "$LINENO" 5
16982 # CONFIG_LINK
16985 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16987 else
16988 # Prefer the file from the source tree if names are identical.
16989 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16990 ac_source=$srcdir/$ac_source
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16994 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16996 if test ! -r "$ac_source"; then
16997 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16999 rm -f "$ac_file"
17001 # Try a relative symlink, then a hard link, then a copy.
17002 case $ac_source in
17003 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17004 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17005 esac
17006 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17007 ln "$ac_source" "$ac_file" 2>/dev/null ||
17008 cp -p "$ac_source" "$ac_file" ||
17009 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17012 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17013 $as_echo "$as_me: executing $ac_file commands" >&6;}
17015 esac
17018 case $ac_file$ac_mode in
17019 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17020 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17021 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17022 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17023 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17024 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17025 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17026 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17027 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17028 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17029 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17030 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17031 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17032 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17033 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17034 "Makefile":C) wine_fn_output_makefile Makefile ;;
17036 esac
17037 done # for ac_tag
17040 as_fn_exit 0
17041 _ACEOF
17042 ac_clean_files=$ac_clean_files_save
17044 test $ac_write_fail = 0 ||
17045 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17048 # configure is writing to config.log, and then calls config.status.
17049 # config.status does its own redirection, appending to config.log.
17050 # Unfortunately, on DOS this fails, as config.log is still kept open
17051 # by configure, so config.status won't be able to write to it; its
17052 # output is simply discarded. So we exec the FD to /dev/null,
17053 # effectively closing config.log, so it can be properly (re)opened and
17054 # appended to by config.status. When coming back to configure, we
17055 # need to make the FD available again.
17056 if test "$no_create" != yes; then
17057 ac_cs_success=:
17058 ac_config_status_args=
17059 test "$silent" = yes &&
17060 ac_config_status_args="$ac_config_status_args --quiet"
17061 exec 5>/dev/null
17062 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17063 exec 5>>config.log
17064 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17065 # would make configure fail if this is the last instruction.
17066 $ac_cs_success || as_fn_exit 1
17068 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17070 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17074 if test "$no_create" = "yes"
17075 then
17076 exit 0
17079 ac_save_IFS="$IFS"
17080 if test "x$wine_notices != "x; then
17081 echo >&6
17082 IFS="|"
17083 for msg in $wine_notices; do
17084 IFS="$ac_save_IFS"
17085 if test -n "$msg"; then
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17087 $as_echo "$as_me: $msg" >&6;}
17089 done
17091 IFS="|"
17092 for msg in $wine_warnings; do
17093 IFS="$ac_save_IFS"
17094 if test -n "$msg"; then
17095 echo >&2
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17097 $as_echo "$as_me: WARNING: $msg" >&2;}
17099 done
17100 IFS="$ac_save_IFS"
17102 echo "
17103 $as_me: Finished. Do '${ac_make}' to compile Wine.
17104 " >&6