d3dx9/tests: Use D3DXFloat16To32Array() instead of a custom function.
[wine.git] / configure
blob04b3dc3e80e52cd34557924cbbcba863a5021a9b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.5.21.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: wine-devel@winehq.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='Wine'
582 PACKAGE_TARNAME='wine'
583 PACKAGE_VERSION='1.5.21'
584 PACKAGE_STRING='Wine 1.5.21'
585 PACKAGE_BUGREPORT='wine-devel@winehq.org'
586 PACKAGE_URL='http://www.winehq.org'
588 ac_unique_file="server/atom.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 PORCFLAGS
628 LINGUAS
629 ALL_TEST_RESOURCES
630 LDAPLIBS
631 LIBPOLL
632 LIBDL
633 EXTRA_BINARIES
634 MAIN_BINARY
635 SOCKETLIBS
636 CRTLIBS
637 TOOLSEXT
638 LDPATH
639 UNWINDFLAGS
640 BUILTINFLAG
641 EXTRACFLAGS
642 LIBKSTAT
643 LIBOPENAL
644 LIBMPG123
645 PNGINCL
646 FONTCONFIGINCL
647 CUPSINCL
648 OSS4INCL
649 ALSALIBS
650 GSTREAMER_INCL
651 GSTREAMER_LIBS
652 LIBGETTEXTPO
653 ZLIB
654 FREETYPEINCL
655 FREETYPELIBS
656 ft_devel
657 LCMSLIBS
658 RESOLVLIBS
659 GPHOTO2INCL
660 GPHOTO2LIBS
661 gphoto2port_devel
662 gphoto2_devel
663 SANEINCL
664 sane_devel
665 GNUTLSINCL
666 HALINCL
667 DBUSINCL
668 XSLTINCL
669 XML2INCL
670 XML2LIBS
671 X_EXTRA_LIBS
672 X_LIBS
673 X_PRE_LIBS
674 X_CFLAGS
675 XMKMF
676 LIBPTHREAD
677 CROSSTARGET
678 CROSSCC
679 CROSSTEST_DISABLE
680 PRELINK
681 CARBONLIB
682 QUICKTIMELIB
683 LIBOPENCL
684 FRAMEWORK_OPENAL
685 COREAUDIO
686 SECURITYLIB
687 DISKARBITRATIONLIB
688 LDEXECFLAGS
689 CORESERVICESLIB
690 APPLICATIONSERVICESLIB
691 IOKITLIB
692 COREFOUNDATIONLIB
693 DLLWRAP
694 DLLTOOL
695 ac_ct_READELF
696 READELF
698 LDRPATH_LOCAL
699 LDRPATH_INSTALL
700 IMPLIBEXT
701 LIBEXT
702 LDDLLFLAGS
703 LDSHARED
704 DLLFLAGS
705 DLLEXT
707 OPENGL_LIBS
708 XLIB
709 MAINTAINER_MODE
710 MSGFMT
711 ICOTOOL
712 CONVERT
713 RSVG
714 PKG_CONFIG
715 FONTFORGE
716 LINTFLAGS
717 LINT
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 LDCONFIG
722 EGREP
723 GREP
724 LN_S
725 RANLIB
726 ARFLAGS
727 ac_ct_AR
729 BISON
730 FLEX
731 TOOLSDIR
732 WOW64_DISABLE
733 TARGETFLAGS
734 CPPBIN
735 ac_ct_CXX
736 CXXFLAGS
738 OBJEXT
739 EXEEXT
740 ac_ct_CC
741 CPPFLAGS
742 LDFLAGS
743 CFLAGS
745 SET_MAKE
746 host_os
747 host_vendor
748 host_cpu
749 host
750 build_os
751 build_vendor
752 build_cpu
753 build
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files='MAKE_RULES
793 MAKE_TEST_RULES
794 MAKE_DLL_RULES
795 MAKE_IMPLIB_RULES
796 MAKE_PROG_RULES'
797 ac_user_opts='
798 enable_option_checking
799 enable_win16
800 enable_win64
801 enable_tests
802 enable_maintainer_mode
803 with_alsa
804 with_capi
805 with_cms
806 with_coreaudio
807 with_cups
808 with_curses
809 with_dbus
810 with_fontconfig
811 with_freetype
812 with_gettext
813 with_gettextpo
814 with_gphoto
815 with_glu
816 with_gnutls
817 with_gsm
818 with_gstreamer
819 with_hal
820 with_jpeg
821 with_ldap
822 with_mpg123
823 with_openal
824 with_opencl
825 with_opengl
826 with_openssl
827 with_osmesa
828 with_oss
829 with_png
830 with_pthread
831 with_sane
832 with_tiff
833 with_v4l
834 with_xcomposite
835 with_xcursor
836 with_xinerama
837 with_xinput
838 with_xinput2
839 with_xml
840 with_xrandr
841 with_xrender
842 with_xshape
843 with_xshm
844 with_xslt
845 with_xxf86vm
846 with_zlib
847 with_wine_tools
848 with_wine64
849 enable_largefile
850 with_x
852 ac_precious_vars='build_alias
853 host_alias
854 target_alias
856 CFLAGS
857 LDFLAGS
858 LIBS
859 CPPFLAGS
861 CXXFLAGS
864 XMKMF'
867 # Initialize some variables set by options.
868 ac_init_help=
869 ac_init_version=false
870 ac_unrecognized_opts=
871 ac_unrecognized_sep=
872 # The variables have the same names as the options, with
873 # dashes changed to underlines.
874 cache_file=/dev/null
875 exec_prefix=NONE
876 no_create=
877 no_recursion=
878 prefix=NONE
879 program_prefix=NONE
880 program_suffix=NONE
881 program_transform_name=s,x,x,
882 silent=
883 site=
884 srcdir=
885 verbose=
886 x_includes=NONE
887 x_libraries=NONE
889 # Installation directory options.
890 # These are left unexpanded so users can "make install exec_prefix=/foo"
891 # and all the variables that are supposed to be based on exec_prefix
892 # by default will actually change.
893 # Use braces instead of parens because sh, perl, etc. also accept them.
894 # (The list follows the same order as the GNU Coding Standards.)
895 bindir='${exec_prefix}/bin'
896 sbindir='${exec_prefix}/sbin'
897 libexecdir='${exec_prefix}/libexec'
898 datarootdir='${prefix}/share'
899 datadir='${datarootdir}'
900 sysconfdir='${prefix}/etc'
901 sharedstatedir='${prefix}/com'
902 localstatedir='${prefix}/var'
903 includedir='${prefix}/include'
904 oldincludedir='/usr/include'
905 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
906 infodir='${datarootdir}/info'
907 htmldir='${docdir}'
908 dvidir='${docdir}'
909 pdfdir='${docdir}'
910 psdir='${docdir}'
911 libdir='${exec_prefix}/lib'
912 localedir='${datarootdir}/locale'
913 mandir='${datarootdir}/man'
915 ac_prev=
916 ac_dashdash=
917 for ac_option
919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
921 eval $ac_prev=\$ac_option
922 ac_prev=
923 continue
926 case $ac_option in
927 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 *=) ac_optarg= ;;
929 *) ac_optarg=yes ;;
930 esac
932 # Accept the important Cygnus configure options, so we can diagnose typos.
934 case $ac_dashdash$ac_option in
936 ac_dashdash=yes ;;
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 ac_prev=bindir ;;
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 bindir=$ac_optarg ;;
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
955 --config-cache | -C)
956 cache_file=config.cache ;;
958 -datadir | --datadir | --datadi | --datad)
959 ac_prev=datadir ;;
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=no ;;
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
996 -enable-* | --enable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error $? "invalid feature name: $ac_useropt"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1005 "enable_$ac_useropt"
1006 "*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1009 esac
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1023 with_gas=yes ;;
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 ac_prev=htmldir ;;
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 | --ht=*)
1041 htmldir=$ac_optarg ;;
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 ac_prev=infodir ;;
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1055 -libdir | --libdir | --libdi | --libd)
1056 ac_prev=libdir ;;
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 ac_prev=mandir ;;
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1086 with_fp=no ;;
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1090 no_create=yes ;;
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 no_recursion=yes ;;
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 ac_prev=prefix ;;
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 ac_prev=pdfdir ;;
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1146 -psdir | --psdir | --psdi | --psd | --ps)
1147 ac_prev=psdir ;;
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 psdir=$ac_optarg ;;
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1153 silent=yes ;;
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 ac_prev=sbindir ;;
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 | --sbi=* | --sb=*)
1159 sbindir=$ac_optarg ;;
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1164 | --sha | --sh)
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 | --sha=* | --sh=*)
1170 sharedstatedir=$ac_optarg ;;
1172 -site | --site | --sit)
1173 ac_prev=site ;;
1174 -site=* | --site=* | --sit=*)
1175 site=$ac_optarg ;;
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 ac_prev=srcdir ;;
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180 srcdir=$ac_optarg ;;
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187 sysconfdir=$ac_optarg ;;
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1190 ac_prev=target_alias ;;
1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192 target_alias=$ac_optarg ;;
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 verbose=yes ;;
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
1200 -with-* | --with-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error $? "invalid package name: $ac_useropt"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=\$ac_optarg ;;
1216 -without-* | --without-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error $? "invalid package name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1225 "with_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=no ;;
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1250 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1251 Try \`$0 --help' for more information"
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 case $ac_envvar in #(
1258 '' | [0-9]* | *[!_$as_cr_alnum]* )
1259 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1260 esac
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1265 # FIXME: should be removed in autoconf 3.0.
1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1272 esac
1273 done
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 as_fn_error $? "missing argument to $ac_option"
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1282 no) ;;
1283 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1284 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 esac
1288 # Check all directory arguments for consistency.
1289 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
1294 eval ac_val=\$$ac_var
1295 # Remove trailing slashes.
1296 case $ac_val in
1297 */ )
1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\$ac_val;;
1300 esac
1301 # Be sure to have absolute directory names.
1302 case $ac_val in
1303 [\\/$]* | ?:[\\/]* ) continue;;
1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 esac
1306 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1307 done
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 elif test "x$build_alias" != "x$host_alias"; then
1321 cross_compiling=yes
1325 ac_tool_prefix=
1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328 test "$silent" = yes && exec 6>/dev/null
1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di=`ls -di .` &&
1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334 as_fn_error $? "working directory cannot be determined"
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336 as_fn_error $? "pwd does not report name of working directory"
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341 ac_srcdir_defaulted=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir=`$as_dirname -- "$as_myself" ||
1344 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$as_myself" : 'X\(//\)[^/]' \| \
1346 X"$as_myself" : 'X\(//\)$' \| \
1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1348 $as_echo X"$as_myself" |
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350 s//\1/
1353 /^X\(\/\/\)[^/].*/{
1354 s//\1/
1357 /^X\(\/\/\)$/{
1358 s//\1/
1361 /^X\(\/\).*/{
1362 s//\1/
1365 s/.*/./; q'`
1366 srcdir=$ac_confdir
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 srcdir=..
1370 else
1371 ac_srcdir_defaulted=no
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1380 pwd)`
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 srcdir=.
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1388 case $srcdir in
1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 esac
1391 for ac_var in $ac_precious_vars; do
1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_${ac_var}_value=\$${ac_var}
1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 done
1399 # Report the --help message.
1401 if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1404 cat <<_ACEOF
1405 \`configure' configures Wine 1.5.21 to adapt to many kinds of systems.
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE. See below for descriptions of some of the useful variables.
1412 Defaults for the options are specified in brackets.
1414 Configuration:
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
1419 -q, --quiet, --silent do not print \`checking ...' messages
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for \`--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1425 Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 [PREFIX]
1431 By default, \`make install' will install all the files in
1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434 for instance \`--prefix=\$HOME'.
1436 For better control, use the options below.
1438 Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --libdir=DIR object code libraries [EPREFIX/lib]
1446 --includedir=DIR C header files [PREFIX/include]
1447 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450 --infodir=DIR info documentation [DATAROOTDIR/info]
1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1452 --mandir=DIR man documentation [DATAROOTDIR/man]
1453 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1454 --htmldir=DIR html documentation [DOCDIR]
1455 --dvidir=DIR dvi documentation [DOCDIR]
1456 --pdfdir=DIR pdf documentation [DOCDIR]
1457 --psdir=DIR ps documentation [DOCDIR]
1458 _ACEOF
1460 cat <<\_ACEOF
1462 X features:
1463 --x-includes=DIR X include files are in DIR
1464 --x-libraries=DIR X library files are in DIR
1466 System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 _ACEOF
1472 if test -n "$ac_init_help"; then
1473 case $ac_init_help in
1474 short | recursive ) echo "Configuration of Wine 1.5.21:";;
1475 esac
1476 cat <<\_ACEOF
1478 Optional Features:
1479 --disable-option-checking ignore unrecognized --enable/--with options
1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1482 --disable-win16 do not include Win16 support
1483 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1484 binaries)
1485 --disable-tests do not build the regression tests
1486 --enable-maintainer-mode
1487 enable maintainer-specific build rules
1488 --disable-largefile omit support for large files
1490 Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --without-alsa do not use the Alsa sound support
1494 --without-capi do not use CAPI (ISDN support)
1495 --without-cms do not use CMS (color management support)
1496 --without-coreaudio do not use the CoreAudio sound support
1497 --without-cups do not use CUPS
1498 --without-curses do not use (n)curses
1499 --without-dbus do not use DBus (dynamic device support)
1500 --without-fontconfig do not use fontconfig
1501 --without-freetype do not use the FreeType library
1502 --without-gettext do not use gettext
1503 --with-gettextpo use the GetTextPO library to rebuild po files
1504 --without-gphoto do not use gphoto (Digital Camera support)
1505 --without-glu do not use the GLU library
1506 --without-gnutls do not use GnuTLS (schannel support)
1507 --without-gsm do not use libgsm (GSM 06.10 codec support)
1508 --without-gstreamer do not use GStreamer (codecs support)
1509 --without-hal do not use HAL (dynamic device support)
1510 --without-jpeg do not use JPEG
1511 --without-ldap do not use LDAP
1512 --without-mpg123 do not use the mpg123 library
1513 --without-openal do not use OpenAL
1514 --without-opencl do not use OpenCL
1515 --without-opengl do not use OpenGL
1516 --without-openssl do not use OpenSSL
1517 --without-osmesa do not use the OSMesa library
1518 --without-oss do not use the OSS sound support
1519 --without-png do not use PNG
1520 --without-pthread do not use the pthread library
1521 --without-sane do not use SANE (scanner support)
1522 --without-tiff do not use TIFF
1523 --without-v4l do not use v4l1 (v4l support)
1524 --without-xcomposite do not use the Xcomposite extension
1525 --without-xcursor do not use the Xcursor extension
1526 --without-xinerama do not use Xinerama (multi-monitor support)
1527 --without-xinput do not use the Xinput extension
1528 --without-xinput2 do not use the Xinput 2 extension
1529 --without-xml do not use XML
1530 --without-xrandr do not use Xrandr (resolution changes)
1531 --without-xrender do not use the Xrender extension
1532 --without-xshape do not use the Xshape extension
1533 --without-xshm do not use XShm (shared memory extension)
1534 --without-xslt do not use XSLT
1535 --without-xxf86vm do not use XFree video mode extension
1536 --without-zlib do not use Zlib (data compression)
1537 --with-wine-tools=DIR use Wine tools from directory DIR
1538 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1539 --with-x use the X Window System
1541 Some influential environment variables:
1542 CC C compiler command
1543 CFLAGS C compiler flags
1544 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1545 nonstandard directory <lib dir>
1546 LIBS libraries to pass to the linker, e.g. -l<library>
1547 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1548 you have headers in a nonstandard directory <include dir>
1549 CXX C++ compiler command
1550 CXXFLAGS C++ compiler flags
1551 CPP C preprocessor
1552 XMKMF Path to xmkmf, Makefile generator for X Window System
1554 Use these variables to override the choices made by `configure' or to help
1555 it to find libraries and programs with nonstandard names/locations.
1557 Report bugs to <wine-devel@winehq.org>.
1558 Wine home page: <http://www.winehq.org>.
1559 _ACEOF
1560 ac_status=$?
1563 if test "$ac_init_help" = "recursive"; then
1564 # If there are subdirs, report their specific --help.
1565 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566 test -d "$ac_dir" ||
1567 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1568 continue
1569 ac_builddir=.
1571 case "$ac_dir" in
1572 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1575 # A ".." for each directory in $ac_dir_suffix.
1576 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1577 case $ac_top_builddir_sub in
1578 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1580 esac ;;
1581 esac
1582 ac_abs_top_builddir=$ac_pwd
1583 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1584 # for backward compatibility:
1585 ac_top_builddir=$ac_top_build_prefix
1587 case $srcdir in
1588 .) # We are building in place.
1589 ac_srcdir=.
1590 ac_top_srcdir=$ac_top_builddir_sub
1591 ac_abs_top_srcdir=$ac_pwd ;;
1592 [\\/]* | ?:[\\/]* ) # Absolute name.
1593 ac_srcdir=$srcdir$ac_dir_suffix;
1594 ac_top_srcdir=$srcdir
1595 ac_abs_top_srcdir=$srcdir ;;
1596 *) # Relative name.
1597 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1598 ac_top_srcdir=$ac_top_build_prefix$srcdir
1599 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1600 esac
1601 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603 cd "$ac_dir" || { ac_status=$?; continue; }
1604 # Check for guested configure.
1605 if test -f "$ac_srcdir/configure.gnu"; then
1606 echo &&
1607 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1608 elif test -f "$ac_srcdir/configure"; then
1609 echo &&
1610 $SHELL "$ac_srcdir/configure" --help=recursive
1611 else
1612 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1613 fi || ac_status=$?
1614 cd "$ac_pwd" || { ac_status=$?; break; }
1615 done
1618 test -n "$ac_init_help" && exit $ac_status
1619 if $ac_init_version; then
1620 cat <<\_ACEOF
1621 Wine configure 1.5.21
1622 generated by GNU Autoconf 2.69
1624 Copyright (C) 2012 Free Software Foundation, Inc.
1625 This configure script is free software; the Free Software Foundation
1626 gives unlimited permission to copy, distribute and modify it.
1627 _ACEOF
1628 exit
1631 ## ------------------------ ##
1632 ## Autoconf initialization. ##
1633 ## ------------------------ ##
1635 # ac_fn_c_try_compile LINENO
1636 # --------------------------
1637 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_c_try_compile ()
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 rm -f conftest.$ac_objext
1642 if { { ac_try="$ac_compile"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_compile") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && {
1658 test -z "$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 } && test -s conftest.$ac_objext; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1666 ac_retval=1
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1671 } # ac_fn_c_try_compile
1673 # ac_fn_cxx_try_compile LINENO
1674 # ----------------------------
1675 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_cxx_try_compile ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext
1680 if { { ac_try="$ac_compile"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_compile") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_cxx_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest.$ac_objext; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1704 ac_retval=1
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status $ac_retval
1709 } # ac_fn_cxx_try_compile
1711 # ac_fn_c_try_link LINENO
1712 # -----------------------
1713 # Try to link conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_link ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext conftest$ac_exeext
1718 if { { ac_try="$ac_link"
1719 case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_link") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest$ac_exeext && {
1737 test "$cross_compiling" = yes ||
1738 test -x conftest$ac_exeext
1739 }; then :
1740 ac_retval=0
1741 else
1742 $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1745 ac_retval=1
1747 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1748 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1749 # interfere with the next link command; also delete a directory that is
1750 # left behind by Apple's compiler. We do this before executing the actions.
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status $ac_retval
1755 } # ac_fn_c_try_link
1757 # ac_fn_c_try_cpp LINENO
1758 # ----------------------
1759 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_c_try_cpp ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if { { ac_try="$ac_cpp conftest.$ac_ext"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1771 ac_status=$?
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } > conftest.i && {
1779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 }; then :
1782 ac_retval=0
1783 else
1784 $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1787 ac_retval=1
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1792 } # ac_fn_c_try_cpp
1794 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1797 # the include files in INCLUDES and setting the cache variable VAR
1798 # accordingly.
1799 ac_fn_c_check_header_mongrel ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 if eval \${$3+:} false; then :
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 else
1812 # Is the header compilable?
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1814 $as_echo_n "checking $2 usability... " >&6; }
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1818 #include <$2>
1819 _ACEOF
1820 if ac_fn_c_try_compile "$LINENO"; then :
1821 ac_header_compiler=yes
1822 else
1823 ac_header_compiler=no
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1827 $as_echo "$ac_header_compiler" >&6; }
1829 # Is the header present?
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1831 $as_echo_n "checking $2 presence... " >&6; }
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 #include <$2>
1835 _ACEOF
1836 if ac_fn_c_try_cpp "$LINENO"; then :
1837 ac_header_preproc=yes
1838 else
1839 ac_header_preproc=no
1841 rm -f conftest.err conftest.i conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1843 $as_echo "$ac_header_preproc" >&6; }
1845 # So? What about this header?
1846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1847 yes:no: )
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1849 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853 no:yes:* )
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1855 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1857 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1859 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1861 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864 ( $as_echo "## ------------------------------------ ##
1865 ## Report this to wine-devel@winehq.org ##
1866 ## ------------------------------------ ##"
1867 ) | sed "s/^/$as_me: WARNING: /" >&2
1869 esac
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1874 else
1875 eval "$3=\$ac_header_compiler"
1877 eval ac_res=\$$3
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 } # ac_fn_c_check_header_mongrel
1885 # ac_fn_c_try_run LINENO
1886 # ----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1888 # that executables *can* be run.
1889 ac_fn_c_try_run ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 if { { ac_try="$ac_link"
1893 case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_link") 2>&5
1900 ac_status=$?
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1903 { { case "(($ac_try" in
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_try") 2>&5
1910 ac_status=$?
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; }; }; then :
1913 ac_retval=0
1914 else
1915 $as_echo "$as_me: program exited with status $ac_status" >&5
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1919 ac_retval=$ac_status
1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 as_fn_set_status $ac_retval
1925 } # ac_fn_c_try_run
1927 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1928 # -------------------------------------------------------
1929 # Tests whether HEADER exists and can be compiled using the include files in
1930 # INCLUDES, setting the cache variable VAR accordingly.
1931 ac_fn_c_check_header_compile ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1938 else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1942 #include <$2>
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945 eval "$3=yes"
1946 else
1947 eval "$3=no"
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956 } # ac_fn_c_check_header_compile
1958 # ac_fn_c_check_func LINENO FUNC VAR
1959 # ----------------------------------
1960 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1961 ac_fn_c_check_func ()
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \${$3+:} false; then :
1967 $as_echo_n "(cached) " >&6
1968 else
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1971 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1973 #define $2 innocuous_$2
1975 /* System header to define __stub macros and hopefully few prototypes,
1976 which can conflict with char $2 (); below.
1977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1978 <limits.h> exists even on freestanding compilers. */
1980 #ifdef __STDC__
1981 # include <limits.h>
1982 #else
1983 # include <assert.h>
1984 #endif
1986 #undef $2
1988 /* Override any GCC internal prototype to avoid an error.
1989 Use char because int might match the return type of a GCC
1990 builtin and then its argument prototype would still apply. */
1991 #ifdef __cplusplus
1992 extern "C"
1993 #endif
1994 char $2 ();
1995 /* The GNU C library defines this for functions which it implements
1996 to always fail with ENOSYS. Some functions are actually named
1997 something starting with __ and the normal name is an alias. */
1998 #if defined __stub_$2 || defined __stub___$2
1999 choke me
2000 #endif
2003 main ()
2005 return $2 ();
2007 return 0;
2009 _ACEOF
2010 if ac_fn_c_try_link "$LINENO"; then :
2011 eval "$3=yes"
2012 else
2013 eval "$3=no"
2015 rm -f core conftest.err conftest.$ac_objext \
2016 conftest$ac_exeext conftest.$ac_ext
2018 eval ac_res=\$$3
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023 } # ac_fn_c_check_func
2025 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2026 # ----------------------------------------------------
2027 # Tries to find if the field MEMBER exists in type AGGR, after including
2028 # INCLUDES, setting cache variable VAR accordingly.
2029 ac_fn_c_check_member ()
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2033 $as_echo_n "checking for $2.$3... " >&6; }
2034 if eval \${$4+:} false; then :
2035 $as_echo_n "(cached) " >&6
2036 else
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2041 main ()
2043 static $2 ac_aggr;
2044 if (ac_aggr.$3)
2045 return 0;
2047 return 0;
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051 eval "$4=yes"
2052 else
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2057 main ()
2059 static $2 ac_aggr;
2060 if (sizeof ac_aggr.$3)
2061 return 0;
2063 return 0;
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067 eval "$4=yes"
2068 else
2069 eval "$4=no"
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 eval ac_res=\$$4
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 $as_echo "$ac_res" >&6; }
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080 } # ac_fn_c_check_member
2082 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2083 # -------------------------------------------
2084 # Tests whether TYPE exists after having included INCLUDES, setting cache
2085 # variable VAR accordingly.
2086 ac_fn_c_check_type ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if eval \${$3+:} false; then :
2092 $as_echo_n "(cached) " >&6
2093 else
2094 eval "$3=no"
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2099 main ()
2101 if (sizeof ($2))
2102 return 0;
2104 return 0;
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2112 main ()
2114 if (sizeof (($2)))
2115 return 0;
2117 return 0;
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2122 else
2123 eval "$3=yes"
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 eval ac_res=\$$3
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134 } # ac_fn_c_check_type
2135 cat >config.log <<_ACEOF
2136 This file contains any messages produced by compilers while
2137 running configure, to aid debugging if configure makes a mistake.
2139 It was created by Wine $as_me 1.5.21, which was
2140 generated by GNU Autoconf 2.69. Invocation command line was
2142 $ $0 $@
2144 _ACEOF
2145 exec 5>>config.log
2147 cat <<_ASUNAME
2148 ## --------- ##
2149 ## Platform. ##
2150 ## --------- ##
2152 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2153 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2154 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2155 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2156 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2158 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2159 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2161 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2162 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2163 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2164 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2165 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2166 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2167 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2169 _ASUNAME
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2174 IFS=$as_save_IFS
2175 test -z "$as_dir" && as_dir=.
2176 $as_echo "PATH: $as_dir"
2177 done
2178 IFS=$as_save_IFS
2180 } >&5
2182 cat >&5 <<_ACEOF
2185 ## ----------- ##
2186 ## Core tests. ##
2187 ## ----------- ##
2189 _ACEOF
2192 # Keep a trace of the command line.
2193 # Strip out --no-create and --no-recursion so they do not pile up.
2194 # Strip out --silent because we don't want to record it for future runs.
2195 # Also quote any args containing shell meta-characters.
2196 # Make two passes to allow for proper duplicate-argument suppression.
2197 ac_configure_args=
2198 ac_configure_args0=
2199 ac_configure_args1=
2200 ac_must_keep_next=false
2201 for ac_pass in 1 2
2203 for ac_arg
2205 case $ac_arg in
2206 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2208 | -silent | --silent | --silen | --sile | --sil)
2209 continue ;;
2210 *\'*)
2211 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2212 esac
2213 case $ac_pass in
2214 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2216 as_fn_append ac_configure_args1 " '$ac_arg'"
2217 if test $ac_must_keep_next = true; then
2218 ac_must_keep_next=false # Got value, back to normal.
2219 else
2220 case $ac_arg in
2221 *=* | --config-cache | -C | -disable-* | --disable-* \
2222 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2223 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2224 | -with-* | --with-* | -without-* | --without-* | --x)
2225 case "$ac_configure_args0 " in
2226 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2227 esac
2229 -* ) ac_must_keep_next=true ;;
2230 esac
2232 as_fn_append ac_configure_args " '$ac_arg'"
2234 esac
2235 done
2236 done
2237 { ac_configure_args0=; unset ac_configure_args0;}
2238 { ac_configure_args1=; unset ac_configure_args1;}
2240 # When interrupted or exit'd, cleanup temporary files, and complete
2241 # config.log. We remove comments because anyway the quotes in there
2242 # would cause problems or look ugly.
2243 # WARNING: Use '\'' to represent an apostrophe within the trap.
2244 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2245 trap 'exit_status=$?
2246 # Save into config.log some information that might help in debugging.
2248 echo
2250 $as_echo "## ---------------- ##
2251 ## Cache variables. ##
2252 ## ---------------- ##"
2253 echo
2254 # The following way of writing the cache mishandles newlines in values,
2256 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2257 eval ac_val=\$$ac_var
2258 case $ac_val in #(
2259 *${as_nl}*)
2260 case $ac_var in #(
2261 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2262 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2263 esac
2264 case $ac_var in #(
2265 _ | IFS | as_nl) ;; #(
2266 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2267 *) { eval $ac_var=; unset $ac_var;} ;;
2268 esac ;;
2269 esac
2270 done
2271 (set) 2>&1 |
2272 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2273 *${as_nl}ac_space=\ *)
2274 sed -n \
2275 "s/'\''/'\''\\\\'\'''\''/g;
2276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2277 ;; #(
2279 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2281 esac |
2282 sort
2284 echo
2286 $as_echo "## ----------------- ##
2287 ## Output variables. ##
2288 ## ----------------- ##"
2289 echo
2290 for ac_var in $ac_subst_vars
2292 eval ac_val=\$$ac_var
2293 case $ac_val in
2294 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2295 esac
2296 $as_echo "$ac_var='\''$ac_val'\''"
2297 done | sort
2298 echo
2300 if test -n "$ac_subst_files"; then
2301 $as_echo "## ------------------- ##
2302 ## File substitutions. ##
2303 ## ------------------- ##"
2304 echo
2305 for ac_var in $ac_subst_files
2307 eval ac_val=\$$ac_var
2308 case $ac_val in
2309 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2310 esac
2311 $as_echo "$ac_var='\''$ac_val'\''"
2312 done | sort
2313 echo
2316 if test -s confdefs.h; then
2317 $as_echo "## ----------- ##
2318 ## confdefs.h. ##
2319 ## ----------- ##"
2320 echo
2321 cat confdefs.h
2322 echo
2324 test "$ac_signal" != 0 &&
2325 $as_echo "$as_me: caught signal $ac_signal"
2326 $as_echo "$as_me: exit $exit_status"
2327 } >&5
2328 rm -f core *.core core.conftest.* &&
2329 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2330 exit $exit_status
2332 for ac_signal in 1 2 13 15; do
2333 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2334 done
2335 ac_signal=0
2337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2338 rm -f -r conftest* confdefs.h
2340 $as_echo "/* confdefs.h */" > confdefs.h
2342 # Predefined preprocessor variables.
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_NAME "$PACKAGE_NAME"
2346 _ACEOF
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2350 _ACEOF
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2354 _ACEOF
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_STRING "$PACKAGE_STRING"
2358 _ACEOF
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2362 _ACEOF
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_URL "$PACKAGE_URL"
2366 _ACEOF
2369 # Let the site file select an alternate cache file if it wants to.
2370 # Prefer an explicitly selected file to automatically selected ones.
2371 ac_site_file1=NONE
2372 ac_site_file2=NONE
2373 if test -n "$CONFIG_SITE"; then
2374 # We do not want a PATH search for config.site.
2375 case $CONFIG_SITE in #((
2376 -*) ac_site_file1=./$CONFIG_SITE;;
2377 */*) ac_site_file1=$CONFIG_SITE;;
2378 *) ac_site_file1=./$CONFIG_SITE;;
2379 esac
2380 elif test "x$prefix" != xNONE; then
2381 ac_site_file1=$prefix/share/config.site
2382 ac_site_file2=$prefix/etc/config.site
2383 else
2384 ac_site_file1=$ac_default_prefix/share/config.site
2385 ac_site_file2=$ac_default_prefix/etc/config.site
2387 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2389 test "x$ac_site_file" = xNONE && continue
2390 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2392 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2393 sed 's/^/| /' "$ac_site_file" >&5
2394 . "$ac_site_file" \
2395 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2397 as_fn_error $? "failed to load site script $ac_site_file
2398 See \`config.log' for more details" "$LINENO" 5; }
2400 done
2402 if test -r "$cache_file"; then
2403 # Some versions of bash will fail to source /dev/null (special files
2404 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2405 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2407 $as_echo "$as_me: loading cache $cache_file" >&6;}
2408 case $cache_file in
2409 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2410 *) . "./$cache_file";;
2411 esac
2413 else
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2415 $as_echo "$as_me: creating cache $cache_file" >&6;}
2416 >$cache_file
2419 # Check that the precious variables saved in the cache have kept the same
2420 # value.
2421 ac_cache_corrupted=false
2422 for ac_var in $ac_precious_vars; do
2423 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2424 eval ac_new_set=\$ac_env_${ac_var}_set
2425 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2426 eval ac_new_val=\$ac_env_${ac_var}_value
2427 case $ac_old_set,$ac_new_set in
2428 set,)
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2430 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2431 ac_cache_corrupted=: ;;
2432 ,set)
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2434 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2435 ac_cache_corrupted=: ;;
2436 ,);;
2438 if test "x$ac_old_val" != "x$ac_new_val"; then
2439 # differences in whitespace do not lead to failure.
2440 ac_old_val_w=`echo x $ac_old_val`
2441 ac_new_val_w=`echo x $ac_new_val`
2442 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2444 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2445 ac_cache_corrupted=:
2446 else
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2448 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2449 eval $ac_var=\$ac_old_val
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2452 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2454 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2455 fi;;
2456 esac
2457 # Pass precious variables to config.status.
2458 if test "$ac_new_set" = set; then
2459 case $ac_new_val in
2460 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2461 *) ac_arg=$ac_var=$ac_new_val ;;
2462 esac
2463 case " $ac_configure_args " in
2464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2465 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2466 esac
2468 done
2469 if $ac_cache_corrupted; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2473 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2474 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2476 ## -------------------- ##
2477 ## Main body of script. ##
2478 ## -------------------- ##
2480 ac_ext=c
2481 ac_cpp='$CPP $CPPFLAGS'
2482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2488 ac_config_headers="$ac_config_headers include/config.h"
2490 ac_aux_dir=
2491 for ac_dir in tools "$srcdir"/tools; do
2492 if test -f "$ac_dir/install-sh"; then
2493 ac_aux_dir=$ac_dir
2494 ac_install_sh="$ac_aux_dir/install-sh -c"
2495 break
2496 elif test -f "$ac_dir/install.sh"; then
2497 ac_aux_dir=$ac_dir
2498 ac_install_sh="$ac_aux_dir/install.sh -c"
2499 break
2500 elif test -f "$ac_dir/shtool"; then
2501 ac_aux_dir=$ac_dir
2502 ac_install_sh="$ac_aux_dir/shtool install -c"
2503 break
2505 done
2506 if test -z "$ac_aux_dir"; then
2507 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2510 # These three variables are undocumented and unsupported,
2511 # and are intended to be withdrawn in a future Autoconf release.
2512 # They can cause serious problems if a builder's source tree is in a directory
2513 # whose full name contains unusual characters.
2514 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2515 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2516 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2522 # Check whether --enable-win16 was given.
2523 if test "${enable_win16+set}" = set; then :
2524 enableval=$enable_win16;
2527 # Check whether --enable-win64 was given.
2528 if test "${enable_win64+set}" = set; then :
2529 enableval=$enable_win64;
2532 # Check whether --enable-tests was given.
2533 if test "${enable_tests+set}" = set; then :
2534 enableval=$enable_tests;
2537 # Check whether --enable-maintainer-mode was given.
2538 if test "${enable_maintainer_mode+set}" = set; then :
2539 enableval=$enable_maintainer_mode;
2544 # Check whether --with-alsa was given.
2545 if test "${with_alsa+set}" = set; then :
2546 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2550 # Check whether --with-capi was given.
2551 if test "${with_capi+set}" = set; then :
2552 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2556 # Check whether --with-cms was given.
2557 if test "${with_cms+set}" = set; then :
2558 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2562 # Check whether --with-coreaudio was given.
2563 if test "${with_coreaudio+set}" = set; then :
2564 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2568 # Check whether --with-cups was given.
2569 if test "${with_cups+set}" = set; then :
2570 withval=$with_cups;
2574 # Check whether --with-curses was given.
2575 if test "${with_curses+set}" = set; then :
2576 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2580 # Check whether --with-dbus was given.
2581 if test "${with_dbus+set}" = set; then :
2582 withval=$with_dbus;
2586 # Check whether --with-fontconfig was given.
2587 if test "${with_fontconfig+set}" = set; then :
2588 withval=$with_fontconfig;
2592 # Check whether --with-freetype was given.
2593 if test "${with_freetype+set}" = set; then :
2594 withval=$with_freetype;
2598 # Check whether --with-gettext was given.
2599 if test "${with_gettext+set}" = set; then :
2600 withval=$with_gettext;
2604 # Check whether --with-gettextpo was given.
2605 if test "${with_gettextpo+set}" = set; then :
2606 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2610 # Check whether --with-gphoto was given.
2611 if test "${with_gphoto+set}" = set; then :
2612 withval=$with_gphoto;
2616 # Check whether --with-glu was given.
2617 if test "${with_glu+set}" = set; then :
2618 withval=$with_glu;
2622 # Check whether --with-gnutls was given.
2623 if test "${with_gnutls+set}" = set; then :
2624 withval=$with_gnutls;
2628 # Check whether --with-gsm was given.
2629 if test "${with_gsm+set}" = set; then :
2630 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2634 # Check whether --with-gstreamer was given.
2635 if test "${with_gstreamer+set}" = set; then :
2636 withval=$with_gstreamer;
2640 # Check whether --with-hal was given.
2641 if test "${with_hal+set}" = set; then :
2642 withval=$with_hal;
2646 # Check whether --with-jpeg was given.
2647 if test "${with_jpeg+set}" = set; then :
2648 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2652 # Check whether --with-ldap was given.
2653 if test "${with_ldap+set}" = set; then :
2654 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2658 # Check whether --with-mpg123 was given.
2659 if test "${with_mpg123+set}" = set; then :
2660 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2664 # Check whether --with-openal was given.
2665 if test "${with_openal+set}" = set; then :
2666 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2670 # Check whether --with-opencl was given.
2671 if test "${with_opencl+set}" = set; then :
2672 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2676 # Check whether --with-opengl was given.
2677 if test "${with_opengl+set}" = set; then :
2678 withval=$with_opengl;
2682 # Check whether --with-openssl was given.
2683 if test "${with_openssl+set}" = set; then :
2684 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2688 # Check whether --with-osmesa was given.
2689 if test "${with_osmesa+set}" = set; then :
2690 withval=$with_osmesa;
2694 # Check whether --with-oss was given.
2695 if test "${with_oss+set}" = set; then :
2696 withval=$with_oss;
2700 # Check whether --with-png was given.
2701 if test "${with_png+set}" = set; then :
2702 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2706 # Check whether --with-pthread was given.
2707 if test "${with_pthread+set}" = set; then :
2708 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2712 # Check whether --with-sane was given.
2713 if test "${with_sane+set}" = set; then :
2714 withval=$with_sane;
2718 # Check whether --with-tiff was given.
2719 if test "${with_tiff+set}" = set; then :
2720 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2724 # Check whether --with-v4l was given.
2725 if test "${with_v4l+set}" = set; then :
2726 withval=$with_v4l;
2730 # Check whether --with-xcomposite was given.
2731 if test "${with_xcomposite+set}" = set; then :
2732 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2736 # Check whether --with-xcursor was given.
2737 if test "${with_xcursor+set}" = set; then :
2738 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2742 # Check whether --with-xinerama was given.
2743 if test "${with_xinerama+set}" = set; then :
2744 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2748 # Check whether --with-xinput was given.
2749 if test "${with_xinput+set}" = set; then :
2750 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2754 # Check whether --with-xinput2 was given.
2755 if test "${with_xinput2+set}" = set; then :
2756 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2760 # Check whether --with-xml was given.
2761 if test "${with_xml+set}" = set; then :
2762 withval=$with_xml;
2766 # Check whether --with-xrandr was given.
2767 if test "${with_xrandr+set}" = set; then :
2768 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2772 # Check whether --with-xrender was given.
2773 if test "${with_xrender+set}" = set; then :
2774 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2778 # Check whether --with-xshape was given.
2779 if test "${with_xshape+set}" = set; then :
2780 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2784 # Check whether --with-xshm was given.
2785 if test "${with_xshm+set}" = set; then :
2786 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2790 # Check whether --with-xslt was given.
2791 if test "${with_xslt+set}" = set; then :
2792 withval=$with_xslt;
2796 # Check whether --with-xxf86vm was given.
2797 if test "${with_xxf86vm+set}" = set; then :
2798 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
2802 # Check whether --with-zlib was given.
2803 if test "${with_zlib+set}" = set; then :
2804 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2809 # Check whether --with-wine-tools was given.
2810 if test "${with_wine_tools+set}" = set; then :
2811 withval=$with_wine_tools;
2815 # Check whether --with-wine64 was given.
2816 if test "${with_wine64+set}" = set; then :
2817 withval=$with_wine64;
2821 # Make sure we can run config.sub.
2822 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2823 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2826 $as_echo_n "checking build system type... " >&6; }
2827 if ${ac_cv_build+:} false; then :
2828 $as_echo_n "(cached) " >&6
2829 else
2830 ac_build_alias=$build_alias
2831 test "x$ac_build_alias" = x &&
2832 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2833 test "x$ac_build_alias" = x &&
2834 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2835 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2836 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2840 $as_echo "$ac_cv_build" >&6; }
2841 case $ac_cv_build in
2842 *-*-*) ;;
2843 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2844 esac
2845 build=$ac_cv_build
2846 ac_save_IFS=$IFS; IFS='-'
2847 set x $ac_cv_build
2848 shift
2849 build_cpu=$1
2850 build_vendor=$2
2851 shift; shift
2852 # Remember, the first character of IFS is used to create $*,
2853 # except with old shells:
2854 build_os=$*
2855 IFS=$ac_save_IFS
2856 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2860 $as_echo_n "checking host system type... " >&6; }
2861 if ${ac_cv_host+:} false; then :
2862 $as_echo_n "(cached) " >&6
2863 else
2864 if test "x$host_alias" = x; then
2865 ac_cv_host=$ac_cv_build
2866 else
2867 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2868 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2873 $as_echo "$ac_cv_host" >&6; }
2874 case $ac_cv_host in
2875 *-*-*) ;;
2876 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2877 esac
2878 host=$ac_cv_host
2879 ac_save_IFS=$IFS; IFS='-'
2880 set x $ac_cv_host
2881 shift
2882 host_cpu=$1
2883 host_vendor=$2
2884 shift; shift
2885 # Remember, the first character of IFS is used to create $*,
2886 # except with old shells:
2887 host_os=$*
2888 IFS=$ac_save_IFS
2889 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2893 case "$srcdir" in
2894 .) ;;
2895 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2896 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2897 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2898 fi ;;
2899 esac
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2903 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2904 set x ${MAKE-make}
2905 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2906 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 cat >conftest.make <<\_ACEOF
2910 SHELL = /bin/sh
2911 all:
2912 @echo '@@@%%%=$(MAKE)=@@@%%%'
2913 _ACEOF
2914 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2915 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2916 *@@@%%%=?*=@@@%%%*)
2917 eval ac_cv_prog_make_${ac_make}_set=yes;;
2919 eval ac_cv_prog_make_${ac_make}_set=no;;
2920 esac
2921 rm -f conftest.make
2923 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2925 $as_echo "yes" >&6; }
2926 SET_MAKE=
2927 else
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2930 SET_MAKE="MAKE=${MAKE-make}"
2933 ac_ext=c
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 if test -n "$ac_tool_prefix"; then
2939 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2940 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if ${ac_cv_prog_CC+:} false; then :
2944 $as_echo_n "(cached) " >&6
2945 else
2946 if test -n "$CC"; then
2947 ac_cv_prog_CC="$CC" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2960 done
2961 done
2962 IFS=$as_save_IFS
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969 $as_echo "$CC" >&6; }
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2977 if test -z "$ac_cv_prog_CC"; then
2978 ac_ct_CC=$CC
2979 # Extract the first word of "gcc", so it can be a program name with args.
2980 set dummy gcc; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2984 $as_echo_n "(cached) " >&6
2985 else
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_ac_ct_CC="gcc"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
3000 done
3001 done
3002 IFS=$as_save_IFS
3006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007 if test -n "$ac_ct_CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3009 $as_echo "$ac_ct_CC" >&6; }
3010 else
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3015 if test "x$ac_ct_CC" = x; then
3016 CC=""
3017 else
3018 case $cross_compiling:$ac_tool_warned in
3019 yes:)
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022 ac_tool_warned=yes ;;
3023 esac
3024 CC=$ac_ct_CC
3026 else
3027 CC="$ac_cv_prog_CC"
3030 if test -z "$CC"; then
3031 if test -n "$ac_tool_prefix"; then
3032 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3033 set dummy ${ac_tool_prefix}cc; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if ${ac_cv_prog_CC+:} false; then :
3037 $as_echo_n "(cached) " >&6
3038 else
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_CC="${ac_tool_prefix}cc"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3053 done
3054 done
3055 IFS=$as_save_IFS
3059 CC=$ac_cv_prog_CC
3060 if test -n "$CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062 $as_echo "$CC" >&6; }
3063 else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3071 if test -z "$CC"; then
3072 # Extract the first word of "cc", so it can be a program name with args.
3073 set dummy cc; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_CC+:} false; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 if test -n "$CC"; then
3080 ac_cv_prog_CC="$CC" # Let the user override the test.
3081 else
3082 ac_prog_rejected=no
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3091 ac_prog_rejected=yes
3092 continue
3094 ac_cv_prog_CC="cc"
3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 break 2
3098 done
3099 done
3100 IFS=$as_save_IFS
3102 if test $ac_prog_rejected = yes; then
3103 # We found a bogon in the path, so make sure we never use it.
3104 set dummy $ac_cv_prog_CC
3105 shift
3106 if test $# != 0; then
3107 # We chose a different compiler from the bogus one.
3108 # However, it has the same basename, so the bogon will be chosen
3109 # first if we set CC to just the basename; use the full file name.
3110 shift
3111 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3116 CC=$ac_cv_prog_CC
3117 if test -n "$CC"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3120 else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3127 if test -z "$CC"; then
3128 if test -n "$ac_tool_prefix"; then
3129 for ac_prog in cl.exe
3131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3132 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_CC+:} false; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 if test -n "$CC"; then
3139 ac_cv_prog_CC="$CC" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3152 done
3153 done
3154 IFS=$as_save_IFS
3158 CC=$ac_cv_prog_CC
3159 if test -n "$CC"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3168 test -n "$CC" && break
3169 done
3171 if test -z "$CC"; then
3172 ac_ct_CC=$CC
3173 for ac_prog in cl.exe
3175 # Extract the first word of "$ac_prog", so it can be a program name with args.
3176 set dummy $ac_prog; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3180 $as_echo_n "(cached) " >&6
3181 else
3182 if test -n "$ac_ct_CC"; then
3183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192 ac_cv_prog_ac_ct_CC="$ac_prog"
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3196 done
3197 done
3198 IFS=$as_save_IFS
3202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3203 if test -n "$ac_ct_CC"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3205 $as_echo "$ac_ct_CC" >&6; }
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3212 test -n "$ac_ct_CC" && break
3213 done
3215 if test "x$ac_ct_CC" = x; then
3216 CC=""
3217 else
3218 case $cross_compiling:$ac_tool_warned in
3219 yes:)
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3222 ac_tool_warned=yes ;;
3223 esac
3224 CC=$ac_ct_CC
3231 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 as_fn_error $? "no acceptable C compiler found in \$PATH
3234 See \`config.log' for more details" "$LINENO" 5; }
3236 # Provide some information about the compiler.
3237 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3238 set X $ac_compile
3239 ac_compiler=$2
3240 for ac_option in --version -v -V -qversion; do
3241 { { ac_try="$ac_compiler $ac_option >&5"
3242 case "(($ac_try" in
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3245 esac
3246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247 $as_echo "$ac_try_echo"; } >&5
3248 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3249 ac_status=$?
3250 if test -s conftest.err; then
3251 sed '10a\
3252 ... rest of stderr output deleted ...
3253 10q' conftest.err >conftest.er1
3254 cat conftest.er1 >&5
3256 rm -f conftest.er1 conftest.err
3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258 test $ac_status = 0; }
3259 done
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3265 main ()
3269 return 0;
3271 _ACEOF
3272 ac_clean_files_save=$ac_clean_files
3273 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3274 # Try to create an executable without -o first, disregard a.out.
3275 # It will help us diagnose broken compilers, and finding out an intuition
3276 # of exeext.
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3278 $as_echo_n "checking whether the C compiler works... " >&6; }
3279 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3281 # The possible output files:
3282 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3284 ac_rmfiles=
3285 for ac_file in $ac_files
3287 case $ac_file in
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3289 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3290 esac
3291 done
3292 rm -f $ac_rmfiles
3294 if { { ac_try="$ac_link_default"
3295 case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_link_default") 2>&5
3302 ac_status=$?
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
3305 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3306 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3307 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3308 # so that the user can short-circuit this test for compilers unknown to
3309 # Autoconf.
3310 for ac_file in $ac_files ''
3312 test -f "$ac_file" || continue
3313 case $ac_file in
3314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3316 [ab].out )
3317 # We found the default executable, but exeext='' is most
3318 # certainly right.
3319 break;;
3320 *.* )
3321 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3322 then :; else
3323 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3325 # We set ac_cv_exeext here because the later test for it is not
3326 # safe: cross compilers may not add the suffix if given an `-o'
3327 # argument, so we may need to know it at that point already.
3328 # Even if this section looks crufty: it has the advantage of
3329 # actually working.
3330 break;;
3332 break;;
3333 esac
3334 done
3335 test "$ac_cv_exeext" = no && ac_cv_exeext=
3337 else
3338 ac_file=''
3340 if test -z "$ac_file"; then :
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 $as_echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348 as_fn_error 77 "C compiler cannot create executables
3349 See \`config.log' for more details" "$LINENO" 5; }
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352 $as_echo "yes" >&6; }
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3355 $as_echo_n "checking for C compiler default output file name... " >&6; }
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3357 $as_echo "$ac_file" >&6; }
3358 ac_exeext=$ac_cv_exeext
3360 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3361 ac_clean_files=$ac_clean_files_save
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3363 $as_echo_n "checking for suffix of executables... " >&6; }
3364 if { { ac_try="$ac_link"
3365 case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371 (eval "$ac_link") 2>&5
3372 ac_status=$?
3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }; then :
3375 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3376 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3377 # work properly (i.e., refer to `conftest.exe'), while it won't with
3378 # `rm'.
3379 for ac_file in conftest.exe conftest conftest.*; do
3380 test -f "$ac_file" || continue
3381 case $ac_file in
3382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3383 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3384 break;;
3385 * ) break;;
3386 esac
3387 done
3388 else
3389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3392 See \`config.log' for more details" "$LINENO" 5; }
3394 rm -f conftest conftest$ac_cv_exeext
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3396 $as_echo "$ac_cv_exeext" >&6; }
3398 rm -f conftest.$ac_ext
3399 EXEEXT=$ac_cv_exeext
3400 ac_exeext=$EXEEXT
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3403 #include <stdio.h>
3405 main ()
3407 FILE *f = fopen ("conftest.out", "w");
3408 return ferror (f) || fclose (f) != 0;
3411 return 0;
3413 _ACEOF
3414 ac_clean_files="$ac_clean_files conftest.out"
3415 # Check that the compiler produces executables we can run. If not, either
3416 # the compiler is broken, or we cross compile.
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3418 $as_echo_n "checking whether we are cross compiling... " >&6; }
3419 if test "$cross_compiling" != yes; then
3420 { { ac_try="$ac_link"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_link") 2>&5
3428 ac_status=$?
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }
3431 if { ac_try='./conftest$ac_cv_exeext'
3432 { { case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437 $as_echo "$ac_try_echo"; } >&5
3438 (eval "$ac_try") 2>&5
3439 ac_status=$?
3440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441 test $ac_status = 0; }; }; then
3442 cross_compiling=no
3443 else
3444 if test "$cross_compiling" = maybe; then
3445 cross_compiling=yes
3446 else
3447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449 as_fn_error $? "cannot run C compiled programs.
3450 If you meant to cross compile, use \`--host'.
3451 See \`config.log' for more details" "$LINENO" 5; }
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3456 $as_echo "$cross_compiling" >&6; }
3458 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3459 ac_clean_files=$ac_clean_files_save
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3461 $as_echo_n "checking for suffix of object files... " >&6; }
3462 if ${ac_cv_objext+:} false; then :
3463 $as_echo_n "(cached) " >&6
3464 else
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h. */
3469 main ()
3473 return 0;
3475 _ACEOF
3476 rm -f conftest.o conftest.obj
3477 if { { ac_try="$ac_compile"
3478 case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481 esac
3482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483 $as_echo "$ac_try_echo"; } >&5
3484 (eval "$ac_compile") 2>&5
3485 ac_status=$?
3486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487 test $ac_status = 0; }; then :
3488 for ac_file in conftest.o conftest.obj conftest.*; do
3489 test -f "$ac_file" || continue;
3490 case $ac_file in
3491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3492 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3493 break;;
3494 esac
3495 done
3496 else
3497 $as_echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 as_fn_error $? "cannot compute suffix of object files: cannot compile
3503 See \`config.log' for more details" "$LINENO" 5; }
3505 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3508 $as_echo "$ac_cv_objext" >&6; }
3509 OBJEXT=$ac_cv_objext
3510 ac_objext=$OBJEXT
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3512 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3513 if ${ac_cv_c_compiler_gnu+:} false; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3520 main ()
3522 #ifndef __GNUC__
3523 choke me
3524 #endif
3527 return 0;
3529 _ACEOF
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531 ac_compiler_gnu=yes
3532 else
3533 ac_compiler_gnu=no
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3540 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3541 if test $ac_compiler_gnu = yes; then
3542 GCC=yes
3543 else
3544 GCC=
3546 ac_test_CFLAGS=${CFLAGS+set}
3547 ac_save_CFLAGS=$CFLAGS
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3549 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3550 if ${ac_cv_prog_cc_g+:} false; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 ac_save_c_werror_flag=$ac_c_werror_flag
3554 ac_c_werror_flag=yes
3555 ac_cv_prog_cc_g=no
3556 CFLAGS="-g"
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3561 main ()
3565 return 0;
3567 _ACEOF
3568 if ac_fn_c_try_compile "$LINENO"; then :
3569 ac_cv_prog_cc_g=yes
3570 else
3571 CFLAGS=""
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3576 main ()
3580 return 0;
3582 _ACEOF
3583 if ac_fn_c_try_compile "$LINENO"; then :
3585 else
3586 ac_c_werror_flag=$ac_save_c_werror_flag
3587 CFLAGS="-g"
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3592 main ()
3596 return 0;
3598 _ACEOF
3599 if ac_fn_c_try_compile "$LINENO"; then :
3600 ac_cv_prog_cc_g=yes
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 ac_c_werror_flag=$ac_save_c_werror_flag
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3610 $as_echo "$ac_cv_prog_cc_g" >&6; }
3611 if test "$ac_test_CFLAGS" = set; then
3612 CFLAGS=$ac_save_CFLAGS
3613 elif test $ac_cv_prog_cc_g = yes; then
3614 if test "$GCC" = yes; then
3615 CFLAGS="-g -O2"
3616 else
3617 CFLAGS="-g"
3619 else
3620 if test "$GCC" = yes; then
3621 CFLAGS="-O2"
3622 else
3623 CFLAGS=
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3627 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3628 if ${ac_cv_prog_cc_c89+:} false; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 ac_cv_prog_cc_c89=no
3632 ac_save_CC=$CC
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3635 #include <stdarg.h>
3636 #include <stdio.h>
3637 struct stat;
3638 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3639 struct buf { int x; };
3640 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3641 static char *e (p, i)
3642 char **p;
3643 int i;
3645 return p[i];
3647 static char *f (char * (*g) (char **, int), char **p, ...)
3649 char *s;
3650 va_list v;
3651 va_start (v,p);
3652 s = g (p, va_arg (v,int));
3653 va_end (v);
3654 return s;
3657 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3658 function prototypes and stuff, but not '\xHH' hex character constants.
3659 These don't provoke an error unfortunately, instead are silently treated
3660 as 'x'. The following induces an error, until -std is added to get
3661 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3662 array size at least. It's necessary to write '\x00'==0 to get something
3663 that's true only with -std. */
3664 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3666 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3667 inside strings and character constants. */
3668 #define FOO(x) 'x'
3669 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3671 int test (int i, double x);
3672 struct s1 {int (*f) (int a);};
3673 struct s2 {int (*f) (double a);};
3674 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3675 int argc;
3676 char **argv;
3678 main ()
3680 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3682 return 0;
3684 _ACEOF
3685 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3686 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3688 CC="$ac_save_CC $ac_arg"
3689 if ac_fn_c_try_compile "$LINENO"; then :
3690 ac_cv_prog_cc_c89=$ac_arg
3692 rm -f core conftest.err conftest.$ac_objext
3693 test "x$ac_cv_prog_cc_c89" != "xno" && break
3694 done
3695 rm -f conftest.$ac_ext
3696 CC=$ac_save_CC
3699 # AC_CACHE_VAL
3700 case "x$ac_cv_prog_cc_c89" in
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3703 $as_echo "none needed" >&6; } ;;
3704 xno)
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3706 $as_echo "unsupported" >&6; } ;;
3708 CC="$CC $ac_cv_prog_cc_c89"
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3710 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3711 esac
3712 if test "x$ac_cv_prog_cc_c89" != xno; then :
3716 ac_ext=c
3717 ac_cpp='$CPP $CPPFLAGS'
3718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722 ac_ext=cpp
3723 ac_cpp='$CXXCPP $CPPFLAGS'
3724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3727 if test -z "$CXX"; then
3728 if test -n "$CCC"; then
3729 CXX=$CCC
3730 else
3731 if test -n "$ac_tool_prefix"; then
3732 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if ${ac_cv_prog_CXX+:} false; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 if test -n "$CXX"; then
3742 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3743 else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 break 2
3755 done
3756 done
3757 IFS=$as_save_IFS
3761 CXX=$ac_cv_prog_CXX
3762 if test -n "$CXX"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3764 $as_echo "$CXX" >&6; }
3765 else
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3771 test -n "$CXX" && break
3772 done
3774 if test -z "$CXX"; then
3775 ac_ct_CXX=$CXX
3776 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3778 # Extract the first word of "$ac_prog", so it can be a program name with args.
3779 set dummy $ac_prog; ac_word=$2
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3783 $as_echo_n "(cached) " >&6
3784 else
3785 if test -n "$ac_ct_CXX"; then
3786 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795 ac_cv_prog_ac_ct_CXX="$ac_prog"
3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 break 2
3799 done
3800 done
3801 IFS=$as_save_IFS
3805 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3806 if test -n "$ac_ct_CXX"; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3808 $as_echo "$ac_ct_CXX" >&6; }
3809 else
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3815 test -n "$ac_ct_CXX" && break
3816 done
3818 if test "x$ac_ct_CXX" = x; then
3819 CXX="g++"
3820 else
3821 case $cross_compiling:$ac_tool_warned in
3822 yes:)
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3825 ac_tool_warned=yes ;;
3826 esac
3827 CXX=$ac_ct_CXX
3833 # Provide some information about the compiler.
3834 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3835 set X $ac_compile
3836 ac_compiler=$2
3837 for ac_option in --version -v -V -qversion; do
3838 { { ac_try="$ac_compiler $ac_option >&5"
3839 case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842 esac
3843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844 $as_echo "$ac_try_echo"; } >&5
3845 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3846 ac_status=$?
3847 if test -s conftest.err; then
3848 sed '10a\
3849 ... rest of stderr output deleted ...
3850 10q' conftest.err >conftest.er1
3851 cat conftest.er1 >&5
3853 rm -f conftest.er1 conftest.err
3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }
3856 done
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3859 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3860 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3861 $as_echo_n "(cached) " >&6
3862 else
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3867 main ()
3869 #ifndef __GNUC__
3870 choke me
3871 #endif
3874 return 0;
3876 _ACEOF
3877 if ac_fn_cxx_try_compile "$LINENO"; then :
3878 ac_compiler_gnu=yes
3879 else
3880 ac_compiler_gnu=no
3882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3887 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3888 if test $ac_compiler_gnu = yes; then
3889 GXX=yes
3890 else
3891 GXX=
3893 ac_test_CXXFLAGS=${CXXFLAGS+set}
3894 ac_save_CXXFLAGS=$CXXFLAGS
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3896 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3897 if ${ac_cv_prog_cxx_g+:} false; then :
3898 $as_echo_n "(cached) " >&6
3899 else
3900 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3901 ac_cxx_werror_flag=yes
3902 ac_cv_prog_cxx_g=no
3903 CXXFLAGS="-g"
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3908 main ()
3912 return 0;
3914 _ACEOF
3915 if ac_fn_cxx_try_compile "$LINENO"; then :
3916 ac_cv_prog_cxx_g=yes
3917 else
3918 CXXFLAGS=""
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3923 main ()
3927 return 0;
3929 _ACEOF
3930 if ac_fn_cxx_try_compile "$LINENO"; then :
3932 else
3933 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3934 CXXFLAGS="-g"
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3939 main ()
3943 return 0;
3945 _ACEOF
3946 if ac_fn_cxx_try_compile "$LINENO"; then :
3947 ac_cv_prog_cxx_g=yes
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3957 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3958 if test "$ac_test_CXXFLAGS" = set; then
3959 CXXFLAGS=$ac_save_CXXFLAGS
3960 elif test $ac_cv_prog_cxx_g = yes; then
3961 if test "$GXX" = yes; then
3962 CXXFLAGS="-g -O2"
3963 else
3964 CXXFLAGS="-g"
3966 else
3967 if test "$GXX" = yes; then
3968 CXXFLAGS="-O2"
3969 else
3970 CXXFLAGS=
3973 ac_ext=c
3974 ac_cpp='$CPP $CPPFLAGS'
3975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979 if test -n "$ac_tool_prefix"; then
3980 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3981 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983 $as_echo_n "checking for $ac_word... " >&6; }
3984 if ${ac_cv_prog_CPPBIN+:} false; then :
3985 $as_echo_n "(cached) " >&6
3986 else
3987 if test -n "$CPPBIN"; then
3988 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4001 done
4002 done
4003 IFS=$as_save_IFS
4007 CPPBIN=$ac_cv_prog_CPPBIN
4008 if test -n "$CPPBIN"; then
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4010 $as_echo "$CPPBIN" >&6; }
4011 else
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 $as_echo "no" >&6; }
4018 if test -z "$ac_cv_prog_CPPBIN"; then
4019 ac_ct_CPPBIN=$CPPBIN
4020 # Extract the first word of "cpp", so it can be a program name with args.
4021 set dummy cpp; ac_word=$2
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023 $as_echo_n "checking for $ac_word... " >&6; }
4024 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4025 $as_echo_n "(cached) " >&6
4026 else
4027 if test -n "$ac_ct_CPPBIN"; then
4028 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4029 else
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037 ac_cv_prog_ac_ct_CPPBIN="cpp"
4038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 break 2
4041 done
4042 done
4043 IFS=$as_save_IFS
4047 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4048 if test -n "$ac_ct_CPPBIN"; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4050 $as_echo "$ac_ct_CPPBIN" >&6; }
4051 else
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4056 if test "x$ac_ct_CPPBIN" = x; then
4057 CPPBIN="cpp"
4058 else
4059 case $cross_compiling:$ac_tool_warned in
4060 yes:)
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4063 ac_tool_warned=yes ;;
4064 esac
4065 CPPBIN=$ac_ct_CPPBIN
4067 else
4068 CPPBIN="$ac_cv_prog_CPPBIN"
4072 cat >>confdefs.h <<_ACEOF
4073 #define EXEEXT "$ac_exeext"
4074 _ACEOF
4077 case $host in
4078 *-darwin*)
4079 if test "x$enable_win64" = "xyes"
4080 then
4081 CC="$CC -m64"
4082 CXX="$CXX -m64"
4083 host_cpu="x86_64"
4084 notice_platform="64-bit "
4085 TARGETFLAGS="-m64"
4087 else
4088 CC="$CC -m32"
4089 CXX="$CXX -m32"
4090 host_cpu="i386"
4091 notice_platform="32-bit "
4092 TARGETFLAGS="-m32"
4094 enable_win16=${enable_win16:-yes}
4096 with_fontconfig=${with_fontconfig:-no}
4098 x86_64*)
4099 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4100 then
4101 CC="$CC -m32"
4102 CXX="$CXX -m32"
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4104 $as_echo_n "checking whether $CC works... " >&6; }
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4110 main ()
4114 return 0;
4116 _ACEOF
4117 if ac_fn_c_try_link "$LINENO"; then :
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4119 $as_echo "yes" >&6; }
4120 else
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4123 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4125 rm -f core conftest.err conftest.$ac_objext \
4126 conftest$ac_exeext conftest.$ac_ext
4127 host_cpu="i386"
4128 notice_platform="32-bit "
4129 TARGETFLAGS="-m32"
4131 enable_win16=${enable_win16:-yes}
4132 else
4133 if test "x${GCC}" = "xyes"
4134 then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4136 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139 #include <stdarg.h>
4141 main ()
4143 void func(__builtin_ms_va_list *args);
4145 return 0;
4147 _ACEOF
4148 if ac_fn_c_try_compile "$LINENO"; then :
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4150 $as_echo "yes" >&6; }
4151 else
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4154 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 TARGETFLAGS="-m64"
4162 arm*)
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4164 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4167 int ac_test(int i) { return i; }
4169 main ()
4171 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4173 return 0;
4175 _ACEOF
4176 if ac_fn_c_try_link "$LINENO"; then :
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4178 $as_echo "yes" >&6; }
4179 else
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181 $as_echo "no" >&6; }
4182 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4184 rm -f core conftest.err conftest.$ac_objext \
4185 conftest$ac_exeext conftest.$ac_ext
4186 CFLAGS="$CFLAGS -marm"
4188 *-mingw32*|*-cygwin*)
4189 enable_win16=${enable_win16:-no}
4190 CFLAGS="$CFLAGS -D_WIN32"
4192 i[3456789]86*)
4193 enable_win16=${enable_win16:-yes}
4195 esac
4197 enable_win16=${enable_win16:-no}
4198 enable_win64=${enable_win64:-no}
4200 enable_winetest=${enable_winetest:-$enable_tests}
4202 if test -n "$with_wine64"
4203 then
4204 if test "x$enable_win64" = "xyes"
4205 then
4206 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4207 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4209 WOW64_DISABLE=\#
4211 enable_fonts=${enable_fonts:-no}
4212 enable_server=${enable_server:-no}
4213 enable_tools=${enable_tools:-no}
4214 elif test "x$enable_win64" = "xyes"
4215 then
4216 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4220 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4221 if ${wine_cv_toolsdir+:} false; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 wine_cv_toolsdir="$with_wine_tools"
4225 if test -z "$with_wine_tools"; then
4226 if test "$cross_compiling" = "yes"; then
4227 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4228 elif test -n "$with_wine64"; then
4229 wine_cv_toolsdir="$with_wine64"
4232 if test -z "$wine_cv_toolsdir"; then
4233 wine_cv_toolsdir="\$(top_builddir)"
4234 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4235 case "$wine_cv_toolsdir" in
4236 /*) ;;
4237 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4238 esac
4239 else
4240 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4244 $as_echo "$wine_cv_toolsdir" >&6; }
4245 TOOLSDIR=$wine_cv_toolsdir
4247 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4248 then
4249 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4253 for ac_prog in flex
4255 # Extract the first word of "$ac_prog", so it can be a program name with args.
4256 set dummy $ac_prog; ac_word=$2
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258 $as_echo_n "checking for $ac_word... " >&6; }
4259 if ${ac_cv_prog_FLEX+:} false; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 if test -n "$FLEX"; then
4263 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4272 ac_cv_prog_FLEX="$ac_prog"
4273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4276 done
4277 done
4278 IFS=$as_save_IFS
4282 FLEX=$ac_cv_prog_FLEX
4283 if test -n "$FLEX"; then
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4285 $as_echo "$FLEX" >&6; }
4286 else
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4292 test -n "$FLEX" && break
4293 done
4294 test -n "$FLEX" || FLEX="none"
4296 if test "$FLEX" = "none"
4297 then
4298 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4301 $as_echo_n "checking whether flex is recent enough... " >&6; }
4302 cat >conftest.l <<EOF
4303 %top{
4304 #include "prediluvian.h"
4308 if $FLEX -t conftest.l >/dev/null 2>&5
4309 then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4311 $as_echo "yes" >&6; }
4312 else
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4315 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4318 for ac_prog in bison
4320 # Extract the first word of "$ac_prog", so it can be a program name with args.
4321 set dummy $ac_prog; ac_word=$2
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323 $as_echo_n "checking for $ac_word... " >&6; }
4324 if ${ac_cv_prog_BISON+:} false; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 if test -n "$BISON"; then
4328 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4329 else
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4337 ac_cv_prog_BISON="$ac_prog"
4338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 break 2
4341 done
4342 done
4343 IFS=$as_save_IFS
4347 BISON=$ac_cv_prog_BISON
4348 if test -n "$BISON"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4350 $as_echo "$BISON" >&6; }
4351 else
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4357 test -n "$BISON" && break
4358 done
4359 test -n "$BISON" || BISON="none"
4361 if test "$BISON" = "none"
4362 then
4363 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4366 if test -n "$ac_tool_prefix"; then
4367 for ac_prog in ar gar
4369 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372 $as_echo_n "checking for $ac_word... " >&6; }
4373 if ${ac_cv_prog_AR+:} false; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 if test -n "$AR"; then
4377 ac_cv_prog_AR="$AR" # Let the user override the test.
4378 else
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4386 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 break 2
4390 done
4391 done
4392 IFS=$as_save_IFS
4396 AR=$ac_cv_prog_AR
4397 if test -n "$AR"; then
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4399 $as_echo "$AR" >&6; }
4400 else
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402 $as_echo "no" >&6; }
4406 test -n "$AR" && break
4407 done
4409 if test -z "$AR"; then
4410 ac_ct_AR=$AR
4411 for ac_prog in ar gar
4413 # Extract the first word of "$ac_prog", so it can be a program name with args.
4414 set dummy $ac_prog; ac_word=$2
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4416 $as_echo_n "checking for $ac_word... " >&6; }
4417 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4418 $as_echo_n "(cached) " >&6
4419 else
4420 if test -n "$ac_ct_AR"; then
4421 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4430 ac_cv_prog_ac_ct_AR="$ac_prog"
4431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 break 2
4434 done
4435 done
4436 IFS=$as_save_IFS
4440 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4441 if test -n "$ac_ct_AR"; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4443 $as_echo "$ac_ct_AR" >&6; }
4444 else
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4450 test -n "$ac_ct_AR" && break
4451 done
4453 if test "x$ac_ct_AR" = x; then
4454 AR="ar"
4455 else
4456 case $cross_compiling:$ac_tool_warned in
4457 yes:)
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4460 ac_tool_warned=yes ;;
4461 esac
4462 AR=$ac_ct_AR
4466 ARFLAGS=rc
4468 if test -n "$ac_tool_prefix"; then
4469 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4470 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4472 $as_echo_n "checking for $ac_word... " >&6; }
4473 if ${ac_cv_prog_RANLIB+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 if test -n "$RANLIB"; then
4477 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4478 else
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4486 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 break 2
4490 done
4491 done
4492 IFS=$as_save_IFS
4496 RANLIB=$ac_cv_prog_RANLIB
4497 if test -n "$RANLIB"; then
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4499 $as_echo "$RANLIB" >&6; }
4500 else
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4507 if test -z "$ac_cv_prog_RANLIB"; then
4508 ac_ct_RANLIB=$RANLIB
4509 # Extract the first word of "ranlib", so it can be a program name with args.
4510 set dummy ranlib; ac_word=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 if test -n "$ac_ct_RANLIB"; then
4517 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_prog_ac_ct_RANLIB="ranlib"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4530 done
4531 done
4532 IFS=$as_save_IFS
4536 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4537 if test -n "$ac_ct_RANLIB"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4539 $as_echo "$ac_ct_RANLIB" >&6; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4545 if test "x$ac_ct_RANLIB" = x; then
4546 RANLIB=":"
4547 else
4548 case $cross_compiling:$ac_tool_warned in
4549 yes:)
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4552 ac_tool_warned=yes ;;
4553 esac
4554 RANLIB=$ac_ct_RANLIB
4556 else
4557 RANLIB="$ac_cv_prog_RANLIB"
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4561 $as_echo_n "checking whether ln -s works... " >&6; }
4562 LN_S=$as_ln_s
4563 if test "$LN_S" = "ln -s"; then
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4565 $as_echo "yes" >&6; }
4566 else
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4568 $as_echo "no, using $LN_S" >&6; }
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4572 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4573 if ${ac_cv_path_GREP+:} false; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 if test -z "$GREP"; then
4577 ac_path_GREP_found=false
4578 # Loop through the user's path and test for each of PROGNAME-LIST
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_prog in grep ggrep; do
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4587 as_fn_executable_p "$ac_path_GREP" || continue
4588 # Check for GNU ac_path_GREP and select it if it is found.
4589 # Check for GNU $ac_path_GREP
4590 case `"$ac_path_GREP" --version 2>&1` in
4591 *GNU*)
4592 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4594 ac_count=0
4595 $as_echo_n 0123456789 >"conftest.in"
4596 while :
4598 cat "conftest.in" "conftest.in" >"conftest.tmp"
4599 mv "conftest.tmp" "conftest.in"
4600 cp "conftest.in" "conftest.nl"
4601 $as_echo 'GREP' >> "conftest.nl"
4602 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4604 as_fn_arith $ac_count + 1 && ac_count=$as_val
4605 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4606 # Best one so far, save it but keep looking for a better one
4607 ac_cv_path_GREP="$ac_path_GREP"
4608 ac_path_GREP_max=$ac_count
4610 # 10*(2^10) chars as input seems more than enough
4611 test $ac_count -gt 10 && break
4612 done
4613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4614 esac
4616 $ac_path_GREP_found && break 3
4617 done
4618 done
4619 done
4620 IFS=$as_save_IFS
4621 if test -z "$ac_cv_path_GREP"; then
4622 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4624 else
4625 ac_cv_path_GREP=$GREP
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4630 $as_echo "$ac_cv_path_GREP" >&6; }
4631 GREP="$ac_cv_path_GREP"
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4635 $as_echo_n "checking for egrep... " >&6; }
4636 if ${ac_cv_path_EGREP+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4640 then ac_cv_path_EGREP="$GREP -E"
4641 else
4642 if test -z "$EGREP"; then
4643 ac_path_EGREP_found=false
4644 # Loop through the user's path and test for each of PROGNAME-LIST
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_prog in egrep; do
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4653 as_fn_executable_p "$ac_path_EGREP" || continue
4654 # Check for GNU ac_path_EGREP and select it if it is found.
4655 # Check for GNU $ac_path_EGREP
4656 case `"$ac_path_EGREP" --version 2>&1` in
4657 *GNU*)
4658 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4660 ac_count=0
4661 $as_echo_n 0123456789 >"conftest.in"
4662 while :
4664 cat "conftest.in" "conftest.in" >"conftest.tmp"
4665 mv "conftest.tmp" "conftest.in"
4666 cp "conftest.in" "conftest.nl"
4667 $as_echo 'EGREP' >> "conftest.nl"
4668 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4670 as_fn_arith $ac_count + 1 && ac_count=$as_val
4671 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4672 # Best one so far, save it but keep looking for a better one
4673 ac_cv_path_EGREP="$ac_path_EGREP"
4674 ac_path_EGREP_max=$ac_count
4676 # 10*(2^10) chars as input seems more than enough
4677 test $ac_count -gt 10 && break
4678 done
4679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4680 esac
4682 $ac_path_EGREP_found && break 3
4683 done
4684 done
4685 done
4686 IFS=$as_save_IFS
4687 if test -z "$ac_cv_path_EGREP"; then
4688 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4690 else
4691 ac_cv_path_EGREP=$EGREP
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4697 $as_echo "$ac_cv_path_EGREP" >&6; }
4698 EGREP="$ac_cv_path_EGREP"
4701 # Extract the first word of "ldconfig", so it can be a program name with args.
4702 set dummy ldconfig; ac_word=$2
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4704 $as_echo_n "checking for $ac_word... " >&6; }
4705 if ${ac_cv_path_LDCONFIG+:} false; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 case $LDCONFIG in
4709 [\\/]* | ?:[\\/]*)
4710 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in /sbin /usr/sbin $PATH
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 break 2
4724 done
4725 done
4726 IFS=$as_save_IFS
4728 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4730 esac
4732 LDCONFIG=$ac_cv_path_LDCONFIG
4733 if test -n "$LDCONFIG"; then
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4735 $as_echo "$LDCONFIG" >&6; }
4736 else
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738 $as_echo "no" >&6; }
4742 # Find a good install program. We prefer a C program (faster),
4743 # so one script is as good as another. But avoid the broken or
4744 # incompatible versions:
4745 # SysV /etc/install, /usr/sbin/install
4746 # SunOS /usr/etc/install
4747 # IRIX /sbin/install
4748 # AIX /bin/install
4749 # AmigaOS /C/install, which installs bootblocks on floppy discs
4750 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4751 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4752 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4753 # OS/2's system install, which has a completely different semantic
4754 # ./install, which can be erroneously created by make from ./install.sh.
4755 # Reject install programs that cannot install multiple files.
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4757 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4758 if test -z "$INSTALL"; then
4759 if ${ac_cv_path_install+:} false; then :
4760 $as_echo_n "(cached) " >&6
4761 else
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 # Account for people who put trailing slashes in PATH elements.
4768 case $as_dir/ in #((
4769 ./ | .// | /[cC]/* | \
4770 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4771 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4772 /usr/ucb/* ) ;;
4774 # OSF1 and SCO ODT 3.0 have their own names for install.
4775 # Don't use installbsd from OSF since it installs stuff as root
4776 # by default.
4777 for ac_prog in ginstall scoinst install; do
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4780 if test $ac_prog = install &&
4781 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4782 # AIX install. It has an incompatible calling convention.
4784 elif test $ac_prog = install &&
4785 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4786 # program-specific install script used by HP pwplus--don't use.
4788 else
4789 rm -rf conftest.one conftest.two conftest.dir
4790 echo one > conftest.one
4791 echo two > conftest.two
4792 mkdir conftest.dir
4793 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4794 test -s conftest.one && test -s conftest.two &&
4795 test -s conftest.dir/conftest.one &&
4796 test -s conftest.dir/conftest.two
4797 then
4798 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4799 break 3
4803 done
4804 done
4806 esac
4808 done
4809 IFS=$as_save_IFS
4811 rm -rf conftest.one conftest.two conftest.dir
4814 if test "${ac_cv_path_install+set}" = set; then
4815 INSTALL=$ac_cv_path_install
4816 else
4817 # As a last resort, use the slow shell script. Don't cache a
4818 # value for INSTALL within a source directory, because that will
4819 # break other packages using the cache if that directory is
4820 # removed, or if the value is a relative name.
4821 INSTALL=$ac_install_sh
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4825 $as_echo "$INSTALL" >&6; }
4827 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4828 # It thinks the first close brace ends the variable substitution.
4829 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4831 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4833 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4835 case "$INSTALL" in
4836 [\\/$]* | ?:[\\/]* ) ;;
4837 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4838 esac
4840 for ac_prog in lclint lint
4842 # Extract the first word of "$ac_prog", so it can be a program name with args.
4843 set dummy $ac_prog; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if ${ac_cv_prog_LINT+:} false; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 if test -n "$LINT"; then
4850 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859 ac_cv_prog_LINT="$ac_prog"
4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4863 done
4864 done
4865 IFS=$as_save_IFS
4869 LINT=$ac_cv_prog_LINT
4870 if test -n "$LINT"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4872 $as_echo "$LINT" >&6; }
4873 else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4879 test -n "$LINT" && break
4880 done
4882 if test "$LINT" = "lint"
4883 then
4884 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4888 for ac_prog in fontforge
4890 # Extract the first word of "$ac_prog", so it can be a program name with args.
4891 set dummy $ac_prog; ac_word=$2
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4894 if ${ac_cv_prog_FONTFORGE+:} false; then :
4895 $as_echo_n "(cached) " >&6
4896 else
4897 if test -n "$FONTFORGE"; then
4898 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4899 else
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907 ac_cv_prog_FONTFORGE="$ac_prog"
4908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 break 2
4911 done
4912 done
4913 IFS=$as_save_IFS
4917 FONTFORGE=$ac_cv_prog_FONTFORGE
4918 if test -n "$FONTFORGE"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4920 $as_echo "$FONTFORGE" >&6; }
4921 else
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4927 test -n "$FONTFORGE" && break
4928 done
4929 test -n "$FONTFORGE" || FONTFORGE="false"
4931 for ac_prog in pkg-config
4933 # Extract the first word of "$ac_prog", so it can be a program name with args.
4934 set dummy $ac_prog; ac_word=$2
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 if test -n "$PKG_CONFIG"; then
4941 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950 ac_cv_prog_PKG_CONFIG="$ac_prog"
4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4954 done
4955 done
4956 IFS=$as_save_IFS
4960 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4961 if test -n "$PKG_CONFIG"; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4963 $as_echo "$PKG_CONFIG" >&6; }
4964 else
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 $as_echo "no" >&6; }
4970 test -n "$PKG_CONFIG" && break
4971 done
4972 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4974 for ac_prog in rsvg
4976 # Extract the first word of "$ac_prog", so it can be a program name with args.
4977 set dummy $ac_prog; ac_word=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if ${ac_cv_prog_RSVG+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 if test -n "$RSVG"; then
4984 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4985 else
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993 ac_cv_prog_RSVG="$ac_prog"
4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4997 done
4998 done
4999 IFS=$as_save_IFS
5003 RSVG=$ac_cv_prog_RSVG
5004 if test -n "$RSVG"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5006 $as_echo "$RSVG" >&6; }
5007 else
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5013 test -n "$RSVG" && break
5014 done
5015 test -n "$RSVG" || RSVG="false"
5017 for ac_prog in convert
5019 # Extract the first word of "$ac_prog", so it can be a program name with args.
5020 set dummy $ac_prog; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if ${ac_cv_prog_CONVERT+:} false; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 if test -n "$CONVERT"; then
5027 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036 ac_cv_prog_CONVERT="$ac_prog"
5037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5040 done
5041 done
5042 IFS=$as_save_IFS
5046 CONVERT=$ac_cv_prog_CONVERT
5047 if test -n "$CONVERT"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5049 $as_echo "$CONVERT" >&6; }
5050 else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5056 test -n "$CONVERT" && break
5057 done
5058 test -n "$CONVERT" || CONVERT="false"
5060 for ac_prog in icotool
5062 # Extract the first word of "$ac_prog", so it can be a program name with args.
5063 set dummy $ac_prog; ac_word=$2
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if ${ac_cv_prog_ICOTOOL+:} false; then :
5067 $as_echo_n "(cached) " >&6
5068 else
5069 if test -n "$ICOTOOL"; then
5070 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5071 else
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079 ac_cv_prog_ICOTOOL="$ac_prog"
5080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5083 done
5084 done
5085 IFS=$as_save_IFS
5089 ICOTOOL=$ac_cv_prog_ICOTOOL
5090 if test -n "$ICOTOOL"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5092 $as_echo "$ICOTOOL" >&6; }
5093 else
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5099 test -n "$ICOTOOL" && break
5100 done
5101 test -n "$ICOTOOL" || ICOTOOL="false"
5103 for ac_prog in msgfmt
5105 # Extract the first word of "$ac_prog", so it can be a program name with args.
5106 set dummy $ac_prog; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if ${ac_cv_prog_MSGFMT+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -n "$MSGFMT"; then
5113 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_MSGFMT="$ac_prog"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5126 done
5127 done
5128 IFS=$as_save_IFS
5132 MSGFMT=$ac_cv_prog_MSGFMT
5133 if test -n "$MSGFMT"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5135 $as_echo "$MSGFMT" >&6; }
5136 else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5142 test -n "$MSGFMT" && break
5143 done
5144 test -n "$MSGFMT" || MSGFMT="false"
5147 if test "x$enable_maintainer_mode" != "xyes"
5148 then
5149 MAINTAINER_MODE=\#
5151 else
5152 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5153 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5155 if test "$CONVERT" = false
5156 then
5157 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5158 else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5160 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5161 convert_version=`convert --version | head -n1`
5162 if test "x$convert_version" != "x"
5163 then
5164 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5165 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5166 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5167 then
5168 CONVERT=false
5171 if test "$CONVERT" = false
5172 then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5174 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5175 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5176 else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5178 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5182 if test "$ICOTOOL" = false
5183 then
5184 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5187 $as_echo_n "checking for recent enough icotool... " >&6; }
5188 icotool_version=`icotool --version | head -n1`
5189 if test "x$icotool_version" != "x"
5190 then
5191 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5192 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5193 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5194 then
5195 ICOTOOL=false
5196 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5199 if test "$ICOTOOL" = false
5200 then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5202 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5203 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5204 else
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5206 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5210 with_gettext=yes
5211 with_gettextpo=yes
5212 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5215 test "x$with_gettext" != xno || MSGFMT=false
5216 if test "$MSGFMT" != "false"
5217 then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5219 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5220 cat >conftest.po <<EOF
5221 # comment
5222 msgctxt "ctxt"
5223 msgid "id"
5224 msgstr "str"
5226 if $MSGFMT -o /dev/null conftest.po 2>&5
5227 then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5229 $as_echo "yes" >&6; }
5230 else
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5233 MSGFMT=false
5236 if test "$MSGFMT" = false; then :
5237 case "x$with_gettext" in
5238 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5239 xno) ;;
5240 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5241 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5242 esac
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5247 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5248 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 ac_check_lib_save_LIBS=$LIBS
5252 LIBS="-li386 $LIBS"
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5256 /* Override any GCC internal prototype to avoid an error.
5257 Use char because int might match the return type of a GCC
5258 builtin and then its argument prototype would still apply. */
5259 #ifdef __cplusplus
5260 extern "C"
5261 #endif
5262 char i386_set_ldt ();
5264 main ()
5266 return i386_set_ldt ();
5268 return 0;
5270 _ACEOF
5271 if ac_fn_c_try_link "$LINENO"; then :
5272 ac_cv_lib_i386_i386_set_ldt=yes
5273 else
5274 ac_cv_lib_i386_i386_set_ldt=no
5276 rm -f core conftest.err conftest.$ac_objext \
5277 conftest$ac_exeext conftest.$ac_ext
5278 LIBS=$ac_check_lib_save_LIBS
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5281 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5282 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5283 cat >>confdefs.h <<_ACEOF
5284 #define HAVE_LIBI386 1
5285 _ACEOF
5287 LIBS="-li386 $LIBS"
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5292 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5293 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 ac_check_lib_save_LIBS=$LIBS
5297 LIBS="-lossaudio $LIBS"
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5301 /* Override any GCC internal prototype to avoid an error.
5302 Use char because int might match the return type of a GCC
5303 builtin and then its argument prototype would still apply. */
5304 #ifdef __cplusplus
5305 extern "C"
5306 #endif
5307 char _oss_ioctl ();
5309 main ()
5311 return _oss_ioctl ();
5313 return 0;
5315 _ACEOF
5316 if ac_fn_c_try_link "$LINENO"; then :
5317 ac_cv_lib_ossaudio__oss_ioctl=yes
5318 else
5319 ac_cv_lib_ossaudio__oss_ioctl=no
5321 rm -f core conftest.err conftest.$ac_objext \
5322 conftest$ac_exeext conftest.$ac_ext
5323 LIBS=$ac_check_lib_save_LIBS
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5326 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5327 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5328 cat >>confdefs.h <<_ACEOF
5329 #define HAVE_LIBOSSAUDIO 1
5330 _ACEOF
5332 LIBS="-lossaudio $LIBS"
5337 XLIB=""
5339 OPENGL_LIBS=""
5343 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5345 # Check whether --enable-largefile was given.
5346 if test "${enable_largefile+set}" = set; then :
5347 enableval=$enable_largefile;
5350 if test "$enable_largefile" != no; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5353 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5354 if ${ac_cv_sys_largefile_CC+:} false; then :
5355 $as_echo_n "(cached) " >&6
5356 else
5357 ac_cv_sys_largefile_CC=no
5358 if test "$GCC" != yes; then
5359 ac_save_CC=$CC
5360 while :; do
5361 # IRIX 6.2 and later do not support large files by default,
5362 # so use the C compiler's -n32 option if that helps.
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h. */
5365 #include <sys/types.h>
5366 /* Check that off_t can represent 2**63 - 1 correctly.
5367 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5368 since some C++ compilers masquerading as C compilers
5369 incorrectly reject 9223372036854775807. */
5370 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5371 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5372 && LARGE_OFF_T % 2147483647 == 1)
5373 ? 1 : -1];
5375 main ()
5379 return 0;
5381 _ACEOF
5382 if ac_fn_c_try_compile "$LINENO"; then :
5383 break
5385 rm -f core conftest.err conftest.$ac_objext
5386 CC="$CC -n32"
5387 if ac_fn_c_try_compile "$LINENO"; then :
5388 ac_cv_sys_largefile_CC=' -n32'; break
5390 rm -f core conftest.err conftest.$ac_objext
5391 break
5392 done
5393 CC=$ac_save_CC
5394 rm -f conftest.$ac_ext
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5398 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5399 if test "$ac_cv_sys_largefile_CC" != no; then
5400 CC=$CC$ac_cv_sys_largefile_CC
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5404 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5405 if ${ac_cv_sys_file_offset_bits+:} false; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 while :; do
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411 #include <sys/types.h>
5412 /* Check that off_t can represent 2**63 - 1 correctly.
5413 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5414 since some C++ compilers masquerading as C compilers
5415 incorrectly reject 9223372036854775807. */
5416 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5417 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5418 && LARGE_OFF_T % 2147483647 == 1)
5419 ? 1 : -1];
5421 main ()
5425 return 0;
5427 _ACEOF
5428 if ac_fn_c_try_compile "$LINENO"; then :
5429 ac_cv_sys_file_offset_bits=no; break
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5434 #define _FILE_OFFSET_BITS 64
5435 #include <sys/types.h>
5436 /* Check that off_t can represent 2**63 - 1 correctly.
5437 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5438 since some C++ compilers masquerading as C compilers
5439 incorrectly reject 9223372036854775807. */
5440 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5441 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5442 && LARGE_OFF_T % 2147483647 == 1)
5443 ? 1 : -1];
5445 main ()
5449 return 0;
5451 _ACEOF
5452 if ac_fn_c_try_compile "$LINENO"; then :
5453 ac_cv_sys_file_offset_bits=64; break
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456 ac_cv_sys_file_offset_bits=unknown
5457 break
5458 done
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5461 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5462 case $ac_cv_sys_file_offset_bits in #(
5463 no | unknown) ;;
5465 cat >>confdefs.h <<_ACEOF
5466 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5467 _ACEOF
5469 esac
5470 rm -rf conftest*
5471 if test $ac_cv_sys_file_offset_bits = unknown; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5473 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5474 if ${ac_cv_sys_large_files+:} false; then :
5475 $as_echo_n "(cached) " >&6
5476 else
5477 while :; do
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480 #include <sys/types.h>
5481 /* Check that off_t can represent 2**63 - 1 correctly.
5482 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5483 since some C++ compilers masquerading as C compilers
5484 incorrectly reject 9223372036854775807. */
5485 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5486 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5487 && LARGE_OFF_T % 2147483647 == 1)
5488 ? 1 : -1];
5490 main ()
5494 return 0;
5496 _ACEOF
5497 if ac_fn_c_try_compile "$LINENO"; then :
5498 ac_cv_sys_large_files=no; break
5500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5503 #define _LARGE_FILES 1
5504 #include <sys/types.h>
5505 /* Check that off_t can represent 2**63 - 1 correctly.
5506 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5507 since some C++ compilers masquerading as C compilers
5508 incorrectly reject 9223372036854775807. */
5509 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5510 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5511 && LARGE_OFF_T % 2147483647 == 1)
5512 ? 1 : -1];
5514 main ()
5518 return 0;
5520 _ACEOF
5521 if ac_fn_c_try_compile "$LINENO"; then :
5522 ac_cv_sys_large_files=1; break
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525 ac_cv_sys_large_files=unknown
5526 break
5527 done
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5530 $as_echo "$ac_cv_sys_large_files" >&6; }
5531 case $ac_cv_sys_large_files in #(
5532 no | unknown) ;;
5534 cat >>confdefs.h <<_ACEOF
5535 #define _LARGE_FILES $ac_cv_sys_large_files
5536 _ACEOF
5538 esac
5539 rm -rf conftest*
5546 ac_ext=c
5547 ac_cpp='$CPP $CPPFLAGS'
5548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5552 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5553 # On Suns, sometimes $CPP names a directory.
5554 if test -n "$CPP" && test -d "$CPP"; then
5555 CPP=
5557 if test -z "$CPP"; then
5558 if ${ac_cv_prog_CPP+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 # Double quotes because CPP needs to be expanded
5562 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5564 ac_preproc_ok=false
5565 for ac_c_preproc_warn_flag in '' yes
5567 # Use a header file that comes with gcc, so configuring glibc
5568 # with a fresh cross-compiler works.
5569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5570 # <limits.h> exists even on freestanding compilers.
5571 # On the NeXT, cc -E runs the code through the compiler's parser,
5572 # not just through cpp. "Syntax error" is here to catch this case.
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 #ifdef __STDC__
5576 # include <limits.h>
5577 #else
5578 # include <assert.h>
5579 #endif
5580 Syntax error
5581 _ACEOF
5582 if ac_fn_c_try_cpp "$LINENO"; then :
5584 else
5585 # Broken: fails on valid input.
5586 continue
5588 rm -f conftest.err conftest.i conftest.$ac_ext
5590 # OK, works on sane cases. Now check whether nonexistent headers
5591 # can be detected and how.
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 #include <ac_nonexistent.h>
5595 _ACEOF
5596 if ac_fn_c_try_cpp "$LINENO"; then :
5597 # Broken: success on invalid input.
5598 continue
5599 else
5600 # Passes both tests.
5601 ac_preproc_ok=:
5602 break
5604 rm -f conftest.err conftest.i conftest.$ac_ext
5606 done
5607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5608 rm -f conftest.i conftest.err conftest.$ac_ext
5609 if $ac_preproc_ok; then :
5610 break
5613 done
5614 ac_cv_prog_CPP=$CPP
5617 CPP=$ac_cv_prog_CPP
5618 else
5619 ac_cv_prog_CPP=$CPP
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5622 $as_echo "$CPP" >&6; }
5623 ac_preproc_ok=false
5624 for ac_c_preproc_warn_flag in '' yes
5626 # Use a header file that comes with gcc, so configuring glibc
5627 # with a fresh cross-compiler works.
5628 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5629 # <limits.h> exists even on freestanding compilers.
5630 # On the NeXT, cc -E runs the code through the compiler's parser,
5631 # not just through cpp. "Syntax error" is here to catch this case.
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 #ifdef __STDC__
5635 # include <limits.h>
5636 #else
5637 # include <assert.h>
5638 #endif
5639 Syntax error
5640 _ACEOF
5641 if ac_fn_c_try_cpp "$LINENO"; then :
5643 else
5644 # Broken: fails on valid input.
5645 continue
5647 rm -f conftest.err conftest.i conftest.$ac_ext
5649 # OK, works on sane cases. Now check whether nonexistent headers
5650 # can be detected and how.
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 #include <ac_nonexistent.h>
5654 _ACEOF
5655 if ac_fn_c_try_cpp "$LINENO"; then :
5656 # Broken: success on invalid input.
5657 continue
5658 else
5659 # Passes both tests.
5660 ac_preproc_ok=:
5661 break
5663 rm -f conftest.err conftest.i conftest.$ac_ext
5665 done
5666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5667 rm -f conftest.i conftest.err conftest.$ac_ext
5668 if $ac_preproc_ok; then :
5670 else
5671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5673 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5674 See \`config.log' for more details" "$LINENO" 5; }
5677 ac_ext=c
5678 ac_cpp='$CPP $CPPFLAGS'
5679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5685 $as_echo_n "checking for ANSI C header files... " >&6; }
5686 if ${ac_cv_header_stdc+:} false; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #include <stdlib.h>
5692 #include <stdarg.h>
5693 #include <string.h>
5694 #include <float.h>
5697 main ()
5701 return 0;
5703 _ACEOF
5704 if ac_fn_c_try_compile "$LINENO"; then :
5705 ac_cv_header_stdc=yes
5706 else
5707 ac_cv_header_stdc=no
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711 if test $ac_cv_header_stdc = yes; then
5712 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 #include <string.h>
5717 _ACEOF
5718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5719 $EGREP "memchr" >/dev/null 2>&1; then :
5721 else
5722 ac_cv_header_stdc=no
5724 rm -f conftest*
5728 if test $ac_cv_header_stdc = yes; then
5729 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5732 #include <stdlib.h>
5734 _ACEOF
5735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5736 $EGREP "free" >/dev/null 2>&1; then :
5738 else
5739 ac_cv_header_stdc=no
5741 rm -f conftest*
5745 if test $ac_cv_header_stdc = yes; then
5746 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5747 if test "$cross_compiling" = yes; then :
5749 else
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5752 #include <ctype.h>
5753 #include <stdlib.h>
5754 #if ((' ' & 0x0FF) == 0x020)
5755 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5756 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5757 #else
5758 # define ISLOWER(c) \
5759 (('a' <= (c) && (c) <= 'i') \
5760 || ('j' <= (c) && (c) <= 'r') \
5761 || ('s' <= (c) && (c) <= 'z'))
5762 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5763 #endif
5765 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5767 main ()
5769 int i;
5770 for (i = 0; i < 256; i++)
5771 if (XOR (islower (i), ISLOWER (i))
5772 || toupper (i) != TOUPPER (i))
5773 return 2;
5774 return 0;
5776 _ACEOF
5777 if ac_fn_c_try_run "$LINENO"; then :
5779 else
5780 ac_cv_header_stdc=no
5782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5783 conftest.$ac_objext conftest.beam conftest.$ac_ext
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5789 $as_echo "$ac_cv_header_stdc" >&6; }
5790 if test $ac_cv_header_stdc = yes; then
5792 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5796 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5797 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5798 inttypes.h stdint.h unistd.h
5799 do :
5800 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5801 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5803 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5804 cat >>confdefs.h <<_ACEOF
5805 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5806 _ACEOF
5810 done
5813 for ac_header in \
5814 AL/al.h \
5815 ApplicationServices/ApplicationServices.h \
5816 AudioToolbox/AudioConverter.h \
5817 AudioUnit/AudioUnit.h \
5818 AudioUnit/AudioComponent.h \
5819 CL/cl.h \
5820 Carbon/Carbon.h \
5821 CoreAudio/CoreAudio.h \
5822 CoreServices/CoreServices.h \
5823 DiskArbitration/DiskArbitration.h \
5824 IOKit/IOKitLib.h \
5825 IOKit/hid/IOHIDLib.h \
5826 OpenAL/al.h \
5827 OpenCL/opencl.h \
5828 QuickTime/ImageCompression.h \
5829 Security/Security.h \
5830 alias.h \
5831 alsa/asoundlib.h \
5832 arpa/inet.h \
5833 arpa/nameser.h \
5834 asm/types.h \
5835 capi20.h \
5836 curses.h \
5837 direct.h \
5838 dirent.h \
5839 dlfcn.h \
5840 elf.h \
5841 float.h \
5842 fnmatch.h \
5843 fontconfig/fontconfig.h \
5844 getopt.h \
5845 gettext-po.h \
5846 grp.h \
5847 gsm.h \
5848 gsm/gsm.h \
5849 ieeefp.h \
5850 inet/mib2.h \
5851 io.h \
5852 jpeglib.h \
5853 kstat.h \
5854 lber.h \
5855 lcms.h \
5856 lcms/lcms.h \
5857 ldap.h \
5858 link.h \
5859 linux/cdrom.h \
5860 linux/compiler.h \
5861 linux/filter.h \
5862 linux/hdreg.h \
5863 linux/input.h \
5864 linux/ioctl.h \
5865 linux/joystick.h \
5866 linux/major.h \
5867 linux/param.h \
5868 linux/serial.h \
5869 linux/types.h \
5870 linux/ucdrom.h \
5871 lwp.h \
5872 mach-o/nlist.h \
5873 mach-o/loader.h \
5874 mach/mach.h \
5875 mach/machine.h \
5876 machine/cpu.h \
5877 machine/limits.h \
5878 machine/sysarch.h \
5879 mntent.h \
5880 mpg123.h \
5881 ncurses.h \
5882 netdb.h \
5883 netinet/in.h \
5884 netinet/in_systm.h \
5885 netinet/tcp.h \
5886 netinet/tcp_fsm.h \
5887 openssl/err.h \
5888 openssl/ssl.h \
5889 png.h \
5890 poll.h \
5891 port.h \
5892 process.h \
5893 pthread.h \
5894 pwd.h \
5895 sched.h \
5896 scsi/scsi.h \
5897 scsi/scsi_ioctl.h \
5898 scsi/sg.h \
5899 stdbool.h \
5900 stdint.h \
5901 stropts.h \
5902 sys/asoundlib.h \
5903 sys/attr.h \
5904 sys/cdio.h \
5905 sys/elf32.h \
5906 sys/epoll.h \
5907 sys/event.h \
5908 sys/exec_elf.h \
5909 sys/filio.h \
5910 sys/inotify.h \
5911 sys/ioctl.h \
5912 sys/ipc.h \
5913 sys/limits.h \
5914 sys/link.h \
5915 sys/mman.h \
5916 sys/modem.h \
5917 sys/msg.h \
5918 sys/mtio.h \
5919 sys/param.h \
5920 sys/poll.h \
5921 sys/prctl.h \
5922 sys/protosw.h \
5923 sys/ptrace.h \
5924 sys/resource.h \
5925 sys/scsiio.h \
5926 sys/shm.h \
5927 sys/signal.h \
5928 sys/socket.h \
5929 sys/socketvar.h \
5930 sys/sockio.h \
5931 sys/statvfs.h \
5932 sys/strtio.h \
5933 sys/syscall.h \
5934 sys/tihdr.h \
5935 sys/time.h \
5936 sys/timeout.h \
5937 sys/times.h \
5938 sys/uio.h \
5939 sys/utsname.h \
5940 sys/vm86.h \
5941 sys/wait.h \
5942 syscall.h \
5943 termios.h \
5944 tiffio.h \
5945 unistd.h \
5946 utime.h \
5947 valgrind/memcheck.h \
5948 valgrind/valgrind.h \
5949 zlib.h
5951 do :
5952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5955 cat >>confdefs.h <<_ACEOF
5956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5957 _ACEOF
5961 done
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5964 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5965 if ${ac_cv_header_stat_broken+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5970 #include <sys/types.h>
5971 #include <sys/stat.h>
5973 #if defined S_ISBLK && defined S_IFDIR
5974 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5975 #endif
5977 #if defined S_ISBLK && defined S_IFCHR
5978 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5979 #endif
5981 #if defined S_ISLNK && defined S_IFREG
5982 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5983 #endif
5985 #if defined S_ISSOCK && defined S_IFREG
5986 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5987 #endif
5989 _ACEOF
5990 if ac_fn_c_try_compile "$LINENO"; then :
5991 ac_cv_header_stat_broken=no
5992 else
5993 ac_cv_header_stat_broken=yes
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5998 $as_echo "$ac_cv_header_stat_broken" >&6; }
5999 if test $ac_cv_header_stat_broken = yes; then
6001 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6007 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6008 do :
6009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6010 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6011 #ifdef HAVE_SYS_PARAM_H
6012 # include <sys/param.h>
6013 #endif
6015 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6016 cat >>confdefs.h <<_ACEOF
6017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6018 _ACEOF
6022 done
6025 for ac_header in \
6026 netinet/ip.h \
6027 net/if.h \
6028 net/if_arp.h \
6029 net/if_dl.h \
6030 net/if_types.h \
6031 net/route.h \
6032 netinet/if_ether.h \
6033 netinet/if_inarp.h \
6034 netinet/in_pcb.h \
6035 netinet/ip_icmp.h \
6036 netinet/ip_var.h \
6037 netinet/udp.h \
6038 netipx/ipx.h \
6039 sys/un.h \
6041 do :
6042 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6043 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6044 #ifdef HAVE_SYS_SOCKET_H
6045 # include <sys/socket.h>
6046 #endif
6047 #ifdef HAVE_SYS_SOCKETVAR_H
6048 # include <sys/socketvar.h>
6049 #endif
6050 #ifdef HAVE_NET_ROUTE_H
6051 # include <net/route.h>
6052 #endif
6053 #ifdef HAVE_NETINET_IN_H
6054 # include <netinet/in.h>
6055 #endif
6056 #ifdef HAVE_NETINET_IN_SYSTM_H
6057 # include <netinet/in_systm.h>
6058 #endif
6059 #ifdef HAVE_NET_IF_H
6060 # include <net/if.h>
6061 #endif
6062 #ifdef HAVE_NETINET_IP_H
6063 # include <netinet/ip.h>
6064 #endif
6066 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6067 cat >>confdefs.h <<_ACEOF
6068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6069 _ACEOF
6073 done
6076 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6077 do :
6078 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6079 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6080 #ifdef HAVE_ALIAS_H
6081 # include <alias.h>
6082 #endif
6083 #ifdef HAVE_SYS_SOCKET_H
6084 # include <sys/socket.h>
6085 #endif
6086 #ifdef HAVE_SYS_SOCKETVAR_H
6087 # include <sys/socketvar.h>
6088 #endif
6089 #ifdef HAVE_SYS_TIMEOUT_H
6090 # include <sys/timeout.h>
6091 #endif
6092 #ifdef HAVE_NETINET_IN_H
6093 # include <netinet/in.h>
6094 #endif
6095 #ifdef HAVE_NETINET_IN_SYSTM_H
6096 # include <netinet/in_systm.h>
6097 #endif
6098 #ifdef HAVE_NETINET_IP_H
6099 # include <netinet/ip.h>
6100 #endif
6101 #ifdef HAVE_NETINET_IP_VAR_H
6102 # include <netinet/ip_var.h>
6103 #endif
6104 #ifdef HAVE_NETINET_IP_ICMP_H
6105 # include <netinet/ip_icmp.h>
6106 #endif
6107 #ifdef HAVE_NETINET_UDP_H
6108 # include <netinet/udp.h>
6109 #endif
6110 #ifdef HAVE_NETINET_TCP_H
6111 # include <netinet/tcp.h>
6112 #endif
6113 #ifdef HAVE_NETINET_TCP_TIMER_H
6114 #include <netinet/tcp_timer.h>
6115 #endif
6117 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6118 cat >>confdefs.h <<_ACEOF
6119 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6120 _ACEOF
6124 done
6127 for ac_header in linux/ipx.h linux/irda.h
6128 do :
6129 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6130 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6131 #ifdef HAVE_ASM_TYPES_H
6132 # include <asm/types.h>
6133 #endif
6134 #ifdef HAVE_SYS_SOCKET_H
6135 # include <sys/socket.h>
6136 #endif
6137 #ifdef HAVE_LINUX_TYPES_H
6138 # include <linux/types.h>
6139 #endif
6141 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6142 cat >>confdefs.h <<_ACEOF
6143 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6144 _ACEOF
6148 done
6151 for ac_header in mach-o/dyld_images.h
6152 do :
6153 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6154 # include <stdbool.h>
6155 #endif
6156 #ifdef HAVE_STDINT_H
6157 # include <stdint.h>
6158 #endif
6160 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6161 cat >>confdefs.h <<_ACEOF
6162 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6163 _ACEOF
6167 done
6170 for ac_header in resolv.h
6171 do :
6172 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6173 #ifdef HAVE_SYS_SOCKET_H
6174 # include <sys/socket.h>
6175 #endif
6176 #ifdef HAVE_NETINET_IN_H
6177 # include <netinet/in.h>
6178 #endif
6179 #ifdef HAVE_ARPA_NAMESER_H
6180 # include <arpa/nameser.h>
6181 #endif
6183 if test "x$ac_cv_header_resolv_h" = xyes; then :
6184 cat >>confdefs.h <<_ACEOF
6185 #define HAVE_RESOLV_H 1
6186 _ACEOF
6190 done
6193 for ac_header in ifaddrs.h
6194 do :
6195 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6197 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6198 cat >>confdefs.h <<_ACEOF
6199 #define HAVE_IFADDRS_H 1
6200 _ACEOF
6204 done
6207 for ac_header in ucontext.h
6208 do :
6209 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6211 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6212 cat >>confdefs.h <<_ACEOF
6213 #define HAVE_UCONTEXT_H 1
6214 _ACEOF
6218 done
6221 for ac_header in sys/thr.h
6222 do :
6223 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6224 #ifdef HAVE_UCONTEXT_H
6225 #include <ucontext.h>
6226 #endif
6228 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6229 cat >>confdefs.h <<_ACEOF
6230 #define HAVE_SYS_THR_H 1
6231 _ACEOF
6235 done
6238 for ac_header in pthread_np.h
6239 do :
6240 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6241 #include <pthread.h>
6242 #endif
6244 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6245 cat >>confdefs.h <<_ACEOF
6246 #define HAVE_PTHREAD_NP_H 1
6247 _ACEOF
6251 done
6254 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6255 do :
6256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6257 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6258 #include <sys/time.h>
6259 #endif
6260 #include <sys/types.h>
6261 #ifdef HAVE_ASM_TYPES_H
6262 #include <asm/types.h>
6263 #endif
6265 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6266 cat >>confdefs.h <<_ACEOF
6267 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6268 _ACEOF
6272 done
6275 for ac_header in linux/capi.h
6276 do :
6277 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6279 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6280 cat >>confdefs.h <<_ACEOF
6281 #define HAVE_LINUX_CAPI_H 1
6282 _ACEOF
6286 done
6290 DLLEXT=""
6292 DLLFLAGS="-D_REENTRANT"
6294 LDSHARED=""
6296 LDDLLFLAGS=""
6298 LIBEXT="so"
6300 IMPLIBEXT="def"
6302 LDRPATH_INSTALL=""
6304 LDRPATH_LOCAL=""
6306 STATIC_IMPLIBEXT="def.a"
6307 # Extract the first word of "ldd", so it can be a program name with args.
6308 set dummy ldd; ac_word=$2
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310 $as_echo_n "checking for $ac_word... " >&6; }
6311 if ${ac_cv_path_LDD+:} false; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 case $LDD in
6315 [\\/]* | ?:[\\/]*)
6316 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 as_dummy="/sbin:/usr/sbin:$PATH"
6321 for as_dir in $as_dummy
6323 IFS=$as_save_IFS
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6327 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 break 2
6331 done
6332 done
6333 IFS=$as_save_IFS
6335 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6337 esac
6339 LDD=$ac_cv_path_LDD
6340 if test -n "$LDD"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6342 $as_echo "$LDD" >&6; }
6343 else
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6349 if test -n "$ac_tool_prefix"; then
6350 for ac_prog in readelf
6352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if ${ac_cv_prog_READELF+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 if test -n "$READELF"; then
6360 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369 ac_cv_prog_READELF="$ac_tool_prefix$ac_prog"
6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 break 2
6373 done
6374 done
6375 IFS=$as_save_IFS
6379 READELF=$ac_cv_prog_READELF
6380 if test -n "$READELF"; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6382 $as_echo "$READELF" >&6; }
6383 else
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6389 test -n "$READELF" && break
6390 done
6392 if test -z "$READELF"; then
6393 ac_ct_READELF=$READELF
6394 for ac_prog in readelf
6396 # Extract the first word of "$ac_prog", so it can be a program name with args.
6397 set dummy $ac_prog; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 if test -n "$ac_ct_READELF"; then
6404 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6405 else
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6413 ac_cv_prog_ac_ct_READELF="$ac_prog"
6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 break 2
6417 done
6418 done
6419 IFS=$as_save_IFS
6423 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6424 if test -n "$ac_ct_READELF"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6426 $as_echo "$ac_ct_READELF" >&6; }
6427 else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6433 test -n "$ac_ct_READELF" && break
6434 done
6436 if test "x$ac_ct_READELF" = x; then
6437 READELF="true"
6438 else
6439 case $cross_compiling:$ac_tool_warned in
6440 yes:)
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6443 ac_tool_warned=yes ;;
6444 esac
6445 READELF=$ac_ct_READELF
6450 case $host_os in
6451 cygwin*|mingw32*)
6452 if test -n "$ac_tool_prefix"; then
6453 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6454 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if ${ac_cv_prog_DLLTOOL+:} false; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 if test -n "$DLLTOOL"; then
6461 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6462 else
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6466 IFS=$as_save_IFS
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6470 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 break 2
6474 done
6475 done
6476 IFS=$as_save_IFS
6480 DLLTOOL=$ac_cv_prog_DLLTOOL
6481 if test -n "$DLLTOOL"; then
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6483 $as_echo "$DLLTOOL" >&6; }
6484 else
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6491 if test -z "$ac_cv_prog_DLLTOOL"; then
6492 ac_ct_DLLTOOL=$DLLTOOL
6493 # Extract the first word of "dlltool", so it can be a program name with args.
6494 set dummy dlltool; ac_word=$2
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496 $as_echo_n "checking for $ac_word... " >&6; }
6497 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6498 $as_echo_n "(cached) " >&6
6499 else
6500 if test -n "$ac_ct_DLLTOOL"; then
6501 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6502 else
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 for as_dir in $PATH
6506 IFS=$as_save_IFS
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 break 2
6514 done
6515 done
6516 IFS=$as_save_IFS
6520 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6521 if test -n "$ac_ct_DLLTOOL"; then
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6523 $as_echo "$ac_ct_DLLTOOL" >&6; }
6524 else
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526 $as_echo "no" >&6; }
6529 if test "x$ac_ct_DLLTOOL" = x; then
6530 DLLTOOL="false"
6531 else
6532 case $cross_compiling:$ac_tool_warned in
6533 yes:)
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6536 ac_tool_warned=yes ;;
6537 esac
6538 DLLTOOL=$ac_ct_DLLTOOL
6540 else
6541 DLLTOOL="$ac_cv_prog_DLLTOOL"
6544 if test -n "$ac_tool_prefix"; then
6545 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6546 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548 $as_echo_n "checking for $ac_word... " >&6; }
6549 if ${ac_cv_prog_DLLWRAP+:} false; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6552 if test -n "$DLLWRAP"; then
6553 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6554 else
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 break 2
6566 done
6567 done
6568 IFS=$as_save_IFS
6572 DLLWRAP=$ac_cv_prog_DLLWRAP
6573 if test -n "$DLLWRAP"; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6575 $as_echo "$DLLWRAP" >&6; }
6576 else
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6583 if test -z "$ac_cv_prog_DLLWRAP"; then
6584 ac_ct_DLLWRAP=$DLLWRAP
6585 # Extract the first word of "dllwrap", so it can be a program name with args.
6586 set dummy dllwrap; ac_word=$2
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6590 $as_echo_n "(cached) " >&6
6591 else
6592 if test -n "$ac_ct_DLLWRAP"; then
6593 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6598 IFS=$as_save_IFS
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6602 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604 break 2
6606 done
6607 done
6608 IFS=$as_save_IFS
6612 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6613 if test -n "$ac_ct_DLLWRAP"; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6615 $as_echo "$ac_ct_DLLWRAP" >&6; }
6616 else
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6621 if test "x$ac_ct_DLLWRAP" = x; then
6622 DLLWRAP="false"
6623 else
6624 case $cross_compiling:$ac_tool_warned in
6625 yes:)
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6628 ac_tool_warned=yes ;;
6629 esac
6630 DLLWRAP=$ac_ct_DLLWRAP
6632 else
6633 DLLWRAP="$ac_cv_prog_DLLWRAP"
6636 if test "$DLLWRAP" = "false"; then
6637 LIBEXT="a"
6638 else
6639 LIBEXT="dll"
6641 IMPLIBEXT="a"
6642 STATIC_IMPLIBEXT="a"
6643 enable_iphlpapi=${enable_iphlpapi:-no}
6644 enable_kernel32=${enable_kernel32:-no}
6645 enable_msvcrt=${enable_msvcrt:-no}
6646 enable_ntdll=${enable_ntdll:-no}
6647 enable_ws2_32=${enable_ws2_32:-no}
6648 enable_loader=${enable_loader:-no}
6649 enable_server=${enable_server:-no}
6650 with_x=${with_x:-no}
6651 with_pthread=${with_pthread:-no}
6653 darwin*|macosx*)
6654 DLLEXT=".so"
6655 LIBEXT="dylib"
6656 DLLFLAGS="$DLLFLAGS -fPIC"
6657 LDDLLFLAGS="-bundle -multiply_defined suppress"
6658 LIBWINE_LDFLAGS="-multiply_defined suppress"
6659 LDSHARED="\$(CC) -dynamiclib"
6660 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6661 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
6662 COREFOUNDATIONLIB="-framework CoreFoundation"
6664 IOKITLIB="-framework IOKit -framework CoreFoundation"
6666 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6668 CORESERVICESLIB="-framework CoreServices"
6670 case $host_os in
6671 darwin11*)
6672 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6675 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6677 esac
6678 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6679 then
6680 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6683 if test "$ac_cv_header_Security_Security_h" = "yes"
6684 then
6685 SECURITYLIB="-framework Security -framework CoreFoundation"
6687 ac_save_LIBS="$LIBS"
6688 LIBS="$LIBS $SECURITYLIB"
6689 for ac_func in SSLCopyPeerCertificates
6690 do :
6691 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6692 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6693 cat >>confdefs.h <<_ACEOF
6694 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6695 _ACEOF
6698 done
6700 LIBS="$ac_save_LIBS"
6701 with_gnutls=${with_gnutls:-no}
6703 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6704 then
6705 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6706 then
6707 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6709 else
6710 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6713 ac_save_LIBS="$LIBS"
6714 LIBS="$LIBS $COREAUDIO"
6715 for ac_func in AUGraphAddNode
6716 do :
6717 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6718 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6719 cat >>confdefs.h <<_ACEOF
6720 #define HAVE_AUGRAPHADDNODE 1
6721 _ACEOF
6724 done
6726 LIBS="$ac_save_LIBS"
6728 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6729 then
6730 FRAMEWORK_OPENAL="-framework OpenAL"
6733 cat >>confdefs.h <<_ACEOF
6734 #define HAVE_OPENAL 1
6735 _ACEOF
6737 ac_cv_lib_openal=yes
6739 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6740 then
6741 LIBOPENCL="-framework OpenCL"
6743 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6745 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6746 then
6747 ac_save_LIBS="$LIBS"
6748 LIBS="$LIBS $IOKITLIB"
6749 for ac_func in IOHIDManagerCreate
6750 do :
6751 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6752 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6753 cat >>confdefs.h <<_ACEOF
6754 #define HAVE_IOHIDMANAGERCREATE 1
6755 _ACEOF
6758 done
6760 LIBS="$ac_save_LIBS"
6762 case $host_cpu in
6763 *powerpc*)
6764 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6765 esac
6766 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6767 then
6768 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6770 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6771 else
6772 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6774 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6775 then
6776 CARBONLIB="-framework Carbon"
6780 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
6781 then
6782 ac_save_LIBS="$LIBS"
6783 LIBS="$LIBS $APPLICATIONSERVICESLIB"
6784 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
6785 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
6786 enable_winemac_drv=${enable_winemac_drv:-yes}
6789 LIBS="$ac_save_LIBS"
6792 if test "x$enable_win16" = "xyes"
6793 then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6795 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6796 if test "$cross_compiling" = yes; then :
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6798 $as_echo "cross-compiling, assuming yes" >&6; }
6799 else
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6802 asm(".text\n"
6803 "bad:\tnop;nop\n"
6804 "good:\tnop;nop\n\t"
6805 ".globl _testfunc\n"
6806 "_testfunc:\tcallw good");
6807 extern void testfunc();
6809 main ()
6811 unsigned short *p = (unsigned short *)testfunc;
6812 return p[0] != 0xe866 || p[1] != 0xfffa
6814 return 0;
6816 _ACEOF
6817 if ac_fn_c_try_run "$LINENO"; then :
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6819 $as_echo "yes" >&6; }
6820 else
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6822 $as_echo "no" >&6; }
6823 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
6825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6826 conftest.$ac_objext conftest.beam conftest.$ac_ext
6832 DLLFLAGS="$DLLFLAGS -fPIC"
6833 DLLEXT=".so"
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6835 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6836 if ${ac_cv_c_dll_gnuelf+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 ac_wine_try_cflags_saved=$CFLAGS
6840 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6843 void myfunc() {}
6844 _ACEOF
6845 if ac_fn_c_try_link "$LINENO"; then :
6846 ac_cv_c_dll_gnuelf="yes"
6847 else
6848 ac_cv_c_dll_gnuelf="no"
6850 rm -f core conftest.err conftest.$ac_objext \
6851 conftest$ac_exeext conftest.$ac_ext
6852 CFLAGS=$ac_wine_try_cflags_saved
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6855 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6856 if test "$ac_cv_c_dll_gnuelf" = "yes"
6857 then
6858 LDSHARED="\$(CC) -shared"
6859 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6861 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6862 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 ac_wine_try_cflags_saved=$CFLAGS
6866 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6869 int main(int argc, char **argv) { return 0; }
6870 _ACEOF
6871 if ac_fn_c_try_link "$LINENO"; then :
6872 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6873 else
6874 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6876 rm -f core conftest.err conftest.$ac_objext \
6877 conftest$ac_exeext conftest.$ac_ext
6878 CFLAGS=$ac_wine_try_cflags_saved
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6881 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6882 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6883 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6884 else
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6886 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6887 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 ac_wine_try_cflags_saved=$CFLAGS
6891 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6894 int main(int argc, char **argv) { return 0; }
6895 _ACEOF
6896 if ac_fn_c_try_link "$LINENO"; then :
6897 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6898 else
6899 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6901 rm -f core conftest.err conftest.$ac_objext \
6902 conftest$ac_exeext conftest.$ac_ext
6903 CFLAGS=$ac_wine_try_cflags_saved
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6906 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6907 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6908 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6913 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6914 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6915 $as_echo_n "(cached) " >&6
6916 else
6917 ac_wine_try_cflags_saved=$CFLAGS
6918 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6921 int main(int argc, char **argv) { return 0; }
6922 _ACEOF
6923 if ac_fn_c_try_link "$LINENO"; then :
6924 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6925 else
6926 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6928 rm -f core conftest.err conftest.$ac_objext \
6929 conftest$ac_exeext conftest.$ac_ext
6930 CFLAGS=$ac_wine_try_cflags_saved
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6933 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6934 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6935 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6938 { $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
6939 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6940 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943 ac_wine_try_cflags_saved=$CFLAGS
6944 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6947 int main(int argc, char **argv) { return 0; }
6948 _ACEOF
6949 if ac_fn_c_try_link "$LINENO"; then :
6950 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6951 else
6952 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6954 rm -f core conftest.err conftest.$ac_objext \
6955 conftest$ac_exeext conftest.$ac_ext
6956 CFLAGS=$ac_wine_try_cflags_saved
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6959 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6960 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6961 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6964 echo '{ global: *; };' >conftest.map
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6966 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6967 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970 ac_wine_try_cflags_saved=$CFLAGS
6971 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974 int main(int argc, char **argv) { return 0; }
6975 _ACEOF
6976 if ac_fn_c_try_link "$LINENO"; then :
6977 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6978 else
6979 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
6981 rm -f core conftest.err conftest.$ac_objext \
6982 conftest$ac_exeext conftest.$ac_ext
6983 CFLAGS=$ac_wine_try_cflags_saved
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
6986 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
6987 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
6988 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6990 rm -f conftest.map
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6993 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6994 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 ac_wine_try_cflags_saved=$CFLAGS
6998 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7001 int main(int argc, char **argv) { return 0; }
7002 _ACEOF
7003 if ac_fn_c_try_link "$LINENO"; then :
7004 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7005 else
7006 ac_cv_cflags__fPIC__Wl___export_dynamic=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_cflags__fPIC__Wl___export_dynamic" >&5
7013 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7014 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7015 LDEXECFLAGS="-Wl,--export-dynamic"
7019 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7021 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7022 if eval \${$as_ac_var+:} false; then :
7023 $as_echo_n "(cached) " >&6
7024 else
7025 ac_wine_try_cflags_saved=$CFLAGS
7026 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7029 int main(int argc, char **argv) { return 0; }
7030 _ACEOF
7031 if ac_fn_c_try_link "$LINENO"; then :
7032 eval "$as_ac_var=yes"
7033 else
7034 eval "$as_ac_var=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 eval ac_res=\$$as_ac_var
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7042 $as_echo "$ac_res" >&6; }
7043 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7044 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7045 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7046 else
7047 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7049 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7050 if eval \${$as_ac_var+:} false; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 ac_wine_try_cflags_saved=$CFLAGS
7054 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h. */
7057 int main(int argc, char **argv) { return 0; }
7058 _ACEOF
7059 if ac_fn_c_try_link "$LINENO"; then :
7060 eval "$as_ac_var=yes"
7061 else
7062 eval "$as_ac_var=no"
7064 rm -f core conftest.err conftest.$ac_objext \
7065 conftest$ac_exeext conftest.$ac_ext
7066 CFLAGS=$ac_wine_try_cflags_saved
7068 eval ac_res=\$$as_ac_var
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7070 $as_echo "$ac_res" >&6; }
7071 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7072 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7073 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7078 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7079 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7080 $as_echo_n "(cached) " >&6
7081 else
7082 ac_wine_try_cflags_saved=$CFLAGS
7083 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h. */
7086 int main(int argc, char **argv) { return 0; }
7087 _ACEOF
7088 if ac_fn_c_try_link "$LINENO"; then :
7089 ac_cv_cflags__Wl___enable_new_dtags=yes
7090 else
7091 ac_cv_cflags__Wl___enable_new_dtags=no
7093 rm -f core conftest.err conftest.$ac_objext \
7094 conftest$ac_exeext conftest.$ac_ext
7095 CFLAGS=$ac_wine_try_cflags_saved
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7098 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7099 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7100 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7103 case $host_cpu in
7104 *i[3456789]86* | x86_64)
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7106 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7107 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 ac_wine_try_cflags_saved=$CFLAGS
7111 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7114 int main(int argc, char **argv) { return 0; }
7115 _ACEOF
7116 if ac_fn_c_try_link "$LINENO"; then :
7117 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7118 else
7119 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7121 rm -f core conftest.err conftest.$ac_objext \
7122 conftest$ac_exeext conftest.$ac_ext
7123 CFLAGS=$ac_wine_try_cflags_saved
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7126 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7127 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7128 case $host_os in
7129 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
7130 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
7131 esac
7134 # Extract the first word of "prelink", so it can be a program name with args.
7135 set dummy prelink; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if ${ac_cv_path_PRELINK+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 case $PRELINK in
7142 [\\/]* | ?:[\\/]*)
7143 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in /sbin /usr/sbin $PATH
7149 IFS=$as_save_IFS
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7153 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
7154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 break 2
7157 done
7158 done
7159 IFS=$as_save_IFS
7161 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7163 esac
7165 PRELINK=$ac_cv_path_PRELINK
7166 if test -n "$PRELINK"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7168 $as_echo "$PRELINK" >&6; }
7169 else
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7175 if test "x$PRELINK" = xfalse
7176 then
7177 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7180 esac
7182 else
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7184 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7185 if ${ac_cv_c_dll_unixware+:} false; then :
7186 $as_echo_n "(cached) " >&6
7187 else
7188 ac_wine_try_cflags_saved=$CFLAGS
7189 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 void myfunc() {}
7193 _ACEOF
7194 if ac_fn_c_try_link "$LINENO"; then :
7195 ac_cv_c_dll_unixware="yes"
7196 else
7197 ac_cv_c_dll_unixware="no"
7199 rm -f core conftest.err conftest.$ac_objext \
7200 conftest$ac_exeext conftest.$ac_ext
7201 CFLAGS=$ac_wine_try_cflags_saved
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7204 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7205 if test "$ac_cv_c_dll_unixware" = "yes"
7206 then
7207 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7208 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7210 else
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7212 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7213 if ${ac_cv_c_dll_hpux+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 ac_wine_try_cflags_saved=$CFLAGS
7217 CFLAGS="$CFLAGS -shared"
7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7220 void myfunc() {}
7221 _ACEOF
7222 if ac_fn_c_try_link "$LINENO"; then :
7223 ac_cv_c_dll_hpux="yes"
7224 else
7225 ac_cv_c_dll_hpux="no"
7227 rm -f core conftest.err conftest.$ac_objext \
7228 conftest$ac_exeext conftest.$ac_ext
7229 CFLAGS=$ac_wine_try_cflags_saved
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7232 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7233 if test "$ac_cv_c_dll_hpux" = "yes"
7234 then
7235 LIBEXT="sl"
7236 DLLEXT=".sl"
7237 LDDLLFLAGS="-shared -fPIC"
7238 LDSHARED="\$(CC) -shared"
7243 esac
7245 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7246 enable_winemac_drv=${enable_winemac_drv:-no}
7248 if test "$LIBEXT" = "a"; then
7249 as_fn_error $? "could not find a way to build shared libraries.
7250 It is currently not possible to build Wine without shared library
7251 (.so) support to allow transparent switch between .so and .dll files.
7252 If you are using Linux, you will need a newer binutils.
7253 " "$LINENO" 5
7256 CROSSTEST_DISABLE=\#
7258 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7259 then
7260 case "$host_cpu" in
7261 i[3456789]86*)
7262 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
7263 mingw32-gcc" ;;
7264 x86_64)
7265 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 " ;;
7267 ac_prefix_list="" ;;
7268 esac
7269 for ac_prog in $ac_prefix_list
7271 # Extract the first word of "$ac_prog", so it can be a program name with args.
7272 set dummy $ac_prog; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if ${ac_cv_prog_CROSSCC+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 if test -n "$CROSSCC"; then
7279 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_CROSSCC="$ac_prog"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7292 done
7293 done
7294 IFS=$as_save_IFS
7298 CROSSCC=$ac_cv_prog_CROSSCC
7299 if test -n "$CROSSCC"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7301 $as_echo "$CROSSCC" >&6; }
7302 else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7308 test -n "$CROSSCC" && break
7309 done
7310 test -n "$CROSSCC" || CROSSCC="false"
7312 if test "$CROSSCC" != "false"
7313 then
7314 ac_save_CC="$CC"
7315 CC="$CROSSCC"
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7317 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7322 main ()
7326 return 0;
7328 _ACEOF
7329 if ac_fn_c_try_compile "$LINENO"; then :
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7331 $as_echo "yes" >&6; }
7332 set x $CROSSCC
7333 shift
7334 target=""
7335 while test $# -ge 1
7337 case "$1" in
7338 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7339 esac
7340 shift
7341 done
7342 if test -n "$target"
7343 then
7344 CROSSTEST_DISABLE=""
7345 CROSSTARGET="$target"
7348 else
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 $as_echo "no" >&6; }
7352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7353 CC="$ac_save_CC"
7358 if test "$ac_cv_header_pthread_h" = "yes"
7359 then
7360 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
7361 if test "x$ac_cv_func_pthread_create" = xyes; then :
7363 else
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7365 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7366 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7367 $as_echo_n "(cached) " >&6
7368 else
7369 ac_check_lib_save_LIBS=$LIBS
7370 LIBS="-lpthread $LIBS"
7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h. */
7374 /* Override any GCC internal prototype to avoid an error.
7375 Use char because int might match the return type of a GCC
7376 builtin and then its argument prototype would still apply. */
7377 #ifdef __cplusplus
7378 extern "C"
7379 #endif
7380 char pthread_create ();
7382 main ()
7384 return pthread_create ();
7386 return 0;
7388 _ACEOF
7389 if ac_fn_c_try_link "$LINENO"; then :
7390 ac_cv_lib_pthread_pthread_create=yes
7391 else
7392 ac_cv_lib_pthread_pthread_create=no
7394 rm -f core conftest.err conftest.$ac_objext \
7395 conftest$ac_exeext conftest.$ac_ext
7396 LIBS=$ac_check_lib_save_LIBS
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7399 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7400 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7401 LIBPTHREAD="-lpthread"
7408 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
7409 case "x$with_pthread" in
7410 xno) ;;
7411 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7412 Wine cannot support threads without libpthread.
7413 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7414 esac
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7419 $as_echo_n "checking for X... " >&6; }
7422 # Check whether --with-x was given.
7423 if test "${with_x+set}" = set; then :
7424 withval=$with_x;
7427 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7428 if test "x$with_x" = xno; then
7429 # The user explicitly disabled X.
7430 have_x=disabled
7431 else
7432 case $x_includes,$x_libraries in #(
7433 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7434 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7435 $as_echo_n "(cached) " >&6
7436 else
7437 # One or both of the vars are not set, and there is no cached value.
7438 ac_x_includes=no ac_x_libraries=no
7439 rm -f -r conftest.dir
7440 if mkdir conftest.dir; then
7441 cd conftest.dir
7442 cat >Imakefile <<'_ACEOF'
7443 incroot:
7444 @echo incroot='${INCROOT}'
7445 usrlibdir:
7446 @echo usrlibdir='${USRLIBDIR}'
7447 libdir:
7448 @echo libdir='${LIBDIR}'
7449 _ACEOF
7450 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7451 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7452 for ac_var in incroot usrlibdir libdir; do
7453 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7454 done
7455 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7456 for ac_extension in a so sl dylib la dll; do
7457 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7458 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7459 ac_im_usrlibdir=$ac_im_libdir; break
7461 done
7462 # Screen out bogus values from the imake configuration. They are
7463 # bogus both because they are the default anyway, and because
7464 # using them would break gcc on systems where it needs fixed includes.
7465 case $ac_im_incroot in
7466 /usr/include) ac_x_includes= ;;
7467 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7468 esac
7469 case $ac_im_usrlibdir in
7470 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7471 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7472 esac
7474 cd ..
7475 rm -f -r conftest.dir
7478 # Standard set of common directories for X headers.
7479 # Check X11 before X11Rn because it is often a symlink to the current release.
7480 ac_x_header_dirs='
7481 /usr/X11/include
7482 /usr/X11R7/include
7483 /usr/X11R6/include
7484 /usr/X11R5/include
7485 /usr/X11R4/include
7487 /usr/include/X11
7488 /usr/include/X11R7
7489 /usr/include/X11R6
7490 /usr/include/X11R5
7491 /usr/include/X11R4
7493 /usr/local/X11/include
7494 /usr/local/X11R7/include
7495 /usr/local/X11R6/include
7496 /usr/local/X11R5/include
7497 /usr/local/X11R4/include
7499 /usr/local/include/X11
7500 /usr/local/include/X11R7
7501 /usr/local/include/X11R6
7502 /usr/local/include/X11R5
7503 /usr/local/include/X11R4
7505 /usr/X386/include
7506 /usr/x386/include
7507 /usr/XFree86/include/X11
7509 /usr/include
7510 /usr/local/include
7511 /usr/unsupported/include
7512 /usr/athena/include
7513 /usr/local/x11r5/include
7514 /usr/lpp/Xamples/include
7516 /usr/openwin/include
7517 /usr/openwin/share/include'
7519 if test "$ac_x_includes" = no; then
7520 # Guess where to find include files, by looking for Xlib.h.
7521 # First, try using that file with no special directory specified.
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7524 #include <X11/Xlib.h>
7525 _ACEOF
7526 if ac_fn_c_try_cpp "$LINENO"; then :
7527 # We can compile using X headers with no special include directory.
7528 ac_x_includes=
7529 else
7530 for ac_dir in $ac_x_header_dirs; do
7531 if test -r "$ac_dir/X11/Xlib.h"; then
7532 ac_x_includes=$ac_dir
7533 break
7535 done
7537 rm -f conftest.err conftest.i conftest.$ac_ext
7538 fi # $ac_x_includes = no
7540 if test "$ac_x_libraries" = no; then
7541 # Check for the libraries.
7542 # See if we find them without any special options.
7543 # Don't add to $LIBS permanently.
7544 ac_save_LIBS=$LIBS
7545 LIBS="-lX11 $LIBS"
7546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547 /* end confdefs.h. */
7548 #include <X11/Xlib.h>
7550 main ()
7552 XrmInitialize ()
7554 return 0;
7556 _ACEOF
7557 if ac_fn_c_try_link "$LINENO"; then :
7558 LIBS=$ac_save_LIBS
7559 # We can link X programs with no special library path.
7560 ac_x_libraries=
7561 else
7562 LIBS=$ac_save_LIBS
7563 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7565 # Don't even attempt the hair of trying to link an X program!
7566 for ac_extension in a so sl dylib la dll; do
7567 if test -r "$ac_dir/libX11.$ac_extension"; then
7568 ac_x_libraries=$ac_dir
7569 break 2
7571 done
7572 done
7574 rm -f core conftest.err conftest.$ac_objext \
7575 conftest$ac_exeext conftest.$ac_ext
7576 fi # $ac_x_libraries = no
7578 case $ac_x_includes,$ac_x_libraries in #(
7579 no,* | *,no | *\'*)
7580 # Didn't find X, or a directory has "'" in its name.
7581 ac_cv_have_x="have_x=no";; #(
7583 # Record where we found X for the cache.
7584 ac_cv_have_x="have_x=yes\
7585 ac_x_includes='$ac_x_includes'\
7586 ac_x_libraries='$ac_x_libraries'"
7587 esac
7589 ;; #(
7590 *) have_x=yes;;
7591 esac
7592 eval "$ac_cv_have_x"
7593 fi # $with_x != no
7595 if test "$have_x" != yes; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7597 $as_echo "$have_x" >&6; }
7598 no_x=yes
7599 else
7600 # If each of the values was on the command line, it overrides each guess.
7601 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7602 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7603 # Update the cache value to reflect the command line values.
7604 ac_cv_have_x="have_x=yes\
7605 ac_x_includes='$x_includes'\
7606 ac_x_libraries='$x_libraries'"
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7608 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7611 if test "$no_x" = yes; then
7612 # Not all programs may use this symbol, but it does not hurt to define it.
7614 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7616 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7617 else
7618 if test -n "$x_includes"; then
7619 X_CFLAGS="$X_CFLAGS -I$x_includes"
7622 # It would also be nice to do this for all -L options, not just this one.
7623 if test -n "$x_libraries"; then
7624 X_LIBS="$X_LIBS -L$x_libraries"
7625 # For Solaris; some versions of Sun CC require a space after -R and
7626 # others require no space. Words are not sufficient . . . .
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7628 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7629 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7630 ac_xsave_c_werror_flag=$ac_c_werror_flag
7631 ac_c_werror_flag=yes
7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633 /* end confdefs.h. */
7636 main ()
7640 return 0;
7642 _ACEOF
7643 if ac_fn_c_try_link "$LINENO"; then :
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7646 X_LIBS="$X_LIBS -R$x_libraries"
7647 else
7648 LIBS="$ac_xsave_LIBS -R $x_libraries"
7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h. */
7653 main ()
7657 return 0;
7659 _ACEOF
7660 if ac_fn_c_try_link "$LINENO"; then :
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7662 $as_echo "yes" >&6; }
7663 X_LIBS="$X_LIBS -R $x_libraries"
7664 else
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7666 $as_echo "neither works" >&6; }
7668 rm -f core conftest.err conftest.$ac_objext \
7669 conftest$ac_exeext conftest.$ac_ext
7671 rm -f core conftest.err conftest.$ac_objext \
7672 conftest$ac_exeext conftest.$ac_ext
7673 ac_c_werror_flag=$ac_xsave_c_werror_flag
7674 LIBS=$ac_xsave_LIBS
7677 # Check for system-dependent libraries X programs must link with.
7678 # Do this before checking for the system-independent R6 libraries
7679 # (-lICE), since we may need -lsocket or whatever for X linking.
7681 if test "$ISC" = yes; then
7682 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7683 else
7684 # Martyn Johnson says this is needed for Ultrix, if the X
7685 # libraries were built with DECnet support. And Karl Berry says
7686 # the Alpha needs dnet_stub (dnet does not exist).
7687 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7691 /* Override any GCC internal prototype to avoid an error.
7692 Use char because int might match the return type of a GCC
7693 builtin and then its argument prototype would still apply. */
7694 #ifdef __cplusplus
7695 extern "C"
7696 #endif
7697 char XOpenDisplay ();
7699 main ()
7701 return XOpenDisplay ();
7703 return 0;
7705 _ACEOF
7706 if ac_fn_c_try_link "$LINENO"; then :
7708 else
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7710 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7711 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 ac_check_lib_save_LIBS=$LIBS
7715 LIBS="-ldnet $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 dnet_ntoa ();
7727 main ()
7729 return dnet_ntoa ();
7731 return 0;
7733 _ACEOF
7734 if ac_fn_c_try_link "$LINENO"; then :
7735 ac_cv_lib_dnet_dnet_ntoa=yes
7736 else
7737 ac_cv_lib_dnet_dnet_ntoa=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_dnet_dnet_ntoa" >&5
7744 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7745 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7746 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7749 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7751 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7752 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7753 $as_echo_n "(cached) " >&6
7754 else
7755 ac_check_lib_save_LIBS=$LIBS
7756 LIBS="-ldnet_stub $LIBS"
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7760 /* Override any GCC internal prototype to avoid an error.
7761 Use char because int might match the return type of a GCC
7762 builtin and then its argument prototype would still apply. */
7763 #ifdef __cplusplus
7764 extern "C"
7765 #endif
7766 char dnet_ntoa ();
7768 main ()
7770 return dnet_ntoa ();
7772 return 0;
7774 _ACEOF
7775 if ac_fn_c_try_link "$LINENO"; then :
7776 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7777 else
7778 ac_cv_lib_dnet_stub_dnet_ntoa=no
7780 rm -f core conftest.err conftest.$ac_objext \
7781 conftest$ac_exeext conftest.$ac_ext
7782 LIBS=$ac_check_lib_save_LIBS
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7785 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7786 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7787 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7792 rm -f core conftest.err conftest.$ac_objext \
7793 conftest$ac_exeext conftest.$ac_ext
7794 LIBS="$ac_xsave_LIBS"
7796 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7797 # to get the SysV transport functions.
7798 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7799 # needs -lnsl.
7800 # The nsl library prevents programs from opening the X display
7801 # on Irix 5.2, according to T.E. Dickey.
7802 # The functions gethostbyname, getservbyname, and inet_addr are
7803 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7804 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7805 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7809 if test $ac_cv_func_gethostbyname = no; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7811 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7812 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 ac_check_lib_save_LIBS=$LIBS
7816 LIBS="-lnsl $LIBS"
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7820 /* Override any GCC internal prototype to avoid an error.
7821 Use char because int might match the return type of a GCC
7822 builtin and then its argument prototype would still apply. */
7823 #ifdef __cplusplus
7824 extern "C"
7825 #endif
7826 char gethostbyname ();
7828 main ()
7830 return gethostbyname ();
7832 return 0;
7834 _ACEOF
7835 if ac_fn_c_try_link "$LINENO"; then :
7836 ac_cv_lib_nsl_gethostbyname=yes
7837 else
7838 ac_cv_lib_nsl_gethostbyname=no
7840 rm -f core conftest.err conftest.$ac_objext \
7841 conftest$ac_exeext conftest.$ac_ext
7842 LIBS=$ac_check_lib_save_LIBS
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7845 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7846 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7847 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7850 if test $ac_cv_lib_nsl_gethostbyname = no; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7852 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7853 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7854 $as_echo_n "(cached) " >&6
7855 else
7856 ac_check_lib_save_LIBS=$LIBS
7857 LIBS="-lbsd $LIBS"
7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7861 /* Override any GCC internal prototype to avoid an error.
7862 Use char because int might match the return type of a GCC
7863 builtin and then its argument prototype would still apply. */
7864 #ifdef __cplusplus
7865 extern "C"
7866 #endif
7867 char gethostbyname ();
7869 main ()
7871 return gethostbyname ();
7873 return 0;
7875 _ACEOF
7876 if ac_fn_c_try_link "$LINENO"; then :
7877 ac_cv_lib_bsd_gethostbyname=yes
7878 else
7879 ac_cv_lib_bsd_gethostbyname=no
7881 rm -f core conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext conftest.$ac_ext
7883 LIBS=$ac_check_lib_save_LIBS
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7886 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7887 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7888 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7894 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7895 # socket/setsockopt and other routines are undefined under SCO ODT
7896 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7897 # on later versions), says Simon Leinen: it contains gethostby*
7898 # variants that don't use the name server (or something). -lsocket
7899 # must be given before -lnsl if both are needed. We assume that
7900 # if connect needs -lnsl, so does gethostbyname.
7901 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7902 if test "x$ac_cv_func_connect" = xyes; then :
7906 if test $ac_cv_func_connect = no; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7908 $as_echo_n "checking for connect in -lsocket... " >&6; }
7909 if ${ac_cv_lib_socket_connect+:} false; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 ac_check_lib_save_LIBS=$LIBS
7913 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915 /* end confdefs.h. */
7917 /* Override any GCC internal prototype to avoid an error.
7918 Use char because int might match the return type of a GCC
7919 builtin and then its argument prototype would still apply. */
7920 #ifdef __cplusplus
7921 extern "C"
7922 #endif
7923 char connect ();
7925 main ()
7927 return connect ();
7929 return 0;
7931 _ACEOF
7932 if ac_fn_c_try_link "$LINENO"; then :
7933 ac_cv_lib_socket_connect=yes
7934 else
7935 ac_cv_lib_socket_connect=no
7937 rm -f core conftest.err conftest.$ac_objext \
7938 conftest$ac_exeext conftest.$ac_ext
7939 LIBS=$ac_check_lib_save_LIBS
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7942 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7943 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7944 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7949 # Guillermo Gomez says -lposix is necessary on A/UX.
7950 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7951 if test "x$ac_cv_func_remove" = xyes; then :
7955 if test $ac_cv_func_remove = no; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7957 $as_echo_n "checking for remove in -lposix... " >&6; }
7958 if ${ac_cv_lib_posix_remove+:} false; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 ac_check_lib_save_LIBS=$LIBS
7962 LIBS="-lposix $LIBS"
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7966 /* Override any GCC internal prototype to avoid an error.
7967 Use char because int might match the return type of a GCC
7968 builtin and then its argument prototype would still apply. */
7969 #ifdef __cplusplus
7970 extern "C"
7971 #endif
7972 char remove ();
7974 main ()
7976 return remove ();
7978 return 0;
7980 _ACEOF
7981 if ac_fn_c_try_link "$LINENO"; then :
7982 ac_cv_lib_posix_remove=yes
7983 else
7984 ac_cv_lib_posix_remove=no
7986 rm -f core conftest.err conftest.$ac_objext \
7987 conftest$ac_exeext conftest.$ac_ext
7988 LIBS=$ac_check_lib_save_LIBS
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7991 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7992 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7993 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7998 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7999 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8000 if test "x$ac_cv_func_shmat" = xyes; then :
8004 if test $ac_cv_func_shmat = no; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8006 $as_echo_n "checking for shmat in -lipc... " >&6; }
8007 if ${ac_cv_lib_ipc_shmat+:} false; then :
8008 $as_echo_n "(cached) " >&6
8009 else
8010 ac_check_lib_save_LIBS=$LIBS
8011 LIBS="-lipc $LIBS"
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h. */
8015 /* Override any GCC internal prototype to avoid an error.
8016 Use char because int might match the return type of a GCC
8017 builtin and then its argument prototype would still apply. */
8018 #ifdef __cplusplus
8019 extern "C"
8020 #endif
8021 char shmat ();
8023 main ()
8025 return shmat ();
8027 return 0;
8029 _ACEOF
8030 if ac_fn_c_try_link "$LINENO"; then :
8031 ac_cv_lib_ipc_shmat=yes
8032 else
8033 ac_cv_lib_ipc_shmat=no
8035 rm -f core conftest.err conftest.$ac_objext \
8036 conftest$ac_exeext conftest.$ac_ext
8037 LIBS=$ac_check_lib_save_LIBS
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8040 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8041 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8042 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8048 # Check for libraries that X11R6 Xt/Xaw programs need.
8049 ac_save_LDFLAGS=$LDFLAGS
8050 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8051 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8052 # check for ICE first), but we must link in the order -lSM -lICE or
8053 # we get undefined symbols. So assume we have SM if we have ICE.
8054 # These have to be linked with before -lX11, unlike the other
8055 # libraries we check for below, so use a different variable.
8056 # John Interrante, Karl Berry
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8058 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8059 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8060 $as_echo_n "(cached) " >&6
8061 else
8062 ac_check_lib_save_LIBS=$LIBS
8063 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8067 /* Override any GCC internal prototype to avoid an error.
8068 Use char because int might match the return type of a GCC
8069 builtin and then its argument prototype would still apply. */
8070 #ifdef __cplusplus
8071 extern "C"
8072 #endif
8073 char IceConnectionNumber ();
8075 main ()
8077 return IceConnectionNumber ();
8079 return 0;
8081 _ACEOF
8082 if ac_fn_c_try_link "$LINENO"; then :
8083 ac_cv_lib_ICE_IceConnectionNumber=yes
8084 else
8085 ac_cv_lib_ICE_IceConnectionNumber=no
8087 rm -f core conftest.err conftest.$ac_objext \
8088 conftest$ac_exeext conftest.$ac_ext
8089 LIBS=$ac_check_lib_save_LIBS
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8092 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8093 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8094 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8097 LDFLAGS=$ac_save_LDFLAGS
8102 if test "$have_x" = "yes"
8103 then
8104 XLIB="-lX11"
8105 ac_save_CPPFLAGS="$CPPFLAGS"
8106 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
8109 $as_echo_n "checking for -lX11... " >&6; }
8110 if ${ac_cv_lib_soname_X11+:} false; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 ac_check_soname_save_LIBS=$LIBS
8114 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116 /* end confdefs.h. */
8118 /* Override any GCC internal prototype to avoid an error.
8119 Use char because int might match the return type of a GCC
8120 builtin and then its argument prototype would still apply. */
8121 #ifdef __cplusplus
8122 extern "C"
8123 #endif
8124 char XCreateWindow ();
8126 main ()
8128 return XCreateWindow ();
8130 return 0;
8132 _ACEOF
8133 if ac_fn_c_try_link "$LINENO"; then :
8134 case "$LIBEXT" in
8135 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8136 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'` ;;
8137 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8138 if test "x$ac_cv_lib_soname_X11" = x; then :
8139 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8140 fi ;;
8141 esac
8143 rm -f core conftest.err conftest.$ac_objext \
8144 conftest$ac_exeext conftest.$ac_ext
8145 LIBS=$ac_check_soname_save_LIBS
8147 if test "x$ac_cv_lib_soname_X11" = "x"; then :
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8149 $as_echo "not found" >&6; }
8151 else
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
8153 $as_echo "$ac_cv_lib_soname_X11" >&6; }
8155 cat >>confdefs.h <<_ACEOF
8156 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
8157 _ACEOF
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
8162 $as_echo_n "checking for -lXext... " >&6; }
8163 if ${ac_cv_lib_soname_Xext+:} false; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 ac_check_soname_save_LIBS=$LIBS
8167 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8171 /* Override any GCC internal prototype to avoid an error.
8172 Use char because int might match the return type of a GCC
8173 builtin and then its argument prototype would still apply. */
8174 #ifdef __cplusplus
8175 extern "C"
8176 #endif
8177 char XextCreateExtension ();
8179 main ()
8181 return XextCreateExtension ();
8183 return 0;
8185 _ACEOF
8186 if ac_fn_c_try_link "$LINENO"; then :
8187 case "$LIBEXT" in
8188 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8189 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'` ;;
8190 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8191 if test "x$ac_cv_lib_soname_Xext" = x; then :
8192 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8193 fi ;;
8194 esac
8196 rm -f core conftest.err conftest.$ac_objext \
8197 conftest$ac_exeext conftest.$ac_ext
8198 LIBS=$ac_check_soname_save_LIBS
8200 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8202 $as_echo "not found" >&6; }
8204 else
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8206 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8208 cat >>confdefs.h <<_ACEOF
8209 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8210 _ACEOF
8212 XLIB="-lXext $XLIB"
8215 for ac_header in X11/Xlib.h \
8216 X11/XKBlib.h \
8217 X11/Xutil.h \
8218 X11/Xcursor/Xcursor.h \
8219 X11/extensions/shape.h \
8220 X11/extensions/XInput.h \
8221 X11/extensions/XInput2.h \
8222 X11/extensions/XShm.h \
8223 X11/extensions/Xcomposite.h \
8224 X11/extensions/Xinerama.h \
8225 X11/extensions/Xrandr.h \
8226 X11/extensions/Xrender.h \
8227 X11/extensions/xf86vmode.h \
8228 X11/extensions/xf86vmproto.h
8229 do :
8230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8231 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8232 # include <X11/Xlib.h>
8233 #endif
8234 #ifdef HAVE_X11_XUTIL_H
8235 # include <X11/Xutil.h>
8236 #endif
8238 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8239 cat >>confdefs.h <<_ACEOF
8240 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8241 _ACEOF
8245 done
8248 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8249 then
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8251 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8252 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8253 $as_echo_n "(cached) " >&6
8254 else
8255 ac_check_lib_save_LIBS=$LIBS
8256 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8260 /* Override any GCC internal prototype to avoid an error.
8261 Use char because int might match the return type of a GCC
8262 builtin and then its argument prototype would still apply. */
8263 #ifdef __cplusplus
8264 extern "C"
8265 #endif
8266 char XkbQueryExtension ();
8268 main ()
8270 return XkbQueryExtension ();
8272 return 0;
8274 _ACEOF
8275 if ac_fn_c_try_link "$LINENO"; then :
8276 ac_cv_lib_X11_XkbQueryExtension=yes
8277 else
8278 ac_cv_lib_X11_XkbQueryExtension=no
8280 rm -f core conftest.err conftest.$ac_objext \
8281 conftest$ac_exeext conftest.$ac_ext
8282 LIBS=$ac_check_lib_save_LIBS
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8285 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8286 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8288 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8294 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8295 then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8297 $as_echo_n "checking for -lXcursor... " >&6; }
8298 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 ac_check_soname_save_LIBS=$LIBS
8302 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8306 /* Override any GCC internal prototype to avoid an error.
8307 Use char because int might match the return type of a GCC
8308 builtin and then its argument prototype would still apply. */
8309 #ifdef __cplusplus
8310 extern "C"
8311 #endif
8312 char XcursorImageLoadCursor ();
8314 main ()
8316 return XcursorImageLoadCursor ();
8318 return 0;
8320 _ACEOF
8321 if ac_fn_c_try_link "$LINENO"; then :
8322 case "$LIBEXT" in
8323 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8324 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'` ;;
8325 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8326 if test "x$ac_cv_lib_soname_Xcursor" = x; then :
8327 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8328 fi ;;
8329 esac
8331 rm -f core conftest.err conftest.$ac_objext \
8332 conftest$ac_exeext conftest.$ac_ext
8333 LIBS=$ac_check_soname_save_LIBS
8335 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8337 $as_echo "not found" >&6; }
8339 else
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8341 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8343 cat >>confdefs.h <<_ACEOF
8344 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8345 _ACEOF
8350 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8351 case "x$with_xcursor" in
8352 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8353 xno) ;;
8354 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8355 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8356 esac
8359 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8360 then
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8362 $as_echo_n "checking for -lXi... " >&6; }
8363 if ${ac_cv_lib_soname_Xi+:} false; then :
8364 $as_echo_n "(cached) " >&6
8365 else
8366 ac_check_soname_save_LIBS=$LIBS
8367 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h. */
8371 /* Override any GCC internal prototype to avoid an error.
8372 Use char because int might match the return type of a GCC
8373 builtin and then its argument prototype would still apply. */
8374 #ifdef __cplusplus
8375 extern "C"
8376 #endif
8377 char XOpenDevice ();
8379 main ()
8381 return XOpenDevice ();
8383 return 0;
8385 _ACEOF
8386 if ac_fn_c_try_link "$LINENO"; then :
8387 case "$LIBEXT" in
8388 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8389 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'` ;;
8390 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8391 if test "x$ac_cv_lib_soname_Xi" = x; then :
8392 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8393 fi ;;
8394 esac
8396 rm -f core conftest.err conftest.$ac_objext \
8397 conftest$ac_exeext conftest.$ac_ext
8398 LIBS=$ac_check_soname_save_LIBS
8400 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8402 $as_echo "not found" >&6; }
8404 else
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8406 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8408 cat >>confdefs.h <<_ACEOF
8409 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8410 _ACEOF
8415 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8416 case "x$with_xinput" in
8417 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8418 xno) ;;
8419 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8420 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8421 esac
8424 if test "x$ac_cv_lib_soname_Xi" != x
8425 then
8426 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8427 case "x$with_xinput2" in
8428 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8429 xno) ;;
8430 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8431 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8432 esac
8436 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8437 then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8439 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8440 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8441 $as_echo_n "(cached) " >&6
8442 else
8443 ac_check_lib_save_LIBS=$LIBS
8444 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8448 /* Override any GCC internal prototype to avoid an error.
8449 Use char because int might match the return type of a GCC
8450 builtin and then its argument prototype would still apply. */
8451 #ifdef __cplusplus
8452 extern "C"
8453 #endif
8454 char XShmQueryExtension ();
8456 main ()
8458 return XShmQueryExtension ();
8460 return 0;
8462 _ACEOF
8463 if ac_fn_c_try_link "$LINENO"; then :
8464 ac_cv_lib_Xext_XShmQueryExtension=yes
8465 else
8466 ac_cv_lib_Xext_XShmQueryExtension=no
8468 rm -f core conftest.err conftest.$ac_objext \
8469 conftest$ac_exeext conftest.$ac_ext
8470 LIBS=$ac_check_lib_save_LIBS
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8473 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8474 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8476 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8481 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8482 case "x$with_xshm" in
8483 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8484 xno) ;;
8485 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8486 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8487 esac
8490 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8491 then
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8493 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8494 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8495 $as_echo_n "(cached) " >&6
8496 else
8497 ac_check_lib_save_LIBS=$LIBS
8498 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8502 /* Override any GCC internal prototype to avoid an error.
8503 Use char because int might match the return type of a GCC
8504 builtin and then its argument prototype would still apply. */
8505 #ifdef __cplusplus
8506 extern "C"
8507 #endif
8508 char XShapeQueryExtension ();
8510 main ()
8512 return XShapeQueryExtension ();
8514 return 0;
8516 _ACEOF
8517 if ac_fn_c_try_link "$LINENO"; then :
8518 ac_cv_lib_Xext_XShapeQueryExtension=yes
8519 else
8520 ac_cv_lib_Xext_XShapeQueryExtension=no
8522 rm -f core conftest.err conftest.$ac_objext \
8523 conftest$ac_exeext conftest.$ac_ext
8524 LIBS=$ac_check_lib_save_LIBS
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8527 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8528 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8530 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8535 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8536 case "x$with_xshape" in
8537 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8538 xno) ;;
8539 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8540 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8541 esac
8544 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8545 then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8547 $as_echo_n "checking for -lXxf86vm... " >&6; }
8548 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 ac_check_soname_save_LIBS=$LIBS
8552 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h. */
8556 /* Override any GCC internal prototype to avoid an error.
8557 Use char because int might match the return type of a GCC
8558 builtin and then its argument prototype would still apply. */
8559 #ifdef __cplusplus
8560 extern "C"
8561 #endif
8562 char XF86VidModeQueryExtension ();
8564 main ()
8566 return XF86VidModeQueryExtension ();
8568 return 0;
8570 _ACEOF
8571 if ac_fn_c_try_link "$LINENO"; then :
8572 case "$LIBEXT" in
8573 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8574 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'` ;;
8575 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8576 if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
8577 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8578 fi ;;
8579 esac
8581 rm -f core conftest.err conftest.$ac_objext \
8582 conftest$ac_exeext conftest.$ac_ext
8583 LIBS=$ac_check_soname_save_LIBS
8585 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8587 $as_echo "not found" >&6; }
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8591 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8593 cat >>confdefs.h <<_ACEOF
8594 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8595 _ACEOF
8600 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8601 case "x$with_xxf86vm" in
8602 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8603 xno) ;;
8604 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8605 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8606 esac
8609 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"
8610 then
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8612 $as_echo_n "checking for -lXrender... " >&6; }
8613 if ${ac_cv_lib_soname_Xrender+:} false; then :
8614 $as_echo_n "(cached) " >&6
8615 else
8616 ac_check_soname_save_LIBS=$LIBS
8617 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8621 /* Override any GCC internal prototype to avoid an error.
8622 Use char because int might match the return type of a GCC
8623 builtin and then its argument prototype would still apply. */
8624 #ifdef __cplusplus
8625 extern "C"
8626 #endif
8627 char XRenderQueryExtension ();
8629 main ()
8631 return XRenderQueryExtension ();
8633 return 0;
8635 _ACEOF
8636 if ac_fn_c_try_link "$LINENO"; then :
8637 case "$LIBEXT" in
8638 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8639 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'` ;;
8640 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8641 if test "x$ac_cv_lib_soname_Xrender" = x; then :
8642 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8643 fi ;;
8644 esac
8646 rm -f core conftest.err conftest.$ac_objext \
8647 conftest$ac_exeext conftest.$ac_ext
8648 LIBS=$ac_check_soname_save_LIBS
8650 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8652 $as_echo "not found" >&6; }
8654 else
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8656 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8658 cat >>confdefs.h <<_ACEOF
8659 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8660 _ACEOF
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8663 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8664 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8665 $as_echo_n "(cached) " >&6
8666 else
8667 ac_check_lib_save_LIBS=$LIBS
8668 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670 /* end confdefs.h. */
8672 /* Override any GCC internal prototype to avoid an error.
8673 Use char because int might match the return type of a GCC
8674 builtin and then its argument prototype would still apply. */
8675 #ifdef __cplusplus
8676 extern "C"
8677 #endif
8678 char XRenderSetPictureTransform ();
8680 main ()
8682 return XRenderSetPictureTransform ();
8684 return 0;
8686 _ACEOF
8687 if ac_fn_c_try_link "$LINENO"; then :
8688 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8689 else
8690 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8692 rm -f core conftest.err conftest.$ac_objext \
8693 conftest$ac_exeext conftest.$ac_ext
8694 LIBS=$ac_check_lib_save_LIBS
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8697 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8698 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8700 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8705 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8706 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8707 $as_echo_n "(cached) " >&6
8708 else
8709 ac_check_lib_save_LIBS=$LIBS
8710 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8714 /* Override any GCC internal prototype to avoid an error.
8715 Use char because int might match the return type of a GCC
8716 builtin and then its argument prototype would still apply. */
8717 #ifdef __cplusplus
8718 extern "C"
8719 #endif
8720 char XRenderCreateLinearGradient ();
8722 main ()
8724 return XRenderCreateLinearGradient ();
8726 return 0;
8728 _ACEOF
8729 if ac_fn_c_try_link "$LINENO"; then :
8730 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8731 else
8732 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8734 rm -f core conftest.err conftest.$ac_objext \
8735 conftest$ac_exeext conftest.$ac_ext
8736 LIBS=$ac_check_lib_save_LIBS
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8739 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8740 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8742 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8749 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8750 case "x$with_xrender" in
8751 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8752 xno) ;;
8753 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8754 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8755 esac
8758 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8759 then
8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h. */
8762 #include <X11/Xlib.h>
8763 #include <X11/extensions/Xrandr.h>
8765 main ()
8767 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8769 return 0;
8771 _ACEOF
8772 if ac_fn_c_try_compile "$LINENO"; then :
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8774 $as_echo_n "checking for -lXrandr... " >&6; }
8775 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8776 $as_echo_n "(cached) " >&6
8777 else
8778 ac_check_soname_save_LIBS=$LIBS
8779 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h. */
8783 /* Override any GCC internal prototype to avoid an error.
8784 Use char because int might match the return type of a GCC
8785 builtin and then its argument prototype would still apply. */
8786 #ifdef __cplusplus
8787 extern "C"
8788 #endif
8789 char XRRQueryExtension ();
8791 main ()
8793 return XRRQueryExtension ();
8795 return 0;
8797 _ACEOF
8798 if ac_fn_c_try_link "$LINENO"; then :
8799 case "$LIBEXT" in
8800 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8801 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'` ;;
8802 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8803 if test "x$ac_cv_lib_soname_Xrandr" = x; then :
8804 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8805 fi ;;
8806 esac
8808 rm -f core conftest.err conftest.$ac_objext \
8809 conftest$ac_exeext conftest.$ac_ext
8810 LIBS=$ac_check_soname_save_LIBS
8812 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8814 $as_echo "not found" >&6; }
8816 else
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8818 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8820 cat >>confdefs.h <<_ACEOF
8821 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8822 _ACEOF
8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825 /* end confdefs.h. */
8826 #include <X11/extensions/Xrandr.h>
8828 main ()
8830 static typeof(XRRGetScreenResources) *f; if (f) return 0;
8832 return 0;
8834 _ACEOF
8835 if ac_fn_c_try_compile "$LINENO"; then :
8837 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
8840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8846 case "x$with_xrandr" in
8847 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8848 xno) ;;
8849 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8850 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8851 esac
8854 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8855 then
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 #include <X11/Xlib.h>
8859 #include <X11/extensions/Xinerama.h>
8861 main ()
8863 static typeof(XineramaQueryScreens) * func; if (func) return 0;
8865 return 0;
8867 _ACEOF
8868 if ac_fn_c_try_compile "$LINENO"; then :
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8870 $as_echo_n "checking for -lXinerama... " >&6; }
8871 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8872 $as_echo_n "(cached) " >&6
8873 else
8874 ac_check_soname_save_LIBS=$LIBS
8875 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8879 /* Override any GCC internal prototype to avoid an error.
8880 Use char because int might match the return type of a GCC
8881 builtin and then its argument prototype would still apply. */
8882 #ifdef __cplusplus
8883 extern "C"
8884 #endif
8885 char XineramaQueryScreens ();
8887 main ()
8889 return XineramaQueryScreens ();
8891 return 0;
8893 _ACEOF
8894 if ac_fn_c_try_link "$LINENO"; then :
8895 case "$LIBEXT" in
8896 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8897 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'` ;;
8898 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8899 if test "x$ac_cv_lib_soname_Xinerama" = x; then :
8900 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8901 fi ;;
8902 esac
8904 rm -f core conftest.err conftest.$ac_objext \
8905 conftest$ac_exeext conftest.$ac_ext
8906 LIBS=$ac_check_soname_save_LIBS
8908 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8910 $as_echo "not found" >&6; }
8912 else
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8914 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8916 cat >>confdefs.h <<_ACEOF
8917 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8918 _ACEOF
8923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8925 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8926 case "x$with_xinerama" in
8927 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8928 xno) ;;
8929 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8930 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8931 esac
8934 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8935 then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8937 $as_echo_n "checking for -lXcomposite... " >&6; }
8938 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8939 $as_echo_n "(cached) " >&6
8940 else
8941 ac_check_soname_save_LIBS=$LIBS
8942 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8946 /* Override any GCC internal prototype to avoid an error.
8947 Use char because int might match the return type of a GCC
8948 builtin and then its argument prototype would still apply. */
8949 #ifdef __cplusplus
8950 extern "C"
8951 #endif
8952 char XCompositeRedirectWindow ();
8954 main ()
8956 return XCompositeRedirectWindow ();
8958 return 0;
8960 _ACEOF
8961 if ac_fn_c_try_link "$LINENO"; then :
8962 case "$LIBEXT" in
8963 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8964 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'` ;;
8965 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8966 if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
8967 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8968 fi ;;
8969 esac
8971 rm -f core conftest.err conftest.$ac_objext \
8972 conftest$ac_exeext conftest.$ac_ext
8973 LIBS=$ac_check_soname_save_LIBS
8975 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8977 $as_echo "not found" >&6; }
8979 else
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8981 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8983 cat >>confdefs.h <<_ACEOF
8984 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8985 _ACEOF
8990 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8991 case "x$with_xcomposite" in
8992 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8993 xno) ;;
8994 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8995 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8996 esac
8999 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
9000 #include <X11/Xlib.h>
9001 #endif
9003 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
9005 cat >>confdefs.h <<_ACEOF
9006 #define HAVE_XICCALLBACK_CALLBACK 1
9007 _ACEOF
9011 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
9012 #include <X11/Xlib.h>
9013 #endif
9015 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
9017 cat >>confdefs.h <<_ACEOF
9018 #define HAVE_XEVENT_XCOOKIE 1
9019 _ACEOF
9026 opengl_msg=""
9027 if test "x$with_opengl" != "xno"
9028 then
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9030 $as_echo_n "checking for -lGL... " >&6; }
9031 if ${ac_cv_lib_soname_GL+:} false; then :
9032 $as_echo_n "(cached) " >&6
9033 else
9034 ac_check_soname_save_LIBS=$LIBS
9035 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9039 /* Override any GCC internal prototype to avoid an error.
9040 Use char because int might match the return type of a GCC
9041 builtin and then its argument prototype would still apply. */
9042 #ifdef __cplusplus
9043 extern "C"
9044 #endif
9045 char glXCreateContext ();
9047 main ()
9049 return glXCreateContext ();
9051 return 0;
9053 _ACEOF
9054 if ac_fn_c_try_link "$LINENO"; then :
9055 case "$LIBEXT" in
9056 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9057 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'` ;;
9058 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9059 if test "x$ac_cv_lib_soname_GL" = x; then :
9060 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9061 fi ;;
9062 esac
9064 rm -f core conftest.err conftest.$ac_objext \
9065 conftest$ac_exeext conftest.$ac_ext
9066 LIBS=$ac_check_soname_save_LIBS
9068 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9070 $as_echo "not found" >&6; }
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9072 $as_echo_n "checking for -lGL... " >&6; }
9073 if ${ac_cv_lib_soname_GL+:} false; then :
9074 $as_echo_n "(cached) " >&6
9075 else
9076 ac_check_soname_save_LIBS=$LIBS
9077 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"
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9081 /* Override any GCC internal prototype to avoid an error.
9082 Use char because int might match the return type of a GCC
9083 builtin and then its argument prototype would still apply. */
9084 #ifdef __cplusplus
9085 extern "C"
9086 #endif
9087 char glXCreateContext ();
9089 main ()
9091 return glXCreateContext ();
9093 return 0;
9095 _ACEOF
9096 if ac_fn_c_try_link "$LINENO"; then :
9097 case "$LIBEXT" in
9098 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9099 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'` ;;
9100 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9101 if test "x$ac_cv_lib_soname_GL" = x; then :
9102 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9103 fi ;;
9104 esac
9106 rm -f core conftest.err conftest.$ac_objext \
9107 conftest$ac_exeext conftest.$ac_ext
9108 LIBS=$ac_check_soname_save_LIBS
9110 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9112 $as_echo "not found" >&6; }
9113 if test -f /usr/X11R6/lib/libGL.a
9114 then
9115 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
9116 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
9117 else
9118 opengl_msg="No OpenGL library found on this system."
9120 else
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9122 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9124 cat >>confdefs.h <<_ACEOF
9125 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9126 _ACEOF
9128 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"
9130 else
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9132 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9134 cat >>confdefs.h <<_ACEOF
9135 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9136 _ACEOF
9138 OPENGL_LIBS="-lGL"
9140 if test "x$with_glu" != "xno"
9141 then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
9143 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
9144 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
9145 $as_echo_n "(cached) " >&6
9146 else
9147 ac_check_lib_save_LIBS=$LIBS
9148 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9152 /* Override any GCC internal prototype to avoid an error.
9153 Use char because int might match the return type of a GCC
9154 builtin and then its argument prototype would still apply. */
9155 #ifdef __cplusplus
9156 extern "C"
9157 #endif
9158 char gluLookAt ();
9160 main ()
9162 return gluLookAt ();
9164 return 0;
9166 _ACEOF
9167 if ac_fn_c_try_link "$LINENO"; then :
9168 ac_cv_lib_GLU_gluLookAt=yes
9169 else
9170 ac_cv_lib_GLU_gluLookAt=no
9172 rm -f core conftest.err conftest.$ac_objext \
9173 conftest$ac_exeext conftest.$ac_ext
9174 LIBS=$ac_check_lib_save_LIBS
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
9177 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
9178 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
9182 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
9183 case "x$with_glu" in
9184 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
9185 xno) ;;
9186 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9187 This is an error since --with-glu was requested." "$LINENO" 5 ;;
9188 esac
9192 if test "x$with_osmesa" != "xno"
9193 then
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
9195 $as_echo_n "checking for -lOSMesa... " >&6; }
9196 if ${ac_cv_lib_soname_OSMesa+:} false; then :
9197 $as_echo_n "(cached) " >&6
9198 else
9199 ac_check_soname_save_LIBS=$LIBS
9200 LIBS="-lOSMesa $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9204 /* Override any GCC internal prototype to avoid an error.
9205 Use char because int might match the return type of a GCC
9206 builtin and then its argument prototype would still apply. */
9207 #ifdef __cplusplus
9208 extern "C"
9209 #endif
9210 char glAccum ();
9212 main ()
9214 return glAccum ();
9216 return 0;
9218 _ACEOF
9219 if ac_fn_c_try_link "$LINENO"; then :
9220 case "$LIBEXT" in
9221 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9222 dylib) ac_cv_lib_soname_OSMesa=`otool -L conftest$ac_exeext | grep "libOSMesa\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libOSMesa\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9223 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9224 if test "x$ac_cv_lib_soname_OSMesa" = x; then :
9225 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9226 fi ;;
9227 esac
9229 rm -f core conftest.err conftest.$ac_objext \
9230 conftest$ac_exeext conftest.$ac_ext
9231 LIBS=$ac_check_soname_save_LIBS
9233 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9235 $as_echo "not found" >&6; }
9237 else
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
9239 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
9241 cat >>confdefs.h <<_ACEOF
9242 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
9243 _ACEOF
9247 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9248 case "x$with_osmesa" in
9249 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
9250 xno) ;;
9251 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
9252 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
9253 esac
9257 if test -n "$opengl_msg"; then :
9258 case "x$with_opengl" in
9259 x) as_fn_append wine_warnings "|$opengl_msg
9260 OpenGL and Direct3D won't be supported." ;;
9261 xno) ;;
9262 *) as_fn_error $? "$opengl_msg
9263 OpenGL and Direct3D won't be supported.
9264 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9265 esac
9268 CPPFLAGS="$ac_save_CPPFLAGS"
9269 else
9270 XLIB=""
9271 X_CFLAGS=""
9272 X_LIBS=""
9273 enable_winex11_drv=${enable_winex11_drv:-no}
9275 if test "x$XLIB" = "x"; then :
9276 case "x$with_x" in
9277 xno) ;;
9278 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9279 without X support, which probably isn't what you want. You will need
9280 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9281 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9282 esac
9285 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
9287 if test "$ac_cv_header_CL_cl_h" = "yes"
9288 then
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9290 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9291 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9292 $as_echo_n "(cached) " >&6
9293 else
9294 ac_check_lib_save_LIBS=$LIBS
9295 LIBS="-lOpenCL $LIBS"
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9299 /* Override any GCC internal prototype to avoid an error.
9300 Use char because int might match the return type of a GCC
9301 builtin and then its argument prototype would still apply. */
9302 #ifdef __cplusplus
9303 extern "C"
9304 #endif
9305 char clGetPlatformInfo ();
9307 main ()
9309 return clGetPlatformInfo ();
9311 return 0;
9313 _ACEOF
9314 if ac_fn_c_try_link "$LINENO"; then :
9315 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9316 else
9317 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9319 rm -f core conftest.err conftest.$ac_objext \
9320 conftest$ac_exeext conftest.$ac_ext
9321 LIBS=$ac_check_lib_save_LIBS
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9324 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9325 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9326 LIBOPENCL="-lOpenCL"
9331 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9332 case "x$with_opencl" in
9333 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9334 xno) ;;
9335 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9336 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9337 esac
9339 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9342 XML2LIBS=""
9344 XML2INCL=""
9346 XSLTINCL=""
9348 if test "x$with_xml" != "xno"
9349 then
9350 ac_save_CPPFLAGS="$CPPFLAGS"
9351 if test "$PKG_CONFIG" != "false"
9352 then
9353 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9354 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9355 else
9356 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9357 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9359 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9360 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9361 do :
9362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9363 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9364 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9365 cat >>confdefs.h <<_ACEOF
9366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9367 _ACEOF
9371 done
9373 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"
9374 then
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9376 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9377 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9378 $as_echo_n "(cached) " >&6
9379 else
9380 ac_check_lib_save_LIBS=$LIBS
9381 LIBS="-lxml2 $ac_xml_libs $LIBS"
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h. */
9385 /* Override any GCC internal prototype to avoid an error.
9386 Use char because int might match the return type of a GCC
9387 builtin and then its argument prototype would still apply. */
9388 #ifdef __cplusplus
9389 extern "C"
9390 #endif
9391 char xmlParseMemory ();
9393 main ()
9395 return xmlParseMemory ();
9397 return 0;
9399 _ACEOF
9400 if ac_fn_c_try_link "$LINENO"; then :
9401 ac_cv_lib_xml2_xmlParseMemory=yes
9402 else
9403 ac_cv_lib_xml2_xmlParseMemory=no
9405 rm -f core conftest.err conftest.$ac_objext \
9406 conftest$ac_exeext conftest.$ac_ext
9407 LIBS=$ac_check_lib_save_LIBS
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9410 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9411 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9413 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9415 XML2LIBS="$ac_xml_libs"
9416 XML2INCL="$ac_xml_cflags"
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9420 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9421 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9422 $as_echo_n "(cached) " >&6
9423 else
9424 ac_check_lib_save_LIBS=$LIBS
9425 LIBS="-lxml2 $ac_xml_libs $LIBS"
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h. */
9429 /* Override any GCC internal prototype to avoid an error.
9430 Use char because int might match the return type of a GCC
9431 builtin and then its argument prototype would still apply. */
9432 #ifdef __cplusplus
9433 extern "C"
9434 #endif
9435 char xmlReadMemory ();
9437 main ()
9439 return xmlReadMemory ();
9441 return 0;
9443 _ACEOF
9444 if ac_fn_c_try_link "$LINENO"; then :
9445 ac_cv_lib_xml2_xmlReadMemory=yes
9446 else
9447 ac_cv_lib_xml2_xmlReadMemory=no
9449 rm -f core conftest.err conftest.$ac_objext \
9450 conftest$ac_exeext conftest.$ac_ext
9451 LIBS=$ac_check_lib_save_LIBS
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9454 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9455 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9457 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9462 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9463 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 ac_check_lib_save_LIBS=$LIBS
9467 LIBS="-lxml2 $ac_xml_libs $LIBS"
9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h. */
9471 /* Override any GCC internal prototype to avoid an error.
9472 Use char because int might match the return type of a GCC
9473 builtin and then its argument prototype would still apply. */
9474 #ifdef __cplusplus
9475 extern "C"
9476 #endif
9477 char xmlNewDocPI ();
9479 main ()
9481 return xmlNewDocPI ();
9483 return 0;
9485 _ACEOF
9486 if ac_fn_c_try_link "$LINENO"; then :
9487 ac_cv_lib_xml2_xmlNewDocPI=yes
9488 else
9489 ac_cv_lib_xml2_xmlNewDocPI=no
9491 rm -f core conftest.err conftest.$ac_objext \
9492 conftest$ac_exeext conftest.$ac_ext
9493 LIBS=$ac_check_lib_save_LIBS
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9496 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9497 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9499 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9504 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9505 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9506 $as_echo_n "(cached) " >&6
9507 else
9508 ac_check_lib_save_LIBS=$LIBS
9509 LIBS="-lxml2 $ac_xml_libs $LIBS"
9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9513 /* Override any GCC internal prototype to avoid an error.
9514 Use char because int might match the return type of a GCC
9515 builtin and then its argument prototype would still apply. */
9516 #ifdef __cplusplus
9517 extern "C"
9518 #endif
9519 char xmlSchemaSetParserStructuredErrors ();
9521 main ()
9523 return xmlSchemaSetParserStructuredErrors ();
9525 return 0;
9527 _ACEOF
9528 if ac_fn_c_try_link "$LINENO"; then :
9529 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9530 else
9531 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9533 rm -f core conftest.err conftest.$ac_objext \
9534 conftest$ac_exeext conftest.$ac_ext
9535 LIBS=$ac_check_lib_save_LIBS
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9538 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9539 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9541 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9546 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9547 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9548 $as_echo_n "(cached) " >&6
9549 else
9550 ac_check_lib_save_LIBS=$LIBS
9551 LIBS="-lxml2 $ac_xml_libs $LIBS"
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553 /* end confdefs.h. */
9555 /* Override any GCC internal prototype to avoid an error.
9556 Use char because int might match the return type of a GCC
9557 builtin and then its argument prototype would still apply. */
9558 #ifdef __cplusplus
9559 extern "C"
9560 #endif
9561 char xmlSchemaSetValidStructuredErrors ();
9563 main ()
9565 return xmlSchemaSetValidStructuredErrors ();
9567 return 0;
9569 _ACEOF
9570 if ac_fn_c_try_link "$LINENO"; then :
9571 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9572 else
9573 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9575 rm -f core conftest.err conftest.$ac_objext \
9576 conftest$ac_exeext conftest.$ac_ext
9577 LIBS=$ac_check_lib_save_LIBS
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9580 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9581 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9583 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9588 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9589 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9590 $as_echo_n "(cached) " >&6
9591 else
9592 ac_check_lib_save_LIBS=$LIBS
9593 LIBS="-lxml2 $ac_xml_libs $LIBS"
9594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595 /* end confdefs.h. */
9597 /* Override any GCC internal prototype to avoid an error.
9598 Use char because int might match the return type of a GCC
9599 builtin and then its argument prototype would still apply. */
9600 #ifdef __cplusplus
9601 extern "C"
9602 #endif
9603 char xmlFirstElementChild ();
9605 main ()
9607 return xmlFirstElementChild ();
9609 return 0;
9611 _ACEOF
9612 if ac_fn_c_try_link "$LINENO"; then :
9613 ac_cv_lib_xml2_xmlFirstElementChild=yes
9614 else
9615 ac_cv_lib_xml2_xmlFirstElementChild=no
9617 rm -f core conftest.err conftest.$ac_objext \
9618 conftest$ac_exeext conftest.$ac_ext
9619 LIBS=$ac_check_lib_save_LIBS
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9622 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9623 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9625 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9629 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9631 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9633 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9638 CPPFLAGS="$ac_save_CPPFLAGS"
9640 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9641 case "x$with_xml" in
9642 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9643 xno) ;;
9644 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9645 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9646 esac
9649 if test "x$with_xslt" != "xno"
9650 then
9651 if test "$PKG_CONFIG" != "false"
9652 then
9653 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9654 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9655 else
9656 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9657 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9659 ac_save_CPPFLAGS="$CPPFLAGS"
9660 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9661 for ac_header in libxslt/pattern.h libxslt/transform.h
9662 do :
9663 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9664 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9665 # include <libxslt/pattern.h>
9666 #endif
9668 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9669 cat >>confdefs.h <<_ACEOF
9670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9671 _ACEOF
9675 done
9677 CPPFLAGS="$ac_save_CPPFLAGS"
9678 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9679 then
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9681 $as_echo_n "checking for -lxslt... " >&6; }
9682 if ${ac_cv_lib_soname_xslt+:} false; then :
9683 $as_echo_n "(cached) " >&6
9684 else
9685 ac_check_soname_save_LIBS=$LIBS
9686 LIBS="-lxslt $ac_xslt_libs $LIBS"
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9690 /* Override any GCC internal prototype to avoid an error.
9691 Use char because int might match the return type of a GCC
9692 builtin and then its argument prototype would still apply. */
9693 #ifdef __cplusplus
9694 extern "C"
9695 #endif
9696 char xsltCompilePattern ();
9698 main ()
9700 return xsltCompilePattern ();
9702 return 0;
9704 _ACEOF
9705 if ac_fn_c_try_link "$LINENO"; then :
9706 case "$LIBEXT" in
9707 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9708 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'` ;;
9709 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9710 if test "x$ac_cv_lib_soname_xslt" = x; then :
9711 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9712 fi ;;
9713 esac
9715 rm -f core conftest.err conftest.$ac_objext \
9716 conftest$ac_exeext conftest.$ac_ext
9717 LIBS=$ac_check_soname_save_LIBS
9719 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9721 $as_echo "not found" >&6; }
9723 else
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9725 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9727 cat >>confdefs.h <<_ACEOF
9728 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9729 _ACEOF
9731 XSLTINCL="$ac_xslt_cflags"
9735 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9736 case "x$with_xslt" in
9737 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9738 xno) ;;
9739 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9740 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9741 esac
9744 if test "x$with_dbus" != "xno"
9745 then
9746 ac_save_CPPFLAGS="$CPPFLAGS"
9747 if test "$PKG_CONFIG" != "false"
9748 then
9749 ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`"
9750 ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`"
9751 CPPFLAGS="$CPPFLAGS $ac_dbus_cflags"
9753 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
9754 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
9756 $as_echo_n "checking for -ldbus-1... " >&6; }
9757 if ${ac_cv_lib_soname_dbus_1+:} false; then :
9758 $as_echo_n "(cached) " >&6
9759 else
9760 ac_check_soname_save_LIBS=$LIBS
9761 LIBS="-ldbus-1 $ac_dbus_libs $LIBS"
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9765 /* Override any GCC internal prototype to avoid an error.
9766 Use char because int might match the return type of a GCC
9767 builtin and then its argument prototype would still apply. */
9768 #ifdef __cplusplus
9769 extern "C"
9770 #endif
9771 char dbus_connection_close ();
9773 main ()
9775 return dbus_connection_close ();
9777 return 0;
9779 _ACEOF
9780 if ac_fn_c_try_link "$LINENO"; then :
9781 case "$LIBEXT" in
9782 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9783 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'` ;;
9784 *) ac_cv_lib_soname_dbus_1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libdbus-1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libdbus-1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9785 if test "x$ac_cv_lib_soname_dbus_1" = x; then :
9786 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9787 fi ;;
9788 esac
9790 rm -f core conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9792 LIBS=$ac_check_soname_save_LIBS
9794 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9796 $as_echo "not found" >&6; }
9798 else
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
9800 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
9802 cat >>confdefs.h <<_ACEOF
9803 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
9804 _ACEOF
9806 DBUSINCL="$ac_dbus_cflags"
9812 CPPFLAGS="$ac_save_CPPFLAGS"
9814 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
9815 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9816 case "x$with_dbus" in
9817 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9818 xno) ;;
9819 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
9820 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
9821 esac
9824 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
9825 then
9826 ac_save_CPPFLAGS="$CPPFLAGS"
9827 if test "$PKG_CONFIG" != "false"
9828 then
9829 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9830 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9831 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9833 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
9834 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9836 $as_echo_n "checking for -lhal... " >&6; }
9837 if ${ac_cv_lib_soname_hal+:} false; then :
9838 $as_echo_n "(cached) " >&6
9839 else
9840 ac_check_soname_save_LIBS=$LIBS
9841 LIBS="-lhal $ac_hal_libs $LIBS"
9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843 /* end confdefs.h. */
9845 /* Override any GCC internal prototype to avoid an error.
9846 Use char because int might match the return type of a GCC
9847 builtin and then its argument prototype would still apply. */
9848 #ifdef __cplusplus
9849 extern "C"
9850 #endif
9851 char libhal_ctx_new ();
9853 main ()
9855 return libhal_ctx_new ();
9857 return 0;
9859 _ACEOF
9860 if ac_fn_c_try_link "$LINENO"; then :
9861 case "$LIBEXT" in
9862 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9863 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'` ;;
9864 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9865 if test "x$ac_cv_lib_soname_hal" = x; then :
9866 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9867 fi ;;
9868 esac
9870 rm -f core conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872 LIBS=$ac_check_soname_save_LIBS
9874 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9876 $as_echo "not found" >&6; }
9878 else
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9880 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9882 cat >>confdefs.h <<_ACEOF
9883 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9884 _ACEOF
9886 HALINCL="$ac_hal_cflags"
9892 CPPFLAGS="$ac_save_CPPFLAGS"
9893 if test "x$ac_cv_lib_soname_hal" = "x" -a \
9894 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9895 case "x$with_hal" in
9896 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
9897 xno) ;;
9898 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
9899 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9900 esac
9904 if test "x$with_gnutls" != "xno"
9905 then
9906 ac_save_CPPFLAGS="$CPPFLAGS"
9907 if test "$PKG_CONFIG" != "false"
9908 then
9909 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9910 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9911 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9913 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9914 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916 /* end confdefs.h. */
9917 #include <gnutls/gnutls.h>
9919 main ()
9921 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
9923 return 0;
9925 _ACEOF
9926 if ac_fn_c_try_compile "$LINENO"; then :
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9928 $as_echo_n "checking for -lgnutls... " >&6; }
9929 if ${ac_cv_lib_soname_gnutls+:} false; then :
9930 $as_echo_n "(cached) " >&6
9931 else
9932 ac_check_soname_save_LIBS=$LIBS
9933 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h. */
9937 /* Override any GCC internal prototype to avoid an error.
9938 Use char because int might match the return type of a GCC
9939 builtin and then its argument prototype would still apply. */
9940 #ifdef __cplusplus
9941 extern "C"
9942 #endif
9943 char gnutls_global_init ();
9945 main ()
9947 return gnutls_global_init ();
9949 return 0;
9951 _ACEOF
9952 if ac_fn_c_try_link "$LINENO"; then :
9953 case "$LIBEXT" in
9954 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9955 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'` ;;
9956 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9957 if test "x$ac_cv_lib_soname_gnutls" = x; then :
9958 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9959 fi ;;
9960 esac
9962 rm -f core conftest.err conftest.$ac_objext \
9963 conftest$ac_exeext conftest.$ac_ext
9964 LIBS=$ac_check_soname_save_LIBS
9966 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9968 $as_echo "not found" >&6; }
9970 else
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9972 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9974 cat >>confdefs.h <<_ACEOF
9975 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9976 _ACEOF
9978 GNUTLSINCL="$ac_gnutls_cflags"
9982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9986 CPPFLAGS="$ac_save_CPPFLAGS"
9988 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9989 case "x$with_gnutls" in
9990 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9991 xno) ;;
9992 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9993 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9994 esac
9997 CURSESLIBS=""
9998 if test "$ac_cv_header_ncurses_h" = "yes"
9999 then
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
10001 $as_echo_n "checking for -lncurses... " >&6; }
10002 if ${ac_cv_lib_soname_ncurses+:} false; then :
10003 $as_echo_n "(cached) " >&6
10004 else
10005 ac_check_soname_save_LIBS=$LIBS
10006 LIBS="-lncurses $LIBS"
10007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008 /* end confdefs.h. */
10010 /* Override any GCC internal prototype to avoid an error.
10011 Use char because int might match the return type of a GCC
10012 builtin and then its argument prototype would still apply. */
10013 #ifdef __cplusplus
10014 extern "C"
10015 #endif
10016 char waddch ();
10018 main ()
10020 return waddch ();
10022 return 0;
10024 _ACEOF
10025 if ac_fn_c_try_link "$LINENO"; then :
10026 case "$LIBEXT" in
10027 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10028 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'` ;;
10029 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10030 if test "x$ac_cv_lib_soname_ncurses" = x; then :
10031 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10032 fi ;;
10033 esac
10035 rm -f core conftest.err conftest.$ac_objext \
10036 conftest$ac_exeext conftest.$ac_ext
10037 LIBS=$ac_check_soname_save_LIBS
10039 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10041 $as_echo "not found" >&6; }
10043 else
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
10045 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
10047 cat >>confdefs.h <<_ACEOF
10048 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
10049 _ACEOF
10051 CURSESLIBS="-lncurses"
10053 elif test "$ac_cv_header_curses_h" = "yes"
10054 then
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
10056 $as_echo_n "checking for -lcurses... " >&6; }
10057 if ${ac_cv_lib_soname_curses+:} false; then :
10058 $as_echo_n "(cached) " >&6
10059 else
10060 ac_check_soname_save_LIBS=$LIBS
10061 LIBS="-lcurses $LIBS"
10062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063 /* end confdefs.h. */
10065 /* Override any GCC internal prototype to avoid an error.
10066 Use char because int might match the return type of a GCC
10067 builtin and then its argument prototype would still apply. */
10068 #ifdef __cplusplus
10069 extern "C"
10070 #endif
10071 char waddch ();
10073 main ()
10075 return waddch ();
10077 return 0;
10079 _ACEOF
10080 if ac_fn_c_try_link "$LINENO"; then :
10081 case "$LIBEXT" in
10082 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10083 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'` ;;
10084 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10085 if test "x$ac_cv_lib_soname_curses" = x; then :
10086 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10087 fi ;;
10088 esac
10090 rm -f core conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10092 LIBS=$ac_check_soname_save_LIBS
10094 if test "x$ac_cv_lib_soname_curses" = "x"; then :
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10096 $as_echo "not found" >&6; }
10098 else
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
10100 $as_echo "$ac_cv_lib_soname_curses" >&6; }
10102 cat >>confdefs.h <<_ACEOF
10103 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
10104 _ACEOF
10106 CURSESLIBS="-lcurses"
10109 ac_save_LIBS="$LIBS"
10110 LIBS="$LIBS $CURSESLIBS"
10111 for ac_func in mousemask
10112 do :
10113 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
10114 if test "x$ac_cv_func_mousemask" = xyes; then :
10115 cat >>confdefs.h <<_ACEOF
10116 #define HAVE_MOUSEMASK 1
10117 _ACEOF
10120 done
10122 LIBS="$ac_save_LIBS"
10123 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
10124 case "x$with_curses" in
10125 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
10126 xno) ;;
10127 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
10128 This is an error since --with-curses was requested." "$LINENO" 5 ;;
10129 esac
10132 if test "x$with_sane" != "xno"
10133 then
10134 ac_save_CPPFLAGS="$CPPFLAGS"
10135 # Extract the first word of "sane-config", so it can be a program name with args.
10136 set dummy sane-config; ac_word=$2
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10138 $as_echo_n "checking for $ac_word... " >&6; }
10139 if ${ac_cv_prog_sane_devel+:} false; then :
10140 $as_echo_n "(cached) " >&6
10141 else
10142 if test -n "$sane_devel"; then
10143 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
10144 else
10145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146 for as_dir in $PATH
10148 IFS=$as_save_IFS
10149 test -z "$as_dir" && as_dir=.
10150 for ac_exec_ext in '' $ac_executable_extensions; do
10151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10152 ac_cv_prog_sane_devel="sane-config"
10153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10154 break 2
10156 done
10157 done
10158 IFS=$as_save_IFS
10160 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
10163 sane_devel=$ac_cv_prog_sane_devel
10164 if test -n "$sane_devel"; then
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
10166 $as_echo "$sane_devel" >&6; }
10167 else
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169 $as_echo "no" >&6; }
10173 if test "$sane_devel" != "no"
10174 then
10175 ac_sane_incl="`$sane_devel --cflags`"
10176 ac_sane_libs="`$sane_devel --ldflags`"
10177 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
10179 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
10180 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
10182 $as_echo_n "checking for -lsane... " >&6; }
10183 if ${ac_cv_lib_soname_sane+:} false; then :
10184 $as_echo_n "(cached) " >&6
10185 else
10186 ac_check_soname_save_LIBS=$LIBS
10187 LIBS="-lsane $ac_sane_libs $LIBS"
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10191 /* Override any GCC internal prototype to avoid an error.
10192 Use char because int might match the return type of a GCC
10193 builtin and then its argument prototype would still apply. */
10194 #ifdef __cplusplus
10195 extern "C"
10196 #endif
10197 char sane_init ();
10199 main ()
10201 return sane_init ();
10203 return 0;
10205 _ACEOF
10206 if ac_fn_c_try_link "$LINENO"; then :
10207 case "$LIBEXT" in
10208 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10209 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'` ;;
10210 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10211 if test "x$ac_cv_lib_soname_sane" = x; then :
10212 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10213 fi ;;
10214 esac
10216 rm -f core conftest.err conftest.$ac_objext \
10217 conftest$ac_exeext conftest.$ac_ext
10218 LIBS=$ac_check_soname_save_LIBS
10220 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10222 $as_echo "not found" >&6; }
10224 else
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
10226 $as_echo "$ac_cv_lib_soname_sane" >&6; }
10228 cat >>confdefs.h <<_ACEOF
10229 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10230 _ACEOF
10232 SANEINCL="$ac_sane_incl"
10238 CPPFLAGS="$ac_save_CPPFLAGS"
10240 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10241 case "x$with_sane" in
10242 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10243 xno) ;;
10244 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10245 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10246 esac
10249 if test "x$with_v4l" != "xno"
10250 then
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10252 $as_echo_n "checking for -lv4l1... " >&6; }
10253 if ${ac_cv_lib_soname_v4l1+:} false; then :
10254 $as_echo_n "(cached) " >&6
10255 else
10256 ac_check_soname_save_LIBS=$LIBS
10257 LIBS="-lv4l1 $LIBS"
10258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10259 /* end confdefs.h. */
10261 /* Override any GCC internal prototype to avoid an error.
10262 Use char because int might match the return type of a GCC
10263 builtin and then its argument prototype would still apply. */
10264 #ifdef __cplusplus
10265 extern "C"
10266 #endif
10267 char v4l1_open ();
10269 main ()
10271 return v4l1_open ();
10273 return 0;
10275 _ACEOF
10276 if ac_fn_c_try_link "$LINENO"; then :
10277 case "$LIBEXT" in
10278 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10279 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'` ;;
10280 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10281 if test "x$ac_cv_lib_soname_v4l1" = x; then :
10282 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10283 fi ;;
10284 esac
10286 rm -f core conftest.err conftest.$ac_objext \
10287 conftest$ac_exeext conftest.$ac_ext
10288 LIBS=$ac_check_soname_save_LIBS
10290 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10292 $as_echo "not found" >&6; }
10294 else
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10296 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10298 cat >>confdefs.h <<_ACEOF
10299 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10300 _ACEOF
10305 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10306 case "x$with_v4l" in
10307 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10308 xno) ;;
10309 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10310 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10311 esac
10314 if test "x$with_gphoto" != "xno"
10315 then
10316 ac_save_CPPFLAGS="$CPPFLAGS"
10317 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10318 set dummy gphoto2-config; ac_word=$2
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10320 $as_echo_n "checking for $ac_word... " >&6; }
10321 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10322 $as_echo_n "(cached) " >&6
10323 else
10324 if test -n "$gphoto2_devel"; then
10325 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10326 else
10327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10328 for as_dir in $PATH
10330 IFS=$as_save_IFS
10331 test -z "$as_dir" && as_dir=.
10332 for ac_exec_ext in '' $ac_executable_extensions; do
10333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10334 ac_cv_prog_gphoto2_devel="gphoto2-config"
10335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10336 break 2
10338 done
10339 done
10340 IFS=$as_save_IFS
10342 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10345 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10346 if test -n "$gphoto2_devel"; then
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10348 $as_echo "$gphoto2_devel" >&6; }
10349 else
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10351 $as_echo "no" >&6; }
10355 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10356 set dummy gphoto2-port-config; ac_word=$2
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10358 $as_echo_n "checking for $ac_word... " >&6; }
10359 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 if test -n "$gphoto2port_devel"; then
10363 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10364 else
10365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366 for as_dir in $PATH
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10372 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 break 2
10376 done
10377 done
10378 IFS=$as_save_IFS
10380 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10383 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10384 if test -n "$gphoto2port_devel"; then
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10386 $as_echo "$gphoto2port_devel" >&6; }
10387 else
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10389 $as_echo "no" >&6; }
10393 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10394 then
10395 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10396 ac_gphoto2_libs=""
10397 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10399 case "$i" in
10400 -L/usr/lib|-L/usr/lib64) ;;
10401 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10402 esac
10403 done
10404 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10406 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10407 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10408 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10410 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10411 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10412 $as_echo_n "(cached) " >&6
10413 else
10414 ac_check_lib_save_LIBS=$LIBS
10415 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10419 /* Override any GCC internal prototype to avoid an error.
10420 Use char because int might match the return type of a GCC
10421 builtin and then its argument prototype would still apply. */
10422 #ifdef __cplusplus
10423 extern "C"
10424 #endif
10425 char gp_camera_new ();
10427 main ()
10429 return gp_camera_new ();
10431 return 0;
10433 _ACEOF
10434 if ac_fn_c_try_link "$LINENO"; then :
10435 ac_cv_lib_gphoto2_gp_camera_new=yes
10436 else
10437 ac_cv_lib_gphoto2_gp_camera_new=no
10439 rm -f core conftest.err conftest.$ac_objext \
10440 conftest$ac_exeext conftest.$ac_ext
10441 LIBS=$ac_check_lib_save_LIBS
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10444 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10445 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10447 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10449 GPHOTO2LIBS="$ac_gphoto2_libs"
10451 GPHOTO2INCL="$ac_gphoto2_incl"
10458 CPPFLAGS="$ac_save_CPPFLAGS"
10460 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10461 case "x$with_gphoto" in
10462 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10463 xno) ;;
10464 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10465 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10466 esac
10470 if test "$ac_cv_header_resolv_h" = "yes"
10471 then
10472 ac_save_LIBS="$LIBS"
10473 for lib in '' -lresolv
10475 LIBS="$lib $ac_save_LIBS"
10476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477 /* end confdefs.h. */
10478 #ifdef HAVE_NETINET_IN_H
10479 #include <netinet/in.h>
10480 #endif
10481 #include <resolv.h>
10483 main ()
10485 res_query("foo",ns_c_in,0,0,0);
10487 return 0;
10489 _ACEOF
10490 if ac_fn_c_try_link "$LINENO"; then :
10492 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10494 RESOLVLIBS="$lib"
10497 rm -f core conftest.err conftest.$ac_objext \
10498 conftest$ac_exeext conftest.$ac_ext
10499 if test "${RESOLVLIBS+set}" = set; then
10500 break
10502 done
10503 LIBS="$ac_save_LIBS"
10506 LCMSLIBS=""
10508 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10509 then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10511 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10512 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10513 $as_echo_n "(cached) " >&6
10514 else
10515 ac_check_lib_save_LIBS=$LIBS
10516 LIBS="-llcms $LIBS"
10517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518 /* end confdefs.h. */
10520 /* Override any GCC internal prototype to avoid an error.
10521 Use char because int might match the return type of a GCC
10522 builtin and then its argument prototype would still apply. */
10523 #ifdef __cplusplus
10524 extern "C"
10525 #endif
10526 char cmsOpenProfileFromFile ();
10528 main ()
10530 return cmsOpenProfileFromFile ();
10532 return 0;
10534 _ACEOF
10535 if ac_fn_c_try_link "$LINENO"; then :
10536 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10537 else
10538 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10540 rm -f core conftest.err conftest.$ac_objext \
10541 conftest$ac_exeext conftest.$ac_ext
10542 LIBS=$ac_check_lib_save_LIBS
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10545 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10546 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10548 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10550 LCMSLIBS="-llcms"
10554 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10555 case "x$with_cms" in
10556 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10557 xno) ;;
10558 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10559 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10560 esac
10563 if test "x$with_freetype" != "xno"
10564 then
10565 if test "$PKG_CONFIG" != "false"
10566 then
10567 ac_freetype_incl="`$PKG_CONFIG --cflags freetype2 2>/dev/null`"
10568 ac_freetype_libs="`$PKG_CONFIG --libs freetype2 2>/dev/null`"
10569 else
10570 for ac_prog in freetype-config freetype2-config
10572 # Extract the first word of "$ac_prog", so it can be a program name with args.
10573 set dummy $ac_prog; ac_word=$2
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10575 $as_echo_n "checking for $ac_word... " >&6; }
10576 if ${ac_cv_prog_ft_devel+:} false; then :
10577 $as_echo_n "(cached) " >&6
10578 else
10579 if test -n "$ft_devel"; then
10580 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10581 else
10582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10583 for as_dir in $PATH
10585 IFS=$as_save_IFS
10586 test -z "$as_dir" && as_dir=.
10587 for ac_exec_ext in '' $ac_executable_extensions; do
10588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10589 ac_cv_prog_ft_devel="$ac_prog"
10590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10591 break 2
10593 done
10594 done
10595 IFS=$as_save_IFS
10599 ft_devel=$ac_cv_prog_ft_devel
10600 if test -n "$ft_devel"; then
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10602 $as_echo "$ft_devel" >&6; }
10603 else
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605 $as_echo "no" >&6; }
10609 test -n "$ft_devel" && break
10610 done
10611 test -n "$ft_devel" || ft_devel="no"
10613 if test "$ft_devel" != "no"
10614 then
10615 ac_freetype_incl=`$ft_devel --cflags`
10616 ac_freetype_libs=`$ft_devel --libs`
10619 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10621 $as_echo_n "checking for -lfreetype... " >&6; }
10622 if ${ac_cv_lib_soname_freetype+:} false; then :
10623 $as_echo_n "(cached) " >&6
10624 else
10625 ac_check_soname_save_LIBS=$LIBS
10626 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10630 /* Override any GCC internal prototype to avoid an error.
10631 Use char because int might match the return type of a GCC
10632 builtin and then its argument prototype would still apply. */
10633 #ifdef __cplusplus
10634 extern "C"
10635 #endif
10636 char FT_Init_FreeType ();
10638 main ()
10640 return FT_Init_FreeType ();
10642 return 0;
10644 _ACEOF
10645 if ac_fn_c_try_link "$LINENO"; then :
10646 case "$LIBEXT" in
10647 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10648 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'` ;;
10649 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10650 if test "x$ac_cv_lib_soname_freetype" = x; then :
10651 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10652 fi ;;
10653 esac
10655 rm -f core conftest.err conftest.$ac_objext \
10656 conftest$ac_exeext conftest.$ac_ext
10657 LIBS=$ac_check_soname_save_LIBS
10659 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10661 $as_echo "not found" >&6; }
10662 ft_lib=no
10663 else
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10665 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10667 cat >>confdefs.h <<_ACEOF
10668 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10669 _ACEOF
10671 ft_lib=yes
10673 if test "$ft_lib" = "yes"
10674 then
10675 ac_save_CPPFLAGS="$CPPFLAGS"
10676 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10677 for ac_header in ft2build.h \
10678 freetype/freetype.h \
10679 freetype/ftglyph.h \
10680 freetype/fttypes.h \
10681 freetype/tttables.h \
10682 freetype/ftsnames.h \
10683 freetype/ttnameid.h \
10684 freetype/ftoutln.h \
10685 freetype/ftwinfnt.h \
10686 freetype/ftmodapi.h \
10687 freetype/ftlcdfil.h
10688 do :
10689 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10690 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10691 # include <ft2build.h>
10692 #endif
10694 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10695 cat >>confdefs.h <<_ACEOF
10696 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10697 _ACEOF
10701 done
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10705 #include <ft2build.h>
10706 #include <freetype/fttrigon.h>
10707 _ACEOF
10708 if ac_fn_c_try_cpp "$LINENO"; then :
10710 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10712 wine_cv_fttrigon=yes
10713 else
10714 wine_cv_fttrigon=no
10716 rm -f conftest.err conftest.i conftest.$ac_ext
10717 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10719 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10721 cat >>confdefs.h <<_ACEOF
10722 #define HAVE_FT_TRUETYPEENGINETYPE 1
10723 _ACEOF
10728 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10729 then
10731 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10733 FREETYPELIBS="$ac_freetype_libs"
10735 FREETYPEINCL="$ac_freetype_incl"
10740 if test "x$FREETYPELIBS" = "x"; then :
10741 case "x$with_freetype" in
10742 xno) ;;
10743 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10744 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10745 esac
10747 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10750 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10751 if ${ac_cv_c_ppdev+:} false; then :
10752 $as_echo_n "(cached) " >&6
10753 else
10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10756 #ifdef HAVE_SYS_IOCTL_H
10757 # include <sys/ioctl.h>
10758 #endif
10759 #include <linux/ppdev.h>
10761 main ()
10763 ioctl (1,PPCLAIM,0)
10765 return 0;
10767 _ACEOF
10768 if ac_fn_c_try_compile "$LINENO"; then :
10769 ac_cv_c_ppdev="yes"
10770 else
10771 ac_cv_c_ppdev="no"
10773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10776 $as_echo "$ac_cv_c_ppdev" >&6; }
10777 if test "$ac_cv_c_ppdev" = "yes"
10778 then
10780 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10784 ac_wine_check_funcs_save_LIBS="$LIBS"
10785 LIBS="$LIBS $LIBPTHREAD"
10786 for ac_func in \
10787 pthread_attr_get_np \
10788 pthread_getattr_np \
10789 pthread_getthreadid_np \
10790 pthread_get_stackaddr_np \
10791 pthread_get_stacksize_np
10792 do :
10793 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10794 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10795 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10796 cat >>confdefs.h <<_ACEOF
10797 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10798 _ACEOF
10801 done
10803 LIBS="$ac_wine_check_funcs_save_LIBS"
10805 if test "$ac_cv_header_zlib_h" = "yes"
10806 then
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10808 $as_echo_n "checking for inflate in -lz... " >&6; }
10809 if ${ac_cv_lib_z_inflate+:} false; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10812 ac_check_lib_save_LIBS=$LIBS
10813 LIBS="-lz $LIBS"
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10817 /* Override any GCC internal prototype to avoid an error.
10818 Use char because int might match the return type of a GCC
10819 builtin and then its argument prototype would still apply. */
10820 #ifdef __cplusplus
10821 extern "C"
10822 #endif
10823 char inflate ();
10825 main ()
10827 return inflate ();
10829 return 0;
10831 _ACEOF
10832 if ac_fn_c_try_link "$LINENO"; then :
10833 ac_cv_lib_z_inflate=yes
10834 else
10835 ac_cv_lib_z_inflate=no
10837 rm -f core conftest.err conftest.$ac_objext \
10838 conftest$ac_exeext conftest.$ac_ext
10839 LIBS=$ac_check_lib_save_LIBS
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10842 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10843 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10845 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10847 ZLIB="-lz"
10852 if test "x$ZLIB" = "x"; then :
10853 case "x$with_zlib" in
10854 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10855 xno) ;;
10856 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10857 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10858 esac
10861 if test "x$enable_tools" != xno
10862 then
10863 if test "$ac_cv_header_gettext_po_h" = "yes"
10864 then
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10866 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10867 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10868 $as_echo_n "(cached) " >&6
10869 else
10870 ac_check_lib_save_LIBS=$LIBS
10871 LIBS="-lgettextpo $LIBS"
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h. */
10875 /* Override any GCC internal prototype to avoid an error.
10876 Use char because int might match the return type of a GCC
10877 builtin and then its argument prototype would still apply. */
10878 #ifdef __cplusplus
10879 extern "C"
10880 #endif
10881 char po_message_msgctxt ();
10883 main ()
10885 return po_message_msgctxt ();
10887 return 0;
10889 _ACEOF
10890 if ac_fn_c_try_link "$LINENO"; then :
10891 ac_cv_lib_gettextpo_po_message_msgctxt=yes
10892 else
10893 ac_cv_lib_gettextpo_po_message_msgctxt=no
10895 rm -f core conftest.err conftest.$ac_objext \
10896 conftest$ac_exeext conftest.$ac_ext
10897 LIBS=$ac_check_lib_save_LIBS
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10900 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10901 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10903 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10905 LIBGETTEXTPO="-lgettextpo"
10910 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
10911 case "x$with_gettextpo" in
10912 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
10913 xno) ;;
10914 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
10915 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10916 esac
10920 if test "x$with_gstreamer" != "xno"
10921 then
10922 ac_save_CPPFLAGS="$CPPFLAGS"
10923 if test "$PKG_CONFIG" != "false"; then
10924 ac_gst_incl=""
10925 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10927 case "$i" in
10928 -I*) ac_gst_incl="$ac_gst_incl $i";;
10929 esac
10930 done
10931 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10932 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10933 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10934 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10935 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10936 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10938 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10941 #include <gst/app/gstappsink.h>
10943 main ()
10945 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
10947 return 0;
10949 _ACEOF
10950 if ac_fn_c_try_compile "$LINENO"; then :
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10952 $as_echo "yes" >&6; }
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10954 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10955 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10956 $as_echo_n "(cached) " >&6
10957 else
10958 ac_check_lib_save_LIBS=$LIBS
10959 LIBS="-lgstreamer-0.10 $LIBS"
10960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10963 /* Override any GCC internal prototype to avoid an error.
10964 Use char because int might match the return type of a GCC
10965 builtin and then its argument prototype would still apply. */
10966 #ifdef __cplusplus
10967 extern "C"
10968 #endif
10969 char gst_pad_get_caps_reffed ();
10971 main ()
10973 return gst_pad_get_caps_reffed ();
10975 return 0;
10977 _ACEOF
10978 if ac_fn_c_try_link "$LINENO"; then :
10979 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10980 else
10981 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10983 rm -f core conftest.err conftest.$ac_objext \
10984 conftest$ac_exeext conftest.$ac_ext
10985 LIBS=$ac_check_lib_save_LIBS
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10988 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10989 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10991 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10992 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10993 $as_echo_n "(cached) " >&6
10994 else
10995 ac_check_lib_save_LIBS=$LIBS
10996 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
11000 /* Override any GCC internal prototype to avoid an error.
11001 Use char because int might match the return type of a GCC
11002 builtin and then its argument prototype would still apply. */
11003 #ifdef __cplusplus
11004 extern "C"
11005 #endif
11006 char gst_app_buffer_new ();
11008 main ()
11010 return gst_app_buffer_new ();
11012 return 0;
11014 _ACEOF
11015 if ac_fn_c_try_link "$LINENO"; then :
11016 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
11017 else
11018 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
11020 rm -f core conftest.err conftest.$ac_objext \
11021 conftest$ac_exeext conftest.$ac_ext
11022 LIBS=$ac_check_lib_save_LIBS
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
11025 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
11026 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
11027 GSTREAMER_LIBS="$ac_gst_libs"
11029 GSTREAMER_INCL="$ac_gst_incl"
11035 else
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037 $as_echo "no" >&6; }
11039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11047 CPPFLAGS="$ac_save_CPPFLAGS"
11049 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
11050 case "x$with_gstreamer" in
11051 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
11052 xno) ;;
11053 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
11054 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
11055 esac
11057 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
11059 ALSALIBS=""
11061 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11062 then
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
11064 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
11065 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
11066 $as_echo_n "(cached) " >&6
11067 else
11068 ac_check_lib_save_LIBS=$LIBS
11069 LIBS="-lasound $LIBS"
11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11073 /* Override any GCC internal prototype to avoid an error.
11074 Use char because int might match the return type of a GCC
11075 builtin and then its argument prototype would still apply. */
11076 #ifdef __cplusplus
11077 extern "C"
11078 #endif
11079 char snd_pcm_hw_params_get_access_mask ();
11081 main ()
11083 return snd_pcm_hw_params_get_access_mask ();
11085 return 0;
11087 _ACEOF
11088 if ac_fn_c_try_link "$LINENO"; then :
11089 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
11090 else
11091 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
11093 rm -f core conftest.err conftest.$ac_objext \
11094 conftest$ac_exeext conftest.$ac_ext
11095 LIBS=$ac_check_lib_save_LIBS
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
11098 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
11099 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
11100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101 /* end confdefs.h. */
11102 #ifdef HAVE_ALSA_ASOUNDLIB_H
11103 #include <alsa/asoundlib.h>
11104 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11105 #include <sys/asoundlib.h>
11106 #endif
11108 main ()
11110 snd_pcm_hw_params_get_access_mask(NULL, NULL)
11112 return 0;
11114 _ACEOF
11115 if ac_fn_c_try_compile "$LINENO"; then :
11116 ALSALIBS="-lasound"
11118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123 if test "x$with_oss" != xno
11124 then
11125 ac_save_CPPFLAGS="$CPPFLAGS"
11126 if test -f /etc/oss.conf
11127 then
11128 . /etc/oss.conf
11130 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
11131 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
11132 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11133 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
11134 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
11136 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
11138 cat >>confdefs.h <<_ACEOF
11139 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
11140 _ACEOF
11142 OSS4INCL="$ac_oss_incl"
11149 CPPFLAGS="$ac_save_CPPFLAGS"
11150 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
11151 then
11152 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
11157 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
11158 then
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
11160 $as_echo_n "checking for -lcapi20... " >&6; }
11161 if ${ac_cv_lib_soname_capi20+:} false; then :
11162 $as_echo_n "(cached) " >&6
11163 else
11164 ac_check_soname_save_LIBS=$LIBS
11165 LIBS="-lcapi20 $LIBS"
11166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11167 /* end confdefs.h. */
11169 /* Override any GCC internal prototype to avoid an error.
11170 Use char because int might match the return type of a GCC
11171 builtin and then its argument prototype would still apply. */
11172 #ifdef __cplusplus
11173 extern "C"
11174 #endif
11175 char capi20_register ();
11177 main ()
11179 return capi20_register ();
11181 return 0;
11183 _ACEOF
11184 if ac_fn_c_try_link "$LINENO"; then :
11185 case "$LIBEXT" in
11186 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11187 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'` ;;
11188 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11189 if test "x$ac_cv_lib_soname_capi20" = x; then :
11190 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11191 fi ;;
11192 esac
11194 rm -f core conftest.err conftest.$ac_objext \
11195 conftest$ac_exeext conftest.$ac_ext
11196 LIBS=$ac_check_soname_save_LIBS
11198 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11200 $as_echo "not found" >&6; }
11202 else
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11204 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11206 cat >>confdefs.h <<_ACEOF
11207 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11208 _ACEOF
11213 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11214 case "x$with_capi" in
11215 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11216 xno) ;;
11217 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11218 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11219 esac
11222 CUPSINCL=""
11224 if test "x$with_cups" != "xno"
11225 then
11226 ac_save_CPPFLAGS="$CPPFLAGS"
11227 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11228 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11229 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11230 for ac_header in cups/cups.h
11231 do :
11232 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11233 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11234 cat >>confdefs.h <<_ACEOF
11235 #define HAVE_CUPS_CUPS_H 1
11236 _ACEOF
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11238 $as_echo_n "checking for -lcups... " >&6; }
11239 if ${ac_cv_lib_soname_cups+:} false; then :
11240 $as_echo_n "(cached) " >&6
11241 else
11242 ac_check_soname_save_LIBS=$LIBS
11243 LIBS="-lcups $ac_cups_libs $LIBS"
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11247 /* Override any GCC internal prototype to avoid an error.
11248 Use char because int might match the return type of a GCC
11249 builtin and then its argument prototype would still apply. */
11250 #ifdef __cplusplus
11251 extern "C"
11252 #endif
11253 char cupsGetDefault ();
11255 main ()
11257 return cupsGetDefault ();
11259 return 0;
11261 _ACEOF
11262 if ac_fn_c_try_link "$LINENO"; then :
11263 case "$LIBEXT" in
11264 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11265 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'` ;;
11266 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11267 if test "x$ac_cv_lib_soname_cups" = x; then :
11268 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11269 fi ;;
11270 esac
11272 rm -f core conftest.err conftest.$ac_objext \
11273 conftest$ac_exeext conftest.$ac_ext
11274 LIBS=$ac_check_soname_save_LIBS
11276 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11278 $as_echo "not found" >&6; }
11280 else
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11282 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11284 cat >>confdefs.h <<_ACEOF
11285 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11286 _ACEOF
11288 CUPSINCL="$ac_cups_cflags"
11292 done
11294 CPPFLAGS="$ac_save_CPPFLAGS"
11296 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11297 case "x$with_cups" in
11298 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11299 xno) ;;
11300 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11301 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11302 esac
11305 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11306 then
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11308 $as_echo_n "checking for -lfontconfig... " >&6; }
11309 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11310 $as_echo_n "(cached) " >&6
11311 else
11312 ac_check_soname_save_LIBS=$LIBS
11313 LIBS="-lfontconfig $LIBS"
11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11317 /* Override any GCC internal prototype to avoid an error.
11318 Use char because int might match the return type of a GCC
11319 builtin and then its argument prototype would still apply. */
11320 #ifdef __cplusplus
11321 extern "C"
11322 #endif
11323 char FcInit ();
11325 main ()
11327 return FcInit ();
11329 return 0;
11331 _ACEOF
11332 if ac_fn_c_try_link "$LINENO"; then :
11333 case "$LIBEXT" in
11334 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11335 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'` ;;
11336 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11337 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11338 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11339 fi ;;
11340 esac
11342 rm -f core conftest.err conftest.$ac_objext \
11343 conftest$ac_exeext conftest.$ac_ext
11344 LIBS=$ac_check_soname_save_LIBS
11346 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11348 $as_echo "not found" >&6; }
11350 else
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11352 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11354 cat >>confdefs.h <<_ACEOF
11355 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11356 _ACEOF
11360 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11361 then
11362 ac_save_CPPFLAGS="$CPPFLAGS"
11363 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11364 $as_unset ac_cv_header_fontconfig_fontconfig_h
11365 for ac_header in fontconfig/fontconfig.h
11366 do :
11367 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11368 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11369 cat >>confdefs.h <<_ACEOF
11370 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11371 _ACEOF
11375 done
11377 CPPFLAGS="$ac_save_CPPFLAGS"
11378 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11379 then
11380 FONTCONFIGINCL="$X_CFLAGS"
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11383 $as_echo_n "checking for -lfontconfig... " >&6; }
11384 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11385 $as_echo_n "(cached) " >&6
11386 else
11387 ac_check_soname_save_LIBS=$LIBS
11388 LIBS="-lfontconfig $X_LIBS $LIBS"
11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h. */
11392 /* Override any GCC internal prototype to avoid an error.
11393 Use char because int might match the return type of a GCC
11394 builtin and then its argument prototype would still apply. */
11395 #ifdef __cplusplus
11396 extern "C"
11397 #endif
11398 char FcInit ();
11400 main ()
11402 return FcInit ();
11404 return 0;
11406 _ACEOF
11407 if ac_fn_c_try_link "$LINENO"; then :
11408 case "$LIBEXT" in
11409 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11410 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'` ;;
11411 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11412 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11413 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11414 fi ;;
11415 esac
11417 rm -f core conftest.err conftest.$ac_objext \
11418 conftest$ac_exeext conftest.$ac_ext
11419 LIBS=$ac_check_soname_save_LIBS
11421 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11423 $as_echo "not found" >&6; }
11425 else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11427 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11429 cat >>confdefs.h <<_ACEOF
11430 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11431 _ACEOF
11437 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11438 case "x$with_fontconfig" in
11439 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11440 xno) ;;
11441 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11442 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11443 esac
11446 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11447 then
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11449 $as_echo_n "checking for -lssl... " >&6; }
11450 if ${ac_cv_lib_soname_ssl+:} false; then :
11451 $as_echo_n "(cached) " >&6
11452 else
11453 ac_check_soname_save_LIBS=$LIBS
11454 LIBS="-lssl $LIBS"
11455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456 /* end confdefs.h. */
11458 /* Override any GCC internal prototype to avoid an error.
11459 Use char because int might match the return type of a GCC
11460 builtin and then its argument prototype would still apply. */
11461 #ifdef __cplusplus
11462 extern "C"
11463 #endif
11464 char SSL_library_init ();
11466 main ()
11468 return SSL_library_init ();
11470 return 0;
11472 _ACEOF
11473 if ac_fn_c_try_link "$LINENO"; then :
11474 case "$LIBEXT" in
11475 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11476 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'` ;;
11477 *) ac_cv_lib_soname_ssl=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libssl\\.$LIBEXT" | sed -e "s/^.*\\[\\(libssl\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11478 if test "x$ac_cv_lib_soname_ssl" = x; then :
11479 ac_cv_lib_soname_ssl=`$LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11480 fi ;;
11481 esac
11483 rm -f core conftest.err conftest.$ac_objext \
11484 conftest$ac_exeext conftest.$ac_ext
11485 LIBS=$ac_check_soname_save_LIBS
11487 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11489 $as_echo "not found" >&6; }
11491 else
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11493 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11495 cat >>confdefs.h <<_ACEOF
11496 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11497 _ACEOF
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11502 $as_echo_n "checking for -lcrypto... " >&6; }
11503 if ${ac_cv_lib_soname_crypto+:} false; then :
11504 $as_echo_n "(cached) " >&6
11505 else
11506 ac_check_soname_save_LIBS=$LIBS
11507 LIBS="-lcrypto $LIBS"
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11511 /* Override any GCC internal prototype to avoid an error.
11512 Use char because int might match the return type of a GCC
11513 builtin and then its argument prototype would still apply. */
11514 #ifdef __cplusplus
11515 extern "C"
11516 #endif
11517 char BIO_new_socket ();
11519 main ()
11521 return BIO_new_socket ();
11523 return 0;
11525 _ACEOF
11526 if ac_fn_c_try_link "$LINENO"; then :
11527 case "$LIBEXT" in
11528 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11529 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'` ;;
11530 *) ac_cv_lib_soname_crypto=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcrypto\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcrypto\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11531 if test "x$ac_cv_lib_soname_crypto" = x; then :
11532 ac_cv_lib_soname_crypto=`$LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11533 fi ;;
11534 esac
11536 rm -f core conftest.err conftest.$ac_objext \
11537 conftest$ac_exeext conftest.$ac_ext
11538 LIBS=$ac_check_soname_save_LIBS
11540 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11542 $as_echo "not found" >&6; }
11544 else
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11546 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11548 cat >>confdefs.h <<_ACEOF
11549 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11550 _ACEOF
11555 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11556 case "x$with_openssl" in
11557 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11558 xno) ;;
11559 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11560 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11561 esac
11564 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11565 then
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11567 $as_echo_n "checking for -lgsm... " >&6; }
11568 if ${ac_cv_lib_soname_gsm+:} false; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571 ac_check_soname_save_LIBS=$LIBS
11572 LIBS="-lgsm $LIBS"
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h. */
11576 /* Override any GCC internal prototype to avoid an error.
11577 Use char because int might match the return type of a GCC
11578 builtin and then its argument prototype would still apply. */
11579 #ifdef __cplusplus
11580 extern "C"
11581 #endif
11582 char gsm_create ();
11584 main ()
11586 return gsm_create ();
11588 return 0;
11590 _ACEOF
11591 if ac_fn_c_try_link "$LINENO"; then :
11592 case "$LIBEXT" in
11593 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11594 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'` ;;
11595 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11596 if test "x$ac_cv_lib_soname_gsm" = x; then :
11597 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11598 fi ;;
11599 esac
11601 rm -f core conftest.err conftest.$ac_objext \
11602 conftest$ac_exeext conftest.$ac_ext
11603 LIBS=$ac_check_soname_save_LIBS
11605 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11607 $as_echo "not found" >&6; }
11609 else
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11611 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11613 cat >>confdefs.h <<_ACEOF
11614 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11615 _ACEOF
11620 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11621 case "x$with_gsm" in
11622 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11623 xno) ;;
11624 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11625 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11626 esac
11629 if test "$ac_cv_header_jpeglib_h" = "yes"
11630 then
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11632 $as_echo_n "checking for -ljpeg... " >&6; }
11633 if ${ac_cv_lib_soname_jpeg+:} false; then :
11634 $as_echo_n "(cached) " >&6
11635 else
11636 ac_check_soname_save_LIBS=$LIBS
11637 LIBS="-ljpeg $LIBS"
11638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h. */
11641 /* Override any GCC internal prototype to avoid an error.
11642 Use char because int might match the return type of a GCC
11643 builtin and then its argument prototype would still apply. */
11644 #ifdef __cplusplus
11645 extern "C"
11646 #endif
11647 char jpeg_start_decompress ();
11649 main ()
11651 return jpeg_start_decompress ();
11653 return 0;
11655 _ACEOF
11656 if ac_fn_c_try_link "$LINENO"; then :
11657 case "$LIBEXT" in
11658 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11659 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'` ;;
11660 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11661 if test "x$ac_cv_lib_soname_jpeg" = x; then :
11662 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11663 fi ;;
11664 esac
11666 rm -f core conftest.err conftest.$ac_objext \
11667 conftest$ac_exeext conftest.$ac_ext
11668 LIBS=$ac_check_soname_save_LIBS
11670 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11672 $as_echo "not found" >&6; }
11674 else
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11676 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11678 cat >>confdefs.h <<_ACEOF
11679 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11680 _ACEOF
11685 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11686 case "x$with_jpeg" in
11687 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11688 xno) ;;
11689 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11690 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11691 esac
11694 if test "$ac_cv_header_png_h" = "yes"
11695 then
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11697 $as_echo_n "checking for -lpng... " >&6; }
11698 if ${ac_cv_lib_soname_png+:} false; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 ac_check_soname_save_LIBS=$LIBS
11702 LIBS="-lpng -lm -lz $LIBS"
11703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11704 /* end confdefs.h. */
11706 /* Override any GCC internal prototype to avoid an error.
11707 Use char because int might match the return type of a GCC
11708 builtin and then its argument prototype would still apply. */
11709 #ifdef __cplusplus
11710 extern "C"
11711 #endif
11712 char png_create_read_struct ();
11714 main ()
11716 return png_create_read_struct ();
11718 return 0;
11720 _ACEOF
11721 if ac_fn_c_try_link "$LINENO"; then :
11722 case "$LIBEXT" in
11723 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11724 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'` ;;
11725 *) ac_cv_lib_soname_png=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\\[\\(libpng[0-9]*\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11726 if test "x$ac_cv_lib_soname_png" = x; then :
11727 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11728 fi ;;
11729 esac
11731 rm -f core conftest.err conftest.$ac_objext \
11732 conftest$ac_exeext conftest.$ac_ext
11733 LIBS=$ac_check_soname_save_LIBS
11735 if test "x$ac_cv_lib_soname_png" = "x"; then :
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11737 $as_echo "not found" >&6; }
11739 else
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11741 $as_echo "$ac_cv_lib_soname_png" >&6; }
11743 cat >>confdefs.h <<_ACEOF
11744 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11745 _ACEOF
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11750 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11751 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11752 $as_echo_n "(cached) " >&6
11753 else
11754 ac_check_lib_save_LIBS=$LIBS
11755 LIBS="-lpng -lm -lz $LIBS"
11756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757 /* end confdefs.h. */
11759 /* Override any GCC internal prototype to avoid an error.
11760 Use char because int might match the return type of a GCC
11761 builtin and then its argument prototype would still apply. */
11762 #ifdef __cplusplus
11763 extern "C"
11764 #endif
11765 char png_set_expand_gray_1_2_4_to_8 ();
11767 main ()
11769 return png_set_expand_gray_1_2_4_to_8 ();
11771 return 0;
11773 _ACEOF
11774 if ac_fn_c_try_link "$LINENO"; then :
11775 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11776 else
11777 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11779 rm -f core conftest.err conftest.$ac_objext \
11780 conftest$ac_exeext conftest.$ac_ext
11781 LIBS=$ac_check_lib_save_LIBS
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11784 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11785 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11787 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11792 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11793 then
11794 ac_save_CPPFLAGS="$CPPFLAGS"
11795 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11796 $as_unset ac_cv_header_png_h
11797 for ac_header in png.h
11798 do :
11799 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11800 if test "x$ac_cv_header_png_h" = xyes; then :
11801 cat >>confdefs.h <<_ACEOF
11802 #define HAVE_PNG_H 1
11803 _ACEOF
11807 done
11809 CPPFLAGS="$ac_save_CPPFLAGS"
11810 if test "$ac_cv_header_png_h" = "yes"
11811 then
11812 PNGINCL="$X_CFLAGS"
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11815 $as_echo_n "checking for -lpng... " >&6; }
11816 if ${ac_cv_lib_soname_png+:} false; then :
11817 $as_echo_n "(cached) " >&6
11818 else
11819 ac_check_soname_save_LIBS=$LIBS
11820 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11822 /* end confdefs.h. */
11824 /* Override any GCC internal prototype to avoid an error.
11825 Use char because int might match the return type of a GCC
11826 builtin and then its argument prototype would still apply. */
11827 #ifdef __cplusplus
11828 extern "C"
11829 #endif
11830 char png_create_read_struct ();
11832 main ()
11834 return png_create_read_struct ();
11836 return 0;
11838 _ACEOF
11839 if ac_fn_c_try_link "$LINENO"; then :
11840 case "$LIBEXT" in
11841 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11842 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'` ;;
11843 *) ac_cv_lib_soname_png=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\\[\\(libpng[0-9]*\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11844 if test "x$ac_cv_lib_soname_png" = x; then :
11845 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11846 fi ;;
11847 esac
11849 rm -f core conftest.err conftest.$ac_objext \
11850 conftest$ac_exeext conftest.$ac_ext
11851 LIBS=$ac_check_soname_save_LIBS
11853 if test "x$ac_cv_lib_soname_png" = "x"; then :
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11855 $as_echo "not found" >&6; }
11857 else
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11859 $as_echo "$ac_cv_lib_soname_png" >&6; }
11861 cat >>confdefs.h <<_ACEOF
11862 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11863 _ACEOF
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11868 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11869 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11872 ac_check_lib_save_LIBS=$LIBS
11873 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11877 /* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11880 #ifdef __cplusplus
11881 extern "C"
11882 #endif
11883 char png_set_expand_gray_1_2_4_to_8 ();
11885 main ()
11887 return png_set_expand_gray_1_2_4_to_8 ();
11889 return 0;
11891 _ACEOF
11892 if ac_fn_c_try_link "$LINENO"; then :
11893 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11894 else
11895 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11897 rm -f core conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
11899 LIBS=$ac_check_lib_save_LIBS
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11902 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11903 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11904 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11910 if test "x$ac_cv_lib_soname_png" = "x"; then :
11911 case "x$with_png" in
11912 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11913 xno) ;;
11914 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11915 This is an error since --with-png was requested." "$LINENO" 5 ;;
11916 esac
11919 if test "$ac_cv_header_tiffio_h" = "yes"
11920 then
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11922 $as_echo_n "checking for -ltiff... " >&6; }
11923 if ${ac_cv_lib_soname_tiff+:} false; then :
11924 $as_echo_n "(cached) " >&6
11925 else
11926 ac_check_soname_save_LIBS=$LIBS
11927 LIBS="-ltiff $LIBS"
11928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h. */
11931 /* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11934 #ifdef __cplusplus
11935 extern "C"
11936 #endif
11937 char TIFFClientOpen ();
11939 main ()
11941 return TIFFClientOpen ();
11943 return 0;
11945 _ACEOF
11946 if ac_fn_c_try_link "$LINENO"; then :
11947 case "$LIBEXT" in
11948 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11949 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'` ;;
11950 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11951 if test "x$ac_cv_lib_soname_tiff" = x; then :
11952 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11953 fi ;;
11954 esac
11956 rm -f core conftest.err conftest.$ac_objext \
11957 conftest$ac_exeext conftest.$ac_ext
11958 LIBS=$ac_check_soname_save_LIBS
11960 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11962 $as_echo "not found" >&6; }
11964 else
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11966 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11968 cat >>confdefs.h <<_ACEOF
11969 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11970 _ACEOF
11975 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11976 case "x$with_tiff" in
11977 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11978 xno) ;;
11979 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11980 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11981 esac
11984 if test "$ac_cv_header_mpg123_h" = "yes"
11985 then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11987 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11988 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11989 $as_echo_n "(cached) " >&6
11990 else
11991 ac_check_lib_save_LIBS=$LIBS
11992 LIBS="-lmpg123 $LIBS"
11993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h. */
11996 /* Override any GCC internal prototype to avoid an error.
11997 Use char because int might match the return type of a GCC
11998 builtin and then its argument prototype would still apply. */
11999 #ifdef __cplusplus
12000 extern "C"
12001 #endif
12002 char mpg123_feed ();
12004 main ()
12006 return mpg123_feed ();
12008 return 0;
12010 _ACEOF
12011 if ac_fn_c_try_link "$LINENO"; then :
12012 ac_cv_lib_mpg123_mpg123_feed=yes
12013 else
12014 ac_cv_lib_mpg123_mpg123_feed=no
12016 rm -f core conftest.err conftest.$ac_objext \
12017 conftest$ac_exeext conftest.$ac_ext
12018 LIBS=$ac_check_lib_save_LIBS
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
12021 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
12022 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
12023 LIBMPG123="-lmpg123"
12028 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
12029 case "x$with_mpg123" in
12030 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
12031 xno) ;;
12032 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
12033 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
12034 esac
12036 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}
12038 if test "$ac_cv_header_AL_al_h" = "yes"
12039 then
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
12041 $as_echo_n "checking for -lopenal... " >&6; }
12042 if ${ac_cv_lib_soname_openal+:} false; then :
12043 $as_echo_n "(cached) " >&6
12044 else
12045 ac_check_soname_save_LIBS=$LIBS
12046 LIBS="-lopenal $LIBS"
12047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12048 /* end confdefs.h. */
12050 /* Override any GCC internal prototype to avoid an error.
12051 Use char because int might match the return type of a GCC
12052 builtin and then its argument prototype would still apply. */
12053 #ifdef __cplusplus
12054 extern "C"
12055 #endif
12056 char alGetSource3i ();
12058 main ()
12060 return alGetSource3i ();
12062 return 0;
12064 _ACEOF
12065 if ac_fn_c_try_link "$LINENO"; then :
12066 case "$LIBEXT" in
12067 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12068 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'` ;;
12069 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12070 if test "x$ac_cv_lib_soname_openal" = x; then :
12071 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12072 fi ;;
12073 esac
12075 rm -f core conftest.err conftest.$ac_objext \
12076 conftest$ac_exeext conftest.$ac_ext
12077 LIBS=$ac_check_soname_save_LIBS
12079 if test "x$ac_cv_lib_soname_openal" = "x"; then :
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12081 $as_echo "not found" >&6; }
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
12085 $as_echo "$ac_cv_lib_soname_openal" >&6; }
12087 cat >>confdefs.h <<_ACEOF
12088 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
12089 _ACEOF
12091 LIBOPENAL="-lopenal"
12093 ac_cv_lib_openal=yes
12095 cat >>confdefs.h <<_ACEOF
12096 #define HAVE_OPENAL 1
12097 _ACEOF
12101 if test "x$ac_cv_lib_openal" != xyes; then :
12102 case "x$with_openal" in
12103 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
12104 xno) ;;
12105 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
12106 This is an error since --with-openal was requested." "$LINENO" 5 ;;
12107 esac
12109 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
12111 if test "$ac_cv_header_kstat_h" = "yes"
12112 then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12114 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12115 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12116 $as_echo_n "(cached) " >&6
12117 else
12118 ac_check_lib_save_LIBS=$LIBS
12119 LIBS="-lkstat $LIBS"
12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12121 /* end confdefs.h. */
12123 /* Override any GCC internal prototype to avoid an error.
12124 Use char because int might match the return type of a GCC
12125 builtin and then its argument prototype would still apply. */
12126 #ifdef __cplusplus
12127 extern "C"
12128 #endif
12129 char kstat_open ();
12131 main ()
12133 return kstat_open ();
12135 return 0;
12137 _ACEOF
12138 if ac_fn_c_try_link "$LINENO"; then :
12139 ac_cv_lib_kstat_kstat_open=yes
12140 else
12141 ac_cv_lib_kstat_kstat_open=no
12143 rm -f core conftest.err conftest.$ac_objext \
12144 conftest$ac_exeext conftest.$ac_ext
12145 LIBS=$ac_check_lib_save_LIBS
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12148 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12149 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12151 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12153 LIBKSTAT="-lkstat"
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12160 $as_echo_n "checking for -lodbc... " >&6; }
12161 if ${ac_cv_lib_soname_odbc+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 ac_check_soname_save_LIBS=$LIBS
12165 LIBS="-lodbc $LIBS"
12166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h. */
12169 /* Override any GCC internal prototype to avoid an error.
12170 Use char because int might match the return type of a GCC
12171 builtin and then its argument prototype would still apply. */
12172 #ifdef __cplusplus
12173 extern "C"
12174 #endif
12175 char SQLConnect ();
12177 main ()
12179 return SQLConnect ();
12181 return 0;
12183 _ACEOF
12184 if ac_fn_c_try_link "$LINENO"; then :
12185 case "$LIBEXT" in
12186 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12187 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'` ;;
12188 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12189 if test "x$ac_cv_lib_soname_odbc" = x; then :
12190 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12191 fi ;;
12192 esac
12194 rm -f core conftest.err conftest.$ac_objext \
12195 conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_soname_save_LIBS
12198 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12200 $as_echo "not found" >&6; }
12201 cat >>confdefs.h <<_ACEOF
12202 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12203 _ACEOF
12205 else
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12207 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12209 cat >>confdefs.h <<_ACEOF
12210 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12211 _ACEOF
12216 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12217 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12218 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
12219 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12221 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
12222 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
12223 "x$with_alsa$with_coreaudio$with_oss" != xnonono
12224 then
12225 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12229 EXTRACFLAGS=""
12231 if test "x${GCC}" = "xyes"
12232 then
12233 EXTRACFLAGS="-Wall -pipe"
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12236 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12237 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12238 $as_echo_n "(cached) " >&6
12239 else
12240 if test "$cross_compiling" = yes; then :
12241 ac_cv_c_gcc_strength_bug="yes"
12242 else
12243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12244 /* end confdefs.h. */
12245 int L[4] = {0,1,2,3};
12247 main ()
12249 static int Array[3];
12250 unsigned int B = 3;
12251 int i;
12252 for(i=0; i<B; i++) Array[i] = i - 3;
12253 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12254 L[i] = 4;
12255 return (Array[1] != -2 || L[2] != 3)
12257 return 0;
12259 _ACEOF
12260 if ac_fn_c_try_run "$LINENO"; then :
12261 ac_cv_c_gcc_strength_bug="no"
12262 else
12263 ac_cv_c_gcc_strength_bug="yes"
12265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12266 conftest.$ac_objext conftest.beam conftest.$ac_ext
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12271 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12272 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12273 then
12274 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12278 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12279 if ${ac_cv_cflags__fno_builtin+:} false; then :
12280 $as_echo_n "(cached) " >&6
12281 else
12282 ac_wine_try_cflags_saved=$CFLAGS
12283 CFLAGS="$CFLAGS -fno-builtin"
12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h. */
12286 int main(int argc, char **argv) { return 0; }
12287 _ACEOF
12288 if ac_fn_c_try_link "$LINENO"; then :
12289 ac_cv_cflags__fno_builtin=yes
12290 else
12291 ac_cv_cflags__fno_builtin=no
12293 rm -f core conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12295 CFLAGS=$ac_wine_try_cflags_saved
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12298 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12299 if test $ac_cv_cflags__fno_builtin = yes; then :
12300 BUILTINFLAG="-fno-builtin"
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12304 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12305 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12306 $as_echo_n "(cached) " >&6
12307 else
12308 ac_wine_try_cflags_saved=$CFLAGS
12309 CFLAGS="$CFLAGS -fno-strict-aliasing"
12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12312 int main(int argc, char **argv) { return 0; }
12313 _ACEOF
12314 if ac_fn_c_try_link "$LINENO"; then :
12315 ac_cv_cflags__fno_strict_aliasing=yes
12316 else
12317 ac_cv_cflags__fno_strict_aliasing=no
12319 rm -f core conftest.err conftest.$ac_objext \
12320 conftest$ac_exeext conftest.$ac_ext
12321 CFLAGS=$ac_wine_try_cflags_saved
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12324 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12325 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12326 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12329 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12330 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12331 $as_echo_n "(cached) " >&6
12332 else
12333 ac_wine_try_cflags_saved=$CFLAGS
12334 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h. */
12337 int main(int argc, char **argv) { return 0; }
12338 _ACEOF
12339 if ac_fn_c_try_link "$LINENO"; then :
12340 ac_cv_cflags__Wdeclaration_after_statement=yes
12341 else
12342 ac_cv_cflags__Wdeclaration_after_statement=no
12344 rm -f core conftest.err conftest.$ac_objext \
12345 conftest$ac_exeext conftest.$ac_ext
12346 CFLAGS=$ac_wine_try_cflags_saved
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12349 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12350 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12351 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12354 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12355 if ${ac_cv_cflags__Wempty_body+:} false; then :
12356 $as_echo_n "(cached) " >&6
12357 else
12358 ac_wine_try_cflags_saved=$CFLAGS
12359 CFLAGS="$CFLAGS -Wempty-body"
12360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12361 /* end confdefs.h. */
12362 int main(int argc, char **argv) { return 0; }
12363 _ACEOF
12364 if ac_fn_c_try_link "$LINENO"; then :
12365 ac_cv_cflags__Wempty_body=yes
12366 else
12367 ac_cv_cflags__Wempty_body=no
12369 rm -f core conftest.err conftest.$ac_objext \
12370 conftest$ac_exeext conftest.$ac_ext
12371 CFLAGS=$ac_wine_try_cflags_saved
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12374 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12375 if test $ac_cv_cflags__Wempty_body = yes; then :
12376 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12379 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12380 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12381 $as_echo_n "(cached) " >&6
12382 else
12383 ac_wine_try_cflags_saved=$CFLAGS
12384 CFLAGS="$CFLAGS -Wignored-qualifiers"
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h. */
12387 int main(int argc, char **argv) { return 0; }
12388 _ACEOF
12389 if ac_fn_c_try_link "$LINENO"; then :
12390 ac_cv_cflags__Wignored_qualifiers=yes
12391 else
12392 ac_cv_cflags__Wignored_qualifiers=no
12394 rm -f core conftest.err conftest.$ac_objext \
12395 conftest$ac_exeext conftest.$ac_ext
12396 CFLAGS=$ac_wine_try_cflags_saved
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12399 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12400 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12401 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12404 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12405 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 ac_wine_try_cflags_saved=$CFLAGS
12409 CFLAGS="$CFLAGS -Wstrict-prototypes"
12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h. */
12412 int main(int argc, char **argv) { return 0; }
12413 _ACEOF
12414 if ac_fn_c_try_link "$LINENO"; then :
12415 ac_cv_cflags__Wstrict_prototypes=yes
12416 else
12417 ac_cv_cflags__Wstrict_prototypes=no
12419 rm -f core conftest.err conftest.$ac_objext \
12420 conftest$ac_exeext conftest.$ac_ext
12421 CFLAGS=$ac_wine_try_cflags_saved
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12424 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12425 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12426 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12429 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12430 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12431 $as_echo_n "(cached) " >&6
12432 else
12433 ac_wine_try_cflags_saved=$CFLAGS
12434 CFLAGS="$CFLAGS -Wtype-limits"
12435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436 /* end confdefs.h. */
12437 int main(int argc, char **argv) { return 0; }
12438 _ACEOF
12439 if ac_fn_c_try_link "$LINENO"; then :
12440 ac_cv_cflags__Wtype_limits=yes
12441 else
12442 ac_cv_cflags__Wtype_limits=no
12444 rm -f core conftest.err conftest.$ac_objext \
12445 conftest$ac_exeext conftest.$ac_ext
12446 CFLAGS=$ac_wine_try_cflags_saved
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12449 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12450 if test $ac_cv_cflags__Wtype_limits = yes; then :
12451 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12454 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12455 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12456 $as_echo_n "(cached) " >&6
12457 else
12458 ac_wine_try_cflags_saved=$CFLAGS
12459 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h. */
12462 int main(int argc, char **argv) { return 0; }
12463 _ACEOF
12464 if ac_fn_c_try_link "$LINENO"; then :
12465 ac_cv_cflags__Wunused_but_set_parameter=yes
12466 else
12467 ac_cv_cflags__Wunused_but_set_parameter=no
12469 rm -f core conftest.err conftest.$ac_objext \
12470 conftest$ac_exeext conftest.$ac_ext
12471 CFLAGS=$ac_wine_try_cflags_saved
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12474 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12475 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12476 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12479 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12480 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12481 $as_echo_n "(cached) " >&6
12482 else
12483 ac_wine_try_cflags_saved=$CFLAGS
12484 CFLAGS="$CFLAGS -Wwrite-strings"
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h. */
12487 int main(int argc, char **argv) { return 0; }
12488 _ACEOF
12489 if ac_fn_c_try_link "$LINENO"; then :
12490 ac_cv_cflags__Wwrite_strings=yes
12491 else
12492 ac_cv_cflags__Wwrite_strings=no
12494 rm -f core conftest.err conftest.$ac_objext \
12495 conftest$ac_exeext conftest.$ac_ext
12496 CFLAGS=$ac_wine_try_cflags_saved
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12499 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12500 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12501 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12504 for ac_flag in $CFLAGS; do
12505 case $ac_flag in
12506 -g) case $host_os in
12507 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
12508 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
12509 if ${ac_cv_cflags__gstabsp+:} false; then :
12510 $as_echo_n "(cached) " >&6
12511 else
12512 ac_wine_try_cflags_saved=$CFLAGS
12513 CFLAGS="$CFLAGS -gstabs+"
12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h. */
12516 int main(int argc, char **argv) { return 0; }
12517 _ACEOF
12518 if ac_fn_c_try_link "$LINENO"; then :
12519 ac_cv_cflags__gstabsp=yes
12520 else
12521 ac_cv_cflags__gstabsp=no
12523 rm -f core conftest.err conftest.$ac_objext \
12524 conftest$ac_exeext conftest.$ac_ext
12525 CFLAGS=$ac_wine_try_cflags_saved
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
12528 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
12529 if test $ac_cv_cflags__gstabsp = yes; then :
12530 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12531 fi ;;
12532 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
12533 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
12534 if ${ac_cv_cflags__gdwarf_2+:} false; then :
12535 $as_echo_n "(cached) " >&6
12536 else
12537 ac_wine_try_cflags_saved=$CFLAGS
12538 CFLAGS="$CFLAGS -gdwarf-2"
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12541 int main(int argc, char **argv) { return 0; }
12542 _ACEOF
12543 if ac_fn_c_try_link "$LINENO"; then :
12544 ac_cv_cflags__gdwarf_2=yes
12545 else
12546 ac_cv_cflags__gdwarf_2=no
12548 rm -f core conftest.err conftest.$ac_objext \
12549 conftest$ac_exeext conftest.$ac_ext
12550 CFLAGS=$ac_wine_try_cflags_saved
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
12553 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
12554 if test $ac_cv_cflags__gdwarf_2 = yes; then :
12555 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
12558 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
12559 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 ac_wine_try_cflags_saved=$CFLAGS
12563 CFLAGS="$CFLAGS -gstrict-dwarf"
12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12566 int main(int argc, char **argv) { return 0; }
12567 _ACEOF
12568 if ac_fn_c_try_link "$LINENO"; then :
12569 ac_cv_cflags__gstrict_dwarf=yes
12570 else
12571 ac_cv_cflags__gstrict_dwarf=no
12573 rm -f core conftest.err conftest.$ac_objext \
12574 conftest$ac_exeext conftest.$ac_ext
12575 CFLAGS=$ac_wine_try_cflags_saved
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
12578 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
12579 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
12580 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
12581 fi ;;
12582 esac ;;
12583 esac
12584 done
12586 case $host_cpu in
12587 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12588 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12589 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12590 $as_echo_n "(cached) " >&6
12591 else
12592 ac_wine_try_cflags_saved=$CFLAGS
12593 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596 int main(int argc, char **argv) { return 0; }
12597 _ACEOF
12598 if ac_fn_c_try_link "$LINENO"; then :
12599 ac_cv_cflags__fno_omit_frame_pointer=yes
12600 else
12601 ac_cv_cflags__fno_omit_frame_pointer=no
12603 rm -f core conftest.err conftest.$ac_objext \
12604 conftest$ac_exeext conftest.$ac_ext
12605 CFLAGS=$ac_wine_try_cflags_saved
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12608 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12609 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12610 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12611 fi ;;
12612 esac
12614 case $host in
12615 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12616 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12617 if ${ac_cv_cflags__Wno_format+:} false; then :
12618 $as_echo_n "(cached) " >&6
12619 else
12620 ac_wine_try_cflags_saved=$CFLAGS
12621 CFLAGS="$CFLAGS -Wno-format"
12622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h. */
12624 int main(int argc, char **argv) { return 0; }
12625 _ACEOF
12626 if ac_fn_c_try_link "$LINENO"; then :
12627 ac_cv_cflags__Wno_format=yes
12628 else
12629 ac_cv_cflags__Wno_format=no
12631 rm -f core conftest.err conftest.$ac_objext \
12632 conftest$ac_exeext conftest.$ac_ext
12633 CFLAGS=$ac_wine_try_cflags_saved
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12636 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12637 if test $ac_cv_cflags__Wno_format = yes; then :
12638 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12639 fi ;;
12640 esac
12642 saved_CFLAGS="$CFLAGS"
12643 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12645 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12646 if ${ac_cv_c_string_h_warnings+:} false; then :
12647 $as_echo_n "(cached) " >&6
12648 else
12649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650 /* end confdefs.h. */
12651 #include <string.h>
12653 main ()
12657 return 0;
12659 _ACEOF
12660 if ac_fn_c_try_compile "$LINENO"; then :
12661 ac_cv_c_string_h_warnings=no
12662 else
12663 ac_cv_c_string_h_warnings=yes
12665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12668 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12669 CFLAGS="$saved_CFLAGS"
12670 if test "$ac_cv_c_string_h_warnings" = "no"
12671 then
12672 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12675 saved_CFLAGS="$CFLAGS"
12676 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12678 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12679 if ${ac_cv_c_logicalop_noisy+:} false; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683 /* end confdefs.h. */
12684 #include <string.h>
12686 main ()
12688 char*f(const char *h,char n) {return strchr(h,n);}
12690 return 0;
12692 _ACEOF
12693 if ac_fn_c_try_compile "$LINENO"; then :
12694 ac_cv_c_logicalop_noisy=no
12695 else
12696 ac_cv_c_logicalop_noisy=yes
12698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12701 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12702 CFLAGS="$saved_CFLAGS"
12703 if test "$ac_cv_c_logicalop_noisy" = "no"
12704 then
12705 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12708 if test "x$enable_maintainer_mode" = "xyes"
12709 then
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12711 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12712 if ${ac_cv_cflags__Werror+:} false; then :
12713 $as_echo_n "(cached) " >&6
12714 else
12715 ac_wine_try_cflags_saved=$CFLAGS
12716 CFLAGS="$CFLAGS -Werror"
12717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12718 /* end confdefs.h. */
12719 int main(int argc, char **argv) { return 0; }
12720 _ACEOF
12721 if ac_fn_c_try_link "$LINENO"; then :
12722 ac_cv_cflags__Werror=yes
12723 else
12724 ac_cv_cflags__Werror=no
12726 rm -f core conftest.err conftest.$ac_objext \
12727 conftest$ac_exeext conftest.$ac_ext
12728 CFLAGS=$ac_wine_try_cflags_saved
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12731 $as_echo "$ac_cv_cflags__Werror" >&6; }
12732 if test $ac_cv_cflags__Werror = yes; then :
12733 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12737 saved_CFLAGS="$CFLAGS"
12738 CFLAGS="$CFLAGS -Werror"
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12740 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12741 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12742 $as_echo_n "(cached) " >&6
12743 else
12744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12745 /* end confdefs.h. */
12746 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12748 main ()
12752 return 0;
12754 _ACEOF
12755 if ac_fn_c_try_compile "$LINENO"; then :
12756 ac_cv_have_ms_hook_prologue="yes"
12757 else
12758 ac_cv_have_ms_hook_prologue="no"
12760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12763 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12764 CFLAGS="$saved_CFLAGS"
12765 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12766 then
12768 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12770 else
12771 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12778 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12779 if ${ac_cv_c_fortify_enabled+:} false; then :
12780 $as_echo_n "(cached) " >&6
12781 else
12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784 #include <string.h>
12786 main ()
12788 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12789 #error Fortify enabled
12790 #endif
12792 return 0;
12794 _ACEOF
12795 if ac_fn_c_try_compile "$LINENO"; then :
12796 ac_cv_c_fortify_enabled=no
12797 else
12798 ac_cv_c_fortify_enabled=yes
12800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12803 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12804 if test "$ac_cv_c_fortify_enabled" = yes
12805 then
12806 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12811 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12812 if ${ac_cv_c_extern_prefix+:} false; then :
12813 $as_echo_n "(cached) " >&6
12814 else
12815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h. */
12817 extern int ac_test;
12819 main ()
12821 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12823 return 0;
12825 _ACEOF
12826 if ac_fn_c_try_link "$LINENO"; then :
12827 ac_cv_c_extern_prefix="yes"
12828 else
12829 ac_cv_c_extern_prefix="no"
12831 rm -f core conftest.err conftest.$ac_objext \
12832 conftest$ac_exeext conftest.$ac_ext
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12835 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12837 case $host_cpu in
12838 *i[3456789]86*)
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12840 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12841 if ${ac_cv_c_stdcall_suffix+:} false; then :
12842 $as_echo_n "(cached) " >&6
12843 else
12844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12846 #ifndef _MSC_VER
12847 #define __stdcall __attribute__((__stdcall__))
12848 #endif
12849 int __stdcall ac_test(int i) { return i; }
12851 main ()
12853 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12855 return 0;
12857 _ACEOF
12858 if ac_fn_c_try_link "$LINENO"; then :
12859 ac_cv_c_stdcall_suffix="yes"
12860 else
12861 ac_cv_c_stdcall_suffix="no"
12863 rm -f core conftest.err conftest.$ac_objext \
12864 conftest$ac_exeext conftest.$ac_ext
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12867 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12868 *) ac_cv_c_stdcall_suffix="no" ;;
12869 esac
12872 if test "$ac_cv_c_extern_prefix" = "yes"
12873 then
12874 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12876 asm_name_prefix="_"
12877 else
12878 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12880 asm_name_prefix=""
12884 if test "$ac_cv_c_stdcall_suffix" = "yes"
12885 then
12886 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12888 else
12889 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12895 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12896 if ${ac_cv_asm_func_def+:} false; then :
12897 $as_echo_n "(cached) " >&6
12898 else
12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900 /* end confdefs.h. */
12903 main ()
12905 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12907 return 0;
12909 _ACEOF
12910 if ac_fn_c_try_link "$LINENO"; then :
12911 ac_cv_asm_func_def=".def"
12912 else
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12917 main ()
12919 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12921 return 0;
12923 _ACEOF
12924 if ac_fn_c_try_link "$LINENO"; then :
12925 ac_cv_asm_func_def=".type @function"
12926 else
12927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12928 /* end confdefs.h. */
12931 main ()
12933 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12935 return 0;
12937 _ACEOF
12938 if ac_fn_c_try_link "$LINENO"; then :
12939 ac_cv_asm_func_def=".type 2"
12940 else
12941 ac_cv_asm_func_def="unknown"
12943 rm -f core conftest.err conftest.$ac_objext \
12944 conftest$ac_exeext conftest.$ac_ext
12946 rm -f core conftest.err conftest.$ac_objext \
12947 conftest$ac_exeext conftest.$ac_ext
12949 rm -f core conftest.err conftest.$ac_objext \
12950 conftest$ac_exeext conftest.$ac_ext
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12953 $as_echo "$ac_cv_asm_func_def" >&6; }
12956 case "$ac_cv_asm_func_def" in
12957 ".def")
12958 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12960 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12961 ".type @function")
12962 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12964 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12965 ".type 2")
12966 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12968 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12970 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12972 asm_func_header="" ;;
12973 esac
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12976 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12977 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12978 $as_echo_n "(cached) " >&6
12979 else
12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h. */
12982 asm(".text\n\t.long 0");
12984 main ()
12988 return 0;
12990 _ACEOF
12991 if ac_fn_c_try_compile "$LINENO"; then :
12992 ac_cv_c_asm_outside_funcs="yes"
12993 else
12994 ac_cv_c_asm_outside_funcs="no"
12996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12999 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
13002 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
13003 if ${ac_cv_c_dot_previous+:} false; then :
13004 $as_echo_n "(cached) " >&6
13005 else
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13010 main ()
13012 asm(".text\nac_test:\t.long 0\n\t.previous");
13014 return 0;
13016 _ACEOF
13017 if ac_fn_c_try_link "$LINENO"; then :
13018 ac_cv_c_dot_previous="yes"
13019 else
13020 ac_cv_c_dot_previous="no"
13022 rm -f core conftest.err conftest.$ac_objext \
13023 conftest$ac_exeext conftest.$ac_ext
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
13026 $as_echo "$ac_cv_c_dot_previous" >&6; }
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
13029 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
13030 if ${ac_cv_c_cfi_support+:} false; then :
13031 $as_echo_n "(cached) " >&6
13032 else
13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h. */
13035 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
13037 main ()
13041 return 0;
13043 _ACEOF
13044 if ac_fn_c_try_compile "$LINENO"; then :
13045 ac_cv_c_cfi_support="yes"
13046 else
13047 ac_cv_c_cfi_support="no"
13049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
13052 $as_echo "$ac_cv_c_cfi_support" >&6; }
13054 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
13055 asm_func_trailer=""
13056 if test "$ac_cv_c_dot_previous" = "yes"
13057 then
13058 asm_func_trailer="\\n\\t.previous"
13060 if test "$ac_cv_c_cfi_support" = "yes"
13061 then
13062 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
13063 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
13065 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
13067 UNWINDFLAGS=-fasynchronous-unwind-tables
13069 else
13070 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
13074 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
13077 if test "$ac_cv_c_asm_outside_funcs" = "yes"
13078 then
13079 cat >>confdefs.h <<_ACEOF
13080 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
13081 _ACEOF
13083 else
13084 cat >>confdefs.h <<_ACEOF
13085 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
13086 _ACEOF
13090 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
13093 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
13097 LDPATH=""
13099 case $build_os in
13100 cygwin*|mingw32*)
13101 TOOLSEXT=".exe"
13103 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
13105 darwin*|macosx*)
13108 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
13110 esac
13112 case $host_os in
13113 mingw32*)
13114 CRTLIBS="-lmsvcrt"
13116 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
13119 esac
13121 MAIN_BINARY="wine"
13123 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
13125 case $host_os in
13126 linux*)
13127 case $host_cpu in
13128 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
13130 x86_64*) EXTRA_BINARIES="wine64-preloader"
13132 esac
13134 esac
13137 ac_save_CFLAGS="$CFLAGS"
13138 CFLAGS="$CFLAGS $BUILTINFLAG"
13139 for ac_func in \
13140 _finite \
13141 _isnan \
13142 _pclose \
13143 _popen \
13144 _snprintf \
13145 _spawnvp \
13146 _strdup \
13147 _stricmp \
13148 _strnicmp \
13149 _strtoi64 \
13150 _strtoui64 \
13151 _vsnprintf \
13152 asctime_r \
13153 chsize \
13154 dlopen \
13155 epoll_create \
13156 ffs \
13157 finite \
13158 fnmatch \
13159 fork \
13160 fpclass \
13161 fstatfs \
13162 fstatvfs \
13163 ftruncate \
13164 futimens \
13165 futimes \
13166 futimesat \
13167 getattrlist \
13168 getdirentries \
13169 getopt_long_only \
13170 getpwuid \
13171 gettimeofday \
13172 getuid \
13173 kqueue \
13174 lstat \
13175 memmove \
13176 mmap \
13177 pclose \
13178 pipe2 \
13179 poll \
13180 popen \
13181 port_create \
13182 prctl \
13183 pread \
13184 pwrite \
13185 readdir \
13186 readlink \
13187 sched_yield \
13188 select \
13189 setproctitle \
13190 setrlimit \
13191 settimeofday \
13192 sigaltstack \
13193 sigprocmask \
13194 snprintf \
13195 spawnvp \
13196 statfs \
13197 statvfs \
13198 strcasecmp \
13199 strdup \
13200 strerror \
13201 strncasecmp \
13202 strtold \
13203 strtoll \
13204 strtoull \
13205 symlink \
13206 tcgetattr \
13207 thr_kill2 \
13208 timegm \
13209 usleep \
13210 vsnprintf
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 CFLAGS="$ac_save_CFLAGS"
13225 if test "$ac_cv_func_dlopen" = no
13226 then
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13228 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13229 if ${ac_cv_lib_dl_dlopen+:} false; then :
13230 $as_echo_n "(cached) " >&6
13231 else
13232 ac_check_lib_save_LIBS=$LIBS
13233 LIBS="-ldl $LIBS"
13234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13235 /* end confdefs.h. */
13237 /* Override any GCC internal prototype to avoid an error.
13238 Use char because int might match the return type of a GCC
13239 builtin and then its argument prototype would still apply. */
13240 #ifdef __cplusplus
13241 extern "C"
13242 #endif
13243 char dlopen ();
13245 main ()
13247 return dlopen ();
13249 return 0;
13251 _ACEOF
13252 if ac_fn_c_try_link "$LINENO"; then :
13253 ac_cv_lib_dl_dlopen=yes
13254 else
13255 ac_cv_lib_dl_dlopen=no
13257 rm -f core conftest.err conftest.$ac_objext \
13258 conftest$ac_exeext conftest.$ac_ext
13259 LIBS=$ac_check_lib_save_LIBS
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13262 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13263 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13264 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13265 LIBDL="-ldl"
13270 ac_wine_check_funcs_save_LIBS="$LIBS"
13271 LIBS="$LIBS $LIBDL"
13272 for ac_func in dladdr
13273 do :
13274 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
13275 if test "x$ac_cv_func_dladdr" = xyes; then :
13276 cat >>confdefs.h <<_ACEOF
13277 #define HAVE_DLADDR 1
13278 _ACEOF
13281 done
13283 LIBS="$ac_wine_check_funcs_save_LIBS"
13285 if test "$ac_cv_func_poll" = no
13286 then
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
13288 $as_echo_n "checking for poll in -lpoll... " >&6; }
13289 if ${ac_cv_lib_poll_poll+:} false; then :
13290 $as_echo_n "(cached) " >&6
13291 else
13292 ac_check_lib_save_LIBS=$LIBS
13293 LIBS="-lpoll $LIBS"
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13297 /* Override any GCC internal prototype to avoid an error.
13298 Use char because int might match the return type of a GCC
13299 builtin and then its argument prototype would still apply. */
13300 #ifdef __cplusplus
13301 extern "C"
13302 #endif
13303 char poll ();
13305 main ()
13307 return poll ();
13309 return 0;
13311 _ACEOF
13312 if ac_fn_c_try_link "$LINENO"; then :
13313 ac_cv_lib_poll_poll=yes
13314 else
13315 ac_cv_lib_poll_poll=no
13317 rm -f core conftest.err conftest.$ac_objext \
13318 conftest$ac_exeext conftest.$ac_ext
13319 LIBS=$ac_check_lib_save_LIBS
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
13322 $as_echo "$ac_cv_lib_poll_poll" >&6; }
13323 if test "x$ac_cv_lib_poll_poll" = xyes; then :
13324 $as_echo "#define HAVE_POLL 1" >>confdefs.h
13325 LIBPOLL="-lpoll"
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13332 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13333 if ${ac_cv_search_gethostbyname+:} false; then :
13334 $as_echo_n "(cached) " >&6
13335 else
13336 ac_func_search_save_LIBS=$LIBS
13337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338 /* end confdefs.h. */
13340 /* Override any GCC internal prototype to avoid an error.
13341 Use char because int might match the return type of a GCC
13342 builtin and then its argument prototype would still apply. */
13343 #ifdef __cplusplus
13344 extern "C"
13345 #endif
13346 char gethostbyname ();
13348 main ()
13350 return gethostbyname ();
13352 return 0;
13354 _ACEOF
13355 for ac_lib in '' nsl; do
13356 if test -z "$ac_lib"; then
13357 ac_res="none required"
13358 else
13359 ac_res=-l$ac_lib
13360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13362 if ac_fn_c_try_link "$LINENO"; then :
13363 ac_cv_search_gethostbyname=$ac_res
13365 rm -f core conftest.err conftest.$ac_objext \
13366 conftest$ac_exeext
13367 if ${ac_cv_search_gethostbyname+:} false; then :
13368 break
13370 done
13371 if ${ac_cv_search_gethostbyname+:} false; then :
13373 else
13374 ac_cv_search_gethostbyname=no
13376 rm conftest.$ac_ext
13377 LIBS=$ac_func_search_save_LIBS
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13380 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13381 ac_res=$ac_cv_search_gethostbyname
13382 if test "$ac_res" != no; then :
13383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13389 $as_echo_n "checking for library containing connect... " >&6; }
13390 if ${ac_cv_search_connect+:} false; then :
13391 $as_echo_n "(cached) " >&6
13392 else
13393 ac_func_search_save_LIBS=$LIBS
13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395 /* end confdefs.h. */
13397 /* Override any GCC internal prototype to avoid an error.
13398 Use char because int might match the return type of a GCC
13399 builtin and then its argument prototype would still apply. */
13400 #ifdef __cplusplus
13401 extern "C"
13402 #endif
13403 char connect ();
13405 main ()
13407 return connect ();
13409 return 0;
13411 _ACEOF
13412 for ac_lib in '' socket; do
13413 if test -z "$ac_lib"; then
13414 ac_res="none required"
13415 else
13416 ac_res=-l$ac_lib
13417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13419 if ac_fn_c_try_link "$LINENO"; then :
13420 ac_cv_search_connect=$ac_res
13422 rm -f core conftest.err conftest.$ac_objext \
13423 conftest$ac_exeext
13424 if ${ac_cv_search_connect+:} false; then :
13425 break
13427 done
13428 if ${ac_cv_search_connect+:} false; then :
13430 else
13431 ac_cv_search_connect=no
13433 rm conftest.$ac_ext
13434 LIBS=$ac_func_search_save_LIBS
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13437 $as_echo "$ac_cv_search_connect" >&6; }
13438 ac_res=$ac_cv_search_connect
13439 if test "$ac_res" != no; then :
13440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13446 $as_echo_n "checking for library containing inet_aton... " >&6; }
13447 if ${ac_cv_search_inet_aton+:} false; then :
13448 $as_echo_n "(cached) " >&6
13449 else
13450 ac_func_search_save_LIBS=$LIBS
13451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452 /* end confdefs.h. */
13454 /* Override any GCC internal prototype to avoid an error.
13455 Use char because int might match the return type of a GCC
13456 builtin and then its argument prototype would still apply. */
13457 #ifdef __cplusplus
13458 extern "C"
13459 #endif
13460 char inet_aton ();
13462 main ()
13464 return inet_aton ();
13466 return 0;
13468 _ACEOF
13469 for ac_lib in '' resolv; do
13470 if test -z "$ac_lib"; then
13471 ac_res="none required"
13472 else
13473 ac_res=-l$ac_lib
13474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13476 if ac_fn_c_try_link "$LINENO"; then :
13477 ac_cv_search_inet_aton=$ac_res
13479 rm -f core conftest.err conftest.$ac_objext \
13480 conftest$ac_exeext
13481 if ${ac_cv_search_inet_aton+:} false; then :
13482 break
13484 done
13485 if ${ac_cv_search_inet_aton+:} false; then :
13487 else
13488 ac_cv_search_inet_aton=no
13490 rm conftest.$ac_ext
13491 LIBS=$ac_func_search_save_LIBS
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13494 $as_echo "$ac_cv_search_inet_aton" >&6; }
13495 ac_res=$ac_cv_search_inet_aton
13496 if test "$ac_res" != no; then :
13497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13502 for ac_func in \
13503 getaddrinfo \
13504 getnameinfo \
13505 getnetbyname \
13506 getprotobyname \
13507 getprotobynumber \
13508 getservbyport \
13509 inet_network \
13510 inet_ntop \
13511 inet_pton \
13512 sendmsg \
13513 socketpair \
13515 do :
13516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13517 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13518 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13519 cat >>confdefs.h <<_ACEOF
13520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13521 _ACEOF
13524 done
13527 LDAPLIBS=""
13529 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13530 then
13531 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13533 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13535 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13536 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13537 $as_echo_n "(cached) " >&6
13538 else
13539 ac_check_lib_save_LIBS=$LIBS
13540 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13544 /* Override any GCC internal prototype to avoid an error.
13545 Use char because int might match the return type of a GCC
13546 builtin and then its argument prototype would still apply. */
13547 #ifdef __cplusplus
13548 extern "C"
13549 #endif
13550 char ldap_initialize ();
13552 main ()
13554 return ldap_initialize ();
13556 return 0;
13558 _ACEOF
13559 if ac_fn_c_try_link "$LINENO"; then :
13560 ac_cv_lib_ldap_r_ldap_initialize=yes
13561 else
13562 ac_cv_lib_ldap_r_ldap_initialize=no
13564 rm -f core conftest.err conftest.$ac_objext \
13565 conftest$ac_exeext conftest.$ac_ext
13566 LIBS=$ac_check_lib_save_LIBS
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13569 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13570 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13572 $as_echo_n "checking for ber_init in -llber... " >&6; }
13573 if ${ac_cv_lib_lber_ber_init+:} false; then :
13574 $as_echo_n "(cached) " >&6
13575 else
13576 ac_check_lib_save_LIBS=$LIBS
13577 LIBS="-llber $LIBPTHREAD $LIBS"
13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579 /* end confdefs.h. */
13581 /* Override any GCC internal prototype to avoid an error.
13582 Use char because int might match the return type of a GCC
13583 builtin and then its argument prototype would still apply. */
13584 #ifdef __cplusplus
13585 extern "C"
13586 #endif
13587 char ber_init ();
13589 main ()
13591 return ber_init ();
13593 return 0;
13595 _ACEOF
13596 if ac_fn_c_try_link "$LINENO"; then :
13597 ac_cv_lib_lber_ber_init=yes
13598 else
13599 ac_cv_lib_lber_ber_init=no
13601 rm -f core conftest.err conftest.$ac_objext \
13602 conftest$ac_exeext conftest.$ac_ext
13603 LIBS=$ac_check_lib_save_LIBS
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13606 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13607 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13609 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13611 LDAPLIBS="-lldap_r -llber"
13618 ac_wine_check_funcs_save_LIBS="$LIBS"
13619 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13620 for ac_func in \
13621 ldap_count_references \
13622 ldap_first_reference \
13623 ldap_next_reference \
13624 ldap_parse_reference \
13625 ldap_parse_sort_control \
13626 ldap_parse_sortresponse_control \
13627 ldap_parse_vlv_control \
13628 ldap_parse_vlvresponse_control
13629 do :
13630 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13631 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13632 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13633 cat >>confdefs.h <<_ACEOF
13634 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13635 _ACEOF
13638 done
13640 LIBS="$ac_wine_check_funcs_save_LIBS"
13642 if test "x$LDAPLIBS" = "x"; then :
13643 case "x$with_ldap" in
13644 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13645 xno) ;;
13646 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13647 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13648 esac
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13652 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13653 if ${wine_cv_one_arg_mkdir+:} false; then :
13654 $as_echo_n "(cached) " >&6
13655 else
13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h. */
13658 #include <sys/stat.h>
13660 main ()
13662 mkdir("foo");
13664 return 0;
13666 _ACEOF
13667 if ac_fn_c_try_compile "$LINENO"; then :
13668 wine_cv_one_arg_mkdir=yes
13669 else
13670 wine_cv_one_arg_mkdir=no
13672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13675 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13676 if test "$wine_cv_one_arg_mkdir" = "yes"
13677 then
13679 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13684 $as_echo_n "checking for sched_setaffinity... " >&6; }
13685 if ${wine_cv_have_sched_setaffinity+:} false; then :
13686 $as_echo_n "(cached) " >&6
13687 else
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h. */
13690 #define _GNU_SOURCE
13691 #include <sched.h>
13693 main ()
13695 sched_setaffinity(0, 0, 0);
13697 return 0;
13699 _ACEOF
13700 if ac_fn_c_try_link "$LINENO"; then :
13701 wine_cv_have_sched_setaffinity=yes
13702 else
13703 wine_cv_have_sched_setaffinity=no
13705 rm -f core conftest.err conftest.$ac_objext \
13706 conftest$ac_exeext conftest.$ac_ext
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13709 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13710 if test "$wine_cv_have_sched_setaffinity" = "yes"
13711 then
13713 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
13718 $as_echo_n "checking for fallocate... " >&6; }
13719 if ${wine_cv_have_fallocate+:} false; then :
13720 $as_echo_n "(cached) " >&6
13721 else
13722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13723 /* end confdefs.h. */
13724 #define _GNU_SOURCE
13725 #include <fcntl.h>
13727 main ()
13729 fallocate(-1, 0, 0, 0);
13731 return 0;
13733 _ACEOF
13734 if ac_fn_c_try_link "$LINENO"; then :
13735 wine_cv_have_fallocate=yes
13736 else
13737 wine_cv_have_fallocate=no
13739 rm -f core conftest.err conftest.$ac_objext \
13740 conftest$ac_exeext conftest.$ac_ext
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
13743 $as_echo "$wine_cv_have_fallocate" >&6; }
13744 if test "$wine_cv_have_fallocate" = "yes"
13745 then
13747 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13753 $as_echo_n "checking for inline... " >&6; }
13754 if ${ac_cv_c_inline+:} false; then :
13755 $as_echo_n "(cached) " >&6
13756 else
13757 ac_cv_c_inline=no
13758 for ac_kw in inline __inline__ __inline; do
13759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h. */
13761 #ifndef __cplusplus
13762 typedef int foo_t;
13763 static $ac_kw foo_t static_foo () {return 0; }
13764 $ac_kw foo_t foo () {return 0; }
13765 #endif
13767 _ACEOF
13768 if ac_fn_c_try_compile "$LINENO"; then :
13769 ac_cv_c_inline=$ac_kw
13771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13772 test "$ac_cv_c_inline" != no && break
13773 done
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13777 $as_echo "$ac_cv_c_inline" >&6; }
13779 case $ac_cv_c_inline in
13780 inline | yes) ;;
13782 case $ac_cv_c_inline in
13783 no) ac_val=;;
13784 *) ac_val=$ac_cv_c_inline;;
13785 esac
13786 cat >>confdefs.h <<_ACEOF
13787 #ifndef __cplusplus
13788 #define inline $ac_val
13789 #endif
13790 _ACEOF
13792 esac
13794 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13795 if test "x$ac_cv_type_mode_t" = xyes; then :
13797 cat >>confdefs.h <<_ACEOF
13798 #define HAVE_MODE_T 1
13799 _ACEOF
13803 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13804 if test "x$ac_cv_type_off_t" = xyes; then :
13806 cat >>confdefs.h <<_ACEOF
13807 #define HAVE_OFF_T 1
13808 _ACEOF
13812 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13813 if test "x$ac_cv_type_pid_t" = xyes; then :
13815 cat >>confdefs.h <<_ACEOF
13816 #define HAVE_PID_T 1
13817 _ACEOF
13821 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13822 if test "x$ac_cv_type_size_t" = xyes; then :
13824 cat >>confdefs.h <<_ACEOF
13825 #define HAVE_SIZE_T 1
13826 _ACEOF
13830 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13831 if test "x$ac_cv_type_ssize_t" = xyes; then :
13833 cat >>confdefs.h <<_ACEOF
13834 #define HAVE_SSIZE_T 1
13835 _ACEOF
13839 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13840 if test "x$ac_cv_type_long_long" = xyes; then :
13842 cat >>confdefs.h <<_ACEOF
13843 #define HAVE_LONG_LONG 1
13844 _ACEOF
13848 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13849 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13851 cat >>confdefs.h <<_ACEOF
13852 #define HAVE_FSBLKCNT_T 1
13853 _ACEOF
13857 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13858 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13860 cat >>confdefs.h <<_ACEOF
13861 #define HAVE_FSFILCNT_T 1
13862 _ACEOF
13867 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13868 #include <signal.h>
13870 if test "x$ac_cv_type_sigset_t" = xyes; then :
13872 cat >>confdefs.h <<_ACEOF
13873 #define HAVE_SIGSET_T 1
13874 _ACEOF
13879 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13881 if test "x$ac_cv_type_request_sense" = xyes; then :
13883 cat >>confdefs.h <<_ACEOF
13884 #define HAVE_REQUEST_SENSE 1
13885 _ACEOF
13891 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13892 #ifdef HAVE_SYS_SOCKET_H
13893 #include <sys/socket.h>
13894 #endif
13895 #ifdef HAVE_SYS_SOCKETVAR_H
13896 #include <sys/socketvar.h>
13897 #endif
13898 #ifdef HAVE_NET_ROUTE_H
13899 #include <net/route.h>
13900 #endif
13901 #ifdef HAVE_NETINET_IN_H
13902 #include <netinet/in.h>
13903 #endif
13904 #ifdef HAVE_NETINET_IN_SYSTM_H
13905 #include <netinet/in_systm.h>
13906 #endif
13907 #ifdef HAVE_NETINET_IP_H
13908 #include <netinet/ip.h>
13909 #endif
13910 #ifdef HAVE_NETINET_IN_PCB_H
13911 #include <netinet/in_pcb.h>
13912 #endif
13914 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13916 cat >>confdefs.h <<_ACEOF
13917 #define HAVE_STRUCT_XINPGEN 1
13918 _ACEOF
13924 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13925 #include <linux/input.h>
13926 #endif
13928 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13930 cat >>confdefs.h <<_ACEOF
13931 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13932 _ACEOF
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13939 $as_echo_n "checking for sigaddset... " >&6; }
13940 if ${wine_cv_have_sigaddset+:} false; then :
13941 $as_echo_n "(cached) " >&6
13942 else
13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h. */
13945 #include <signal.h>
13947 main ()
13949 sigset_t set; sigaddset(&set,SIGTERM);
13951 return 0;
13953 _ACEOF
13954 if ac_fn_c_try_link "$LINENO"; then :
13955 wine_cv_have_sigaddset=yes
13956 else
13957 wine_cv_have_sigaddset=no
13959 rm -f core conftest.err conftest.$ac_objext \
13960 conftest$ac_exeext conftest.$ac_ext
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13963 $as_echo "$wine_cv_have_sigaddset" >&6; }
13964 if test "$wine_cv_have_sigaddset" = "yes"
13965 then
13967 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13973 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13974 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13975 $as_echo_n "(cached) " >&6
13976 else
13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978 /* end confdefs.h. */
13979 #include <netdb.h>
13981 main ()
13984 char *name=0;
13985 struct hostent he;
13986 struct hostent *result;
13987 char *buf=0;
13988 int bufsize=0;
13989 int errnr;
13990 char *addr=0;
13991 int addrlen=0;
13992 int addrtype=0;
13993 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13994 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13997 return 0;
13999 _ACEOF
14000 if ac_fn_c_try_link "$LINENO"; then :
14001 wine_cv_linux_gethostbyname_r_6=yes
14002 else
14003 wine_cv_linux_gethostbyname_r_6=no
14006 rm -f core conftest.err conftest.$ac_objext \
14007 conftest$ac_exeext conftest.$ac_ext
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
14011 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
14012 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14013 then
14015 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
14019 if test "$ac_cv_header_linux_joystick_h" = "yes"
14020 then
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
14022 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
14023 if ${wine_cv_linux_joystick_22_api+:} false; then :
14024 $as_echo_n "(cached) " >&6
14025 else
14026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h. */
14029 #include <sys/ioctl.h>
14030 #include <sys/types.h>
14031 #include <linux/joystick.h>
14033 struct js_event blub;
14034 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14035 #error "no 2.2 header"
14036 #endif
14039 main ()
14041 /*empty*/
14043 return 0;
14045 _ACEOF
14046 if ac_fn_c_try_compile "$LINENO"; then :
14047 wine_cv_linux_joystick_22_api=yes
14048 else
14049 wine_cv_linux_joystick_22_api=no
14051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
14055 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
14056 if test "$wine_cv_linux_joystick_22_api" = "yes"
14057 then
14059 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
14065 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
14066 #ifdef HAVE_SYS_PARAM_H
14067 # include <sys/param.h>
14068 #endif
14069 #ifdef HAVE_SYS_MOUNT_H
14070 # include <sys/mount.h>
14071 #endif
14072 #ifdef HAVE_SYS_VFS_H
14073 # include <sys/vfs.h>
14074 #endif
14075 #ifdef HAVE_SYS_STATFS_H
14076 # include <sys/statfs.h>
14077 #endif
14079 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
14081 cat >>confdefs.h <<_ACEOF
14082 #define HAVE_STRUCT_STATFS_F_BFREE 1
14083 _ACEOF
14087 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
14088 #ifdef HAVE_SYS_PARAM_H
14089 # include <sys/param.h>
14090 #endif
14091 #ifdef HAVE_SYS_MOUNT_H
14092 # include <sys/mount.h>
14093 #endif
14094 #ifdef HAVE_SYS_VFS_H
14095 # include <sys/vfs.h>
14096 #endif
14097 #ifdef HAVE_SYS_STATFS_H
14098 # include <sys/statfs.h>
14099 #endif
14101 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
14103 cat >>confdefs.h <<_ACEOF
14104 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
14105 _ACEOF
14109 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
14110 #ifdef HAVE_SYS_PARAM_H
14111 # include <sys/param.h>
14112 #endif
14113 #ifdef HAVE_SYS_MOUNT_H
14114 # include <sys/mount.h>
14115 #endif
14116 #ifdef HAVE_SYS_VFS_H
14117 # include <sys/vfs.h>
14118 #endif
14119 #ifdef HAVE_SYS_STATFS_H
14120 # include <sys/statfs.h>
14121 #endif
14123 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
14125 cat >>confdefs.h <<_ACEOF
14126 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
14127 _ACEOF
14131 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
14132 #ifdef HAVE_SYS_PARAM_H
14133 # include <sys/param.h>
14134 #endif
14135 #ifdef HAVE_SYS_MOUNT_H
14136 # include <sys/mount.h>
14137 #endif
14138 #ifdef HAVE_SYS_VFS_H
14139 # include <sys/vfs.h>
14140 #endif
14141 #ifdef HAVE_SYS_STATFS_H
14142 # include <sys/statfs.h>
14143 #endif
14145 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
14147 cat >>confdefs.h <<_ACEOF
14148 #define HAVE_STRUCT_STATFS_F_FFREE 1
14149 _ACEOF
14153 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
14154 #ifdef HAVE_SYS_PARAM_H
14155 # include <sys/param.h>
14156 #endif
14157 #ifdef HAVE_SYS_MOUNT_H
14158 # include <sys/mount.h>
14159 #endif
14160 #ifdef HAVE_SYS_VFS_H
14161 # include <sys/vfs.h>
14162 #endif
14163 #ifdef HAVE_SYS_STATFS_H
14164 # include <sys/statfs.h>
14165 #endif
14167 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
14169 cat >>confdefs.h <<_ACEOF
14170 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
14171 _ACEOF
14175 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
14176 #ifdef HAVE_SYS_PARAM_H
14177 # include <sys/param.h>
14178 #endif
14179 #ifdef HAVE_SYS_MOUNT_H
14180 # include <sys/mount.h>
14181 #endif
14182 #ifdef HAVE_SYS_VFS_H
14183 # include <sys/vfs.h>
14184 #endif
14185 #ifdef HAVE_SYS_STATFS_H
14186 # include <sys/statfs.h>
14187 #endif
14189 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
14191 cat >>confdefs.h <<_ACEOF
14192 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
14193 _ACEOF
14199 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
14200 #include <sys/statvfs.h>
14201 #endif
14203 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
14205 cat >>confdefs.h <<_ACEOF
14206 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
14207 _ACEOF
14213 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
14214 #include <dirent.h>
14215 #endif
14217 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
14219 cat >>confdefs.h <<_ACEOF
14220 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
14221 _ACEOF
14227 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
14228 #ifdef HAVE_SYS_SOCKET_H
14229 # include <sys/socket.h>
14230 #endif
14231 #ifdef HAVE_SYS_UN_H
14232 # include <sys/un.h>
14233 #endif
14235 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
14237 cat >>confdefs.h <<_ACEOF
14238 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
14239 _ACEOF
14243 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14244 #ifdef HAVE_SYS_SOCKET_H
14245 # include <sys/socket.h>
14246 #endif
14247 #ifdef HAVE_SYS_UN_H
14248 # include <sys/un.h>
14249 #endif
14251 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14253 cat >>confdefs.h <<_ACEOF
14254 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14255 _ACEOF
14259 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
14260 #ifdef HAVE_SYS_SOCKET_H
14261 # include <sys/socket.h>
14262 #endif
14263 #ifdef HAVE_SYS_UN_H
14264 # include <sys/un.h>
14265 #endif
14267 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
14269 cat >>confdefs.h <<_ACEOF
14270 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
14271 _ACEOF
14277 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
14278 #ifdef HAVE_SCSI_SG_H
14279 #include <scsi/sg.h>
14280 #endif
14282 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
14284 cat >>confdefs.h <<_ACEOF
14285 #define HAVE_SCSIREQ_T_CMD 1
14286 _ACEOF
14290 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>
14291 #ifdef HAVE_SCSI_SG_H
14292 #include <scsi/sg.h>
14293 #endif
14295 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
14297 cat >>confdefs.h <<_ACEOF
14298 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
14299 _ACEOF
14305 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14307 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
14309 cat >>confdefs.h <<_ACEOF
14310 #define HAVE_SIGINFO_T_SI_FD 1
14311 _ACEOF
14317 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14318 #ifdef HAVE_SYS_MTIO_H
14319 #include <sys/mtio.h>
14320 #endif
14322 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14324 cat >>confdefs.h <<_ACEOF
14325 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14326 _ACEOF
14330 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14331 #ifdef HAVE_SYS_MTIO_H
14332 #include <sys/mtio.h>
14333 #endif
14335 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14337 cat >>confdefs.h <<_ACEOF
14338 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14339 _ACEOF
14343 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14344 #ifdef HAVE_SYS_MTIO_H
14345 #include <sys/mtio.h>
14346 #endif
14348 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14350 cat >>confdefs.h <<_ACEOF
14351 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14352 _ACEOF
14358 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14359 #include <getopt.h>
14360 #endif
14362 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14364 cat >>confdefs.h <<_ACEOF
14365 #define HAVE_STRUCT_OPTION_NAME 1
14366 _ACEOF
14372 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14373 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14375 cat >>confdefs.h <<_ACEOF
14376 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14377 _ACEOF
14381 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14382 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14384 cat >>confdefs.h <<_ACEOF
14385 #define HAVE_STRUCT_STAT_ST_MTIM 1
14386 _ACEOF
14390 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
14391 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
14393 cat >>confdefs.h <<_ACEOF
14394 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
14395 _ACEOF
14399 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14400 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14402 cat >>confdefs.h <<_ACEOF
14403 #define HAVE_STRUCT_STAT_ST_CTIM 1
14404 _ACEOF
14408 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
14409 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
14411 cat >>confdefs.h <<_ACEOF
14412 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
14413 _ACEOF
14417 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14418 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14420 cat >>confdefs.h <<_ACEOF
14421 #define HAVE_STRUCT_STAT_ST_ATIM 1
14422 _ACEOF
14426 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
14427 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
14429 cat >>confdefs.h <<_ACEOF
14430 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
14431 _ACEOF
14435 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
14436 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
14438 cat >>confdefs.h <<_ACEOF
14439 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
14440 _ACEOF
14444 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
14445 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
14447 cat >>confdefs.h <<_ACEOF
14448 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
14449 _ACEOF
14453 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
14454 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
14456 cat >>confdefs.h <<_ACEOF
14457 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
14458 _ACEOF
14462 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
14463 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
14465 cat >>confdefs.h <<_ACEOF
14466 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
14467 _ACEOF
14471 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
14472 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
14474 cat >>confdefs.h <<_ACEOF
14475 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
14476 _ACEOF
14482 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
14483 #include <sys/types.h>
14484 #endif
14485 #ifdef HAVE_NETINET_IN_H
14486 #include <netinet/in.h>
14487 #endif
14489 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14491 cat >>confdefs.h <<_ACEOF
14492 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14493 _ACEOF
14499 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14500 #include <sys/types.h>
14501 #endif
14502 #ifdef HAVE_NETINET_IN_H
14503 # include <netinet/in.h>
14504 #endif
14505 #ifdef HAVE_ARPA_NAMESER_H
14506 # include <arpa/nameser.h>
14507 #endif
14509 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14511 cat >>confdefs.h <<_ACEOF
14512 #define HAVE_NS_MSG__MSG_PTR 1
14513 _ACEOF
14519 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
14520 #include <sys/types.h>
14521 #endif
14522 #ifdef HAVE_NETINET_IP_H
14523 #include <netinet/ip.h>
14524 #endif
14525 #ifdef HAVE_NETINET_IP_ICMP_H
14526 #include <netinet/ip_icmp.h>
14527 #endif
14528 #ifdef HAVE_NETINET_ICMP_VAR_H
14529 #include <netinet/icmp_var.h>
14530 #endif
14532 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
14534 cat >>confdefs.h <<_ACEOF
14535 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
14536 _ACEOF
14542 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14543 #include <sys/types.h>
14544 #endif
14545 #ifdef HAVE_ALIAS_H
14546 #include <alias.h>
14547 #endif
14548 #ifdef HAVE_SYS_SOCKET_H
14549 #include <sys/socket.h>
14550 #endif
14551 #ifdef HAVE_SYS_SOCKETVAR_H
14552 #include <sys/socketvar.h>
14553 #endif
14554 #ifdef HAVE_SYS_TIMEOUT_H
14555 #include <sys/timeout.h>
14556 #endif
14557 #ifdef HAVE_NETINET_IN_H
14558 #include <netinet/in.h>
14559 #endif
14560 #ifdef HAVE_NETINET_IN_SYSTM_H
14561 #include <netinet/in_systm.h>
14562 #endif
14563 #ifdef HAVE_NETINET_IP_H
14564 #include <netinet/ip.h>
14565 #endif
14566 #ifdef HAVE_NETINET_IP_VAR_H
14567 #include <netinet/ip_var.h>
14568 #endif
14569 #ifdef HAVE_NETINET_IP_ICMP_H
14570 #include <netinet/ip_icmp.h>
14571 #endif
14572 #ifdef HAVE_NETINET_ICMP_VAR_H
14573 #include <netinet/icmp_var.h>
14574 #endif
14576 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14578 cat >>confdefs.h <<_ACEOF
14579 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14580 _ACEOF
14586 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
14587 #include <sys/types.h>
14588 #endif
14589 #ifdef HAVE_SYS_SOCKETVAR_H
14590 #include <sys/socketvar.h>
14591 #endif
14592 #ifdef HAVE_NETINET_IN_H
14593 #include <netinet/in.h>
14594 #endif
14595 #ifdef HAVE_NETINET_IP_VAR_H
14596 #include <netinet/ip_var.h>
14597 #endif
14599 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
14601 cat >>confdefs.h <<_ACEOF
14602 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
14603 _ACEOF
14609 ac_fn_c_check_member "$LINENO" "struct ip_stats" "ips_total" "ac_cv_member_struct_ip_stats_ips_total" "#ifdef HAVE_NETINET_IP_VAR_H
14610 #include <netinet/ip_var.h>
14611 #endif
14613 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
14615 cat >>confdefs.h <<_ACEOF
14616 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
14617 _ACEOF
14623 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
14624 #include <sys/types.h>
14625 #endif
14626 #ifdef HAVE_SYS_SOCKETVAR_H
14627 #include <sys/socketvar.h>
14628 #endif
14629 #ifdef HAVE_NETINET_IN_H
14630 #include <netinet/in.h>
14631 #endif
14632 #ifdef HAVE_NETINET_TCP_H
14633 #include <netinet/tcp.h>
14634 #endif
14635 #ifdef HAVE_NETINET_TCP_VAR_H
14636 #include <netinet/tcp_var.h>
14637 #endif
14639 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
14641 cat >>confdefs.h <<_ACEOF
14642 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
14643 _ACEOF
14649 ac_fn_c_check_member "$LINENO" "struct tcp_stats" "tcps_connattempt" "ac_cv_member_struct_tcp_stats_tcps_connattempt" "#ifdef HAVE_NETINET_TCP_VAR_H
14650 #include <netinet/tcp_var.h>
14651 #endif
14653 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
14655 cat >>confdefs.h <<_ACEOF
14656 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
14657 _ACEOF
14663 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
14664 #include <sys/types.h>
14665 #endif
14666 #ifdef HAVE_NETINET_IN_H
14667 #include <netinet/in.h>
14668 #endif
14669 #ifdef HAVE_NETINET_IP_VAR_H
14670 #include <netinet/ip_var.h>
14671 #endif
14672 #ifdef HAVE_NETINET_UDP_H
14673 #include <netinet/udp.h>
14674 #endif
14675 #ifdef HAVE_NETINET_UDP_VAR_H
14676 #include <netinet/udp_var.h>
14677 #endif
14679 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
14681 cat >>confdefs.h <<_ACEOF
14682 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
14683 _ACEOF
14689 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14690 #include <sys/types.h>
14691 #endif
14692 #ifdef HAVE_NET_IF_H
14693 # include <net/if.h>
14694 #endif
14696 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14698 cat >>confdefs.h <<_ACEOF
14699 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14700 _ACEOF
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14707 $as_echo_n "checking for timezone variable... " >&6; }
14708 if ${ac_cv_have_timezone+:} false; then :
14709 $as_echo_n "(cached) " >&6
14710 else
14711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712 /* end confdefs.h. */
14713 #include <time.h>
14715 main ()
14717 timezone = 1
14719 return 0;
14721 _ACEOF
14722 if ac_fn_c_try_link "$LINENO"; then :
14723 ac_cv_have_timezone="yes"
14724 else
14725 ac_cv_have_timezone="no"
14727 rm -f core conftest.err conftest.$ac_objext \
14728 conftest$ac_exeext conftest.$ac_ext
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14731 $as_echo "$ac_cv_have_timezone" >&6; }
14732 if test "$ac_cv_have_timezone" = "yes"
14733 then
14735 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14739 $as_echo_n "checking for daylight variable... " >&6; }
14740 if ${ac_cv_have_daylight+:} false; then :
14741 $as_echo_n "(cached) " >&6
14742 else
14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h. */
14745 #include <time.h>
14747 main ()
14749 daylight = 1
14751 return 0;
14753 _ACEOF
14754 if ac_fn_c_try_link "$LINENO"; then :
14755 ac_cv_have_daylight="yes"
14756 else
14757 ac_cv_have_daylight="no"
14759 rm -f core conftest.err conftest.$ac_objext \
14760 conftest$ac_exeext conftest.$ac_ext
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14763 $as_echo "$ac_cv_have_daylight" >&6; }
14764 if test "$ac_cv_have_daylight" = "yes"
14765 then
14767 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14771 ac_save_LIBS="$LIBS"
14772 LIBS="$LIBS -lm"
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14774 $as_echo_n "checking for isinf... " >&6; }
14775 if ${ac_cv_have_isinf+:} false; then :
14776 $as_echo_n "(cached) " >&6
14777 else
14778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779 /* end confdefs.h. */
14780 #include <math.h>
14782 main ()
14784 float f = 0.0; return isinf(f)
14786 return 0;
14788 _ACEOF
14789 if ac_fn_c_try_link "$LINENO"; then :
14790 ac_cv_have_isinf="yes"
14791 else
14792 ac_cv_have_isinf="no"
14794 rm -f core conftest.err conftest.$ac_objext \
14795 conftest$ac_exeext conftest.$ac_ext
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14798 $as_echo "$ac_cv_have_isinf" >&6; }
14799 if test "$ac_cv_have_isinf" = "yes"
14800 then
14802 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14807 $as_echo_n "checking for isnan... " >&6; }
14808 if ${ac_cv_have_isnan+:} false; then :
14809 $as_echo_n "(cached) " >&6
14810 else
14811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14812 /* end confdefs.h. */
14813 #include <math.h>
14815 main ()
14817 float f = 0.0; return isnan(f)
14819 return 0;
14821 _ACEOF
14822 if ac_fn_c_try_link "$LINENO"; then :
14823 ac_cv_have_isnan="yes"
14824 else
14825 ac_cv_have_isnan="no"
14827 rm -f core conftest.err conftest.$ac_objext \
14828 conftest$ac_exeext conftest.$ac_ext
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14831 $as_echo "$ac_cv_have_isnan" >&6; }
14832 if test "$ac_cv_have_isnan" = "yes"
14833 then
14835 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14838 LIBS="$ac_save_LIBS"
14841 case $host_cpu in
14842 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14843 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14844 if ${ac_cv_cpp_def___i386__+:} false; then :
14845 $as_echo_n "(cached) " >&6
14846 else
14847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h. */
14849 #ifndef __i386__
14851 #endif
14852 _ACEOF
14853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14854 $EGREP "yes" >/dev/null 2>&1; then :
14855 ac_cv_cpp_def___i386__=yes
14856 else
14857 ac_cv_cpp_def___i386__=no
14859 rm -f conftest*
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14863 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14864 if test $ac_cv_cpp_def___i386__ = yes; then :
14865 CFLAGS="$CFLAGS -D__i386__"
14866 LINTFLAGS="$LINTFLAGS -D__i386__"
14867 fi ;;
14868 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14869 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14870 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14871 $as_echo_n "(cached) " >&6
14872 else
14873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874 /* end confdefs.h. */
14875 #ifndef __x86_64__
14877 #endif
14878 _ACEOF
14879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14880 $EGREP "yes" >/dev/null 2>&1; then :
14881 ac_cv_cpp_def___x86_64__=yes
14882 else
14883 ac_cv_cpp_def___x86_64__=no
14885 rm -f conftest*
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14889 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14890 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14891 CFLAGS="$CFLAGS -D__x86_64__"
14892 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14893 fi ;;
14894 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14895 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14896 if ${ac_cv_cpp_def___sparc64__+:} false; then :
14897 $as_echo_n "(cached) " >&6
14898 else
14899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900 /* end confdefs.h. */
14901 #ifndef __sparc64__
14903 #endif
14904 _ACEOF
14905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14906 $EGREP "yes" >/dev/null 2>&1; then :
14907 ac_cv_cpp_def___sparc64__=yes
14908 else
14909 ac_cv_cpp_def___sparc64__=no
14911 rm -f conftest*
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14915 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14916 if test $ac_cv_cpp_def___sparc64__ = yes; then :
14917 CFLAGS="$CFLAGS -D__sparc64__"
14918 LINTFLAGS="$LINTFLAGS -D__sparc64__"
14919 fi ;;
14920 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14921 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14922 if ${ac_cv_cpp_def___sparc__+:} false; then :
14923 $as_echo_n "(cached) " >&6
14924 else
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14927 #ifndef __sparc__
14929 #endif
14930 _ACEOF
14931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14932 $EGREP "yes" >/dev/null 2>&1; then :
14933 ac_cv_cpp_def___sparc__=yes
14934 else
14935 ac_cv_cpp_def___sparc__=no
14937 rm -f conftest*
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14941 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14942 if test $ac_cv_cpp_def___sparc__ = yes; then :
14943 CFLAGS="$CFLAGS -D__sparc__"
14944 LINTFLAGS="$LINTFLAGS -D__sparc__"
14945 fi ;;
14946 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
14947 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
14948 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
14949 $as_echo_n "(cached) " >&6
14950 else
14951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14952 /* end confdefs.h. */
14953 #ifndef __powerpc64__
14955 #endif
14956 _ACEOF
14957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14958 $EGREP "yes" >/dev/null 2>&1; then :
14959 ac_cv_cpp_def___powerpc64__=yes
14960 else
14961 ac_cv_cpp_def___powerpc64__=no
14963 rm -f conftest*
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
14967 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
14968 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
14969 CFLAGS="$CFLAGS -D__powerpc64__"
14970 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
14971 fi ;;
14972 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14973 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14974 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14975 $as_echo_n "(cached) " >&6
14976 else
14977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978 /* end confdefs.h. */
14979 #ifndef __powerpc__
14981 #endif
14982 _ACEOF
14983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14984 $EGREP "yes" >/dev/null 2>&1; then :
14985 ac_cv_cpp_def___powerpc__=yes
14986 else
14987 ac_cv_cpp_def___powerpc__=no
14989 rm -f conftest*
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14993 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14994 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14995 CFLAGS="$CFLAGS -D__powerpc__"
14996 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14997 fi ;;
14998 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14999 $as_echo_n "checking whether we need to define __arm__... " >&6; }
15000 if ${ac_cv_cpp_def___arm__+:} false; then :
15001 $as_echo_n "(cached) " >&6
15002 else
15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h. */
15005 #ifndef __arm__
15007 #endif
15008 _ACEOF
15009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15010 $EGREP "yes" >/dev/null 2>&1; then :
15011 ac_cv_cpp_def___arm__=yes
15012 else
15013 ac_cv_cpp_def___arm__=no
15015 rm -f conftest*
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
15019 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
15020 if test $ac_cv_cpp_def___arm__ = yes; then :
15021 CFLAGS="$CFLAGS -D__arm__"
15022 LINTFLAGS="$LINTFLAGS -D__arm__"
15023 fi ;;
15024 esac
15026 case $host_vendor in
15027 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
15028 $as_echo_n "checking whether we need to define __sun__... " >&6; }
15029 if ${ac_cv_cpp_def___sun__+:} false; then :
15030 $as_echo_n "(cached) " >&6
15031 else
15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h. */
15034 #ifndef __sun__
15036 #endif
15037 _ACEOF
15038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15039 $EGREP "yes" >/dev/null 2>&1; then :
15040 ac_cv_cpp_def___sun__=yes
15041 else
15042 ac_cv_cpp_def___sun__=no
15044 rm -f conftest*
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
15048 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
15049 if test $ac_cv_cpp_def___sun__ = yes; then :
15050 CFLAGS="$CFLAGS -D__sun__"
15051 LINTFLAGS="$LINTFLAGS -D__sun__"
15052 fi ;;
15053 esac
15059 ac_config_commands="$ac_config_commands include/stamp-h"
15062 ALL_MAKEFILE_DEPENDS="
15063 # Rules automatically generated by configure
15065 .INIT: Makefile
15066 .MAKEFILEDEPS:
15067 all: Makefile
15068 Makefile: Makefile.in Make.vars.in Make.rules config.status
15069 @./config.status Make.tmp Makefile"
15071 ALL_POT_FILES=""
15072 ALL_TEST_RESOURCES=""
15075 wine_fn_append_file ()
15077 as_fn_append $1 " \\$as_nl $2"
15080 wine_fn_append_rule ()
15082 as_fn_append $1 "$as_nl$2"
15085 wine_fn_has_flag ()
15087 expr ",$2," : ".*,$1,.*" >/dev/null
15090 wine_fn_all_dir_rules ()
15092 ac_dir=$1
15093 ac_alldeps=$2
15094 ac_makedep="\$(MAKEDEP)"
15095 ac_input=Make.vars.in:$ac_dir/Makefile.in
15096 if test $ac_dir != tools
15097 then
15098 ac_alldeps="$2 $ac_makedep"
15099 else
15100 ac_alldeps="$2 include/config.h"
15102 case $2 in
15103 *.in) ac_input=$ac_input:$2 ;;
15104 *) ac_makedep="$2 $ac_makedep" ;;
15105 esac
15107 wine_fn_append_file ALL_DIRS $ac_dir
15108 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15109 "__clean__: $ac_dir/__clean__
15110 .PHONY: $ac_dir/__clean__
15111 $ac_dir/__clean__: $ac_dir/Makefile
15112 @cd $ac_dir && \$(MAKE) clean
15113 \$(RM) $ac_dir/Makefile
15114 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
15115 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
15116 depend: $ac_dir/__depend__
15117 .PHONY: $ac_dir/__depend__
15118 $ac_dir/__depend__: $ac_makedep dummy
15119 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
15122 wine_fn_pot_rules ()
15124 ac_dir=$1
15125 ac_flags=$2
15127 test "x$with_gettextpo" = xyes || return
15129 if wine_fn_has_flag mc $ac_flags
15130 then
15131 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
15132 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15133 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
15134 @cd $ac_dir && \$(MAKE) msg.pot
15135 $ac_dir/msg.pot: tools/wmc include"
15137 if wine_fn_has_flag po $ac_flags
15138 then
15139 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
15140 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15141 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
15142 @cd $ac_dir && \$(MAKE) rsrc.pot
15143 $ac_dir/rsrc.pot: tools/wrc include"
15147 wine_fn_config_makefile ()
15149 ac_dir=$1
15150 ac_enable=$2
15151 ac_flags=$3
15152 ac_rules=$4
15153 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15154 return 0
15157 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
15158 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15159 "all: $ac_dir
15160 .PHONY: $ac_dir
15161 $ac_dir: $ac_dir/Makefile dummy
15162 @cd $ac_dir && \$(MAKE)"
15164 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
15166 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15167 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15168 $ac_dir/__install__:: $ac_dir
15169 @cd $ac_dir && \$(MAKE) install
15170 $ac_dir/__uninstall__:: $ac_dir/Makefile
15171 @cd $ac_dir && \$(MAKE) uninstall
15172 install:: $ac_dir/__install__
15173 __uninstall__: $ac_dir/__uninstall__"
15175 if wine_fn_has_flag install-lib $ac_flags
15176 then
15177 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15178 ".PHONY: $ac_dir/__install-lib__
15179 $ac_dir/__install-lib__:: $ac_dir
15180 @cd $ac_dir && \$(MAKE) install-lib
15181 install-lib:: $ac_dir/__install-lib__"
15184 if wine_fn_has_flag install-dev $ac_flags
15185 then
15186 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15187 ".PHONY: $ac_dir/__install-dev
15188 $ac_dir/__install-dev__:: $ac_dir
15189 @cd $ac_dir && \$(MAKE) install-dev
15190 install-dev:: $ac_dir/__install-dev__"
15194 wine_fn_config_lib ()
15196 ac_name=$1
15197 ac_flags=$2
15198 ac_dir=dlls/$ac_name
15199 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
15201 if wine_fn_has_flag install-dev $ac_flags
15202 then :
15203 else
15204 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15205 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15206 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
15207 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15208 $ac_dir/__uninstall__::
15209 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15210 install install-dev:: $ac_dir/__install__
15211 __uninstall__: $ac_dir/__uninstall__"
15214 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
15215 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
15218 wine_fn_config_dll ()
15220 ac_name=$1
15221 ac_dir=dlls/$ac_name
15222 ac_enable=$2
15223 ac_flags=$3
15224 ac_implib=${4:-$ac_name}
15225 ac_file=$ac_dir/lib$ac_implib
15226 ac_dll=$ac_name
15227 ac_deps="tools/widl tools/winebuild tools/winegcc include"
15228 ac_implibflags=""
15230 case $ac_name in
15231 *16) ac_implibflags=" -m16" ;;
15232 *.*) ;;
15233 *) ac_dll=$ac_dll.dll ;;
15234 esac
15236 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
15238 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15239 test "$ac_enable" != enable_win16 || return 0
15240 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
15241 else
15242 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15243 "$ac_dir: __builddeps__
15244 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
15245 @cd $ac_dir && \$(MAKE) \$@"
15247 if wine_fn_has_flag install-lib $ac_flags
15248 then :
15249 else
15250 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15251 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
15252 install install-lib:: $ac_dir/__install-lib__
15253 __uninstall__: $ac_dir/__uninstall__"
15254 if test -n "$DLLEXT"
15255 then
15256 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15257 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15258 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
15259 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
15260 $ac_dir/__uninstall__::
15261 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
15262 else
15263 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15264 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15265 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
15266 $ac_dir/__uninstall__::
15267 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
15271 wine_fn_pot_rules $ac_dir $ac_flags
15274 if wine_fn_has_flag staticimplib $ac_flags
15275 then
15276 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15277 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
15278 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
15279 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
15280 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
15281 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
15282 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
15283 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15284 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15285 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15286 $ac_dir/__uninstall__::
15287 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15288 install install-dev:: $ac_dir/__install-dev__
15289 __uninstall__: $ac_dir/__uninstall__"
15291 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
15292 then
15293 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15294 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
15295 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
15296 $ac_dir/__uninstall__::
15297 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
15300 if test "x$CROSSTEST_DISABLE" = x
15301 then
15302 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15303 "__builddeps__: $ac_file.cross.a
15304 $ac_file.cross.a: $ac_dir/Makefile dummy
15305 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
15308 elif wine_fn_has_flag implib $ac_flags
15309 then
15310 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15311 "__builddeps__: $ac_file.$IMPLIBEXT
15312 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15313 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15314 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15315 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15316 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15317 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15318 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15319 $ac_dir/__uninstall__::
15320 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15321 install install-dev:: $ac_dir/__install-dev__
15322 __uninstall__: $ac_dir/__uninstall__"
15323 if test "x$CROSSTEST_DISABLE" = x
15324 then
15325 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15326 "__builddeps__: $ac_file.cross.a
15327 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15328 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
15331 if test "$ac_name" != "$ac_implib"
15332 then
15333 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15334 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
15335 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
15336 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
15337 clean::
15338 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
15339 if test "x$CROSSTEST_DISABLE" = x
15340 then
15341 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15342 "__builddeps__: dlls/lib$ac_implib.cross.a
15343 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
15344 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
15350 wine_fn_config_program ()
15352 ac_name=$1
15353 ac_dir=programs/$ac_name
15354 ac_enable=$2
15355 ac_flags=$3
15356 ac_program=$ac_name
15358 case $ac_name in
15359 *.*) ;;
15360 *) ac_program=$ac_program.exe ;;
15361 esac
15363 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
15365 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15367 else
15368 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15369 "$ac_dir: __builddeps__"
15371 wine_fn_pot_rules $ac_dir $ac_flags
15373 wine_fn_has_flag install $ac_flags || return
15374 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15375 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15376 install install-lib:: $ac_dir/__install__
15377 __uninstall__: $ac_dir/__uninstall__"
15379 if test -n "$DLLEXT"
15380 then
15381 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15382 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15383 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
15384 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
15385 $ac_dir/__uninstall__::
15386 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
15388 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
15389 then
15390 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15391 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
15392 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
15393 $ac_dir/__uninstall__::
15394 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
15396 else
15397 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15398 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15399 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
15400 $ac_dir/__uninstall__::
15401 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
15404 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
15405 then
15406 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15407 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
15408 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
15409 $ac_dir/__uninstall__::
15410 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
15415 wine_fn_config_test ()
15417 ac_dir=$1
15418 ac_name=$2
15419 ac_flags=$3
15420 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
15421 wine_fn_all_dir_rules $ac_dir Maketest.rules
15423 if test "x$enable_tests" = xno; then :
15425 else
15426 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15427 "all: $ac_dir
15428 .PHONY: $ac_dir
15429 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
15430 @cd $ac_dir && \$(MAKE)
15431 programs/winetest: $ac_dir
15432 check test: $ac_dir/__test__
15433 .PHONY: $ac_dir/__test__
15434 $ac_dir/__test__: dummy
15435 @cd $ac_dir && \$(MAKE) test
15436 testclean::
15437 \$(RM) $ac_dir/*.ok"
15439 if test "x$CROSSTEST_DISABLE" = x
15440 then
15441 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15442 "crosstest: $ac_dir/__crosstest__
15443 .PHONY: $ac_dir/__crosstest__
15444 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
15445 @cd $ac_dir && \$(MAKE) crosstest"
15450 wine_fn_config_tool ()
15452 ac_dir=$1
15453 ac_flags=$2
15454 if test "x$enable_tools" = xno; then :
15455 return 0
15458 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
15460 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
15461 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
15462 case $ac_dir in
15463 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
15464 esac
15467 wine_fn_config_makerules ()
15469 ac_rules=$1
15470 ac_deps=$2
15471 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15472 "$ac_rules: $ac_rules.in $ac_deps config.status
15473 @./config.status $ac_rules
15474 distclean::
15475 \$(RM) $ac_rules"
15478 wine_fn_config_symlink ()
15480 ac_link=$1
15481 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15482 "$ac_link:
15483 @./config.status $ac_link
15484 distclean::
15485 \$(RM) $ac_link"
15488 if test "x$CROSSTEST_DISABLE" != x
15489 then
15490 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15491 "crosstest:
15492 @echo \"crosstest is not supported (mingw not installed?)\" && false"
15494 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
15495 wine_fn_config_symlink dlls/shell32/AUTHORS
15496 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
15497 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
15498 if test "x$enable_fonts" != xno; then
15499 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
15500 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
15502 if test "x$enable_fonts" != xno; then
15503 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
15504 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
15506 if test "x$enable_fonts" != xno; then
15507 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
15508 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
15510 if test "x$enable_fonts" != xno; then
15511 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
15512 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
15514 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
15515 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
15516 if test "x$enable_tools" != xno; then
15517 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
15518 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
15520 ac_config_links="$ac_config_links wine:tools/winewrapper"
15521 wine_fn_config_symlink wine
15522 if test "x$enable_win64" != xno; then
15523 ac_config_links="$ac_config_links wine64:tools/winewrapper"
15524 wine_fn_config_symlink wine64
15527 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
15529 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
15531 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
15533 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
15535 ac_config_commands="$ac_config_commands dlls/user32/resources"
15537 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
15539 ac_config_commands="$ac_config_commands include/wine"
15542 wine_fn_config_makerules Make.rules
15543 MAKE_RULES=Make.rules
15544 ac_config_files="$ac_config_files Make.rules"
15546 wine_fn_config_makerules Maketest.rules Make.rules
15547 MAKE_TEST_RULES=Maketest.rules
15548 ac_config_files="$ac_config_files Maketest.rules"
15550 wine_fn_config_makerules dlls/Makedll.rules Make.rules
15551 MAKE_DLL_RULES=dlls/Makedll.rules
15552 ac_config_files="$ac_config_files dlls/Makedll.rules"
15554 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
15555 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
15556 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
15558 wine_fn_config_makerules programs/Makeprog.rules Make.rules
15559 MAKE_PROG_RULES=programs/Makeprog.rules
15560 ac_config_files="$ac_config_files programs/Makeprog.rules"
15563 wine_fn_config_dll acledit enable_acledit
15564 wine_fn_config_dll aclui enable_aclui implib
15565 wine_fn_config_dll activeds enable_activeds implib
15566 wine_fn_config_dll actxprxy enable_actxprxy
15567 wine_fn_config_lib adsiid
15568 wine_fn_config_dll advapi32 enable_advapi32 implib
15569 wine_fn_config_test dlls/advapi32/tests advapi32_test
15570 wine_fn_config_dll advpack enable_advpack implib
15571 wine_fn_config_test dlls/advpack/tests advpack_test
15572 wine_fn_config_dll amstream enable_amstream
15573 wine_fn_config_test dlls/amstream/tests amstream_test
15574 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
15575 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
15576 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
15577 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
15578 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
15579 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
15580 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
15581 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
15582 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
15583 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
15584 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
15585 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
15586 wine_fn_config_dll apphelp enable_apphelp
15587 wine_fn_config_test dlls/apphelp/tests apphelp_test
15588 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
15589 wine_fn_config_dll atl enable_atl implib
15590 wine_fn_config_test dlls/atl/tests atl_test
15591 wine_fn_config_dll atl100 enable_atl100 implib
15592 wine_fn_config_test dlls/atl100/tests atl100_test
15593 wine_fn_config_dll atl80 enable_atl80 implib
15594 wine_fn_config_dll authz enable_authz
15595 wine_fn_config_dll avicap32 enable_avicap32 implib
15596 wine_fn_config_dll avifil32 enable_avifil32 implib,po
15597 wine_fn_config_test dlls/avifil32/tests avifil32_test
15598 wine_fn_config_dll avifile.dll16 enable_win16
15599 wine_fn_config_dll avrt enable_avrt implib
15600 wine_fn_config_dll bcrypt enable_bcrypt
15601 wine_fn_config_dll browseui enable_browseui po
15602 wine_fn_config_test dlls/browseui/tests browseui_test
15603 wine_fn_config_dll cabinet enable_cabinet implib
15604 wine_fn_config_test dlls/cabinet/tests cabinet_test
15605 wine_fn_config_dll capi2032 enable_capi2032 implib
15606 wine_fn_config_dll cards enable_cards implib
15607 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
15608 wine_fn_config_dll clusapi enable_clusapi implib
15609 wine_fn_config_dll comcat enable_comcat
15610 wine_fn_config_test dlls/comcat/tests comcat_test
15611 wine_fn_config_dll comctl32 enable_comctl32 implib,po
15612 wine_fn_config_test dlls/comctl32/tests comctl32_test
15613 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
15614 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
15615 wine_fn_config_dll comm.drv16 enable_win16
15616 wine_fn_config_dll commdlg.dll16 enable_win16
15617 wine_fn_config_dll compobj.dll16 enable_win16
15618 wine_fn_config_dll compstui enable_compstui implib
15619 wine_fn_config_dll credui enable_credui implib,po
15620 wine_fn_config_test dlls/credui/tests credui_test
15621 wine_fn_config_dll crtdll enable_crtdll implib
15622 wine_fn_config_dll crypt32 enable_crypt32 implib,po
15623 wine_fn_config_test dlls/crypt32/tests crypt32_test
15624 wine_fn_config_dll cryptdlg enable_cryptdlg po
15625 wine_fn_config_dll cryptdll enable_cryptdll implib
15626 wine_fn_config_dll cryptnet enable_cryptnet implib
15627 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
15628 wine_fn_config_dll cryptui enable_cryptui implib,po
15629 wine_fn_config_test dlls/cryptui/tests cryptui_test
15630 wine_fn_config_dll ctapi32 enable_ctapi32
15631 wine_fn_config_dll ctl3d.dll16 enable_win16
15632 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
15633 wine_fn_config_dll ctl3dv2.dll16 enable_win16
15634 wine_fn_config_dll d3d10 enable_d3d10 implib
15635 wine_fn_config_test dlls/d3d10/tests d3d10_test
15636 wine_fn_config_dll d3d10core enable_d3d10core implib
15637 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
15638 wine_fn_config_dll d3d11 enable_d3d11
15639 wine_fn_config_dll d3d8 enable_d3d8 implib
15640 wine_fn_config_test dlls/d3d8/tests d3d8_test
15641 wine_fn_config_dll d3d9 enable_d3d9 implib
15642 wine_fn_config_test dlls/d3d9/tests d3d9_test
15643 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
15644 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
15645 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
15646 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
15647 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
15648 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
15649 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
15650 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
15651 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
15652 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
15653 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
15654 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
15655 wine_fn_config_dll d3dim enable_d3dim implib
15656 wine_fn_config_dll d3drm enable_d3drm implib
15657 wine_fn_config_test dlls/d3drm/tests d3drm_test
15658 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15659 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15660 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15661 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15662 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15663 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15664 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15665 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15666 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15667 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15668 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15669 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15670 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15671 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15672 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15673 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15674 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15675 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15676 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15677 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15678 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15679 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15680 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15681 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15682 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15683 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15684 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15685 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15686 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15687 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15688 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15689 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15690 wine_fn_config_dll d3dxof enable_d3dxof implib
15691 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15692 wine_fn_config_dll dbgeng enable_dbgeng implib
15693 wine_fn_config_dll dbghelp enable_dbghelp implib
15694 wine_fn_config_dll dciman32 enable_dciman32 implib
15695 wine_fn_config_dll ddeml.dll16 enable_win16
15696 wine_fn_config_dll ddraw enable_ddraw implib
15697 wine_fn_config_test dlls/ddraw/tests ddraw_test
15698 wine_fn_config_dll ddrawex enable_ddrawex
15699 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15700 wine_fn_config_dll devenum enable_devenum po
15701 wine_fn_config_test dlls/devenum/tests devenum_test
15702 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15703 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15704 wine_fn_config_test dlls/dinput/tests dinput_test
15705 wine_fn_config_dll dinput8 enable_dinput8 implib
15706 wine_fn_config_test dlls/dinput8/tests dinput8_test
15707 wine_fn_config_dll dispdib.dll16 enable_win16
15708 wine_fn_config_dll dispex enable_dispex
15709 wine_fn_config_test dlls/dispex/tests dispex_test
15710 wine_fn_config_dll display.drv16 enable_win16
15711 wine_fn_config_dll dmband enable_dmband
15712 wine_fn_config_test dlls/dmband/tests dmband_test
15713 wine_fn_config_dll dmcompos enable_dmcompos
15714 wine_fn_config_dll dmime enable_dmime
15715 wine_fn_config_test dlls/dmime/tests dmime_test
15716 wine_fn_config_dll dmloader enable_dmloader
15717 wine_fn_config_test dlls/dmloader/tests dmloader_test
15718 wine_fn_config_dll dmscript enable_dmscript
15719 wine_fn_config_dll dmstyle enable_dmstyle
15720 wine_fn_config_dll dmsynth enable_dmsynth
15721 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
15722 wine_fn_config_dll dmusic enable_dmusic
15723 wine_fn_config_test dlls/dmusic/tests dmusic_test
15724 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15725 wine_fn_config_dll dnsapi enable_dnsapi implib
15726 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15727 wine_fn_config_dll dplay enable_dplay implib
15728 wine_fn_config_dll dplayx enable_dplayx implib
15729 wine_fn_config_test dlls/dplayx/tests dplayx_test
15730 wine_fn_config_dll dpnaddr enable_dpnaddr
15731 wine_fn_config_dll dpnet enable_dpnet implib
15732 wine_fn_config_test dlls/dpnet/tests dpnet_test
15733 wine_fn_config_dll dpnhpast enable_dpnhpast
15734 wine_fn_config_dll dpnlobby enable_dpnlobby
15735 wine_fn_config_dll dpwsockx enable_dpwsockx
15736 wine_fn_config_dll drmclien enable_drmclien
15737 wine_fn_config_dll dsound enable_dsound implib
15738 wine_fn_config_test dlls/dsound/tests dsound_test
15739 wine_fn_config_dll dssenh enable_dssenh
15740 wine_fn_config_test dlls/dssenh/tests dssenh_test
15741 wine_fn_config_dll dswave enable_dswave
15742 wine_fn_config_dll dwmapi enable_dwmapi implib
15743 wine_fn_config_dll dwrite enable_dwrite implib
15744 wine_fn_config_test dlls/dwrite/tests dwrite_test
15745 wine_fn_config_dll dxdiagn enable_dxdiagn po
15746 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15747 wine_fn_config_lib dxerr8
15748 wine_fn_config_lib dxerr9
15749 wine_fn_config_dll dxgi enable_dxgi implib
15750 wine_fn_config_test dlls/dxgi/tests dxgi_test
15751 wine_fn_config_lib dxguid
15752 wine_fn_config_dll explorerframe enable_explorerframe
15753 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15754 wine_fn_config_dll faultrep enable_faultrep implib
15755 wine_fn_config_test dlls/faultrep/tests faultrep_test
15756 wine_fn_config_dll fltlib enable_fltlib
15757 wine_fn_config_dll fusion enable_fusion
15758 wine_fn_config_test dlls/fusion/tests fusion_test
15759 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15760 wine_fn_config_dll gameux enable_gameux
15761 wine_fn_config_test dlls/gameux/tests gameux_test
15762 wine_fn_config_dll gdi.exe16 enable_win16
15763 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15764 wine_fn_config_test dlls/gdi32/tests gdi32_test
15765 wine_fn_config_dll gdiplus enable_gdiplus implib
15766 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15767 wine_fn_config_dll glu32 enable_glu32 implib
15768 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15769 wine_fn_config_dll gpkcsp enable_gpkcsp
15770 wine_fn_config_dll hal enable_hal
15771 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx implib,po htmlhelp
15772 wine_fn_config_dll hid enable_hid implib
15773 wine_fn_config_dll hlink enable_hlink implib
15774 wine_fn_config_test dlls/hlink/tests hlink_test
15775 wine_fn_config_dll hnetcfg enable_hnetcfg
15776 wine_fn_config_dll httpapi enable_httpapi
15777 wine_fn_config_dll iccvid enable_iccvid po
15778 wine_fn_config_dll icmp enable_icmp
15779 wine_fn_config_dll ieframe enable_ieframe implib,po
15780 wine_fn_config_test dlls/ieframe/tests ieframe_test
15781 wine_fn_config_dll ifsmgr.vxd enable_win16
15782 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15783 wine_fn_config_dll imagehlp enable_imagehlp implib
15784 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15785 wine_fn_config_dll imm.dll16 enable_win16
15786 wine_fn_config_dll imm32 enable_imm32 implib
15787 wine_fn_config_test dlls/imm32/tests imm32_test
15788 wine_fn_config_dll inetcomm enable_inetcomm implib
15789 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15790 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15791 wine_fn_config_dll inetmib1 enable_inetmib1
15792 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15793 wine_fn_config_dll infosoft enable_infosoft
15794 wine_fn_config_test dlls/infosoft/tests infosoft_test
15795 wine_fn_config_dll initpki enable_initpki
15796 wine_fn_config_dll inkobj enable_inkobj
15797 wine_fn_config_dll inseng enable_inseng
15798 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15799 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15800 wine_fn_config_dll itircl enable_itircl
15801 wine_fn_config_dll itss enable_itss
15802 wine_fn_config_test dlls/itss/tests itss_test
15803 wine_fn_config_dll joy.cpl enable_joy_cpl po
15804 wine_fn_config_dll jscript enable_jscript po
15805 wine_fn_config_test dlls/jscript/tests jscript_test
15806 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15807 wine_fn_config_test dlls/kernel32/tests kernel32_test
15808 wine_fn_config_dll keyboard.drv16 enable_win16
15809 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15810 wine_fn_config_dll ktmw32 enable_ktmw32
15811 wine_fn_config_dll loadperf enable_loadperf implib
15812 wine_fn_config_dll localspl enable_localspl po
15813 wine_fn_config_test dlls/localspl/tests localspl_test
15814 wine_fn_config_dll localui enable_localui po
15815 wine_fn_config_test dlls/localui/tests localui_test
15816 wine_fn_config_dll lz32 enable_lz32 implib
15817 wine_fn_config_test dlls/lz32/tests lz32_test
15818 wine_fn_config_dll lzexpand.dll16 enable_win16
15819 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15820 wine_fn_config_test dlls/mapi32/tests mapi32_test
15821 wine_fn_config_dll mapistub enable_mapistub
15822 wine_fn_config_dll mciavi32 enable_mciavi32
15823 wine_fn_config_dll mcicda enable_mcicda
15824 wine_fn_config_dll mciqtz32 enable_mciqtz32
15825 wine_fn_config_dll mciseq enable_mciseq
15826 wine_fn_config_dll mciwave enable_mciwave
15827 wine_fn_config_dll mgmtapi enable_mgmtapi
15828 wine_fn_config_dll midimap enable_midimap
15829 wine_fn_config_dll mlang enable_mlang implib
15830 wine_fn_config_test dlls/mlang/tests mlang_test
15831 wine_fn_config_dll mmcndmgr enable_mmcndmgr
15832 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
15833 wine_fn_config_dll mmdevapi enable_mmdevapi
15834 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15835 wine_fn_config_dll mmdevldr.vxd enable_win16
15836 wine_fn_config_dll mmsystem.dll16 enable_win16
15837 wine_fn_config_dll monodebg.vxd enable_win16
15838 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15839 wine_fn_config_dll mouse.drv16 enable_win16
15840 wine_fn_config_dll mpr enable_mpr implib,po
15841 wine_fn_config_test dlls/mpr/tests mpr_test
15842 wine_fn_config_dll mprapi enable_mprapi implib
15843 wine_fn_config_dll msacm.dll16 enable_win16
15844 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15845 wine_fn_config_dll msacm32 enable_msacm32 implib,po
15846 wine_fn_config_test dlls/msacm32/tests msacm32_test
15847 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15848 wine_fn_config_dll mscat32 enable_mscat32
15849 wine_fn_config_dll mscms enable_mscms implib
15850 wine_fn_config_test dlls/mscms/tests mscms_test
15851 wine_fn_config_dll mscoree enable_mscoree
15852 wine_fn_config_test dlls/mscoree/tests mscoree_test
15853 wine_fn_config_dll msctf enable_msctf
15854 wine_fn_config_test dlls/msctf/tests msctf_test
15855 wine_fn_config_dll msdaps enable_msdaps
15856 wine_fn_config_dll msdmo enable_msdmo implib
15857 wine_fn_config_dll msftedit enable_msftedit
15858 wine_fn_config_dll msg711.acm enable_msg711_acm
15859 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15860 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15861 wine_fn_config_dll mshtml enable_mshtml implib,po
15862 wine_fn_config_test dlls/mshtml/tests mshtml_test
15863 wine_fn_config_dll msi enable_msi implib,po
15864 wine_fn_config_test dlls/msi/tests msi_test
15865 wine_fn_config_dll msident enable_msident
15866 wine_fn_config_dll msimg32 enable_msimg32 implib
15867 wine_fn_config_dll msimsg enable_msimsg
15868 wine_fn_config_dll msimtf enable_msimtf
15869 wine_fn_config_dll msisip enable_msisip
15870 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15871 wine_fn_config_dll msls31 enable_msls31
15872 wine_fn_config_dll msnet32 enable_msnet32
15873 wine_fn_config_dll mspatcha enable_mspatcha
15874 wine_fn_config_dll msrle32 enable_msrle32 po
15875 wine_fn_config_dll mssign32 enable_mssign32
15876 wine_fn_config_dll mssip32 enable_mssip32
15877 wine_fn_config_dll mstask enable_mstask
15878 wine_fn_config_test dlls/mstask/tests mstask_test
15879 wine_fn_config_dll msvcirt enable_msvcirt
15880 wine_fn_config_dll msvcm80 enable_msvcm80
15881 wine_fn_config_dll msvcm90 enable_msvcm90
15882 wine_fn_config_dll msvcp100 enable_msvcp100
15883 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
15884 wine_fn_config_dll msvcp60 enable_msvcp60
15885 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
15886 wine_fn_config_dll msvcp70 enable_msvcp70
15887 wine_fn_config_dll msvcp71 enable_msvcp71
15888 wine_fn_config_dll msvcp80 enable_msvcp80
15889 wine_fn_config_dll msvcp90 enable_msvcp90
15890 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15891 wine_fn_config_dll msvcr100 enable_msvcr100
15892 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
15893 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15894 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15895 wine_fn_config_dll msvcr80 enable_msvcr80
15896 wine_fn_config_dll msvcr90 enable_msvcr90
15897 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15898 wine_fn_config_dll msvcrt enable_msvcrt implib
15899 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15900 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15901 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15902 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15903 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15904 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
15905 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15906 wine_fn_config_dll msvidc32 enable_msvidc32 po
15907 wine_fn_config_dll msvideo.dll16 enable_win16
15908 wine_fn_config_dll mswsock enable_mswsock implib
15909 wine_fn_config_dll msxml enable_msxml
15910 wine_fn_config_dll msxml2 enable_msxml2
15911 wine_fn_config_dll msxml3 enable_msxml3
15912 wine_fn_config_test dlls/msxml3/tests msxml3_test
15913 wine_fn_config_dll msxml4 enable_msxml4
15914 wine_fn_config_dll msxml6 enable_msxml6
15915 wine_fn_config_dll nddeapi enable_nddeapi implib
15916 wine_fn_config_dll netapi32 enable_netapi32 implib
15917 wine_fn_config_test dlls/netapi32/tests netapi32_test
15918 wine_fn_config_dll newdev enable_newdev implib
15919 wine_fn_config_dll normaliz enable_normaliz implib
15920 wine_fn_config_dll npmshtml enable_npmshtml
15921 wine_fn_config_dll ntdll enable_ntdll implib
15922 wine_fn_config_test dlls/ntdll/tests ntdll_test
15923 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15924 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15925 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15926 wine_fn_config_dll ntprint enable_ntprint
15927 wine_fn_config_test dlls/ntprint/tests ntprint_test
15928 wine_fn_config_dll objsel enable_objsel
15929 wine_fn_config_dll odbc32 enable_odbc32 implib
15930 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15931 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15932 wine_fn_config_dll odbccu32 enable_odbccu32
15933 wine_fn_config_dll ole2.dll16 enable_win16
15934 wine_fn_config_dll ole2conv.dll16 enable_win16
15935 wine_fn_config_dll ole2disp.dll16 enable_win16
15936 wine_fn_config_dll ole2nls.dll16 enable_win16
15937 wine_fn_config_dll ole2prox.dll16 enable_win16
15938 wine_fn_config_dll ole2thk.dll16 enable_win16
15939 wine_fn_config_dll ole32 enable_ole32 implib
15940 wine_fn_config_test dlls/ole32/tests ole32_test
15941 wine_fn_config_dll oleacc enable_oleacc implib,po
15942 wine_fn_config_test dlls/oleacc/tests oleacc_test
15943 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
15944 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15945 wine_fn_config_dll olecli.dll16 enable_win16
15946 wine_fn_config_dll olecli32 enable_olecli32 implib
15947 wine_fn_config_dll oledb32 enable_oledb32
15948 wine_fn_config_test dlls/oledb32/tests oledb32_test
15949 wine_fn_config_dll oledlg enable_oledlg implib,po
15950 wine_fn_config_dll olepro32 enable_olepro32 implib
15951 wine_fn_config_dll olesvr.dll16 enable_win16
15952 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15953 wine_fn_config_dll olethk32 enable_olethk32
15954 wine_fn_config_dll openal32 enable_openal32
15955 wine_fn_config_dll opencl enable_opencl
15956 wine_fn_config_dll opengl32 enable_opengl32 implib
15957 wine_fn_config_test dlls/opengl32/tests opengl32_test
15958 wine_fn_config_dll pdh enable_pdh implib
15959 wine_fn_config_test dlls/pdh/tests pdh_test
15960 wine_fn_config_dll photometadatahandler enable_photometadatahandler
15961 wine_fn_config_dll pidgen enable_pidgen
15962 wine_fn_config_dll powrprof enable_powrprof implib
15963 wine_fn_config_dll printui enable_printui
15964 wine_fn_config_dll propsys enable_propsys implib
15965 wine_fn_config_test dlls/propsys/tests propsys_test
15966 wine_fn_config_dll psapi enable_psapi implib
15967 wine_fn_config_test dlls/psapi/tests psapi_test
15968 wine_fn_config_dll pstorec enable_pstorec
15969 wine_fn_config_dll qcap enable_qcap
15970 wine_fn_config_dll qedit enable_qedit
15971 wine_fn_config_test dlls/qedit/tests qedit_test
15972 wine_fn_config_dll qmgr enable_qmgr
15973 wine_fn_config_test dlls/qmgr/tests qmgr_test
15974 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15975 wine_fn_config_dll quartz enable_quartz implib
15976 wine_fn_config_test dlls/quartz/tests quartz_test
15977 wine_fn_config_dll query enable_query
15978 wine_fn_config_dll rasapi16.dll16 enable_win16
15979 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15980 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15981 wine_fn_config_dll rasdlg enable_rasdlg implib
15982 wine_fn_config_dll regapi enable_regapi
15983 wine_fn_config_dll resutils enable_resutils implib
15984 wine_fn_config_dll riched20 enable_riched20 implib
15985 wine_fn_config_test dlls/riched20/tests riched20_test
15986 wine_fn_config_dll riched32 enable_riched32
15987 wine_fn_config_test dlls/riched32/tests riched32_test
15988 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15989 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15990 wine_fn_config_dll rsabase enable_rsabase
15991 wine_fn_config_dll rsaenh enable_rsaenh implib
15992 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15993 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15994 wine_fn_config_dll rtutils enable_rtutils implib
15995 wine_fn_config_dll samlib enable_samlib
15996 wine_fn_config_dll sane.ds enable_sane_ds po
15997 wine_fn_config_dll scarddlg enable_scarddlg
15998 wine_fn_config_dll sccbase enable_sccbase
15999 wine_fn_config_dll schannel enable_schannel
16000 wine_fn_config_test dlls/schannel/tests schannel_test
16001 wine_fn_config_dll scrrun enable_scrrun
16002 wine_fn_config_test dlls/scrrun/tests scrrun_test
16003 wine_fn_config_dll scsiport.sys enable_scsiport_sys
16004 wine_fn_config_dll secur32 enable_secur32 implib
16005 wine_fn_config_test dlls/secur32/tests secur32_test
16006 wine_fn_config_dll security enable_security
16007 wine_fn_config_dll sensapi enable_sensapi implib
16008 wine_fn_config_dll serialui enable_serialui implib,po
16009 wine_fn_config_test dlls/serialui/tests serialui_test
16010 wine_fn_config_dll setupapi enable_setupapi implib,po
16011 wine_fn_config_test dlls/setupapi/tests setupapi_test
16012 wine_fn_config_dll setupx.dll16 enable_win16
16013 wine_fn_config_dll sfc enable_sfc implib
16014 wine_fn_config_dll sfc_os enable_sfc_os implib
16015 wine_fn_config_dll shdoclc enable_shdoclc po
16016 wine_fn_config_dll shdocvw enable_shdocvw implib
16017 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
16018 wine_fn_config_dll shell.dll16 enable_win16
16019 wine_fn_config_dll shell32 enable_shell32 implib,po
16020 wine_fn_config_test dlls/shell32/tests shell32_test
16021 wine_fn_config_dll shfolder enable_shfolder implib
16022 wine_fn_config_dll shlwapi enable_shlwapi implib,po
16023 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
16024 wine_fn_config_dll slbcsp enable_slbcsp
16025 wine_fn_config_dll slc enable_slc implib
16026 wine_fn_config_dll snmpapi enable_snmpapi implib
16027 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
16028 wine_fn_config_dll softpub enable_softpub
16029 wine_fn_config_dll sound.drv16 enable_win16
16030 wine_fn_config_dll spoolss enable_spoolss implib
16031 wine_fn_config_test dlls/spoolss/tests spoolss_test
16032 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
16033 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
16034 wine_fn_config_dll sti enable_sti implib
16035 wine_fn_config_test dlls/sti/tests sti_test
16036 wine_fn_config_dll storage.dll16 enable_win16
16037 wine_fn_config_dll stress.dll16 enable_win16
16038 wine_fn_config_lib strmbase
16039 wine_fn_config_lib strmiids
16040 wine_fn_config_dll svrapi enable_svrapi
16041 wine_fn_config_dll sxs enable_sxs implib
16042 wine_fn_config_test dlls/sxs/tests sxs_test
16043 wine_fn_config_dll system.drv16 enable_win16
16044 wine_fn_config_dll t2embed enable_t2embed
16045 wine_fn_config_dll tapi32 enable_tapi32 implib
16046 wine_fn_config_dll toolhelp.dll16 enable_win16
16047 wine_fn_config_dll traffic enable_traffic
16048 wine_fn_config_dll twain.dll16 enable_win16
16049 wine_fn_config_dll twain_32 enable_twain_32
16050 wine_fn_config_test dlls/twain_32/tests twain_32_test
16051 wine_fn_config_dll typelib.dll16 enable_win16
16052 wine_fn_config_dll unicows enable_unicows implib
16053 wine_fn_config_dll updspapi enable_updspapi
16054 wine_fn_config_dll url enable_url implib
16055 wine_fn_config_dll urlmon enable_urlmon implib,po
16056 wine_fn_config_test dlls/urlmon/tests urlmon_test
16057 wine_fn_config_dll usbd.sys enable_usbd_sys implib
16058 wine_fn_config_dll user.exe16 enable_win16
16059 wine_fn_config_dll user32 enable_user32 implib,po
16060 wine_fn_config_test dlls/user32/tests user32_test
16061 wine_fn_config_dll userenv enable_userenv implib
16062 wine_fn_config_test dlls/userenv/tests userenv_test
16063 wine_fn_config_dll usp10 enable_usp10 implib
16064 wine_fn_config_test dlls/usp10/tests usp10_test
16065 wine_fn_config_lib uuid
16066 wine_fn_config_dll uxtheme enable_uxtheme implib
16067 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
16068 wine_fn_config_dll vbscript enable_vbscript
16069 wine_fn_config_test dlls/vbscript/tests vbscript_test
16070 wine_fn_config_dll vcomp enable_vcomp
16071 wine_fn_config_dll vcomp100 enable_vcomp100
16072 wine_fn_config_dll vcomp90 enable_vcomp90
16073 wine_fn_config_dll vdhcp.vxd enable_win16
16074 wine_fn_config_dll vdmdbg enable_vdmdbg implib
16075 wine_fn_config_dll ver.dll16 enable_win16
16076 wine_fn_config_dll version enable_version implib
16077 wine_fn_config_test dlls/version/tests version_test
16078 wine_fn_config_dll vmm.vxd enable_win16
16079 wine_fn_config_dll vnbt.vxd enable_win16
16080 wine_fn_config_dll vnetbios.vxd enable_win16
16081 wine_fn_config_dll vtdapi.vxd enable_win16
16082 wine_fn_config_dll vwin32.vxd enable_win16
16083 wine_fn_config_dll w32skrnl enable_win16
16084 wine_fn_config_dll w32sys.dll16 enable_win16
16085 wine_fn_config_dll wbemprox enable_wbemprox
16086 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
16087 wine_fn_config_dll wer enable_wer implib
16088 wine_fn_config_test dlls/wer/tests wer_test
16089 wine_fn_config_dll wevtapi enable_wevtapi
16090 wine_fn_config_dll wiaservc enable_wiaservc
16091 wine_fn_config_dll win32s16.dll16 enable_win16
16092 wine_fn_config_dll win87em.dll16 enable_win16
16093 wine_fn_config_dll winaspi.dll16 enable_win16
16094 wine_fn_config_dll windebug.dll16 enable_win16
16095 wine_fn_config_dll windowscodecs enable_windowscodecs implib
16096 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
16097 wine_fn_config_dll winealsa.drv enable_winealsa_drv
16098 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
16099 wine_fn_config_lib winecrt0
16100 wine_fn_config_dll wined3d enable_wined3d implib
16101 wine_fn_config_dll winegstreamer enable_winegstreamer
16102 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
16103 wine_fn_config_dll winemac.drv enable_winemac_drv
16104 wine_fn_config_dll winemapi enable_winemapi
16105 wine_fn_config_dll winemp3.acm enable_winemp3_acm
16106 wine_fn_config_dll wineoss.drv enable_wineoss_drv
16107 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
16108 wine_fn_config_dll wineps16.drv16 enable_win16
16109 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
16110 wine_fn_config_dll winex11.drv enable_winex11_drv
16111 wine_fn_config_dll wing.dll16 enable_win16
16112 wine_fn_config_dll wing32 enable_wing32
16113 wine_fn_config_dll winhttp enable_winhttp implib
16114 wine_fn_config_test dlls/winhttp/tests winhttp_test
16115 wine_fn_config_dll wininet enable_wininet implib,po
16116 wine_fn_config_test dlls/wininet/tests wininet_test
16117 wine_fn_config_dll winmm enable_winmm implib,po
16118 wine_fn_config_test dlls/winmm/tests winmm_test
16119 wine_fn_config_dll winnls.dll16 enable_win16
16120 wine_fn_config_dll winnls32 enable_winnls32 implib
16121 wine_fn_config_dll winscard enable_winscard implib
16122 wine_fn_config_dll winsock.dll16 enable_win16
16123 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
16124 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
16125 wine_fn_config_dll winsta enable_winsta
16126 wine_fn_config_dll wintab.dll16 enable_win16
16127 wine_fn_config_dll wintab32 enable_wintab32 implib
16128 wine_fn_config_test dlls/wintab32/tests wintab32_test
16129 wine_fn_config_dll wintrust enable_wintrust implib
16130 wine_fn_config_test dlls/wintrust/tests wintrust_test
16131 wine_fn_config_dll wlanapi enable_wlanapi
16132 wine_fn_config_dll wldap32 enable_wldap32 implib,po
16133 wine_fn_config_test dlls/wldap32/tests wldap32_test
16134 wine_fn_config_dll wmi enable_wmi
16135 wine_fn_config_dll wmiutils enable_wmiutils
16136 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
16137 wine_fn_config_dll wmvcore enable_wmvcore
16138 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
16139 wine_fn_config_dll wow32 enable_win16 implib
16140 wine_fn_config_dll ws2_32 enable_ws2_32 implib
16141 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
16142 wine_fn_config_dll wshom.ocx enable_wshom_ocx
16143 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
16144 wine_fn_config_dll wsnmp32 enable_wsnmp32
16145 wine_fn_config_dll wsock32 enable_wsock32 implib
16146 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
16147 wine_fn_config_dll wuapi enable_wuapi
16148 wine_fn_config_dll wuaueng enable_wuaueng
16149 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
16150 wine_fn_config_dll xinput1_1 enable_xinput1_1
16151 wine_fn_config_dll xinput1_2 enable_xinput1_2
16152 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
16153 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
16154 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
16155 wine_fn_config_dll xmllite enable_xmllite
16156 wine_fn_config_test dlls/xmllite/tests xmllite_test
16157 wine_fn_config_dll xolehlp enable_xolehlp
16158 wine_fn_config_dll xpsprint enable_xpsprint
16159 wine_fn_config_dll xpssvcs enable_xpssvcs
16160 wine_fn_config_makefile documentation enable_documentation
16161 wine_fn_config_makefile fonts enable_fonts install-lib
16162 wine_fn_config_makefile include enable_include install-dev
16163 wine_fn_config_makefile libs/port enable_libs_port
16164 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
16165 wine_fn_config_makefile libs/wpp enable_libs_wpp
16166 wine_fn_config_makefile loader enable_loader install-lib,manpage
16167 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
16168 wine_fn_config_program attrib enable_attrib install,po
16169 wine_fn_config_program cabarc enable_cabarc install
16170 wine_fn_config_program cacls enable_cacls install
16171 wine_fn_config_program clock enable_clock install,po
16172 wine_fn_config_program cmd enable_cmd install,po
16173 wine_fn_config_test programs/cmd/tests cmd.exe_test
16174 wine_fn_config_program conhost enable_conhost install
16175 wine_fn_config_program control enable_control install
16176 wine_fn_config_program cscript enable_cscript install
16177 wine_fn_config_program dxdiag enable_dxdiag install,po
16178 wine_fn_config_program eject enable_eject install
16179 wine_fn_config_program expand enable_expand install
16180 wine_fn_config_program explorer enable_explorer install,po
16181 wine_fn_config_program extrac32 enable_extrac32 install
16182 wine_fn_config_program findstr enable_findstr install
16183 wine_fn_config_program hh enable_hh install
16184 wine_fn_config_program hostname enable_hostname install,po
16185 wine_fn_config_program icinfo enable_icinfo install
16186 wine_fn_config_program iexplore enable_iexplore install
16187 wine_fn_config_program ipconfig enable_ipconfig install,po
16188 wine_fn_config_program lodctr enable_lodctr install
16189 wine_fn_config_program mofcomp enable_mofcomp install
16190 wine_fn_config_program mshta enable_mshta install
16191 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
16192 wine_fn_config_program net enable_net install,po
16193 wine_fn_config_program netsh enable_netsh install
16194 wine_fn_config_program netstat enable_netstat install,po
16195 wine_fn_config_program ngen enable_ngen install
16196 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
16197 wine_fn_config_program oleview enable_oleview install,po
16198 wine_fn_config_program ping enable_ping install
16199 wine_fn_config_program plugplay enable_plugplay install
16200 wine_fn_config_program presentationfontcache enable_presentationfontcache install
16201 wine_fn_config_program progman enable_progman install,po
16202 wine_fn_config_program reg enable_reg install,po
16203 wine_fn_config_program regasm enable_regasm install
16204 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
16205 wine_fn_config_test programs/regedit/tests regedit.exe_test
16206 wine_fn_config_program regsvcs enable_regsvcs install
16207 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
16208 wine_fn_config_program rpcss enable_rpcss install
16209 wine_fn_config_program rundll.exe16 enable_win16 install
16210 wine_fn_config_program rundll32 enable_rundll32 install
16211 wine_fn_config_program sc enable_sc install
16212 wine_fn_config_program schtasks enable_schtasks install
16213 wine_fn_config_program secedit enable_secedit install
16214 wine_fn_config_program servicemodelreg enable_servicemodelreg install
16215 wine_fn_config_program services enable_services install
16216 wine_fn_config_test programs/services/tests services.exe_test
16217 wine_fn_config_program spoolsv enable_spoolsv install
16218 wine_fn_config_program start enable_start install,po
16219 wine_fn_config_program svchost enable_svchost install
16220 wine_fn_config_program taskkill enable_taskkill install,po
16221 wine_fn_config_program taskmgr enable_taskmgr install,po
16222 wine_fn_config_program termsv enable_termsv install
16223 wine_fn_config_program uninstaller enable_uninstaller install,po
16224 wine_fn_config_program unlodctr enable_unlodctr install
16225 wine_fn_config_program view enable_view install,po
16226 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
16227 wine_fn_config_program winebrowser enable_winebrowser install
16228 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
16229 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
16230 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
16231 wine_fn_config_program winedevice enable_winedevice install
16232 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
16233 wine_fn_config_program winemenubuilder enable_winemenubuilder install
16234 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
16235 wine_fn_config_program winemsibuilder enable_winemsibuilder install
16236 wine_fn_config_program winepath enable_winepath install,installbin,manpage
16237 wine_fn_config_program winetest enable_winetest
16238 wine_fn_config_program winevdm enable_win16 install
16239 wine_fn_config_program winhelp.exe16 enable_win16 install
16240 wine_fn_config_program winhlp32 enable_winhlp32 install,po
16241 wine_fn_config_program winoldap.mod16 enable_win16 install
16242 wine_fn_config_program winver enable_winver install
16243 wine_fn_config_program wmic enable_wmic install,po
16244 wine_fn_config_program wordpad enable_wordpad install,po
16245 wine_fn_config_program write enable_write install,po
16246 wine_fn_config_program wscript enable_wscript install
16247 wine_fn_config_test programs/wscript/tests wscript.exe_test
16248 wine_fn_config_program wusa enable_wusa install
16249 wine_fn_config_program xcopy enable_xcopy install,po
16250 wine_fn_config_makefile server enable_server install-lib,manpage
16251 wine_fn_config_tool tools install-dev,install-lib,manpage
16252 wine_fn_config_tool tools/widl install-dev,manpage
16253 wine_fn_config_tool tools/winebuild install-dev,manpage
16254 wine_fn_config_tool tools/winedump install-dev,manpage
16255 wine_fn_config_tool tools/winegcc install-dev,manpage
16256 wine_fn_config_tool tools/wmc install-dev,manpage
16257 wine_fn_config_tool tools/wrc install-dev,manpage
16259 LINGUAS="\
16260 ar \
16261 bg \
16262 ca \
16263 cs \
16264 da \
16265 de \
16266 el \
16267 en \
16268 en_US \
16269 eo \
16270 es \
16271 fa \
16272 fi \
16273 fr \
16274 he \
16275 hi \
16276 hu \
16277 it \
16278 ja \
16279 ko \
16280 lt \
16281 ml \
16282 nb_NO \
16283 nl \
16284 or \
16285 pa \
16286 pl \
16287 pt_BR \
16288 pt_PT \
16289 rm \
16290 ro \
16291 ru \
16292 sk \
16293 sl \
16294 sr_RS@cyrillic \
16295 sr_RS@latin \
16296 sv \
16297 te \
16298 th \
16299 tr \
16300 uk \
16301 wa \
16302 zh_CN \
16303 zh_TW"
16307 ac_config_commands="$ac_config_commands Makefile"
16310 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
16314 if test "x$enable_maintainer_mode" = xyes
16315 then
16316 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
16317 cd \$(srcdir) && autoconf --warnings=all
16318 \$(srcdir)/include/config.h.in: include/stamp-h.in
16319 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
16320 cd \$(srcdir) && autoheader --warnings=all
16321 @echo timestamp > \$@"
16324 if test "x$with_gettextpo" = xyes
16325 then
16326 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
16327 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
16328 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
16329 msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
16330 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
16331 msgcat -o \$@ \$(ALL_POT_FILES)"
16334 if test "$MSGFMT" != false
16335 then
16336 PORCFLAGS="--po-dir=\$(top_builddir)/po"
16338 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
16339 else
16340 LINGUAS=
16343 if test "x$enable_tools" != xno
16344 then
16345 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
16346 clean:: __clean__
16347 \$(RM) tools/makedep\$(EXEEXT)"
16350 if test -n "$with_wine64"
16351 then
16352 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
16353 fonts server tools:
16354 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
16355 $with_wine64/loader/wine:
16356 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
16357 $with_wine64/loader/wine-preloader:
16358 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
16359 clean::
16360 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
16363 cat >confcache <<\_ACEOF
16364 # This file is a shell script that caches the results of configure
16365 # tests run on this system so they can be shared between configure
16366 # scripts and configure runs, see configure's option --config-cache.
16367 # It is not useful on other systems. If it contains results you don't
16368 # want to keep, you may remove or edit it.
16370 # config.status only pays attention to the cache file if you give it
16371 # the --recheck option to rerun configure.
16373 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16374 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16375 # following values.
16377 _ACEOF
16379 # The following way of writing the cache mishandles newlines in values,
16380 # but we know of no workaround that is simple, portable, and efficient.
16381 # So, we kill variables containing newlines.
16382 # Ultrix sh set writes to stderr and can't be redirected directly,
16383 # and sets the high bit in the cache file unless we assign to the vars.
16385 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16386 eval ac_val=\$$ac_var
16387 case $ac_val in #(
16388 *${as_nl}*)
16389 case $ac_var in #(
16390 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16391 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16392 esac
16393 case $ac_var in #(
16394 _ | IFS | as_nl) ;; #(
16395 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16396 *) { eval $ac_var=; unset $ac_var;} ;;
16397 esac ;;
16398 esac
16399 done
16401 (set) 2>&1 |
16402 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16403 *${as_nl}ac_space=\ *)
16404 # `set' does not quote correctly, so add quotes: double-quote
16405 # substitution turns \\\\ into \\, and sed turns \\ into \.
16406 sed -n \
16407 "s/'/'\\\\''/g;
16408 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16409 ;; #(
16411 # `set' quotes correctly as required by POSIX, so do not add quotes.
16412 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16414 esac |
16415 sort
16417 sed '
16418 /^ac_cv_env_/b end
16419 t clear
16420 :clear
16421 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16422 t end
16423 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16424 :end' >>confcache
16425 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16426 if test -w "$cache_file"; then
16427 if test "x$cache_file" != "x/dev/null"; then
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16429 $as_echo "$as_me: updating cache $cache_file" >&6;}
16430 if test ! -f "$cache_file" || test -h "$cache_file"; then
16431 cat confcache >"$cache_file"
16432 else
16433 case $cache_file in #(
16434 */* | ?:*)
16435 mv -f confcache "$cache_file"$$ &&
16436 mv -f "$cache_file"$$ "$cache_file" ;; #(
16438 mv -f confcache "$cache_file" ;;
16439 esac
16442 else
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16444 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16447 rm -f confcache
16449 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16450 # Let make expand exec_prefix.
16451 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16453 DEFS=-DHAVE_CONFIG_H
16455 ac_libobjs=
16456 ac_ltlibobjs=
16458 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16459 # 1. Remove the extension, and $U if already installed.
16460 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16461 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16462 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16463 # will be set to the directory where LIBOBJS objects are built.
16464 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16465 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16466 done
16467 LIBOBJS=$ac_libobjs
16469 LTLIBOBJS=$ac_ltlibobjs
16473 : "${CONFIG_STATUS=./config.status}"
16474 ac_write_fail=0
16475 ac_clean_files_save=$ac_clean_files
16476 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16478 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16479 as_write_fail=0
16480 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16481 #! $SHELL
16482 # Generated by $as_me.
16483 # Run this file to recreate the current configuration.
16484 # Compiler output produced by configure, useful for debugging
16485 # configure, is in config.log if it exists.
16487 debug=false
16488 ac_cs_recheck=false
16489 ac_cs_silent=false
16491 SHELL=\${CONFIG_SHELL-$SHELL}
16492 export SHELL
16493 _ASEOF
16494 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16495 ## -------------------- ##
16496 ## M4sh Initialization. ##
16497 ## -------------------- ##
16499 # Be more Bourne compatible
16500 DUALCASE=1; export DUALCASE # for MKS sh
16501 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16502 emulate sh
16503 NULLCMD=:
16504 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16505 # is contrary to our usage. Disable this feature.
16506 alias -g '${1+"$@"}'='"$@"'
16507 setopt NO_GLOB_SUBST
16508 else
16509 case `(set -o) 2>/dev/null` in #(
16510 *posix*) :
16511 set -o posix ;; #(
16512 *) :
16514 esac
16518 as_nl='
16520 export as_nl
16521 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16522 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16523 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16524 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16525 # Prefer a ksh shell builtin over an external printf program on Solaris,
16526 # but without wasting forks for bash or zsh.
16527 if test -z "$BASH_VERSION$ZSH_VERSION" \
16528 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16529 as_echo='print -r --'
16530 as_echo_n='print -rn --'
16531 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16532 as_echo='printf %s\n'
16533 as_echo_n='printf %s'
16534 else
16535 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16536 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16537 as_echo_n='/usr/ucb/echo -n'
16538 else
16539 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16540 as_echo_n_body='eval
16541 arg=$1;
16542 case $arg in #(
16543 *"$as_nl"*)
16544 expr "X$arg" : "X\\(.*\\)$as_nl";
16545 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16546 esac;
16547 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16549 export as_echo_n_body
16550 as_echo_n='sh -c $as_echo_n_body as_echo'
16552 export as_echo_body
16553 as_echo='sh -c $as_echo_body as_echo'
16556 # The user is always right.
16557 if test "${PATH_SEPARATOR+set}" != set; then
16558 PATH_SEPARATOR=:
16559 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16560 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16561 PATH_SEPARATOR=';'
16566 # IFS
16567 # We need space, tab and new line, in precisely that order. Quoting is
16568 # there to prevent editors from complaining about space-tab.
16569 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16570 # splitting by setting IFS to empty value.)
16571 IFS=" "" $as_nl"
16573 # Find who we are. Look in the path if we contain no directory separator.
16574 as_myself=
16575 case $0 in #((
16576 *[\\/]* ) as_myself=$0 ;;
16577 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16578 for as_dir in $PATH
16580 IFS=$as_save_IFS
16581 test -z "$as_dir" && as_dir=.
16582 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16583 done
16584 IFS=$as_save_IFS
16587 esac
16588 # We did not find ourselves, most probably we were run as `sh COMMAND'
16589 # in which case we are not to be found in the path.
16590 if test "x$as_myself" = x; then
16591 as_myself=$0
16593 if test ! -f "$as_myself"; then
16594 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16595 exit 1
16598 # Unset variables that we do not need and which cause bugs (e.g. in
16599 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16600 # suppresses any "Segmentation fault" message there. '((' could
16601 # trigger a bug in pdksh 5.2.14.
16602 for as_var in BASH_ENV ENV MAIL MAILPATH
16603 do eval test x\${$as_var+set} = xset \
16604 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16605 done
16606 PS1='$ '
16607 PS2='> '
16608 PS4='+ '
16610 # NLS nuisances.
16611 LC_ALL=C
16612 export LC_ALL
16613 LANGUAGE=C
16614 export LANGUAGE
16616 # CDPATH.
16617 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16620 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16621 # ----------------------------------------
16622 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16623 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16624 # script with STATUS, using 1 if that was 0.
16625 as_fn_error ()
16627 as_status=$1; test $as_status -eq 0 && as_status=1
16628 if test "$4"; then
16629 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16630 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16632 $as_echo "$as_me: error: $2" >&2
16633 as_fn_exit $as_status
16634 } # as_fn_error
16637 # as_fn_set_status STATUS
16638 # -----------------------
16639 # Set $? to STATUS, without forking.
16640 as_fn_set_status ()
16642 return $1
16643 } # as_fn_set_status
16645 # as_fn_exit STATUS
16646 # -----------------
16647 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16648 as_fn_exit ()
16650 set +e
16651 as_fn_set_status $1
16652 exit $1
16653 } # as_fn_exit
16655 # as_fn_unset VAR
16656 # ---------------
16657 # Portably unset VAR.
16658 as_fn_unset ()
16660 { eval $1=; unset $1;}
16662 as_unset=as_fn_unset
16663 # as_fn_append VAR VALUE
16664 # ----------------------
16665 # Append the text in VALUE to the end of the definition contained in VAR. Take
16666 # advantage of any shell optimizations that allow amortized linear growth over
16667 # repeated appends, instead of the typical quadratic growth present in naive
16668 # implementations.
16669 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16670 eval 'as_fn_append ()
16672 eval $1+=\$2
16674 else
16675 as_fn_append ()
16677 eval $1=\$$1\$2
16679 fi # as_fn_append
16681 # as_fn_arith ARG...
16682 # ------------------
16683 # Perform arithmetic evaluation on the ARGs, and store the result in the
16684 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16685 # must be portable across $(()) and expr.
16686 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16687 eval 'as_fn_arith ()
16689 as_val=$(( $* ))
16691 else
16692 as_fn_arith ()
16694 as_val=`expr "$@" || test $? -eq 1`
16696 fi # as_fn_arith
16699 if expr a : '\(a\)' >/dev/null 2>&1 &&
16700 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16701 as_expr=expr
16702 else
16703 as_expr=false
16706 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16707 as_basename=basename
16708 else
16709 as_basename=false
16712 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16713 as_dirname=dirname
16714 else
16715 as_dirname=false
16718 as_me=`$as_basename -- "$0" ||
16719 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16720 X"$0" : 'X\(//\)$' \| \
16721 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16722 $as_echo X/"$0" |
16723 sed '/^.*\/\([^/][^/]*\)\/*$/{
16724 s//\1/
16727 /^X\/\(\/\/\)$/{
16728 s//\1/
16731 /^X\/\(\/\).*/{
16732 s//\1/
16735 s/.*/./; q'`
16737 # Avoid depending upon Character Ranges.
16738 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16739 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16740 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16741 as_cr_digits='0123456789'
16742 as_cr_alnum=$as_cr_Letters$as_cr_digits
16744 ECHO_C= ECHO_N= ECHO_T=
16745 case `echo -n x` in #(((((
16746 -n*)
16747 case `echo 'xy\c'` in
16748 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16749 xy) ECHO_C='\c';;
16750 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16751 ECHO_T=' ';;
16752 esac;;
16754 ECHO_N='-n';;
16755 esac
16757 rm -f conf$$ conf$$.exe conf$$.file
16758 if test -d conf$$.dir; then
16759 rm -f conf$$.dir/conf$$.file
16760 else
16761 rm -f conf$$.dir
16762 mkdir conf$$.dir 2>/dev/null
16764 if (echo >conf$$.file) 2>/dev/null; then
16765 if ln -s conf$$.file conf$$ 2>/dev/null; then
16766 as_ln_s='ln -s'
16767 # ... but there are two gotchas:
16768 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16769 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16770 # In both cases, we have to default to `cp -pR'.
16771 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16772 as_ln_s='cp -pR'
16773 elif ln conf$$.file conf$$ 2>/dev/null; then
16774 as_ln_s=ln
16775 else
16776 as_ln_s='cp -pR'
16778 else
16779 as_ln_s='cp -pR'
16781 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16782 rmdir conf$$.dir 2>/dev/null
16785 # as_fn_mkdir_p
16786 # -------------
16787 # Create "$as_dir" as a directory, including parents if necessary.
16788 as_fn_mkdir_p ()
16791 case $as_dir in #(
16792 -*) as_dir=./$as_dir;;
16793 esac
16794 test -d "$as_dir" || eval $as_mkdir_p || {
16795 as_dirs=
16796 while :; do
16797 case $as_dir in #(
16798 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16799 *) as_qdir=$as_dir;;
16800 esac
16801 as_dirs="'$as_qdir' $as_dirs"
16802 as_dir=`$as_dirname -- "$as_dir" ||
16803 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16804 X"$as_dir" : 'X\(//\)[^/]' \| \
16805 X"$as_dir" : 'X\(//\)$' \| \
16806 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16807 $as_echo X"$as_dir" |
16808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16809 s//\1/
16812 /^X\(\/\/\)[^/].*/{
16813 s//\1/
16816 /^X\(\/\/\)$/{
16817 s//\1/
16820 /^X\(\/\).*/{
16821 s//\1/
16824 s/.*/./; q'`
16825 test -d "$as_dir" && break
16826 done
16827 test -z "$as_dirs" || eval "mkdir $as_dirs"
16828 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16831 } # as_fn_mkdir_p
16832 if mkdir -p . 2>/dev/null; then
16833 as_mkdir_p='mkdir -p "$as_dir"'
16834 else
16835 test -d ./-p && rmdir ./-p
16836 as_mkdir_p=false
16840 # as_fn_executable_p FILE
16841 # -----------------------
16842 # Test if FILE is an executable regular file.
16843 as_fn_executable_p ()
16845 test -f "$1" && test -x "$1"
16846 } # as_fn_executable_p
16847 as_test_x='test -x'
16848 as_executable_p=as_fn_executable_p
16850 # Sed expression to map a string onto a valid CPP name.
16851 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16853 # Sed expression to map a string onto a valid variable name.
16854 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16857 exec 6>&1
16858 ## ----------------------------------- ##
16859 ## Main body of $CONFIG_STATUS script. ##
16860 ## ----------------------------------- ##
16861 _ASEOF
16862 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16865 # Save the log message, to keep $0 and so on meaningful, and to
16866 # report actual input values of CONFIG_FILES etc. instead of their
16867 # values after options handling.
16868 ac_log="
16869 This file was extended by Wine $as_me 1.5.21, which was
16870 generated by GNU Autoconf 2.69. Invocation command line was
16872 CONFIG_FILES = $CONFIG_FILES
16873 CONFIG_HEADERS = $CONFIG_HEADERS
16874 CONFIG_LINKS = $CONFIG_LINKS
16875 CONFIG_COMMANDS = $CONFIG_COMMANDS
16876 $ $0 $@
16878 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16881 _ACEOF
16883 case $ac_config_files in *"
16884 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16885 esac
16887 case $ac_config_headers in *"
16888 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16889 esac
16892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16893 # Files that config.status was made for.
16894 config_files="$ac_config_files"
16895 config_headers="$ac_config_headers"
16896 config_links="$ac_config_links"
16897 config_commands="$ac_config_commands"
16899 _ACEOF
16901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16902 ac_cs_usage="\
16903 \`$as_me' instantiates files and other configuration actions
16904 from templates according to the current configuration. Unless the files
16905 and actions are specified as TAGs, all are instantiated by default.
16907 Usage: $0 [OPTION]... [TAG]...
16909 -h, --help print this help, then exit
16910 -V, --version print version number and configuration settings, then exit
16911 --config print configuration, then exit
16912 -q, --quiet, --silent
16913 do not print progress messages
16914 -d, --debug don't remove temporary files
16915 --recheck update $as_me by reconfiguring in the same conditions
16916 --file=FILE[:TEMPLATE]
16917 instantiate the configuration file FILE
16918 --header=FILE[:TEMPLATE]
16919 instantiate the configuration header FILE
16921 Configuration files:
16922 $config_files
16924 Configuration headers:
16925 $config_headers
16927 Configuration links:
16928 $config_links
16930 Configuration commands:
16931 $config_commands
16933 Report bugs to <wine-devel@winehq.org>.
16934 Wine home page: <http://www.winehq.org>."
16936 _ACEOF
16937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16938 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16939 ac_cs_version="\\
16940 Wine config.status 1.5.21
16941 configured by $0, generated by GNU Autoconf 2.69,
16942 with options \\"\$ac_cs_config\\"
16944 Copyright (C) 2012 Free Software Foundation, Inc.
16945 This config.status script is free software; the Free Software Foundation
16946 gives unlimited permission to copy, distribute and modify it."
16948 ac_pwd='$ac_pwd'
16949 srcdir='$srcdir'
16950 INSTALL='$INSTALL'
16951 test -n "\$AWK" || AWK=awk
16952 _ACEOF
16954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16955 # The default lists apply if the user does not specify any file.
16956 ac_need_defaults=:
16957 while test $# != 0
16959 case $1 in
16960 --*=?*)
16961 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16962 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16963 ac_shift=:
16965 --*=)
16966 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16967 ac_optarg=
16968 ac_shift=:
16971 ac_option=$1
16972 ac_optarg=$2
16973 ac_shift=shift
16975 esac
16977 case $ac_option in
16978 # Handling of the options.
16979 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16980 ac_cs_recheck=: ;;
16981 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16982 $as_echo "$ac_cs_version"; exit ;;
16983 --config | --confi | --conf | --con | --co | --c )
16984 $as_echo "$ac_cs_config"; exit ;;
16985 --debug | --debu | --deb | --de | --d | -d )
16986 debug=: ;;
16987 --file | --fil | --fi | --f )
16988 $ac_shift
16989 case $ac_optarg in
16990 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16991 '') as_fn_error $? "missing file argument" ;;
16992 esac
16993 as_fn_append CONFIG_FILES " '$ac_optarg'"
16994 ac_need_defaults=false;;
16995 --header | --heade | --head | --hea )
16996 $ac_shift
16997 case $ac_optarg in
16998 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16999 esac
17000 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17001 ac_need_defaults=false;;
17002 --he | --h)
17003 # Conflict between --help and --header
17004 as_fn_error $? "ambiguous option: \`$1'
17005 Try \`$0 --help' for more information.";;
17006 --help | --hel | -h )
17007 $as_echo "$ac_cs_usage"; exit ;;
17008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17009 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17010 ac_cs_silent=: ;;
17012 # This is an error.
17013 -*) as_fn_error $? "unrecognized option: \`$1'
17014 Try \`$0 --help' for more information." ;;
17016 *) as_fn_append ac_config_targets " $1"
17017 ac_need_defaults=false ;;
17019 esac
17020 shift
17021 done
17023 ac_configure_extra_args=
17025 if $ac_cs_silent; then
17026 exec 6>/dev/null
17027 ac_configure_extra_args="$ac_configure_extra_args --silent"
17030 _ACEOF
17031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17032 if \$ac_cs_recheck; then
17033 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17034 shift
17035 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17036 CONFIG_SHELL='$SHELL'
17037 export CONFIG_SHELL
17038 exec "\$@"
17041 _ACEOF
17042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17043 exec 5>>config.log
17045 echo
17046 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17047 ## Running $as_me. ##
17048 _ASBOX
17049 $as_echo "$ac_log"
17050 } >&5
17052 _ACEOF
17053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17055 # INIT-COMMANDS
17057 wine_fn_output_makefile ()
17059 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
17060 $ALL_MAKEFILE_DEPENDS
17061 _WINE_EOF
17062 as_fn_error $? "could not create Makefile" "$LINENO" 5
17065 _ACEOF
17067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17069 # Handling of arguments.
17070 for ac_config_target in $ac_config_targets
17072 case $ac_config_target in
17073 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17074 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
17075 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
17076 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
17077 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
17078 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
17079 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
17080 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
17081 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
17082 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
17083 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
17084 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
17085 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
17086 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
17087 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
17088 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
17089 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
17090 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
17091 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17092 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17093 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
17094 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17095 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
17096 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17097 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
17098 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
17100 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17101 esac
17102 done
17105 # If the user did not use the arguments to specify the items to instantiate,
17106 # then the envvar interface is used. Set only those that are not.
17107 # We use the long form for the default assignment because of an extremely
17108 # bizarre bug on SunOS 4.1.3.
17109 if $ac_need_defaults; then
17110 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17111 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17112 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17113 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17116 # Have a temporary directory for convenience. Make it in the build tree
17117 # simply because there is no reason against having it here, and in addition,
17118 # creating and moving files from /tmp can sometimes cause problems.
17119 # Hook for its removal unless debugging.
17120 # Note that there is a small window in which the directory will not be cleaned:
17121 # after its creation but before its name has been assigned to `$tmp'.
17122 $debug ||
17124 tmp= ac_tmp=
17125 trap 'exit_status=$?
17126 : "${ac_tmp:=$tmp}"
17127 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17129 trap 'as_fn_exit 1' 1 2 13 15
17131 # Create a (secure) tmp directory for tmp files.
17134 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17135 test -d "$tmp"
17136 } ||
17138 tmp=./conf$$-$RANDOM
17139 (umask 077 && mkdir "$tmp")
17140 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17141 ac_tmp=$tmp
17143 # Set up the scripts for CONFIG_FILES section.
17144 # No need to generate them if there are no CONFIG_FILES.
17145 # This happens for instance with `./config.status config.h'.
17146 if test -n "$CONFIG_FILES"; then
17148 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17149 ac_cs_awk_getline=:
17150 ac_cs_awk_pipe_init=
17151 ac_cs_awk_read_file='
17152 while ((getline aline < (F[key])) > 0)
17153 print(aline)
17154 close(F[key])'
17155 ac_cs_awk_pipe_fini=
17156 else
17157 ac_cs_awk_getline=false
17158 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17159 ac_cs_awk_read_file='
17160 print "|#_!!_#|"
17161 print "cat " F[key] " &&"
17162 '$ac_cs_awk_pipe_init
17163 # The final `:' finishes the AND list.
17164 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17166 ac_cr=`echo X | tr X '\015'`
17167 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17168 # But we know of no other shell where ac_cr would be empty at this
17169 # point, so we can use a bashism as a fallback.
17170 if test "x$ac_cr" = x; then
17171 eval ac_cr=\$\'\\r\'
17173 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17174 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17175 ac_cs_awk_cr='\\r'
17176 else
17177 ac_cs_awk_cr=$ac_cr
17180 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17181 _ACEOF
17183 # Create commands to substitute file output variables.
17185 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17186 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
17187 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17188 echo "_ACAWK" &&
17189 echo "_ACEOF"
17190 } >conf$$files.sh &&
17191 . ./conf$$files.sh ||
17192 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17193 rm -f conf$$files.sh
17196 echo "cat >conf$$subs.awk <<_ACEOF" &&
17197 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17198 echo "_ACEOF"
17199 } >conf$$subs.sh ||
17200 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17201 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17202 ac_delim='%!_!# '
17203 for ac_last_try in false false false false false :; do
17204 . ./conf$$subs.sh ||
17205 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17207 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17208 if test $ac_delim_n = $ac_delim_num; then
17209 break
17210 elif $ac_last_try; then
17211 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17212 else
17213 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17215 done
17216 rm -f conf$$subs.sh
17218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17219 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17220 _ACEOF
17221 sed -n '
17223 s/^/S["/; s/!.*/"]=/
17226 s/^[^!]*!//
17227 :repl
17228 t repl
17229 s/'"$ac_delim"'$//
17230 t delim
17233 s/\(.\{148\}\)..*/\1/
17234 t more1
17235 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17238 b repl
17239 :more1
17240 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17243 s/.\{148\}//
17244 t nl
17245 :delim
17247 s/\(.\{148\}\)..*/\1/
17248 t more2
17249 s/["\\]/\\&/g; s/^/"/; s/$/"/
17252 :more2
17253 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17256 s/.\{148\}//
17257 t delim
17258 ' <conf$$subs.awk | sed '
17259 /^[^""]/{
17261 s/\n//
17263 ' >>$CONFIG_STATUS || ac_write_fail=1
17264 rm -f conf$$subs.awk
17265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17266 _ACAWK
17267 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17268 for (key in S) S_is_set[key] = 1
17269 FS = "\a"
17270 \$ac_cs_awk_pipe_init
17273 line = $ 0
17274 nfields = split(line, field, "@")
17275 substed = 0
17276 len = length(field[1])
17277 for (i = 2; i < nfields; i++) {
17278 key = field[i]
17279 keylen = length(key)
17280 if (S_is_set[key]) {
17281 value = S[key]
17282 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17283 len += length(value) + length(field[++i])
17284 substed = 1
17285 } else
17286 len += 1 + keylen
17288 if (nfields == 3 && !substed) {
17289 key = field[2]
17290 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17291 \$ac_cs_awk_read_file
17292 next
17295 print line
17297 \$ac_cs_awk_pipe_fini
17298 _ACAWK
17299 _ACEOF
17300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17301 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17302 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17303 else
17305 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17306 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17307 _ACEOF
17309 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17310 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17311 # trailing colons and then remove the whole line if VPATH becomes empty
17312 # (actually we leave an empty line to preserve line numbers).
17313 if test "x$srcdir" = x.; then
17314 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17316 s///
17317 s/^/:/
17318 s/[ ]*$/:/
17319 s/:\$(srcdir):/:/g
17320 s/:\${srcdir}:/:/g
17321 s/:@srcdir@:/:/g
17322 s/^:*//
17323 s/:*$//
17325 s/\(=[ ]*\).*/\1/
17327 s/\n//
17328 s/^[^=]*=[ ]*$//
17332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17333 fi # test -n "$CONFIG_FILES"
17335 # Set up the scripts for CONFIG_HEADERS section.
17336 # No need to generate them if there are no CONFIG_HEADERS.
17337 # This happens for instance with `./config.status Makefile'.
17338 if test -n "$CONFIG_HEADERS"; then
17339 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17340 BEGIN {
17341 _ACEOF
17343 # Transform confdefs.h into an awk script `defines.awk', embedded as
17344 # here-document in config.status, that substitutes the proper values into
17345 # config.h.in to produce config.h.
17347 # Create a delimiter string that does not exist in confdefs.h, to ease
17348 # handling of long lines.
17349 ac_delim='%!_!# '
17350 for ac_last_try in false false :; do
17351 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17352 if test -z "$ac_tt"; then
17353 break
17354 elif $ac_last_try; then
17355 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17356 else
17357 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17359 done
17361 # For the awk script, D is an array of macro values keyed by name,
17362 # likewise P contains macro parameters if any. Preserve backslash
17363 # newline sequences.
17365 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17366 sed -n '
17367 s/.\{148\}/&'"$ac_delim"'/g
17368 t rset
17369 :rset
17370 s/^[ ]*#[ ]*define[ ][ ]*/ /
17371 t def
17373 :def
17374 s/\\$//
17375 t bsnl
17376 s/["\\]/\\&/g
17377 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17378 D["\1"]=" \3"/p
17379 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17381 :bsnl
17382 s/["\\]/\\&/g
17383 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17384 D["\1"]=" \3\\\\\\n"\\/p
17385 t cont
17386 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17387 t cont
17389 :cont
17391 s/.\{148\}/&'"$ac_delim"'/g
17392 t clear
17393 :clear
17394 s/\\$//
17395 t bsnlc
17396 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17398 :bsnlc
17399 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17400 b cont
17401 ' <confdefs.h | sed '
17402 s/'"$ac_delim"'/"\\\
17403 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17406 for (key in D) D_is_set[key] = 1
17407 FS = "\a"
17409 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17410 line = \$ 0
17411 split(line, arg, " ")
17412 if (arg[1] == "#") {
17413 defundef = arg[2]
17414 mac1 = arg[3]
17415 } else {
17416 defundef = substr(arg[1], 2)
17417 mac1 = arg[2]
17419 split(mac1, mac2, "(") #)
17420 macro = mac2[1]
17421 prefix = substr(line, 1, index(line, defundef) - 1)
17422 if (D_is_set[macro]) {
17423 # Preserve the white space surrounding the "#".
17424 print prefix "define", macro P[macro] D[macro]
17425 next
17426 } else {
17427 # Replace #undef with comments. This is necessary, for example,
17428 # in the case of _POSIX_SOURCE, which is predefined and required
17429 # on some systems where configure will not decide to define it.
17430 if (defundef == "undef") {
17431 print "/*", prefix defundef, macro, "*/"
17432 next
17436 { print }
17437 _ACAWK
17438 _ACEOF
17439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17440 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17441 fi # test -n "$CONFIG_HEADERS"
17444 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17445 shift
17446 for ac_tag
17448 case $ac_tag in
17449 :[FHLC]) ac_mode=$ac_tag; continue;;
17450 esac
17451 case $ac_mode$ac_tag in
17452 :[FHL]*:*);;
17453 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17454 :[FH]-) ac_tag=-:-;;
17455 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17456 esac
17457 ac_save_IFS=$IFS
17458 IFS=:
17459 set x $ac_tag
17460 IFS=$ac_save_IFS
17461 shift
17462 ac_file=$1
17463 shift
17465 case $ac_mode in
17466 :L) ac_source=$1;;
17467 :[FH])
17468 ac_file_inputs=
17469 for ac_f
17471 case $ac_f in
17472 -) ac_f="$ac_tmp/stdin";;
17473 *) # Look for the file first in the build tree, then in the source tree
17474 # (if the path is not absolute). The absolute path cannot be DOS-style,
17475 # because $ac_f cannot contain `:'.
17476 test -f "$ac_f" ||
17477 case $ac_f in
17478 [\\/$]*) false;;
17479 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17480 esac ||
17481 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17482 esac
17483 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17484 as_fn_append ac_file_inputs " '$ac_f'"
17485 done
17487 # Let's still pretend it is `configure' which instantiates (i.e., don't
17488 # use $as_me), people would be surprised to read:
17489 # /* config.h. Generated by config.status. */
17490 configure_input='Generated from '`
17491 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17492 `' by configure.'
17493 if test x"$ac_file" != x-; then
17494 configure_input="$ac_file. $configure_input"
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17496 $as_echo "$as_me: creating $ac_file" >&6;}
17498 # Neutralize special characters interpreted by sed in replacement strings.
17499 case $configure_input in #(
17500 *\&* | *\|* | *\\* )
17501 ac_sed_conf_input=`$as_echo "$configure_input" |
17502 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17503 *) ac_sed_conf_input=$configure_input;;
17504 esac
17506 case $ac_tag in
17507 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17508 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17509 esac
17511 esac
17513 ac_dir=`$as_dirname -- "$ac_file" ||
17514 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17515 X"$ac_file" : 'X\(//\)[^/]' \| \
17516 X"$ac_file" : 'X\(//\)$' \| \
17517 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17518 $as_echo X"$ac_file" |
17519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17520 s//\1/
17523 /^X\(\/\/\)[^/].*/{
17524 s//\1/
17527 /^X\(\/\/\)$/{
17528 s//\1/
17531 /^X\(\/\).*/{
17532 s//\1/
17535 s/.*/./; q'`
17536 as_dir="$ac_dir"; as_fn_mkdir_p
17537 ac_builddir=.
17539 case "$ac_dir" in
17540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17542 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17543 # A ".." for each directory in $ac_dir_suffix.
17544 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17545 case $ac_top_builddir_sub in
17546 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17547 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17548 esac ;;
17549 esac
17550 ac_abs_top_builddir=$ac_pwd
17551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17552 # for backward compatibility:
17553 ac_top_builddir=$ac_top_build_prefix
17555 case $srcdir in
17556 .) # We are building in place.
17557 ac_srcdir=.
17558 ac_top_srcdir=$ac_top_builddir_sub
17559 ac_abs_top_srcdir=$ac_pwd ;;
17560 [\\/]* | ?:[\\/]* ) # Absolute name.
17561 ac_srcdir=$srcdir$ac_dir_suffix;
17562 ac_top_srcdir=$srcdir
17563 ac_abs_top_srcdir=$srcdir ;;
17564 *) # Relative name.
17565 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17566 ac_top_srcdir=$ac_top_build_prefix$srcdir
17567 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17568 esac
17569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17572 case $ac_mode in
17575 # CONFIG_FILE
17578 case $INSTALL in
17579 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17580 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17581 esac
17582 _ACEOF
17584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17585 # If the template does not know about datarootdir, expand it.
17586 # FIXME: This hack should be removed a few years after 2.60.
17587 ac_datarootdir_hack=; ac_datarootdir_seen=
17588 ac_sed_dataroot='
17589 /datarootdir/ {
17593 /@datadir@/p
17594 /@docdir@/p
17595 /@infodir@/p
17596 /@localedir@/p
17597 /@mandir@/p'
17598 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17599 *datarootdir*) ac_datarootdir_seen=yes;;
17600 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17602 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17603 _ACEOF
17604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17605 ac_datarootdir_hack='
17606 s&@datadir@&$datadir&g
17607 s&@docdir@&$docdir&g
17608 s&@infodir@&$infodir&g
17609 s&@localedir@&$localedir&g
17610 s&@mandir@&$mandir&g
17611 s&\\\${datarootdir}&$datarootdir&g' ;;
17612 esac
17613 _ACEOF
17615 # Neutralize VPATH when `$srcdir' = `.'.
17616 # Shell code in configure.ac might set extrasub.
17617 # FIXME: do we really want to maintain this feature?
17618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17619 ac_sed_extra="$ac_vpsub
17620 $extrasub
17621 _ACEOF
17622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17624 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17625 s|@configure_input@|$ac_sed_conf_input|;t t
17626 s&@top_builddir@&$ac_top_builddir_sub&;t t
17627 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17628 s&@srcdir@&$ac_srcdir&;t t
17629 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17630 s&@top_srcdir@&$ac_top_srcdir&;t t
17631 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17632 s&@builddir@&$ac_builddir&;t t
17633 s&@abs_builddir@&$ac_abs_builddir&;t t
17634 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17635 s&@INSTALL@&$ac_INSTALL&;t t
17636 $ac_datarootdir_hack
17638 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17639 if $ac_cs_awk_getline; then
17640 $AWK -f "$ac_tmp/subs.awk"
17641 else
17642 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17643 fi \
17644 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17646 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17647 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17648 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17649 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17651 which seems to be undefined. Please make sure it is defined" >&5
17652 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17653 which seems to be undefined. Please make sure it is defined" >&2;}
17655 rm -f "$ac_tmp/stdin"
17656 case $ac_file in
17657 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17658 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17659 esac \
17660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17664 # CONFIG_HEADER
17666 if test x"$ac_file" != x-; then
17668 $as_echo "/* $configure_input */" \
17669 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17670 } >"$ac_tmp/config.h" \
17671 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17672 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17674 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17675 else
17676 rm -f "$ac_file"
17677 mv "$ac_tmp/config.h" "$ac_file" \
17678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17680 else
17681 $as_echo "/* $configure_input */" \
17682 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17683 || as_fn_error $? "could not create -" "$LINENO" 5
17688 # CONFIG_LINK
17691 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17693 else
17694 # Prefer the file from the source tree if names are identical.
17695 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17696 ac_source=$srcdir/$ac_source
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17700 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17702 if test ! -r "$ac_source"; then
17703 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17705 rm -f "$ac_file"
17707 # Try a relative symlink, then a hard link, then a copy.
17708 case $ac_source in
17709 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17710 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17711 esac
17712 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17713 ln "$ac_source" "$ac_file" 2>/dev/null ||
17714 cp -p "$ac_source" "$ac_file" ||
17715 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17718 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17719 $as_echo "$as_me: executing $ac_file commands" >&6;}
17721 esac
17724 case $ac_file$ac_mode in
17725 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17726 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17727 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17728 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17729 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17730 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17731 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17732 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17733 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17734 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17735 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17736 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17737 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17738 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17739 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17740 "Makefile":C) wine_fn_output_makefile Makefile ;;
17742 esac
17743 done # for ac_tag
17746 as_fn_exit 0
17747 _ACEOF
17748 ac_clean_files=$ac_clean_files_save
17750 test $ac_write_fail = 0 ||
17751 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17754 # configure is writing to config.log, and then calls config.status.
17755 # config.status does its own redirection, appending to config.log.
17756 # Unfortunately, on DOS this fails, as config.log is still kept open
17757 # by configure, so config.status won't be able to write to it; its
17758 # output is simply discarded. So we exec the FD to /dev/null,
17759 # effectively closing config.log, so it can be properly (re)opened and
17760 # appended to by config.status. When coming back to configure, we
17761 # need to make the FD available again.
17762 if test "$no_create" != yes; then
17763 ac_cs_success=:
17764 ac_config_status_args=
17765 test "$silent" = yes &&
17766 ac_config_status_args="$ac_config_status_args --quiet"
17767 exec 5>/dev/null
17768 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17769 exec 5>>config.log
17770 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17771 # would make configure fail if this is the last instruction.
17772 $ac_cs_success || as_fn_exit 1
17774 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17776 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17780 if test "$no_create" = "yes"
17781 then
17782 exit 0
17785 ac_save_IFS="$IFS"
17786 if test "x$wine_notices != "x; then
17787 echo >&6
17788 IFS="|"
17789 for msg in $wine_notices; do
17790 IFS="$ac_save_IFS"
17791 if test -n "$msg"; then
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17793 $as_echo "$as_me: $msg" >&6;}
17795 done
17797 IFS="|"
17798 for msg in $wine_warnings; do
17799 IFS="$ac_save_IFS"
17800 if test -n "$msg"; then
17801 echo >&2
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17803 $as_echo "$as_me: WARNING: $msg" >&2;}
17805 done
17806 IFS="$ac_save_IFS"
17808 echo "
17809 $as_me: Finished. Do '${ac_make}' to compile Wine.
17810 " >&6