wbemprox: Avoid a crash in to_safearray.
[wine/wine-gecko.git] / configure
blob90109d1a2af5f1b0ef024f68c2e11f38f2dd74bf
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.5.29.
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.29'
584 PACKAGE_STRING='Wine 1.5.29'
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 LIBRT
632 LIBPOLL
633 LIBDL
634 EXTRA_BINARIES
635 MAIN_BINARY
636 TOOLSEXT
637 LDPATH
638 UNWINDFLAGS
639 BUILTINFLAG
640 EXTRACFLAGS
641 LIBKSTAT
642 LIBOPENAL
643 LIBMPG123
644 PNGINCL
645 FONTCONFIGINCL
646 CUPSINCL
647 OSS4INCL
648 ALSALIBS
649 GSTREAMER_LIBS
650 GSTREAMER_CFLAGS
651 LIBGETTEXTPO
652 ZLIB
653 FREETYPE_LIBS
654 FREETYPE_CFLAGS
655 LCMSLIBS
656 RESOLVLIBS
657 GPHOTO2_LIBS
658 GPHOTO2_CFLAGS
659 SANE_LIBS
660 SANE_CFLAGS
661 GNUTLS_LIBS
662 GNUTLS_CFLAGS
663 HAL_LIBS
664 HAL_CFLAGS
665 DBUS_LIBS
666 DBUS_CFLAGS
667 XSLT_LIBS
668 XSLT_CFLAGS
669 XML2_LIBS
670 XML2_CFLAGS
671 PKG_CONFIG
672 X_EXTRA_LIBS
673 X_LIBS
674 X_PRE_LIBS
675 X_CFLAGS
676 XMKMF
677 LIBPTHREAD
678 CROSSTARGET
679 CROSSCC
680 CROSSTEST_DISABLE
681 PRELINK
682 CARBONLIB
683 QUICKTIMELIB
684 LIBOPENCL
685 FRAMEWORK_OPENAL
686 COREAUDIO
687 SECURITYLIB
688 DISKARBITRATIONLIB
689 LDEXECFLAGS
690 CORESERVICESLIB
691 APPLICATIONSERVICESLIB
692 IOKITLIB
693 COREFOUNDATIONLIB
694 LIBWINE_RULES
695 SOCKETLIBS
696 DLLWRAP
697 DLLTOOL
698 READELF
700 LDRPATH_LOCAL
701 LDRPATH_INSTALL
702 IMPLIBEXT
703 LDDLLFLAGS
704 DLLFLAGS
705 DLLEXT
707 OPENGL_LIBS
708 XLIB
709 MAINTAINER_MODE
710 MSGFMT
711 ICOTOOL
712 CONVERT
713 RSVG
714 FONTFORGE
715 LINTFLAGS
716 LINT
717 INSTALL_DATA
718 INSTALL_SCRIPT
719 INSTALL_PROGRAM
720 LDCONFIG
721 EGREP
722 GREP
723 LN_S
724 RANLIB
725 ARFLAGS
726 ac_ct_AR
728 BISON
729 FLEX
730 TOOLSDIR
731 WOW64_DISABLE
732 TARGETFLAGS
733 CPPBIN
734 ac_ct_CXX
735 CXXFLAGS
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
744 SET_MAKE
745 host_os
746 host_vendor
747 host_cpu
748 host
749 build_os
750 build_vendor
751 build_cpu
752 build
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files='MAKE_RULES
792 MAKE_TEST_RULES
793 MAKE_DLL_RULES
794 MAKE_IMPLIB_RULES
795 MAKE_PROG_RULES'
796 ac_user_opts='
797 enable_option_checking
798 enable_win16
799 enable_win64
800 enable_tests
801 enable_maintainer_mode
802 with_alsa
803 with_capi
804 with_cms
805 with_coreaudio
806 with_cups
807 with_curses
808 with_dbus
809 with_fontconfig
810 with_freetype
811 with_gettext
812 with_gettextpo
813 with_gphoto
814 with_glu
815 with_gnutls
816 with_gsm
817 with_gstreamer
818 with_hal
819 with_jpeg
820 with_ldap
821 with_mpg123
822 with_openal
823 with_opencl
824 with_opengl
825 with_osmesa
826 with_oss
827 with_png
828 with_pthread
829 with_sane
830 with_tiff
831 with_v4l
832 with_xcomposite
833 with_xcursor
834 with_xinerama
835 with_xinput
836 with_xinput2
837 with_xml
838 with_xrandr
839 with_xrender
840 with_xshape
841 with_xshm
842 with_xslt
843 with_xxf86vm
844 with_zlib
845 with_wine_tools
846 with_wine64
847 enable_largefile
848 with_x
850 ac_precious_vars='build_alias
851 host_alias
852 target_alias
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
859 CXXFLAGS
862 XMKMF
863 XML2_CFLAGS
864 XML2_LIBS
865 XSLT_CFLAGS
866 XSLT_LIBS
867 DBUS_CFLAGS
868 DBUS_LIBS
869 HAL_CFLAGS
870 HAL_LIBS
871 GNUTLS_CFLAGS
872 GNUTLS_LIBS
873 SANE_CFLAGS
874 SANE_LIBS
875 GPHOTO2_CFLAGS
876 GPHOTO2_LIBS
877 FREETYPE_CFLAGS
878 FREETYPE_LIBS
879 GSTREAMER_CFLAGS
880 GSTREAMER_LIBS'
883 # Initialize some variables set by options.
884 ac_init_help=
885 ac_init_version=false
886 ac_unrecognized_opts=
887 ac_unrecognized_sep=
888 # The variables have the same names as the options, with
889 # dashes changed to underlines.
890 cache_file=/dev/null
891 exec_prefix=NONE
892 no_create=
893 no_recursion=
894 prefix=NONE
895 program_prefix=NONE
896 program_suffix=NONE
897 program_transform_name=s,x,x,
898 silent=
899 site=
900 srcdir=
901 verbose=
902 x_includes=NONE
903 x_libraries=NONE
905 # Installation directory options.
906 # These are left unexpanded so users can "make install exec_prefix=/foo"
907 # and all the variables that are supposed to be based on exec_prefix
908 # by default will actually change.
909 # Use braces instead of parens because sh, perl, etc. also accept them.
910 # (The list follows the same order as the GNU Coding Standards.)
911 bindir='${exec_prefix}/bin'
912 sbindir='${exec_prefix}/sbin'
913 libexecdir='${exec_prefix}/libexec'
914 datarootdir='${prefix}/share'
915 datadir='${datarootdir}'
916 sysconfdir='${prefix}/etc'
917 sharedstatedir='${prefix}/com'
918 localstatedir='${prefix}/var'
919 includedir='${prefix}/include'
920 oldincludedir='/usr/include'
921 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
922 infodir='${datarootdir}/info'
923 htmldir='${docdir}'
924 dvidir='${docdir}'
925 pdfdir='${docdir}'
926 psdir='${docdir}'
927 libdir='${exec_prefix}/lib'
928 localedir='${datarootdir}/locale'
929 mandir='${datarootdir}/man'
931 ac_prev=
932 ac_dashdash=
933 for ac_option
935 # If the previous option needs an argument, assign it.
936 if test -n "$ac_prev"; then
937 eval $ac_prev=\$ac_option
938 ac_prev=
939 continue
942 case $ac_option in
943 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944 *=) ac_optarg= ;;
945 *) ac_optarg=yes ;;
946 esac
948 # Accept the important Cygnus configure options, so we can diagnose typos.
950 case $ac_dashdash$ac_option in
952 ac_dashdash=yes ;;
954 -bindir | --bindir | --bindi | --bind | --bin | --bi)
955 ac_prev=bindir ;;
956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
957 bindir=$ac_optarg ;;
959 -build | --build | --buil | --bui | --bu)
960 ac_prev=build_alias ;;
961 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962 build_alias=$ac_optarg ;;
964 -cache-file | --cache-file | --cache-fil | --cache-fi \
965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966 ac_prev=cache_file ;;
967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969 cache_file=$ac_optarg ;;
971 --config-cache | -C)
972 cache_file=config.cache ;;
974 -datadir | --datadir | --datadi | --datad)
975 ac_prev=datadir ;;
976 -datadir=* | --datadir=* | --datadi=* | --datad=*)
977 datadir=$ac_optarg ;;
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980 | --dataroo | --dataro | --datar)
981 ac_prev=datarootdir ;;
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984 datarootdir=$ac_optarg ;;
986 -disable-* | --disable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 as_fn_error $? "invalid feature name: $ac_useropt"
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
995 "enable_$ac_useropt"
996 "*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=no ;;
1002 -docdir | --docdir | --docdi | --doc | --do)
1003 ac_prev=docdir ;;
1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005 docdir=$ac_optarg ;;
1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008 ac_prev=dvidir ;;
1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010 dvidir=$ac_optarg ;;
1012 -enable-* | --enable-*)
1013 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016 as_fn_error $? "invalid feature name: $ac_useropt"
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1021 "enable_$ac_useropt"
1022 "*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=\$ac_optarg ;;
1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030 | --exec | --exe | --ex)
1031 ac_prev=exec_prefix ;;
1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034 | --exec=* | --exe=* | --ex=*)
1035 exec_prefix=$ac_optarg ;;
1037 -gas | --gas | --ga | --g)
1038 # Obsolete; use --with-gas.
1039 with_gas=yes ;;
1041 -help | --help | --hel | --he | -h)
1042 ac_init_help=long ;;
1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044 ac_init_help=recursive ;;
1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046 ac_init_help=short ;;
1048 -host | --host | --hos | --ho)
1049 ac_prev=host_alias ;;
1050 -host=* | --host=* | --hos=* | --ho=*)
1051 host_alias=$ac_optarg ;;
1053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 ac_prev=htmldir ;;
1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 | --ht=*)
1057 htmldir=$ac_optarg ;;
1059 -includedir | --includedir | --includedi | --included | --include \
1060 | --includ | --inclu | --incl | --inc)
1061 ac_prev=includedir ;;
1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063 | --includ=* | --inclu=* | --incl=* | --inc=*)
1064 includedir=$ac_optarg ;;
1066 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 ac_prev=infodir ;;
1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069 infodir=$ac_optarg ;;
1071 -libdir | --libdir | --libdi | --libd)
1072 ac_prev=libdir ;;
1073 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074 libdir=$ac_optarg ;;
1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077 | --libexe | --libex | --libe)
1078 ac_prev=libexecdir ;;
1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080 | --libexe=* | --libex=* | --libe=*)
1081 libexecdir=$ac_optarg ;;
1083 -localedir | --localedir | --localedi | --localed | --locale)
1084 ac_prev=localedir ;;
1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086 localedir=$ac_optarg ;;
1088 -localstatedir | --localstatedir | --localstatedi | --localstated \
1089 | --localstate | --localstat | --localsta | --localst | --locals)
1090 ac_prev=localstatedir ;;
1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093 localstatedir=$ac_optarg ;;
1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 ac_prev=mandir ;;
1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098 mandir=$ac_optarg ;;
1100 -nfp | --nfp | --nf)
1101 # Obsolete; use --without-fp.
1102 with_fp=no ;;
1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105 | --no-cr | --no-c | -n)
1106 no_create=yes ;;
1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110 no_recursion=yes ;;
1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114 | --oldin | --oldi | --old | --ol | --o)
1115 ac_prev=oldincludedir ;;
1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119 oldincludedir=$ac_optarg ;;
1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 ac_prev=prefix ;;
1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124 prefix=$ac_optarg ;;
1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127 | --program-pre | --program-pr | --program-p)
1128 ac_prev=program_prefix ;;
1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131 program_prefix=$ac_optarg ;;
1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134 | --program-suf | --program-su | --program-s)
1135 ac_prev=program_suffix ;;
1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138 program_suffix=$ac_optarg ;;
1140 -program-transform-name | --program-transform-name \
1141 | --program-transform-nam | --program-transform-na \
1142 | --program-transform-n | --program-transform- \
1143 | --program-transform | --program-transfor \
1144 | --program-transfo | --program-transf \
1145 | --program-trans | --program-tran \
1146 | --progr-tra | --program-tr | --program-t)
1147 ac_prev=program_transform_name ;;
1148 -program-transform-name=* | --program-transform-name=* \
1149 | --program-transform-nam=* | --program-transform-na=* \
1150 | --program-transform-n=* | --program-transform-=* \
1151 | --program-transform=* | --program-transfor=* \
1152 | --program-transfo=* | --program-transf=* \
1153 | --program-trans=* | --program-tran=* \
1154 | --progr-tra=* | --program-tr=* | --program-t=*)
1155 program_transform_name=$ac_optarg ;;
1157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 ac_prev=pdfdir ;;
1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160 pdfdir=$ac_optarg ;;
1162 -psdir | --psdir | --psdi | --psd | --ps)
1163 ac_prev=psdir ;;
1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165 psdir=$ac_optarg ;;
1167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168 | -silent | --silent | --silen | --sile | --sil)
1169 silent=yes ;;
1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172 ac_prev=sbindir ;;
1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174 | --sbi=* | --sb=*)
1175 sbindir=$ac_optarg ;;
1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179 | --sharedst | --shareds | --shared | --share | --shar \
1180 | --sha | --sh)
1181 ac_prev=sharedstatedir ;;
1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185 | --sha=* | --sh=*)
1186 sharedstatedir=$ac_optarg ;;
1188 -site | --site | --sit)
1189 ac_prev=site ;;
1190 -site=* | --site=* | --sit=*)
1191 site=$ac_optarg ;;
1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194 ac_prev=srcdir ;;
1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196 srcdir=$ac_optarg ;;
1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199 | --syscon | --sysco | --sysc | --sys | --sy)
1200 ac_prev=sysconfdir ;;
1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203 sysconfdir=$ac_optarg ;;
1205 -target | --target | --targe | --targ | --tar | --ta | --t)
1206 ac_prev=target_alias ;;
1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208 target_alias=$ac_optarg ;;
1210 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211 verbose=yes ;;
1213 -version | --version | --versio | --versi | --vers | -V)
1214 ac_init_version=: ;;
1216 -with-* | --with-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=\$ac_optarg ;;
1232 -without-* | --without-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error $? "invalid package name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1241 "with_$ac_useropt"
1242 "*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=no ;;
1248 --x)
1249 # Obsolete; use --with-x.
1250 with_x=yes ;;
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257 x_includes=$ac_optarg ;;
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264 x_libraries=$ac_optarg ;;
1266 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1267 Try \`$0 --help' for more information"
1270 *=*)
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 case $ac_envvar in #(
1274 '' | [0-9]* | *[!_$as_cr_alnum]* )
1275 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1276 esac
1277 eval $ac_envvar=\$ac_optarg
1278 export $ac_envvar ;;
1281 # FIXME: should be removed in autoconf 3.0.
1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1288 esac
1289 done
1291 if test -n "$ac_prev"; then
1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293 as_fn_error $? "missing argument to $ac_option"
1296 if test -n "$ac_unrecognized_opts"; then
1297 case $enable_option_checking in
1298 no) ;;
1299 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1300 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301 esac
1304 # Check all directory arguments for consistency.
1305 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
1310 eval ac_val=\$$ac_var
1311 # Remove trailing slashes.
1312 case $ac_val in
1313 */ )
1314 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315 eval $ac_var=\$ac_val;;
1316 esac
1317 # Be sure to have absolute directory names.
1318 case $ac_val in
1319 [\\/$]* | ?:[\\/]* ) continue;;
1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321 esac
1322 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1323 done
1325 # There might be people who depend on the old broken behavior: `$host'
1326 # used to hold the argument of --host etc.
1327 # FIXME: To remove some day.
1328 build=$build_alias
1329 host=$host_alias
1330 target=$target_alias
1332 # FIXME: To remove some day.
1333 if test "x$host_alias" != x; then
1334 if test "x$build_alias" = x; then
1335 cross_compiling=maybe
1336 elif test "x$build_alias" != "x$host_alias"; then
1337 cross_compiling=yes
1341 ac_tool_prefix=
1342 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1344 test "$silent" = yes && exec 6>/dev/null
1347 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1348 ac_ls_di=`ls -di .` &&
1349 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1350 as_fn_error $? "working directory cannot be determined"
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352 as_fn_error $? "pwd does not report name of working directory"
1355 # Find the source files, if location was not specified.
1356 if test -z "$srcdir"; then
1357 ac_srcdir_defaulted=yes
1358 # Try the directory containing this script, then the parent directory.
1359 ac_confdir=`$as_dirname -- "$as_myself" ||
1360 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1361 X"$as_myself" : 'X\(//\)[^/]' \| \
1362 X"$as_myself" : 'X\(//\)$' \| \
1363 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1364 $as_echo X"$as_myself" |
1365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1366 s//\1/
1369 /^X\(\/\/\)[^/].*/{
1370 s//\1/
1373 /^X\(\/\/\)$/{
1374 s//\1/
1377 /^X\(\/\).*/{
1378 s//\1/
1381 s/.*/./; q'`
1382 srcdir=$ac_confdir
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 srcdir=..
1386 else
1387 ac_srcdir_defaulted=no
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1391 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1393 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1394 ac_abs_confdir=`(
1395 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1396 pwd)`
1397 # When building in place, set srcdir=.
1398 if test "$ac_abs_confdir" = "$ac_pwd"; then
1399 srcdir=.
1401 # Remove unnecessary trailing slashes from srcdir.
1402 # Double slashes in file names in object file debugging info
1403 # mess up M-x gdb in Emacs.
1404 case $srcdir in
1405 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406 esac
1407 for ac_var in $ac_precious_vars; do
1408 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_env_${ac_var}_value=\$${ac_var}
1410 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412 done
1415 # Report the --help message.
1417 if test "$ac_init_help" = "long"; then
1418 # Omit some internal or obsolete options to make the list less imposing.
1419 # This message is too long to be a string in the A/UX 3.1 sh.
1420 cat <<_ACEOF
1421 \`configure' configures Wine 1.5.29 to adapt to many kinds of systems.
1423 Usage: $0 [OPTION]... [VAR=VALUE]...
1425 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426 VAR=VALUE. See below for descriptions of some of the useful variables.
1428 Defaults for the options are specified in brackets.
1430 Configuration:
1431 -h, --help display this help and exit
1432 --help=short display options specific to this package
1433 --help=recursive display the short help of all the included packages
1434 -V, --version display version information and exit
1435 -q, --quiet, --silent do not print \`checking ...' messages
1436 --cache-file=FILE cache test results in FILE [disabled]
1437 -C, --config-cache alias for \`--cache-file=config.cache'
1438 -n, --no-create do not create output files
1439 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1441 Installation directories:
1442 --prefix=PREFIX install architecture-independent files in PREFIX
1443 [$ac_default_prefix]
1444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1445 [PREFIX]
1447 By default, \`make install' will install all the files in
1448 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1449 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450 for instance \`--prefix=\$HOME'.
1452 For better control, use the options below.
1454 Fine tuning of the installation directories:
1455 --bindir=DIR user executables [EPREFIX/bin]
1456 --sbindir=DIR system admin executables [EPREFIX/sbin]
1457 --libexecdir=DIR program executables [EPREFIX/libexec]
1458 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1459 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1460 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1461 --libdir=DIR object code libraries [EPREFIX/lib]
1462 --includedir=DIR C header files [PREFIX/include]
1463 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1464 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1465 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1466 --infodir=DIR info documentation [DATAROOTDIR/info]
1467 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1468 --mandir=DIR man documentation [DATAROOTDIR/man]
1469 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1470 --htmldir=DIR html documentation [DOCDIR]
1471 --dvidir=DIR dvi documentation [DOCDIR]
1472 --pdfdir=DIR pdf documentation [DOCDIR]
1473 --psdir=DIR ps documentation [DOCDIR]
1474 _ACEOF
1476 cat <<\_ACEOF
1478 X features:
1479 --x-includes=DIR X include files are in DIR
1480 --x-libraries=DIR X library files are in DIR
1482 System types:
1483 --build=BUILD configure for building on BUILD [guessed]
1484 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1485 _ACEOF
1488 if test -n "$ac_init_help"; then
1489 case $ac_init_help in
1490 short | recursive ) echo "Configuration of Wine 1.5.29:";;
1491 esac
1492 cat <<\_ACEOF
1494 Optional Features:
1495 --disable-option-checking ignore unrecognized --enable/--with options
1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1498 --disable-win16 do not include Win16 support
1499 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1500 binaries)
1501 --disable-tests do not build the regression tests
1502 --enable-maintainer-mode
1503 enable maintainer-specific build rules
1504 --disable-largefile omit support for large files
1506 Optional Packages:
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509 --without-alsa do not use the Alsa sound support
1510 --without-capi do not use CAPI (ISDN support)
1511 --without-cms do not use CMS (color management support)
1512 --without-coreaudio do not use the CoreAudio sound support
1513 --without-cups do not use CUPS
1514 --without-curses do not use (n)curses
1515 --without-dbus do not use DBus (dynamic device support)
1516 --without-fontconfig do not use fontconfig
1517 --without-freetype do not use the FreeType library
1518 --without-gettext do not use gettext
1519 --with-gettextpo use the GetTextPO library to rebuild po files
1520 --without-gphoto do not use gphoto (Digital Camera support)
1521 --without-glu do not use the GLU library
1522 --without-gnutls do not use GnuTLS (schannel support)
1523 --without-gsm do not use libgsm (GSM 06.10 codec support)
1524 --without-gstreamer do not use GStreamer (codecs support)
1525 --without-hal do not use HAL (dynamic device support)
1526 --without-jpeg do not use JPEG
1527 --without-ldap do not use LDAP
1528 --without-mpg123 do not use the mpg123 library
1529 --without-openal do not use OpenAL
1530 --without-opencl do not use OpenCL
1531 --without-opengl do not use OpenGL
1532 --without-osmesa do not use the OSMesa library
1533 --without-oss do not use the OSS sound support
1534 --without-png do not use PNG
1535 --without-pthread do not use the pthread library
1536 --without-sane do not use SANE (scanner support)
1537 --without-tiff do not use TIFF
1538 --without-v4l do not use v4l1 (v4l support)
1539 --without-xcomposite do not use the Xcomposite extension
1540 --without-xcursor do not use the Xcursor extension
1541 --without-xinerama do not use Xinerama (multi-monitor support)
1542 --without-xinput do not use the Xinput extension
1543 --without-xinput2 do not use the Xinput 2 extension
1544 --without-xml do not use XML
1545 --without-xrandr do not use Xrandr (resolution changes)
1546 --without-xrender do not use the Xrender extension
1547 --without-xshape do not use the Xshape extension
1548 --without-xshm do not use XShm (shared memory extension)
1549 --without-xslt do not use XSLT
1550 --without-xxf86vm do not use XFree video mode extension
1551 --without-zlib do not use Zlib (data compression)
1552 --with-wine-tools=DIR use Wine tools from directory DIR
1553 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1554 --with-x use the X Window System
1556 Some influential environment variables:
1557 CC C compiler command
1558 CFLAGS C compiler flags
1559 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1560 nonstandard directory <lib dir>
1561 LIBS libraries to pass to the linker, e.g. -l<library>
1562 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1563 you have headers in a nonstandard directory <include dir>
1564 CXX C++ compiler command
1565 CXXFLAGS C++ compiler flags
1566 CPP C preprocessor
1567 XMKMF Path to xmkmf, Makefile generator for X Window System
1568 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
1569 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
1570 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
1571 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
1572 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
1573 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
1574 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
1575 HAL_LIBS Linker flags for hal, overriding pkg-config
1576 GNUTLS_CFLAGS
1577 C compiler flags for gnutls, overriding pkg-config
1578 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
1579 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
1580 SANE_LIBS Linker flags for libsane, overriding pkg-config
1581 GPHOTO2_CFLAGS
1582 C compiler flags for libgphoto2, overriding pkg-config
1583 GPHOTO2_LIBS
1584 Linker flags for libgphoto2, overriding pkg-config
1585 FREETYPE_CFLAGS
1586 C compiler flags for freetype2, overriding pkg-config
1587 FREETYPE_LIBS
1588 Linker flags for freetype2, overriding pkg-config
1589 GSTREAMER_CFLAGS
1590 C compiler flags for gstreamer-app-0.10, overriding pkg-config
1591 GSTREAMER_LIBS
1592 Linker flags for gstreamer-app-0.10, overriding pkg-config
1594 Use these variables to override the choices made by `configure' or to help
1595 it to find libraries and programs with nonstandard names/locations.
1597 Report bugs to <wine-devel@winehq.org>.
1598 Wine home page: <http://www.winehq.org>.
1599 _ACEOF
1600 ac_status=$?
1603 if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
1605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1606 test -d "$ac_dir" ||
1607 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1608 continue
1609 ac_builddir=.
1611 case "$ac_dir" in
1612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1615 # A ".." for each directory in $ac_dir_suffix.
1616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1617 case $ac_top_builddir_sub in
1618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1620 esac ;;
1621 esac
1622 ac_abs_top_builddir=$ac_pwd
1623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1624 # for backward compatibility:
1625 ac_top_builddir=$ac_top_build_prefix
1627 case $srcdir in
1628 .) # We are building in place.
1629 ac_srcdir=.
1630 ac_top_srcdir=$ac_top_builddir_sub
1631 ac_abs_top_srcdir=$ac_pwd ;;
1632 [\\/]* | ?:[\\/]* ) # Absolute name.
1633 ac_srcdir=$srcdir$ac_dir_suffix;
1634 ac_top_srcdir=$srcdir
1635 ac_abs_top_srcdir=$srcdir ;;
1636 *) # Relative name.
1637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638 ac_top_srcdir=$ac_top_build_prefix$srcdir
1639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1640 esac
1641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643 cd "$ac_dir" || { ac_status=$?; continue; }
1644 # Check for guested configure.
1645 if test -f "$ac_srcdir/configure.gnu"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648 elif test -f "$ac_srcdir/configure"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure" --help=recursive
1651 else
1652 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653 fi || ac_status=$?
1654 cd "$ac_pwd" || { ac_status=$?; break; }
1655 done
1658 test -n "$ac_init_help" && exit $ac_status
1659 if $ac_init_version; then
1660 cat <<\_ACEOF
1661 Wine configure 1.5.29
1662 generated by GNU Autoconf 2.69
1664 Copyright (C) 2012 Free Software Foundation, Inc.
1665 This configure script is free software; the Free Software Foundation
1666 gives unlimited permission to copy, distribute and modify it.
1667 _ACEOF
1668 exit
1671 ## ------------------------ ##
1672 ## Autoconf initialization. ##
1673 ## ------------------------ ##
1675 # ac_fn_c_try_compile LINENO
1676 # --------------------------
1677 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_compile ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext
1682 if { { ac_try="$ac_compile"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_compile") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest.$ac_objext; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1706 ac_retval=1
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1711 } # ac_fn_c_try_compile
1713 # ac_fn_cxx_try_compile LINENO
1714 # ----------------------------
1715 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_cxx_try_compile ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext
1720 if { { ac_try="$ac_compile"
1721 case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_compile") 2>conftest.err
1728 ac_status=$?
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_cxx_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest.$ac_objext; then :
1739 ac_retval=0
1740 else
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1744 ac_retval=1
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
1749 } # ac_fn_cxx_try_compile
1751 # ac_fn_c_try_link LINENO
1752 # -----------------------
1753 # Try to link conftest.$ac_ext, and return whether this succeeded.
1754 ac_fn_c_try_link ()
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 rm -f conftest.$ac_objext conftest$ac_exeext
1758 if { { ac_try="$ac_link"
1759 case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_link") 2>conftest.err
1766 ac_status=$?
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && {
1774 test -z "$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1776 } && test -s conftest$ac_exeext && {
1777 test "$cross_compiling" = yes ||
1778 test -x conftest$ac_exeext
1779 }; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1785 ac_retval=1
1787 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1788 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1789 # interfere with the next link command; also delete a directory that is
1790 # left behind by Apple's compiler. We do this before executing the actions.
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1795 } # ac_fn_c_try_link
1797 # ac_fn_c_try_cpp LINENO
1798 # ----------------------
1799 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_c_try_cpp ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if { { ac_try="$ac_cpp conftest.$ac_ext"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } > conftest.i && {
1819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1820 test ! -s conftest.err
1821 }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 ac_retval=1
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1832 } # ac_fn_c_try_cpp
1834 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1835 # -------------------------------------------------------
1836 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1837 # the include files in INCLUDES and setting the cache variable VAR
1838 # accordingly.
1839 ac_fn_c_check_header_mongrel ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 if eval \${$3+:} false; then :
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1848 eval ac_res=\$$3
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 else
1852 # Is the header compilable?
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1854 $as_echo_n "checking $2 usability... " >&6; }
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1858 #include <$2>
1859 _ACEOF
1860 if ac_fn_c_try_compile "$LINENO"; then :
1861 ac_header_compiler=yes
1862 else
1863 ac_header_compiler=no
1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1867 $as_echo "$ac_header_compiler" >&6; }
1869 # Is the header present?
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1871 $as_echo_n "checking $2 presence... " >&6; }
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h. */
1874 #include <$2>
1875 _ACEOF
1876 if ac_fn_c_try_cpp "$LINENO"; then :
1877 ac_header_preproc=yes
1878 else
1879 ac_header_preproc=no
1881 rm -f conftest.err conftest.i conftest.$ac_ext
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1883 $as_echo "$ac_header_preproc" >&6; }
1885 # So? What about this header?
1886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1887 yes:no: )
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1889 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1891 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1893 no:yes:* )
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1895 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1897 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1899 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1901 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1903 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1904 ( $as_echo "## ------------------------------------ ##
1905 ## Report this to wine-devel@winehq.org ##
1906 ## ------------------------------------ ##"
1907 ) | sed "s/^/$as_me: WARNING: /" >&2
1909 esac
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1914 else
1915 eval "$3=\$ac_header_compiler"
1917 eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 } # ac_fn_c_check_header_mongrel
1925 # ac_fn_c_try_run LINENO
1926 # ----------------------
1927 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1928 # that executables *can* be run.
1929 ac_fn_c_try_run ()
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if { { ac_try="$ac_link"
1933 case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_link") 2>&5
1940 ac_status=$?
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1943 { { case "(($ac_try" in
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946 esac
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_try") 2>&5
1950 ac_status=$?
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; }; }; then :
1953 ac_retval=0
1954 else
1955 $as_echo "$as_me: program exited with status $ac_status" >&5
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1959 ac_retval=$ac_status
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 as_fn_set_status $ac_retval
1965 } # ac_fn_c_try_run
1967 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1968 # -------------------------------------------------------
1969 # Tests whether HEADER exists and can be compiled using the include files in
1970 # INCLUDES, setting the cache variable VAR accordingly.
1971 ac_fn_c_check_header_compile ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval \${$3+:} false; then :
1977 $as_echo_n "(cached) " >&6
1978 else
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1982 #include <$2>
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"; then :
1985 eval "$3=yes"
1986 else
1987 eval "$3=no"
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 } # ac_fn_c_check_header_compile
1998 # ac_fn_c_check_func LINENO FUNC VAR
1999 # ----------------------------------
2000 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2001 ac_fn_c_check_func ()
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if eval \${$3+:} false; then :
2007 $as_echo_n "(cached) " >&6
2008 else
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2013 #define $2 innocuous_$2
2015 /* System header to define __stub macros and hopefully few prototypes,
2016 which can conflict with char $2 (); below.
2017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2018 <limits.h> exists even on freestanding compilers. */
2020 #ifdef __STDC__
2021 # include <limits.h>
2022 #else
2023 # include <assert.h>
2024 #endif
2026 #undef $2
2028 /* Override any GCC internal prototype to avoid an error.
2029 Use char because int might match the return type of a GCC
2030 builtin and then its argument prototype would still apply. */
2031 #ifdef __cplusplus
2032 extern "C"
2033 #endif
2034 char $2 ();
2035 /* The GNU C library defines this for functions which it implements
2036 to always fail with ENOSYS. Some functions are actually named
2037 something starting with __ and the normal name is an alias. */
2038 #if defined __stub_$2 || defined __stub___$2
2039 choke me
2040 #endif
2043 main ()
2045 return $2 ();
2047 return 0;
2049 _ACEOF
2050 if ac_fn_c_try_link "$LINENO"; then :
2051 eval "$3=yes"
2052 else
2053 eval "$3=no"
2055 rm -f core conftest.err conftest.$ac_objext \
2056 conftest$ac_exeext conftest.$ac_ext
2058 eval ac_res=\$$3
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063 } # ac_fn_c_check_func
2065 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2066 # ----------------------------------------------------
2067 # Tries to find if the field MEMBER exists in type AGGR, after including
2068 # INCLUDES, setting cache variable VAR accordingly.
2069 ac_fn_c_check_member ()
2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2073 $as_echo_n "checking for $2.$3... " >&6; }
2074 if eval \${$4+:} false; then :
2075 $as_echo_n "(cached) " >&6
2076 else
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2081 main ()
2083 static $2 ac_aggr;
2084 if (ac_aggr.$3)
2085 return 0;
2087 return 0;
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2091 eval "$4=yes"
2092 else
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2097 main ()
2099 static $2 ac_aggr;
2100 if (sizeof ac_aggr.$3)
2101 return 0;
2103 return 0;
2105 _ACEOF
2106 if ac_fn_c_try_compile "$LINENO"; then :
2107 eval "$4=yes"
2108 else
2109 eval "$4=no"
2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 eval ac_res=\$$4
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117 $as_echo "$ac_res" >&6; }
2118 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120 } # ac_fn_c_check_member
2122 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2123 # -------------------------------------------
2124 # Tests whether TYPE exists after having included INCLUDES, setting cache
2125 # variable VAR accordingly.
2126 ac_fn_c_check_type ()
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130 $as_echo_n "checking for $2... " >&6; }
2131 if eval \${$3+:} false; then :
2132 $as_echo_n "(cached) " >&6
2133 else
2134 eval "$3=no"
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2139 main ()
2141 if (sizeof ($2))
2142 return 0;
2144 return 0;
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2152 main ()
2154 if (sizeof (($2)))
2155 return 0;
2157 return 0;
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2162 else
2163 eval "$3=yes"
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 eval ac_res=\$$3
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174 } # ac_fn_c_check_type
2175 cat >config.log <<_ACEOF
2176 This file contains any messages produced by compilers while
2177 running configure, to aid debugging if configure makes a mistake.
2179 It was created by Wine $as_me 1.5.29, which was
2180 generated by GNU Autoconf 2.69. Invocation command line was
2182 $ $0 $@
2184 _ACEOF
2185 exec 5>>config.log
2187 cat <<_ASUNAME
2188 ## --------- ##
2189 ## Platform. ##
2190 ## --------- ##
2192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2199 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2201 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2202 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2204 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2205 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2206 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2207 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2209 _ASUNAME
2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 for as_dir in $PATH
2214 IFS=$as_save_IFS
2215 test -z "$as_dir" && as_dir=.
2216 $as_echo "PATH: $as_dir"
2217 done
2218 IFS=$as_save_IFS
2220 } >&5
2222 cat >&5 <<_ACEOF
2225 ## ----------- ##
2226 ## Core tests. ##
2227 ## ----------- ##
2229 _ACEOF
2232 # Keep a trace of the command line.
2233 # Strip out --no-create and --no-recursion so they do not pile up.
2234 # Strip out --silent because we don't want to record it for future runs.
2235 # Also quote any args containing shell meta-characters.
2236 # Make two passes to allow for proper duplicate-argument suppression.
2237 ac_configure_args=
2238 ac_configure_args0=
2239 ac_configure_args1=
2240 ac_must_keep_next=false
2241 for ac_pass in 1 2
2243 for ac_arg
2245 case $ac_arg in
2246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2248 | -silent | --silent | --silen | --sile | --sil)
2249 continue ;;
2250 *\'*)
2251 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2252 esac
2253 case $ac_pass in
2254 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2256 as_fn_append ac_configure_args1 " '$ac_arg'"
2257 if test $ac_must_keep_next = true; then
2258 ac_must_keep_next=false # Got value, back to normal.
2259 else
2260 case $ac_arg in
2261 *=* | --config-cache | -C | -disable-* | --disable-* \
2262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2264 | -with-* | --with-* | -without-* | --without-* | --x)
2265 case "$ac_configure_args0 " in
2266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2267 esac
2269 -* ) ac_must_keep_next=true ;;
2270 esac
2272 as_fn_append ac_configure_args " '$ac_arg'"
2274 esac
2275 done
2276 done
2277 { ac_configure_args0=; unset ac_configure_args0;}
2278 { ac_configure_args1=; unset ac_configure_args1;}
2280 # When interrupted or exit'd, cleanup temporary files, and complete
2281 # config.log. We remove comments because anyway the quotes in there
2282 # would cause problems or look ugly.
2283 # WARNING: Use '\'' to represent an apostrophe within the trap.
2284 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2285 trap 'exit_status=$?
2286 # Save into config.log some information that might help in debugging.
2288 echo
2290 $as_echo "## ---------------- ##
2291 ## Cache variables. ##
2292 ## ---------------- ##"
2293 echo
2294 # The following way of writing the cache mishandles newlines in values,
2296 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2297 eval ac_val=\$$ac_var
2298 case $ac_val in #(
2299 *${as_nl}*)
2300 case $ac_var in #(
2301 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2302 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2303 esac
2304 case $ac_var in #(
2305 _ | IFS | as_nl) ;; #(
2306 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2307 *) { eval $ac_var=; unset $ac_var;} ;;
2308 esac ;;
2309 esac
2310 done
2311 (set) 2>&1 |
2312 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2313 *${as_nl}ac_space=\ *)
2314 sed -n \
2315 "s/'\''/'\''\\\\'\'''\''/g;
2316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2317 ;; #(
2319 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2321 esac |
2322 sort
2324 echo
2326 $as_echo "## ----------------- ##
2327 ## Output variables. ##
2328 ## ----------------- ##"
2329 echo
2330 for ac_var in $ac_subst_vars
2332 eval ac_val=\$$ac_var
2333 case $ac_val in
2334 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335 esac
2336 $as_echo "$ac_var='\''$ac_val'\''"
2337 done | sort
2338 echo
2340 if test -n "$ac_subst_files"; then
2341 $as_echo "## ------------------- ##
2342 ## File substitutions. ##
2343 ## ------------------- ##"
2344 echo
2345 for ac_var in $ac_subst_files
2347 eval ac_val=\$$ac_var
2348 case $ac_val in
2349 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2350 esac
2351 $as_echo "$ac_var='\''$ac_val'\''"
2352 done | sort
2353 echo
2356 if test -s confdefs.h; then
2357 $as_echo "## ----------- ##
2358 ## confdefs.h. ##
2359 ## ----------- ##"
2360 echo
2361 cat confdefs.h
2362 echo
2364 test "$ac_signal" != 0 &&
2365 $as_echo "$as_me: caught signal $ac_signal"
2366 $as_echo "$as_me: exit $exit_status"
2367 } >&5
2368 rm -f core *.core core.conftest.* &&
2369 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2370 exit $exit_status
2372 for ac_signal in 1 2 13 15; do
2373 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2374 done
2375 ac_signal=0
2377 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2378 rm -f -r conftest* confdefs.h
2380 $as_echo "/* confdefs.h */" > confdefs.h
2382 # Predefined preprocessor variables.
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_NAME "$PACKAGE_NAME"
2386 _ACEOF
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2390 _ACEOF
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2394 _ACEOF
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_STRING "$PACKAGE_STRING"
2398 _ACEOF
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2402 _ACEOF
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_URL "$PACKAGE_URL"
2406 _ACEOF
2409 # Let the site file select an alternate cache file if it wants to.
2410 # Prefer an explicitly selected file to automatically selected ones.
2411 ac_site_file1=NONE
2412 ac_site_file2=NONE
2413 if test -n "$CONFIG_SITE"; then
2414 # We do not want a PATH search for config.site.
2415 case $CONFIG_SITE in #((
2416 -*) ac_site_file1=./$CONFIG_SITE;;
2417 */*) ac_site_file1=$CONFIG_SITE;;
2418 *) ac_site_file1=./$CONFIG_SITE;;
2419 esac
2420 elif test "x$prefix" != xNONE; then
2421 ac_site_file1=$prefix/share/config.site
2422 ac_site_file2=$prefix/etc/config.site
2423 else
2424 ac_site_file1=$ac_default_prefix/share/config.site
2425 ac_site_file2=$ac_default_prefix/etc/config.site
2427 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2429 test "x$ac_site_file" = xNONE && continue
2430 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2432 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2433 sed 's/^/| /' "$ac_site_file" >&5
2434 . "$ac_site_file" \
2435 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437 as_fn_error $? "failed to load site script $ac_site_file
2438 See \`config.log' for more details" "$LINENO" 5; }
2440 done
2442 if test -r "$cache_file"; then
2443 # Some versions of bash will fail to source /dev/null (special files
2444 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2445 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2447 $as_echo "$as_me: loading cache $cache_file" >&6;}
2448 case $cache_file in
2449 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2450 *) . "./$cache_file";;
2451 esac
2453 else
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2455 $as_echo "$as_me: creating cache $cache_file" >&6;}
2456 >$cache_file
2459 # Check that the precious variables saved in the cache have kept the same
2460 # value.
2461 ac_cache_corrupted=false
2462 for ac_var in $ac_precious_vars; do
2463 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2464 eval ac_new_set=\$ac_env_${ac_var}_set
2465 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2466 eval ac_new_val=\$ac_env_${ac_var}_value
2467 case $ac_old_set,$ac_new_set in
2468 set,)
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2470 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2472 ,set)
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2474 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2475 ac_cache_corrupted=: ;;
2476 ,);;
2478 if test "x$ac_old_val" != "x$ac_new_val"; then
2479 # differences in whitespace do not lead to failure.
2480 ac_old_val_w=`echo x $ac_old_val`
2481 ac_new_val_w=`echo x $ac_new_val`
2482 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2484 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2485 ac_cache_corrupted=:
2486 else
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2488 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2489 eval $ac_var=\$ac_old_val
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2492 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2494 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2495 fi;;
2496 esac
2497 # Pass precious variables to config.status.
2498 if test "$ac_new_set" = set; then
2499 case $ac_new_val in
2500 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2501 *) ac_arg=$ac_var=$ac_new_val ;;
2502 esac
2503 case " $ac_configure_args " in
2504 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2505 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2506 esac
2508 done
2509 if $ac_cache_corrupted; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2513 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2514 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2516 ## -------------------- ##
2517 ## Main body of script. ##
2518 ## -------------------- ##
2520 ac_ext=c
2521 ac_cpp='$CPP $CPPFLAGS'
2522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528 ac_config_headers="$ac_config_headers include/config.h"
2530 ac_aux_dir=
2531 for ac_dir in tools "$srcdir"/tools; do
2532 if test -f "$ac_dir/install-sh"; then
2533 ac_aux_dir=$ac_dir
2534 ac_install_sh="$ac_aux_dir/install-sh -c"
2535 break
2536 elif test -f "$ac_dir/install.sh"; then
2537 ac_aux_dir=$ac_dir
2538 ac_install_sh="$ac_aux_dir/install.sh -c"
2539 break
2540 elif test -f "$ac_dir/shtool"; then
2541 ac_aux_dir=$ac_dir
2542 ac_install_sh="$ac_aux_dir/shtool install -c"
2543 break
2545 done
2546 if test -z "$ac_aux_dir"; then
2547 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2550 # These three variables are undocumented and unsupported,
2551 # and are intended to be withdrawn in a future Autoconf release.
2552 # They can cause serious problems if a builder's source tree is in a directory
2553 # whose full name contains unusual characters.
2554 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2555 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2556 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2562 # Check whether --enable-win16 was given.
2563 if test "${enable_win16+set}" = set; then :
2564 enableval=$enable_win16;
2567 # Check whether --enable-win64 was given.
2568 if test "${enable_win64+set}" = set; then :
2569 enableval=$enable_win64;
2572 # Check whether --enable-tests was given.
2573 if test "${enable_tests+set}" = set; then :
2574 enableval=$enable_tests;
2577 # Check whether --enable-maintainer-mode was given.
2578 if test "${enable_maintainer_mode+set}" = set; then :
2579 enableval=$enable_maintainer_mode;
2584 # Check whether --with-alsa was given.
2585 if test "${with_alsa+set}" = set; then :
2586 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2590 # Check whether --with-capi was given.
2591 if test "${with_capi+set}" = set; then :
2592 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2596 # Check whether --with-cms was given.
2597 if test "${with_cms+set}" = set; then :
2598 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2602 # Check whether --with-coreaudio was given.
2603 if test "${with_coreaudio+set}" = set; then :
2604 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2608 # Check whether --with-cups was given.
2609 if test "${with_cups+set}" = set; then :
2610 withval=$with_cups;
2614 # Check whether --with-curses was given.
2615 if test "${with_curses+set}" = set; then :
2616 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2620 # Check whether --with-dbus was given.
2621 if test "${with_dbus+set}" = set; then :
2622 withval=$with_dbus;
2626 # Check whether --with-fontconfig was given.
2627 if test "${with_fontconfig+set}" = set; then :
2628 withval=$with_fontconfig;
2632 # Check whether --with-freetype was given.
2633 if test "${with_freetype+set}" = set; then :
2634 withval=$with_freetype;
2638 # Check whether --with-gettext was given.
2639 if test "${with_gettext+set}" = set; then :
2640 withval=$with_gettext;
2644 # Check whether --with-gettextpo was given.
2645 if test "${with_gettextpo+set}" = set; then :
2646 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2650 # Check whether --with-gphoto was given.
2651 if test "${with_gphoto+set}" = set; then :
2652 withval=$with_gphoto;
2656 # Check whether --with-glu was given.
2657 if test "${with_glu+set}" = set; then :
2658 withval=$with_glu;
2662 # Check whether --with-gnutls was given.
2663 if test "${with_gnutls+set}" = set; then :
2664 withval=$with_gnutls;
2668 # Check whether --with-gsm was given.
2669 if test "${with_gsm+set}" = set; then :
2670 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2674 # Check whether --with-gstreamer was given.
2675 if test "${with_gstreamer+set}" = set; then :
2676 withval=$with_gstreamer;
2680 # Check whether --with-hal was given.
2681 if test "${with_hal+set}" = set; then :
2682 withval=$with_hal;
2686 # Check whether --with-jpeg was given.
2687 if test "${with_jpeg+set}" = set; then :
2688 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2692 # Check whether --with-ldap was given.
2693 if test "${with_ldap+set}" = set; then :
2694 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2698 # Check whether --with-mpg123 was given.
2699 if test "${with_mpg123+set}" = set; then :
2700 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2704 # Check whether --with-openal was given.
2705 if test "${with_openal+set}" = set; then :
2706 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2710 # Check whether --with-opencl was given.
2711 if test "${with_opencl+set}" = set; then :
2712 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2716 # Check whether --with-opengl was given.
2717 if test "${with_opengl+set}" = set; then :
2718 withval=$with_opengl;
2722 # Check whether --with-osmesa was given.
2723 if test "${with_osmesa+set}" = set; then :
2724 withval=$with_osmesa;
2728 # Check whether --with-oss was given.
2729 if test "${with_oss+set}" = set; then :
2730 withval=$with_oss;
2734 # Check whether --with-png was given.
2735 if test "${with_png+set}" = set; then :
2736 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2740 # Check whether --with-pthread was given.
2741 if test "${with_pthread+set}" = set; then :
2742 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2746 # Check whether --with-sane was given.
2747 if test "${with_sane+set}" = set; then :
2748 withval=$with_sane;
2752 # Check whether --with-tiff was given.
2753 if test "${with_tiff+set}" = set; then :
2754 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2758 # Check whether --with-v4l was given.
2759 if test "${with_v4l+set}" = set; then :
2760 withval=$with_v4l;
2764 # Check whether --with-xcomposite was given.
2765 if test "${with_xcomposite+set}" = set; then :
2766 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2770 # Check whether --with-xcursor was given.
2771 if test "${with_xcursor+set}" = set; then :
2772 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2776 # Check whether --with-xinerama was given.
2777 if test "${with_xinerama+set}" = set; then :
2778 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2782 # Check whether --with-xinput was given.
2783 if test "${with_xinput+set}" = set; then :
2784 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2788 # Check whether --with-xinput2 was given.
2789 if test "${with_xinput2+set}" = set; then :
2790 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2794 # Check whether --with-xml was given.
2795 if test "${with_xml+set}" = set; then :
2796 withval=$with_xml;
2800 # Check whether --with-xrandr was given.
2801 if test "${with_xrandr+set}" = set; then :
2802 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2806 # Check whether --with-xrender was given.
2807 if test "${with_xrender+set}" = set; then :
2808 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2812 # Check whether --with-xshape was given.
2813 if test "${with_xshape+set}" = set; then :
2814 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2818 # Check whether --with-xshm was given.
2819 if test "${with_xshm+set}" = set; then :
2820 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2824 # Check whether --with-xslt was given.
2825 if test "${with_xslt+set}" = set; then :
2826 withval=$with_xslt;
2830 # Check whether --with-xxf86vm was given.
2831 if test "${with_xxf86vm+set}" = set; then :
2832 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
2836 # Check whether --with-zlib was given.
2837 if test "${with_zlib+set}" = set; then :
2838 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2843 # Check whether --with-wine-tools was given.
2844 if test "${with_wine_tools+set}" = set; then :
2845 withval=$with_wine_tools;
2849 # Check whether --with-wine64 was given.
2850 if test "${with_wine64+set}" = set; then :
2851 withval=$with_wine64;
2855 # Make sure we can run config.sub.
2856 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2857 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2860 $as_echo_n "checking build system type... " >&6; }
2861 if ${ac_cv_build+:} false; then :
2862 $as_echo_n "(cached) " >&6
2863 else
2864 ac_build_alias=$build_alias
2865 test "x$ac_build_alias" = x &&
2866 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2867 test "x$ac_build_alias" = x &&
2868 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2869 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2870 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2874 $as_echo "$ac_cv_build" >&6; }
2875 case $ac_cv_build in
2876 *-*-*) ;;
2877 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2878 esac
2879 build=$ac_cv_build
2880 ac_save_IFS=$IFS; IFS='-'
2881 set x $ac_cv_build
2882 shift
2883 build_cpu=$1
2884 build_vendor=$2
2885 shift; shift
2886 # Remember, the first character of IFS is used to create $*,
2887 # except with old shells:
2888 build_os=$*
2889 IFS=$ac_save_IFS
2890 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2894 $as_echo_n "checking host system type... " >&6; }
2895 if ${ac_cv_host+:} false; then :
2896 $as_echo_n "(cached) " >&6
2897 else
2898 if test "x$host_alias" = x; then
2899 ac_cv_host=$ac_cv_build
2900 else
2901 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2902 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2907 $as_echo "$ac_cv_host" >&6; }
2908 case $ac_cv_host in
2909 *-*-*) ;;
2910 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2911 esac
2912 host=$ac_cv_host
2913 ac_save_IFS=$IFS; IFS='-'
2914 set x $ac_cv_host
2915 shift
2916 host_cpu=$1
2917 host_vendor=$2
2918 shift; shift
2919 # Remember, the first character of IFS is used to create $*,
2920 # except with old shells:
2921 host_os=$*
2922 IFS=$ac_save_IFS
2923 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2927 case "$srcdir" in
2928 .) ;;
2929 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2930 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2931 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2932 fi ;;
2933 esac
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2937 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2938 set x ${MAKE-make}
2939 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2940 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2941 $as_echo_n "(cached) " >&6
2942 else
2943 cat >conftest.make <<\_ACEOF
2944 SHELL = /bin/sh
2945 all:
2946 @echo '@@@%%%=$(MAKE)=@@@%%%'
2947 _ACEOF
2948 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2949 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2950 *@@@%%%=?*=@@@%%%*)
2951 eval ac_cv_prog_make_${ac_make}_set=yes;;
2953 eval ac_cv_prog_make_${ac_make}_set=no;;
2954 esac
2955 rm -f conftest.make
2957 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2959 $as_echo "yes" >&6; }
2960 SET_MAKE=
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 SET_MAKE="MAKE=${MAKE-make}"
2967 ac_ext=c
2968 ac_cpp='$CPP $CPPFLAGS'
2969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2972 if test -n "$ac_tool_prefix"; then
2973 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2974 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_CC+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2994 done
2995 done
2996 IFS=$as_save_IFS
3000 CC=$ac_cv_prog_CC
3001 if test -n "$CC"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3003 $as_echo "$CC" >&6; }
3004 else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3011 if test -z "$ac_cv_prog_CC"; then
3012 ac_ct_CC=$CC
3013 # Extract the first word of "gcc", so it can be a program name with args.
3014 set dummy gcc; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3018 $as_echo_n "(cached) " >&6
3019 else
3020 if test -n "$ac_ct_CC"; then
3021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3026 IFS=$as_save_IFS
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030 ac_cv_prog_ac_ct_CC="gcc"
3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 break 2
3034 done
3035 done
3036 IFS=$as_save_IFS
3040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3041 if test -n "$ac_ct_CC"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3043 $as_echo "$ac_ct_CC" >&6; }
3044 else
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3049 if test "x$ac_ct_CC" = x; then
3050 CC=""
3051 else
3052 case $cross_compiling:$ac_tool_warned in
3053 yes:)
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3056 ac_tool_warned=yes ;;
3057 esac
3058 CC=$ac_ct_CC
3060 else
3061 CC="$ac_cv_prog_CC"
3064 if test -z "$CC"; then
3065 if test -n "$ac_tool_prefix"; then
3066 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3067 set dummy ${ac_tool_prefix}cc; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_CC+:} false; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 if test -n "$CC"; then
3074 ac_cv_prog_CC="$CC" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3079 IFS=$as_save_IFS
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 ac_cv_prog_CC="${ac_tool_prefix}cc"
3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 break 2
3087 done
3088 done
3089 IFS=$as_save_IFS
3093 CC=$ac_cv_prog_CC
3094 if test -n "$CC"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3096 $as_echo "$CC" >&6; }
3097 else
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3105 if test -z "$CC"; then
3106 # Extract the first word of "cc", so it can be a program name with args.
3107 set dummy cc; ac_word=$2
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109 $as_echo_n "checking for $ac_word... " >&6; }
3110 if ${ac_cv_prog_CC+:} false; then :
3111 $as_echo_n "(cached) " >&6
3112 else
3113 if test -n "$CC"; then
3114 ac_cv_prog_CC="$CC" # Let the user override the test.
3115 else
3116 ac_prog_rejected=no
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3124 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3125 ac_prog_rejected=yes
3126 continue
3128 ac_cv_prog_CC="cc"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 break 2
3132 done
3133 done
3134 IFS=$as_save_IFS
3136 if test $ac_prog_rejected = yes; then
3137 # We found a bogon in the path, so make sure we never use it.
3138 set dummy $ac_cv_prog_CC
3139 shift
3140 if test $# != 0; then
3141 # We chose a different compiler from the bogus one.
3142 # However, it has the same basename, so the bogon will be chosen
3143 # first if we set CC to just the basename; use the full file name.
3144 shift
3145 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3150 CC=$ac_cv_prog_CC
3151 if test -n "$CC"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3153 $as_echo "$CC" >&6; }
3154 else
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3161 if test -z "$CC"; then
3162 if test -n "$ac_tool_prefix"; then
3163 for ac_prog in cl.exe
3165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if ${ac_cv_prog_CC+:} false; then :
3170 $as_echo_n "(cached) " >&6
3171 else
3172 if test -n "$CC"; then
3173 ac_cv_prog_CC="$CC" # Let the user override the test.
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3182 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 break 2
3186 done
3187 done
3188 IFS=$as_save_IFS
3192 CC=$ac_cv_prog_CC
3193 if test -n "$CC"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3195 $as_echo "$CC" >&6; }
3196 else
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3202 test -n "$CC" && break
3203 done
3205 if test -z "$CC"; then
3206 ac_ct_CC=$CC
3207 for ac_prog in cl.exe
3209 # Extract the first word of "$ac_prog", so it can be a program name with args.
3210 set dummy $ac_prog; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 if test -n "$ac_ct_CC"; then
3217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_prog_ac_ct_CC="$ac_prog"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3230 done
3231 done
3232 IFS=$as_save_IFS
3236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3237 if test -n "$ac_ct_CC"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3239 $as_echo "$ac_ct_CC" >&6; }
3240 else
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3246 test -n "$ac_ct_CC" && break
3247 done
3249 if test "x$ac_ct_CC" = x; then
3250 CC=""
3251 else
3252 case $cross_compiling:$ac_tool_warned in
3253 yes:)
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3256 ac_tool_warned=yes ;;
3257 esac
3258 CC=$ac_ct_CC
3265 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3267 as_fn_error $? "no acceptable C compiler found in \$PATH
3268 See \`config.log' for more details" "$LINENO" 5; }
3270 # Provide some information about the compiler.
3271 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3272 set X $ac_compile
3273 ac_compiler=$2
3274 for ac_option in --version -v -V -qversion; do
3275 { { ac_try="$ac_compiler $ac_option >&5"
3276 case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3283 ac_status=$?
3284 if test -s conftest.err; then
3285 sed '10a\
3286 ... rest of stderr output deleted ...
3287 10q' conftest.err >conftest.er1
3288 cat conftest.er1 >&5
3290 rm -f conftest.er1 conftest.err
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }
3293 done
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3299 main ()
3303 return 0;
3305 _ACEOF
3306 ac_clean_files_save=$ac_clean_files
3307 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3308 # Try to create an executable without -o first, disregard a.out.
3309 # It will help us diagnose broken compilers, and finding out an intuition
3310 # of exeext.
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3312 $as_echo_n "checking whether the C compiler works... " >&6; }
3313 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3315 # The possible output files:
3316 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3318 ac_rmfiles=
3319 for ac_file in $ac_files
3321 case $ac_file in
3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3323 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3324 esac
3325 done
3326 rm -f $ac_rmfiles
3328 if { { ac_try="$ac_link_default"
3329 case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335 (eval "$ac_link_default") 2>&5
3336 ac_status=$?
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }; then :
3339 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3340 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3341 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3342 # so that the user can short-circuit this test for compilers unknown to
3343 # Autoconf.
3344 for ac_file in $ac_files ''
3346 test -f "$ac_file" || continue
3347 case $ac_file in
3348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3350 [ab].out )
3351 # We found the default executable, but exeext='' is most
3352 # certainly right.
3353 break;;
3354 *.* )
3355 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3356 then :; else
3357 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3359 # We set ac_cv_exeext here because the later test for it is not
3360 # safe: cross compilers may not add the suffix if given an `-o'
3361 # argument, so we may need to know it at that point already.
3362 # Even if this section looks crufty: it has the advantage of
3363 # actually working.
3364 break;;
3366 break;;
3367 esac
3368 done
3369 test "$ac_cv_exeext" = no && ac_cv_exeext=
3371 else
3372 ac_file=''
3374 if test -z "$ac_file"; then :
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3377 $as_echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382 as_fn_error 77 "C compiler cannot create executables
3383 See \`config.log' for more details" "$LINENO" 5; }
3384 else
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3386 $as_echo "yes" >&6; }
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3389 $as_echo_n "checking for C compiler default output file name... " >&6; }
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3391 $as_echo "$ac_file" >&6; }
3392 ac_exeext=$ac_cv_exeext
3394 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3395 ac_clean_files=$ac_clean_files_save
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3397 $as_echo_n "checking for suffix of executables... " >&6; }
3398 if { { ac_try="$ac_link"
3399 case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402 esac
3403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3404 $as_echo "$ac_try_echo"; } >&5
3405 (eval "$ac_link") 2>&5
3406 ac_status=$?
3407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3408 test $ac_status = 0; }; then :
3409 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3410 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3411 # work properly (i.e., refer to `conftest.exe'), while it won't with
3412 # `rm'.
3413 for ac_file in conftest.exe conftest conftest.*; do
3414 test -f "$ac_file" || continue
3415 case $ac_file in
3416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3417 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3418 break;;
3419 * ) break;;
3420 esac
3421 done
3422 else
3423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3426 See \`config.log' for more details" "$LINENO" 5; }
3428 rm -f conftest conftest$ac_cv_exeext
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3430 $as_echo "$ac_cv_exeext" >&6; }
3432 rm -f conftest.$ac_ext
3433 EXEEXT=$ac_cv_exeext
3434 ac_exeext=$EXEEXT
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3437 #include <stdio.h>
3439 main ()
3441 FILE *f = fopen ("conftest.out", "w");
3442 return ferror (f) || fclose (f) != 0;
3445 return 0;
3447 _ACEOF
3448 ac_clean_files="$ac_clean_files conftest.out"
3449 # Check that the compiler produces executables we can run. If not, either
3450 # the compiler is broken, or we cross compile.
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3452 $as_echo_n "checking whether we are cross compiling... " >&6; }
3453 if test "$cross_compiling" != yes; then
3454 { { ac_try="$ac_link"
3455 case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_link") 2>&5
3462 ac_status=$?
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }
3465 if { ac_try='./conftest$ac_cv_exeext'
3466 { { case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472 (eval "$ac_try") 2>&5
3473 ac_status=$?
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }; }; then
3476 cross_compiling=no
3477 else
3478 if test "$cross_compiling" = maybe; then
3479 cross_compiling=yes
3480 else
3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 as_fn_error $? "cannot run C compiled programs.
3484 If you meant to cross compile, use \`--host'.
3485 See \`config.log' for more details" "$LINENO" 5; }
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3490 $as_echo "$cross_compiling" >&6; }
3492 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3493 ac_clean_files=$ac_clean_files_save
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3495 $as_echo_n "checking for suffix of object files... " >&6; }
3496 if ${ac_cv_objext+:} false; then :
3497 $as_echo_n "(cached) " >&6
3498 else
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3503 main ()
3507 return 0;
3509 _ACEOF
3510 rm -f conftest.o conftest.obj
3511 if { { ac_try="$ac_compile"
3512 case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515 esac
3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517 $as_echo "$ac_try_echo"; } >&5
3518 (eval "$ac_compile") 2>&5
3519 ac_status=$?
3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521 test $ac_status = 0; }; then :
3522 for ac_file in conftest.o conftest.obj conftest.*; do
3523 test -f "$ac_file" || continue;
3524 case $ac_file in
3525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3526 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3527 break;;
3528 esac
3529 done
3530 else
3531 $as_echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 as_fn_error $? "cannot compute suffix of object files: cannot compile
3537 See \`config.log' for more details" "$LINENO" 5; }
3539 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3542 $as_echo "$ac_cv_objext" >&6; }
3543 OBJEXT=$ac_cv_objext
3544 ac_objext=$OBJEXT
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3546 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3547 if ${ac_cv_c_compiler_gnu+:} false; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3554 main ()
3556 #ifndef __GNUC__
3557 choke me
3558 #endif
3561 return 0;
3563 _ACEOF
3564 if ac_fn_c_try_compile "$LINENO"; then :
3565 ac_compiler_gnu=yes
3566 else
3567 ac_compiler_gnu=no
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3574 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3575 if test $ac_compiler_gnu = yes; then
3576 GCC=yes
3577 else
3578 GCC=
3580 ac_test_CFLAGS=${CFLAGS+set}
3581 ac_save_CFLAGS=$CFLAGS
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3583 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3584 if ${ac_cv_prog_cc_g+:} false; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 ac_save_c_werror_flag=$ac_c_werror_flag
3588 ac_c_werror_flag=yes
3589 ac_cv_prog_cc_g=no
3590 CFLAGS="-g"
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3595 main ()
3599 return 0;
3601 _ACEOF
3602 if ac_fn_c_try_compile "$LINENO"; then :
3603 ac_cv_prog_cc_g=yes
3604 else
3605 CFLAGS=""
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3610 main ()
3614 return 0;
3616 _ACEOF
3617 if ac_fn_c_try_compile "$LINENO"; then :
3619 else
3620 ac_c_werror_flag=$ac_save_c_werror_flag
3621 CFLAGS="-g"
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3626 main ()
3630 return 0;
3632 _ACEOF
3633 if ac_fn_c_try_compile "$LINENO"; then :
3634 ac_cv_prog_cc_g=yes
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 ac_c_werror_flag=$ac_save_c_werror_flag
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3644 $as_echo "$ac_cv_prog_cc_g" >&6; }
3645 if test "$ac_test_CFLAGS" = set; then
3646 CFLAGS=$ac_save_CFLAGS
3647 elif test $ac_cv_prog_cc_g = yes; then
3648 if test "$GCC" = yes; then
3649 CFLAGS="-g -O2"
3650 else
3651 CFLAGS="-g"
3653 else
3654 if test "$GCC" = yes; then
3655 CFLAGS="-O2"
3656 else
3657 CFLAGS=
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3661 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3662 if ${ac_cv_prog_cc_c89+:} false; then :
3663 $as_echo_n "(cached) " >&6
3664 else
3665 ac_cv_prog_cc_c89=no
3666 ac_save_CC=$CC
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3669 #include <stdarg.h>
3670 #include <stdio.h>
3671 struct stat;
3672 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3673 struct buf { int x; };
3674 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3675 static char *e (p, i)
3676 char **p;
3677 int i;
3679 return p[i];
3681 static char *f (char * (*g) (char **, int), char **p, ...)
3683 char *s;
3684 va_list v;
3685 va_start (v,p);
3686 s = g (p, va_arg (v,int));
3687 va_end (v);
3688 return s;
3691 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3692 function prototypes and stuff, but not '\xHH' hex character constants.
3693 These don't provoke an error unfortunately, instead are silently treated
3694 as 'x'. The following induces an error, until -std is added to get
3695 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3696 array size at least. It's necessary to write '\x00'==0 to get something
3697 that's true only with -std. */
3698 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3700 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3701 inside strings and character constants. */
3702 #define FOO(x) 'x'
3703 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3705 int test (int i, double x);
3706 struct s1 {int (*f) (int a);};
3707 struct s2 {int (*f) (double a);};
3708 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3709 int argc;
3710 char **argv;
3712 main ()
3714 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3716 return 0;
3718 _ACEOF
3719 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3720 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3722 CC="$ac_save_CC $ac_arg"
3723 if ac_fn_c_try_compile "$LINENO"; then :
3724 ac_cv_prog_cc_c89=$ac_arg
3726 rm -f core conftest.err conftest.$ac_objext
3727 test "x$ac_cv_prog_cc_c89" != "xno" && break
3728 done
3729 rm -f conftest.$ac_ext
3730 CC=$ac_save_CC
3733 # AC_CACHE_VAL
3734 case "x$ac_cv_prog_cc_c89" in
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3737 $as_echo "none needed" >&6; } ;;
3738 xno)
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3740 $as_echo "unsupported" >&6; } ;;
3742 CC="$CC $ac_cv_prog_cc_c89"
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3744 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3745 esac
3746 if test "x$ac_cv_prog_cc_c89" != xno; then :
3750 ac_ext=c
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756 ac_ext=cpp
3757 ac_cpp='$CXXCPP $CPPFLAGS'
3758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3761 if test -z "$CXX"; then
3762 if test -n "$CCC"; then
3763 CXX=$CCC
3764 else
3765 if test -n "$ac_tool_prefix"; then
3766 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3768 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3769 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771 $as_echo_n "checking for $ac_word... " >&6; }
3772 if ${ac_cv_prog_CXX+:} false; then :
3773 $as_echo_n "(cached) " >&6
3774 else
3775 if test -n "$CXX"; then
3776 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3785 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 break 2
3789 done
3790 done
3791 IFS=$as_save_IFS
3795 CXX=$ac_cv_prog_CXX
3796 if test -n "$CXX"; then
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3798 $as_echo "$CXX" >&6; }
3799 else
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801 $as_echo "no" >&6; }
3805 test -n "$CXX" && break
3806 done
3808 if test -z "$CXX"; then
3809 ac_ct_CXX=$CXX
3810 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3812 # Extract the first word of "$ac_prog", so it can be a program name with args.
3813 set dummy $ac_prog; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3817 $as_echo_n "(cached) " >&6
3818 else
3819 if test -n "$ac_ct_CXX"; then
3820 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829 ac_cv_prog_ac_ct_CXX="$ac_prog"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 break 2
3833 done
3834 done
3835 IFS=$as_save_IFS
3839 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3840 if test -n "$ac_ct_CXX"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3842 $as_echo "$ac_ct_CXX" >&6; }
3843 else
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3849 test -n "$ac_ct_CXX" && break
3850 done
3852 if test "x$ac_ct_CXX" = x; then
3853 CXX="g++"
3854 else
3855 case $cross_compiling:$ac_tool_warned in
3856 yes:)
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3859 ac_tool_warned=yes ;;
3860 esac
3861 CXX=$ac_ct_CXX
3867 # Provide some information about the compiler.
3868 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3869 set X $ac_compile
3870 ac_compiler=$2
3871 for ac_option in --version -v -V -qversion; do
3872 { { ac_try="$ac_compiler $ac_option >&5"
3873 case "(($ac_try" in
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3876 esac
3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878 $as_echo "$ac_try_echo"; } >&5
3879 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3880 ac_status=$?
3881 if test -s conftest.err; then
3882 sed '10a\
3883 ... rest of stderr output deleted ...
3884 10q' conftest.err >conftest.er1
3885 cat conftest.er1 >&5
3887 rm -f conftest.er1 conftest.err
3888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889 test $ac_status = 0; }
3890 done
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3893 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3894 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3895 $as_echo_n "(cached) " >&6
3896 else
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3901 main ()
3903 #ifndef __GNUC__
3904 choke me
3905 #endif
3908 return 0;
3910 _ACEOF
3911 if ac_fn_cxx_try_compile "$LINENO"; then :
3912 ac_compiler_gnu=yes
3913 else
3914 ac_compiler_gnu=no
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3921 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3922 if test $ac_compiler_gnu = yes; then
3923 GXX=yes
3924 else
3925 GXX=
3927 ac_test_CXXFLAGS=${CXXFLAGS+set}
3928 ac_save_CXXFLAGS=$CXXFLAGS
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3930 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3931 if ${ac_cv_prog_cxx_g+:} false; then :
3932 $as_echo_n "(cached) " >&6
3933 else
3934 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3935 ac_cxx_werror_flag=yes
3936 ac_cv_prog_cxx_g=no
3937 CXXFLAGS="-g"
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3942 main ()
3946 return 0;
3948 _ACEOF
3949 if ac_fn_cxx_try_compile "$LINENO"; then :
3950 ac_cv_prog_cxx_g=yes
3951 else
3952 CXXFLAGS=""
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3957 main ()
3961 return 0;
3963 _ACEOF
3964 if ac_fn_cxx_try_compile "$LINENO"; then :
3966 else
3967 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3968 CXXFLAGS="-g"
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3973 main ()
3977 return 0;
3979 _ACEOF
3980 if ac_fn_cxx_try_compile "$LINENO"; then :
3981 ac_cv_prog_cxx_g=yes
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3991 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3992 if test "$ac_test_CXXFLAGS" = set; then
3993 CXXFLAGS=$ac_save_CXXFLAGS
3994 elif test $ac_cv_prog_cxx_g = yes; then
3995 if test "$GXX" = yes; then
3996 CXXFLAGS="-g -O2"
3997 else
3998 CXXFLAGS="-g"
4000 else
4001 if test "$GXX" = yes; then
4002 CXXFLAGS="-O2"
4003 else
4004 CXXFLAGS=
4007 ac_ext=c
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013 if test -n "$ac_tool_prefix"; then
4014 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4015 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4017 $as_echo_n "checking for $ac_word... " >&6; }
4018 if ${ac_cv_prog_CPPBIN+:} false; then :
4019 $as_echo_n "(cached) " >&6
4020 else
4021 if test -n "$CPPBIN"; then
4022 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4023 else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 break 2
4035 done
4036 done
4037 IFS=$as_save_IFS
4041 CPPBIN=$ac_cv_prog_CPPBIN
4042 if test -n "$CPPBIN"; then
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4044 $as_echo "$CPPBIN" >&6; }
4045 else
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4047 $as_echo "no" >&6; }
4052 if test -z "$ac_cv_prog_CPPBIN"; then
4053 ac_ct_CPPBIN=$CPPBIN
4054 # Extract the first word of "cpp", so it can be a program name with args.
4055 set dummy cpp; ac_word=$2
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4057 $as_echo_n "checking for $ac_word... " >&6; }
4058 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 if test -n "$ac_ct_CPPBIN"; then
4062 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4063 else
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4071 ac_cv_prog_ac_ct_CPPBIN="cpp"
4072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 break 2
4075 done
4076 done
4077 IFS=$as_save_IFS
4081 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4082 if test -n "$ac_ct_CPPBIN"; then
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4084 $as_echo "$ac_ct_CPPBIN" >&6; }
4085 else
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4087 $as_echo "no" >&6; }
4090 if test "x$ac_ct_CPPBIN" = x; then
4091 CPPBIN="cpp"
4092 else
4093 case $cross_compiling:$ac_tool_warned in
4094 yes:)
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4097 ac_tool_warned=yes ;;
4098 esac
4099 CPPBIN=$ac_ct_CPPBIN
4101 else
4102 CPPBIN="$ac_cv_prog_CPPBIN"
4106 cat >>confdefs.h <<_ACEOF
4107 #define EXEEXT "$ac_exeext"
4108 _ACEOF
4111 case $host in
4112 *-darwin*)
4113 if test "x$enable_win64" = "xyes"
4114 then
4115 CC="$CC -m64"
4116 CXX="$CXX -m64"
4117 host_cpu="x86_64"
4118 notice_platform="64-bit "
4119 TARGETFLAGS="-m64"
4121 else
4122 CC="$CC -m32"
4123 CXX="$CXX -m32"
4124 host_cpu="i386"
4125 notice_platform="32-bit "
4126 TARGETFLAGS="-m32"
4128 enable_win16=${enable_win16:-yes}
4130 with_fontconfig=${with_fontconfig:-no}
4132 x86_64*)
4133 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4134 then
4135 CC="$CC -m32"
4136 CXX="$CXX -m32"
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4138 $as_echo_n "checking whether $CC works... " >&6; }
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4144 main ()
4148 return 0;
4150 _ACEOF
4151 if ac_fn_c_try_link "$LINENO"; then :
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4153 $as_echo "yes" >&6; }
4154 else
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4156 $as_echo "no" >&6; }
4157 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4159 rm -f core conftest.err conftest.$ac_objext \
4160 conftest$ac_exeext conftest.$ac_ext
4161 host_cpu="i386"
4162 notice_platform="32-bit "
4163 TARGETFLAGS="-m32"
4165 enable_win16=${enable_win16:-yes}
4166 else
4167 if test "x${GCC}" = "xyes"
4168 then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4170 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4173 #include <stdarg.h>
4175 main ()
4177 void func(__builtin_ms_va_list *args);
4179 return 0;
4181 _ACEOF
4182 if ac_fn_c_try_compile "$LINENO"; then :
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4184 $as_echo "yes" >&6; }
4185 else
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187 $as_echo "no" >&6; }
4188 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192 TARGETFLAGS="-m64"
4196 arm*)
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4198 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201 int ac_test(int i) { return i; }
4203 main ()
4205 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4207 return 0;
4209 _ACEOF
4210 if ac_fn_c_try_link "$LINENO"; then :
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4212 $as_echo "yes" >&6; }
4213 else
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4216 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4218 rm -f core conftest.err conftest.$ac_objext \
4219 conftest$ac_exeext conftest.$ac_ext
4220 CFLAGS="$CFLAGS -marm"
4222 *-mingw32*|*-cygwin*)
4223 enable_win16=${enable_win16:-no}
4224 CFLAGS="$CFLAGS -D_WIN32"
4226 i[3456789]86*)
4227 enable_win16=${enable_win16:-yes}
4229 esac
4231 enable_win16=${enable_win16:-no}
4232 enable_win64=${enable_win64:-no}
4234 enable_winetest=${enable_winetest:-$enable_tests}
4236 if test -n "$with_wine64"
4237 then
4238 if test "x$enable_win64" = "xyes"
4239 then
4240 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4241 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4243 WOW64_DISABLE=\#
4245 enable_fonts=${enable_fonts:-no}
4246 enable_server=${enable_server:-no}
4247 enable_tools=${enable_tools:-no}
4248 elif test "x$enable_win64" = "xyes"
4249 then
4250 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4254 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4255 if ${wine_cv_toolsdir+:} false; then :
4256 $as_echo_n "(cached) " >&6
4257 else
4258 wine_cv_toolsdir="$with_wine_tools"
4259 if test -z "$with_wine_tools"; then
4260 if test "$cross_compiling" = "yes"; then
4261 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4262 elif test -n "$with_wine64"; then
4263 wine_cv_toolsdir="$with_wine64"
4266 if test -z "$wine_cv_toolsdir"; then
4267 wine_cv_toolsdir="\$(top_builddir)"
4268 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4269 case "$wine_cv_toolsdir" in
4270 /*) ;;
4271 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4272 esac
4273 else
4274 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4278 $as_echo "$wine_cv_toolsdir" >&6; }
4279 TOOLSDIR=$wine_cv_toolsdir
4281 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4282 then
4283 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4287 for ac_prog in flex
4289 # Extract the first word of "$ac_prog", so it can be a program name with args.
4290 set dummy $ac_prog; ac_word=$2
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292 $as_echo_n "checking for $ac_word... " >&6; }
4293 if ${ac_cv_prog_FLEX+:} false; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 if test -n "$FLEX"; then
4297 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4298 else
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4306 ac_cv_prog_FLEX="$ac_prog"
4307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 break 2
4310 done
4311 done
4312 IFS=$as_save_IFS
4316 FLEX=$ac_cv_prog_FLEX
4317 if test -n "$FLEX"; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4319 $as_echo "$FLEX" >&6; }
4320 else
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4326 test -n "$FLEX" && break
4327 done
4328 test -n "$FLEX" || FLEX="none"
4330 if test "$FLEX" = "none"
4331 then
4332 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4335 $as_echo_n "checking whether flex is recent enough... " >&6; }
4336 cat >conftest.l <<EOF
4337 %top{
4338 #include "prediluvian.h"
4342 if $FLEX -t conftest.l >/dev/null 2>&5
4343 then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4345 $as_echo "yes" >&6; }
4346 else
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4349 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4352 for ac_prog in bison
4354 # Extract the first word of "$ac_prog", so it can be a program name with args.
4355 set dummy $ac_prog; ac_word=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if ${ac_cv_prog_BISON+:} false; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 if test -n "$BISON"; then
4362 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371 ac_cv_prog_BISON="$ac_prog"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4375 done
4376 done
4377 IFS=$as_save_IFS
4381 BISON=$ac_cv_prog_BISON
4382 if test -n "$BISON"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4384 $as_echo "$BISON" >&6; }
4385 else
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4391 test -n "$BISON" && break
4392 done
4393 test -n "$BISON" || BISON="none"
4395 if test "$BISON" = "none"
4396 then
4397 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4400 if test -n "$ac_tool_prefix"; then
4401 for ac_prog in ar gar
4403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if ${ac_cv_prog_AR+:} false; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if test -n "$AR"; then
4411 ac_cv_prog_AR="$AR" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4420 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4424 done
4425 done
4426 IFS=$as_save_IFS
4430 AR=$ac_cv_prog_AR
4431 if test -n "$AR"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4433 $as_echo "$AR" >&6; }
4434 else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4440 test -n "$AR" && break
4441 done
4443 if test -z "$AR"; then
4444 ac_ct_AR=$AR
4445 for ac_prog in ar gar
4447 # Extract the first word of "$ac_prog", so it can be a program name with args.
4448 set dummy $ac_prog; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if test -n "$ac_ct_AR"; then
4455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464 ac_cv_prog_ac_ct_AR="$ac_prog"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4468 done
4469 done
4470 IFS=$as_save_IFS
4474 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4475 if test -n "$ac_ct_AR"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4477 $as_echo "$ac_ct_AR" >&6; }
4478 else
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4484 test -n "$ac_ct_AR" && break
4485 done
4487 if test "x$ac_ct_AR" = x; then
4488 AR="ar"
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491 yes:)
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned=yes ;;
4495 esac
4496 AR=$ac_ct_AR
4500 ARFLAGS=rc
4502 if test -n "$ac_tool_prefix"; then
4503 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4504 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506 $as_echo_n "checking for $ac_word... " >&6; }
4507 if ${ac_cv_prog_RANLIB+:} false; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 if test -n "$RANLIB"; then
4511 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4512 else
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4524 done
4525 done
4526 IFS=$as_save_IFS
4530 RANLIB=$ac_cv_prog_RANLIB
4531 if test -n "$RANLIB"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4533 $as_echo "$RANLIB" >&6; }
4534 else
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 $as_echo "no" >&6; }
4541 if test -z "$ac_cv_prog_RANLIB"; then
4542 ac_ct_RANLIB=$RANLIB
4543 # Extract the first word of "ranlib", so it can be a program name with args.
4544 set dummy ranlib; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 if test -n "$ac_ct_RANLIB"; then
4551 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560 ac_cv_prog_ac_ct_RANLIB="ranlib"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4564 done
4565 done
4566 IFS=$as_save_IFS
4570 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4571 if test -n "$ac_ct_RANLIB"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4573 $as_echo "$ac_ct_RANLIB" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4579 if test "x$ac_ct_RANLIB" = x; then
4580 RANLIB=":"
4581 else
4582 case $cross_compiling:$ac_tool_warned in
4583 yes:)
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4586 ac_tool_warned=yes ;;
4587 esac
4588 RANLIB=$ac_ct_RANLIB
4590 else
4591 RANLIB="$ac_cv_prog_RANLIB"
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4595 $as_echo_n "checking whether ln -s works... " >&6; }
4596 LN_S=$as_ln_s
4597 if test "$LN_S" = "ln -s"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4599 $as_echo "yes" >&6; }
4600 else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4602 $as_echo "no, using $LN_S" >&6; }
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4606 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4607 if ${ac_cv_path_GREP+:} false; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 if test -z "$GREP"; then
4611 ac_path_GREP_found=false
4612 # Loop through the user's path and test for each of PROGNAME-LIST
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_prog in grep ggrep; do
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4621 as_fn_executable_p "$ac_path_GREP" || continue
4622 # Check for GNU ac_path_GREP and select it if it is found.
4623 # Check for GNU $ac_path_GREP
4624 case `"$ac_path_GREP" --version 2>&1` in
4625 *GNU*)
4626 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4628 ac_count=0
4629 $as_echo_n 0123456789 >"conftest.in"
4630 while :
4632 cat "conftest.in" "conftest.in" >"conftest.tmp"
4633 mv "conftest.tmp" "conftest.in"
4634 cp "conftest.in" "conftest.nl"
4635 $as_echo 'GREP' >> "conftest.nl"
4636 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4638 as_fn_arith $ac_count + 1 && ac_count=$as_val
4639 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4640 # Best one so far, save it but keep looking for a better one
4641 ac_cv_path_GREP="$ac_path_GREP"
4642 ac_path_GREP_max=$ac_count
4644 # 10*(2^10) chars as input seems more than enough
4645 test $ac_count -gt 10 && break
4646 done
4647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4648 esac
4650 $ac_path_GREP_found && break 3
4651 done
4652 done
4653 done
4654 IFS=$as_save_IFS
4655 if test -z "$ac_cv_path_GREP"; then
4656 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4658 else
4659 ac_cv_path_GREP=$GREP
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4664 $as_echo "$ac_cv_path_GREP" >&6; }
4665 GREP="$ac_cv_path_GREP"
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4669 $as_echo_n "checking for egrep... " >&6; }
4670 if ${ac_cv_path_EGREP+:} false; then :
4671 $as_echo_n "(cached) " >&6
4672 else
4673 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4674 then ac_cv_path_EGREP="$GREP -E"
4675 else
4676 if test -z "$EGREP"; then
4677 ac_path_EGREP_found=false
4678 # Loop through the user's path and test for each of PROGNAME-LIST
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4682 IFS=$as_save_IFS
4683 test -z "$as_dir" && as_dir=.
4684 for ac_prog in egrep; do
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4687 as_fn_executable_p "$ac_path_EGREP" || continue
4688 # Check for GNU ac_path_EGREP and select it if it is found.
4689 # Check for GNU $ac_path_EGREP
4690 case `"$ac_path_EGREP" --version 2>&1` in
4691 *GNU*)
4692 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4694 ac_count=0
4695 $as_echo_n 0123456789 >"conftest.in"
4696 while :
4698 cat "conftest.in" "conftest.in" >"conftest.tmp"
4699 mv "conftest.tmp" "conftest.in"
4700 cp "conftest.in" "conftest.nl"
4701 $as_echo 'EGREP' >> "conftest.nl"
4702 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4704 as_fn_arith $ac_count + 1 && ac_count=$as_val
4705 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4706 # Best one so far, save it but keep looking for a better one
4707 ac_cv_path_EGREP="$ac_path_EGREP"
4708 ac_path_EGREP_max=$ac_count
4710 # 10*(2^10) chars as input seems more than enough
4711 test $ac_count -gt 10 && break
4712 done
4713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4714 esac
4716 $ac_path_EGREP_found && break 3
4717 done
4718 done
4719 done
4720 IFS=$as_save_IFS
4721 if test -z "$ac_cv_path_EGREP"; then
4722 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4724 else
4725 ac_cv_path_EGREP=$EGREP
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4731 $as_echo "$ac_cv_path_EGREP" >&6; }
4732 EGREP="$ac_cv_path_EGREP"
4735 # Extract the first word of "ldconfig", so it can be a program name with args.
4736 set dummy ldconfig; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if ${ac_cv_path_LDCONFIG+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 case $LDCONFIG in
4743 [\\/]* | ?:[\\/]*)
4744 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in /sbin /usr/sbin $PATH
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4754 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 break 2
4758 done
4759 done
4760 IFS=$as_save_IFS
4762 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4764 esac
4766 LDCONFIG=$ac_cv_path_LDCONFIG
4767 if test -n "$LDCONFIG"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4769 $as_echo "$LDCONFIG" >&6; }
4770 else
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4776 # Find a good install program. We prefer a C program (faster),
4777 # so one script is as good as another. But avoid the broken or
4778 # incompatible versions:
4779 # SysV /etc/install, /usr/sbin/install
4780 # SunOS /usr/etc/install
4781 # IRIX /sbin/install
4782 # AIX /bin/install
4783 # AmigaOS /C/install, which installs bootblocks on floppy discs
4784 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4785 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4786 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4787 # OS/2's system install, which has a completely different semantic
4788 # ./install, which can be erroneously created by make from ./install.sh.
4789 # Reject install programs that cannot install multiple files.
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4791 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4792 if test -z "$INSTALL"; then
4793 if ${ac_cv_path_install+:} false; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 # Account for people who put trailing slashes in PATH elements.
4802 case $as_dir/ in #((
4803 ./ | .// | /[cC]/* | \
4804 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4805 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4806 /usr/ucb/* ) ;;
4808 # OSF1 and SCO ODT 3.0 have their own names for install.
4809 # Don't use installbsd from OSF since it installs stuff as root
4810 # by default.
4811 for ac_prog in ginstall scoinst install; do
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4814 if test $ac_prog = install &&
4815 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4816 # AIX install. It has an incompatible calling convention.
4818 elif test $ac_prog = install &&
4819 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4820 # program-specific install script used by HP pwplus--don't use.
4822 else
4823 rm -rf conftest.one conftest.two conftest.dir
4824 echo one > conftest.one
4825 echo two > conftest.two
4826 mkdir conftest.dir
4827 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4828 test -s conftest.one && test -s conftest.two &&
4829 test -s conftest.dir/conftest.one &&
4830 test -s conftest.dir/conftest.two
4831 then
4832 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4833 break 3
4837 done
4838 done
4840 esac
4842 done
4843 IFS=$as_save_IFS
4845 rm -rf conftest.one conftest.two conftest.dir
4848 if test "${ac_cv_path_install+set}" = set; then
4849 INSTALL=$ac_cv_path_install
4850 else
4851 # As a last resort, use the slow shell script. Don't cache a
4852 # value for INSTALL within a source directory, because that will
4853 # break other packages using the cache if that directory is
4854 # removed, or if the value is a relative name.
4855 INSTALL=$ac_install_sh
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4859 $as_echo "$INSTALL" >&6; }
4861 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4862 # It thinks the first close brace ends the variable substitution.
4863 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4865 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4867 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4869 case "$INSTALL" in
4870 [\\/$]* | ?:[\\/]* ) ;;
4871 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4872 esac
4874 for ac_prog in lclint lint
4876 # Extract the first word of "$ac_prog", so it can be a program name with args.
4877 set dummy $ac_prog; ac_word=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if ${ac_cv_prog_LINT+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 if test -n "$LINT"; then
4884 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4885 else
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893 ac_cv_prog_LINT="$ac_prog"
4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 break 2
4897 done
4898 done
4899 IFS=$as_save_IFS
4903 LINT=$ac_cv_prog_LINT
4904 if test -n "$LINT"; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4906 $as_echo "$LINT" >&6; }
4907 else
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4913 test -n "$LINT" && break
4914 done
4916 if test "$LINT" = "lint"
4917 then
4918 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4922 for ac_prog in fontforge
4924 # Extract the first word of "$ac_prog", so it can be a program name with args.
4925 set dummy $ac_prog; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if ${ac_cv_prog_FONTFORGE+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if test -n "$FONTFORGE"; then
4932 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941 ac_cv_prog_FONTFORGE="$ac_prog"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4945 done
4946 done
4947 IFS=$as_save_IFS
4951 FONTFORGE=$ac_cv_prog_FONTFORGE
4952 if test -n "$FONTFORGE"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4954 $as_echo "$FONTFORGE" >&6; }
4955 else
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4961 test -n "$FONTFORGE" && break
4962 done
4963 test -n "$FONTFORGE" || FONTFORGE="false"
4965 for ac_prog in rsvg
4967 # Extract the first word of "$ac_prog", so it can be a program name with args.
4968 set dummy $ac_prog; ac_word=$2
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970 $as_echo_n "checking for $ac_word... " >&6; }
4971 if ${ac_cv_prog_RSVG+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 if test -n "$RSVG"; then
4975 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_prog_RSVG="$ac_prog"
4985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4988 done
4989 done
4990 IFS=$as_save_IFS
4994 RSVG=$ac_cv_prog_RSVG
4995 if test -n "$RSVG"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4997 $as_echo "$RSVG" >&6; }
4998 else
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5004 test -n "$RSVG" && break
5005 done
5006 test -n "$RSVG" || RSVG="false"
5008 for ac_prog in convert
5010 # Extract the first word of "$ac_prog", so it can be a program name with args.
5011 set dummy $ac_prog; ac_word=$2
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013 $as_echo_n "checking for $ac_word... " >&6; }
5014 if ${ac_cv_prog_CONVERT+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 if test -n "$CONVERT"; then
5018 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5019 else
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027 ac_cv_prog_CONVERT="$ac_prog"
5028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 break 2
5031 done
5032 done
5033 IFS=$as_save_IFS
5037 CONVERT=$ac_cv_prog_CONVERT
5038 if test -n "$CONVERT"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5040 $as_echo "$CONVERT" >&6; }
5041 else
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5047 test -n "$CONVERT" && break
5048 done
5049 test -n "$CONVERT" || CONVERT="false"
5051 for ac_prog in icotool
5053 # Extract the first word of "$ac_prog", so it can be a program name with args.
5054 set dummy $ac_prog; ac_word=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if ${ac_cv_prog_ICOTOOL+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 if test -n "$ICOTOOL"; then
5061 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5062 else
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH
5066 IFS=$as_save_IFS
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070 ac_cv_prog_ICOTOOL="$ac_prog"
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 break 2
5074 done
5075 done
5076 IFS=$as_save_IFS
5080 ICOTOOL=$ac_cv_prog_ICOTOOL
5081 if test -n "$ICOTOOL"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5083 $as_echo "$ICOTOOL" >&6; }
5084 else
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5090 test -n "$ICOTOOL" && break
5091 done
5092 test -n "$ICOTOOL" || ICOTOOL="false"
5094 for ac_prog in msgfmt
5096 # Extract the first word of "$ac_prog", so it can be a program name with args.
5097 set dummy $ac_prog; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_prog_MSGFMT+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if test -n "$MSGFMT"; then
5104 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5105 else
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113 ac_cv_prog_MSGFMT="$ac_prog"
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5117 done
5118 done
5119 IFS=$as_save_IFS
5123 MSGFMT=$ac_cv_prog_MSGFMT
5124 if test -n "$MSGFMT"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5126 $as_echo "$MSGFMT" >&6; }
5127 else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5133 test -n "$MSGFMT" && break
5134 done
5135 test -n "$MSGFMT" || MSGFMT="false"
5138 if test "x$enable_maintainer_mode" != "xyes"
5139 then
5140 MAINTAINER_MODE=\#
5142 else
5143 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5144 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5146 if test "$CONVERT" = false
5147 then
5148 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5149 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5151 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5152 convert_version=`convert --version | head -n1`
5153 if test "x$convert_version" != "x"
5154 then
5155 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5156 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5157 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5158 then
5159 CONVERT=false
5162 if test "$CONVERT" = false
5163 then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5165 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5166 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5167 else
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5169 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5173 if test "$ICOTOOL" = false
5174 then
5175 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5176 else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5178 $as_echo_n "checking for recent enough icotool... " >&6; }
5179 icotool_version=`icotool --version | head -n1`
5180 if test "x$icotool_version" != "x"
5181 then
5182 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5183 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5184 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5185 then
5186 ICOTOOL=false
5187 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5190 if test "$ICOTOOL" = false
5191 then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5193 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5194 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5195 else
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5197 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5201 with_gettext=yes
5202 with_gettextpo=yes
5203 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5206 test "x$with_gettext" != xno || MSGFMT=false
5207 if test "$MSGFMT" != "false"
5208 then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5210 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5211 cat >conftest.po <<EOF
5212 # comment
5213 msgctxt "ctxt"
5214 msgid "id"
5215 msgstr "str"
5217 if $MSGFMT -o /dev/null conftest.po 2>&5
5218 then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5220 $as_echo "yes" >&6; }
5221 else
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 $as_echo "no" >&6; }
5224 MSGFMT=false
5227 if test "$MSGFMT" = false; then :
5228 case "x$with_gettext" in
5229 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5230 xno) ;;
5231 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5232 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5233 esac
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5238 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5239 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 ac_check_lib_save_LIBS=$LIBS
5243 LIBS="-li386 $LIBS"
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5247 /* Override any GCC internal prototype to avoid an error.
5248 Use char because int might match the return type of a GCC
5249 builtin and then its argument prototype would still apply. */
5250 #ifdef __cplusplus
5251 extern "C"
5252 #endif
5253 char i386_set_ldt ();
5255 main ()
5257 return i386_set_ldt ();
5259 return 0;
5261 _ACEOF
5262 if ac_fn_c_try_link "$LINENO"; then :
5263 ac_cv_lib_i386_i386_set_ldt=yes
5264 else
5265 ac_cv_lib_i386_i386_set_ldt=no
5267 rm -f core conftest.err conftest.$ac_objext \
5268 conftest$ac_exeext conftest.$ac_ext
5269 LIBS=$ac_check_lib_save_LIBS
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5272 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5273 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5274 cat >>confdefs.h <<_ACEOF
5275 #define HAVE_LIBI386 1
5276 _ACEOF
5278 LIBS="-li386 $LIBS"
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5283 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5284 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 ac_check_lib_save_LIBS=$LIBS
5288 LIBS="-lossaudio $LIBS"
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5292 /* Override any GCC internal prototype to avoid an error.
5293 Use char because int might match the return type of a GCC
5294 builtin and then its argument prototype would still apply. */
5295 #ifdef __cplusplus
5296 extern "C"
5297 #endif
5298 char _oss_ioctl ();
5300 main ()
5302 return _oss_ioctl ();
5304 return 0;
5306 _ACEOF
5307 if ac_fn_c_try_link "$LINENO"; then :
5308 ac_cv_lib_ossaudio__oss_ioctl=yes
5309 else
5310 ac_cv_lib_ossaudio__oss_ioctl=no
5312 rm -f core conftest.err conftest.$ac_objext \
5313 conftest$ac_exeext conftest.$ac_ext
5314 LIBS=$ac_check_lib_save_LIBS
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5317 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5318 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5319 cat >>confdefs.h <<_ACEOF
5320 #define HAVE_LIBOSSAUDIO 1
5321 _ACEOF
5323 LIBS="-lossaudio $LIBS"
5328 XLIB=""
5330 OPENGL_LIBS=""
5334 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5336 # Check whether --enable-largefile was given.
5337 if test "${enable_largefile+set}" = set; then :
5338 enableval=$enable_largefile;
5341 if test "$enable_largefile" != no; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5344 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5345 if ${ac_cv_sys_largefile_CC+:} false; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5348 ac_cv_sys_largefile_CC=no
5349 if test "$GCC" != yes; then
5350 ac_save_CC=$CC
5351 while :; do
5352 # IRIX 6.2 and later do not support large files by default,
5353 # so use the C compiler's -n32 option if that helps.
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5356 #include <sys/types.h>
5357 /* Check that off_t can represent 2**63 - 1 correctly.
5358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5359 since some C++ compilers masquerading as C compilers
5360 incorrectly reject 9223372036854775807. */
5361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5363 && LARGE_OFF_T % 2147483647 == 1)
5364 ? 1 : -1];
5366 main ()
5370 return 0;
5372 _ACEOF
5373 if ac_fn_c_try_compile "$LINENO"; then :
5374 break
5376 rm -f core conftest.err conftest.$ac_objext
5377 CC="$CC -n32"
5378 if ac_fn_c_try_compile "$LINENO"; then :
5379 ac_cv_sys_largefile_CC=' -n32'; break
5381 rm -f core conftest.err conftest.$ac_objext
5382 break
5383 done
5384 CC=$ac_save_CC
5385 rm -f conftest.$ac_ext
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5389 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5390 if test "$ac_cv_sys_largefile_CC" != no; then
5391 CC=$CC$ac_cv_sys_largefile_CC
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5395 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5396 if ${ac_cv_sys_file_offset_bits+:} false; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 while :; do
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402 #include <sys/types.h>
5403 /* Check that off_t can represent 2**63 - 1 correctly.
5404 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5405 since some C++ compilers masquerading as C compilers
5406 incorrectly reject 9223372036854775807. */
5407 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5408 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5409 && LARGE_OFF_T % 2147483647 == 1)
5410 ? 1 : -1];
5412 main ()
5416 return 0;
5418 _ACEOF
5419 if ac_fn_c_try_compile "$LINENO"; then :
5420 ac_cv_sys_file_offset_bits=no; break
5422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 #define _FILE_OFFSET_BITS 64
5426 #include <sys/types.h>
5427 /* Check that off_t can represent 2**63 - 1 correctly.
5428 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5429 since some C++ compilers masquerading as C compilers
5430 incorrectly reject 9223372036854775807. */
5431 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5432 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5433 && LARGE_OFF_T % 2147483647 == 1)
5434 ? 1 : -1];
5436 main ()
5440 return 0;
5442 _ACEOF
5443 if ac_fn_c_try_compile "$LINENO"; then :
5444 ac_cv_sys_file_offset_bits=64; break
5446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 ac_cv_sys_file_offset_bits=unknown
5448 break
5449 done
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5452 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5453 case $ac_cv_sys_file_offset_bits in #(
5454 no | unknown) ;;
5456 cat >>confdefs.h <<_ACEOF
5457 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5458 _ACEOF
5460 esac
5461 rm -rf conftest*
5462 if test $ac_cv_sys_file_offset_bits = unknown; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5464 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5465 if ${ac_cv_sys_large_files+:} false; then :
5466 $as_echo_n "(cached) " >&6
5467 else
5468 while :; do
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 #include <sys/types.h>
5472 /* Check that off_t can represent 2**63 - 1 correctly.
5473 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5474 since some C++ compilers masquerading as C compilers
5475 incorrectly reject 9223372036854775807. */
5476 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5477 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5478 && LARGE_OFF_T % 2147483647 == 1)
5479 ? 1 : -1];
5481 main ()
5485 return 0;
5487 _ACEOF
5488 if ac_fn_c_try_compile "$LINENO"; then :
5489 ac_cv_sys_large_files=no; break
5491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 #define _LARGE_FILES 1
5495 #include <sys/types.h>
5496 /* Check that off_t can represent 2**63 - 1 correctly.
5497 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5498 since some C++ compilers masquerading as C compilers
5499 incorrectly reject 9223372036854775807. */
5500 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5501 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5502 && LARGE_OFF_T % 2147483647 == 1)
5503 ? 1 : -1];
5505 main ()
5509 return 0;
5511 _ACEOF
5512 if ac_fn_c_try_compile "$LINENO"; then :
5513 ac_cv_sys_large_files=1; break
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 ac_cv_sys_large_files=unknown
5517 break
5518 done
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5521 $as_echo "$ac_cv_sys_large_files" >&6; }
5522 case $ac_cv_sys_large_files in #(
5523 no | unknown) ;;
5525 cat >>confdefs.h <<_ACEOF
5526 #define _LARGE_FILES $ac_cv_sys_large_files
5527 _ACEOF
5529 esac
5530 rm -rf conftest*
5537 ac_ext=c
5538 ac_cpp='$CPP $CPPFLAGS'
5539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5543 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5544 # On Suns, sometimes $CPP names a directory.
5545 if test -n "$CPP" && test -d "$CPP"; then
5546 CPP=
5548 if test -z "$CPP"; then
5549 if ${ac_cv_prog_CPP+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 # Double quotes because CPP needs to be expanded
5553 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5555 ac_preproc_ok=false
5556 for ac_c_preproc_warn_flag in '' yes
5558 # Use a header file that comes with gcc, so configuring glibc
5559 # with a fresh cross-compiler works.
5560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5561 # <limits.h> exists even on freestanding compilers.
5562 # On the NeXT, cc -E runs the code through the compiler's parser,
5563 # not just through cpp. "Syntax error" is here to catch this case.
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 #ifdef __STDC__
5567 # include <limits.h>
5568 #else
5569 # include <assert.h>
5570 #endif
5571 Syntax error
5572 _ACEOF
5573 if ac_fn_c_try_cpp "$LINENO"; then :
5575 else
5576 # Broken: fails on valid input.
5577 continue
5579 rm -f conftest.err conftest.i conftest.$ac_ext
5581 # OK, works on sane cases. Now check whether nonexistent headers
5582 # can be detected and how.
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5585 #include <ac_nonexistent.h>
5586 _ACEOF
5587 if ac_fn_c_try_cpp "$LINENO"; then :
5588 # Broken: success on invalid input.
5589 continue
5590 else
5591 # Passes both tests.
5592 ac_preproc_ok=:
5593 break
5595 rm -f conftest.err conftest.i conftest.$ac_ext
5597 done
5598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5599 rm -f conftest.i conftest.err conftest.$ac_ext
5600 if $ac_preproc_ok; then :
5601 break
5604 done
5605 ac_cv_prog_CPP=$CPP
5608 CPP=$ac_cv_prog_CPP
5609 else
5610 ac_cv_prog_CPP=$CPP
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5613 $as_echo "$CPP" >&6; }
5614 ac_preproc_ok=false
5615 for ac_c_preproc_warn_flag in '' yes
5617 # Use a header file that comes with gcc, so configuring glibc
5618 # with a fresh cross-compiler works.
5619 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5620 # <limits.h> exists even on freestanding compilers.
5621 # On the NeXT, cc -E runs the code through the compiler's parser,
5622 # not just through cpp. "Syntax error" is here to catch this case.
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625 #ifdef __STDC__
5626 # include <limits.h>
5627 #else
5628 # include <assert.h>
5629 #endif
5630 Syntax error
5631 _ACEOF
5632 if ac_fn_c_try_cpp "$LINENO"; then :
5634 else
5635 # Broken: fails on valid input.
5636 continue
5638 rm -f conftest.err conftest.i conftest.$ac_ext
5640 # OK, works on sane cases. Now check whether nonexistent headers
5641 # can be detected and how.
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <ac_nonexistent.h>
5645 _ACEOF
5646 if ac_fn_c_try_cpp "$LINENO"; then :
5647 # Broken: success on invalid input.
5648 continue
5649 else
5650 # Passes both tests.
5651 ac_preproc_ok=:
5652 break
5654 rm -f conftest.err conftest.i conftest.$ac_ext
5656 done
5657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5658 rm -f conftest.i conftest.err conftest.$ac_ext
5659 if $ac_preproc_ok; then :
5661 else
5662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5664 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5665 See \`config.log' for more details" "$LINENO" 5; }
5668 ac_ext=c
5669 ac_cpp='$CPP $CPPFLAGS'
5670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5676 $as_echo_n "checking for ANSI C header files... " >&6; }
5677 if ${ac_cv_header_stdc+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 #include <stdlib.h>
5683 #include <stdarg.h>
5684 #include <string.h>
5685 #include <float.h>
5688 main ()
5692 return 0;
5694 _ACEOF
5695 if ac_fn_c_try_compile "$LINENO"; then :
5696 ac_cv_header_stdc=yes
5697 else
5698 ac_cv_header_stdc=no
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 if test $ac_cv_header_stdc = yes; then
5703 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5706 #include <string.h>
5708 _ACEOF
5709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5710 $EGREP "memchr" >/dev/null 2>&1; then :
5712 else
5713 ac_cv_header_stdc=no
5715 rm -f conftest*
5719 if test $ac_cv_header_stdc = yes; then
5720 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5723 #include <stdlib.h>
5725 _ACEOF
5726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5727 $EGREP "free" >/dev/null 2>&1; then :
5729 else
5730 ac_cv_header_stdc=no
5732 rm -f conftest*
5736 if test $ac_cv_header_stdc = yes; then
5737 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5738 if test "$cross_compiling" = yes; then :
5740 else
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 #include <ctype.h>
5744 #include <stdlib.h>
5745 #if ((' ' & 0x0FF) == 0x020)
5746 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5747 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5748 #else
5749 # define ISLOWER(c) \
5750 (('a' <= (c) && (c) <= 'i') \
5751 || ('j' <= (c) && (c) <= 'r') \
5752 || ('s' <= (c) && (c) <= 'z'))
5753 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5754 #endif
5756 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5758 main ()
5760 int i;
5761 for (i = 0; i < 256; i++)
5762 if (XOR (islower (i), ISLOWER (i))
5763 || toupper (i) != TOUPPER (i))
5764 return 2;
5765 return 0;
5767 _ACEOF
5768 if ac_fn_c_try_run "$LINENO"; then :
5770 else
5771 ac_cv_header_stdc=no
5773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5774 conftest.$ac_objext conftest.beam conftest.$ac_ext
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5780 $as_echo "$ac_cv_header_stdc" >&6; }
5781 if test $ac_cv_header_stdc = yes; then
5783 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5787 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5788 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5789 inttypes.h stdint.h unistd.h
5790 do :
5791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5792 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5794 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5795 cat >>confdefs.h <<_ACEOF
5796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5797 _ACEOF
5801 done
5804 for ac_header in \
5805 AL/al.h \
5806 ApplicationServices/ApplicationServices.h \
5807 AudioToolbox/AudioConverter.h \
5808 AudioUnit/AudioUnit.h \
5809 AudioUnit/AudioComponent.h \
5810 CL/cl.h \
5811 Carbon/Carbon.h \
5812 CoreAudio/CoreAudio.h \
5813 CoreServices/CoreServices.h \
5814 DiskArbitration/DiskArbitration.h \
5815 IOKit/IOKitLib.h \
5816 IOKit/hid/IOHIDLib.h \
5817 OpenAL/al.h \
5818 OpenCL/opencl.h \
5819 QuickTime/ImageCompression.h \
5820 Security/Security.h \
5821 alias.h \
5822 alsa/asoundlib.h \
5823 arpa/inet.h \
5824 arpa/nameser.h \
5825 asm/types.h \
5826 capi20.h \
5827 curses.h \
5828 direct.h \
5829 dirent.h \
5830 dlfcn.h \
5831 elf.h \
5832 float.h \
5833 fnmatch.h \
5834 fontconfig/fontconfig.h \
5835 getopt.h \
5836 gettext-po.h \
5837 grp.h \
5838 gsm.h \
5839 gsm/gsm.h \
5840 ieeefp.h \
5841 inet/mib2.h \
5842 io.h \
5843 jpeglib.h \
5844 kstat.h \
5845 lber.h \
5846 lcms.h \
5847 lcms/lcms.h \
5848 ldap.h \
5849 link.h \
5850 linux/cdrom.h \
5851 linux/compiler.h \
5852 linux/filter.h \
5853 linux/hdreg.h \
5854 linux/input.h \
5855 linux/ioctl.h \
5856 linux/joystick.h \
5857 linux/major.h \
5858 linux/param.h \
5859 linux/serial.h \
5860 linux/types.h \
5861 linux/ucdrom.h \
5862 lwp.h \
5863 mach-o/nlist.h \
5864 mach-o/loader.h \
5865 mach/mach.h \
5866 mach/machine.h \
5867 machine/cpu.h \
5868 machine/limits.h \
5869 machine/sysarch.h \
5870 mntent.h \
5871 mpg123.h \
5872 ncurses.h \
5873 netdb.h \
5874 netinet/in.h \
5875 netinet/in_systm.h \
5876 netinet/tcp.h \
5877 netinet/tcp_fsm.h \
5878 png.h \
5879 poll.h \
5880 port.h \
5881 process.h \
5882 pthread.h \
5883 pwd.h \
5884 sched.h \
5885 scsi/scsi.h \
5886 scsi/scsi_ioctl.h \
5887 scsi/sg.h \
5888 stdbool.h \
5889 stdint.h \
5890 stropts.h \
5891 sys/asoundlib.h \
5892 sys/attr.h \
5893 sys/cdio.h \
5894 sys/elf32.h \
5895 sys/epoll.h \
5896 sys/event.h \
5897 sys/exec_elf.h \
5898 sys/filio.h \
5899 sys/inotify.h \
5900 sys/ioctl.h \
5901 sys/ipc.h \
5902 sys/limits.h \
5903 sys/link.h \
5904 sys/mman.h \
5905 sys/modem.h \
5906 sys/msg.h \
5907 sys/mtio.h \
5908 sys/param.h \
5909 sys/poll.h \
5910 sys/prctl.h \
5911 sys/protosw.h \
5912 sys/ptrace.h \
5913 sys/resource.h \
5914 sys/scsiio.h \
5915 sys/shm.h \
5916 sys/signal.h \
5917 sys/socket.h \
5918 sys/socketvar.h \
5919 sys/sockio.h \
5920 sys/statvfs.h \
5921 sys/strtio.h \
5922 sys/syscall.h \
5923 sys/tihdr.h \
5924 sys/time.h \
5925 sys/timeout.h \
5926 sys/times.h \
5927 sys/uio.h \
5928 sys/utsname.h \
5929 sys/vm86.h \
5930 sys/wait.h \
5931 syscall.h \
5932 termios.h \
5933 tiffio.h \
5934 unistd.h \
5935 utime.h \
5936 valgrind/memcheck.h \
5937 valgrind/valgrind.h \
5938 zlib.h
5940 do :
5941 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5942 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5943 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5944 cat >>confdefs.h <<_ACEOF
5945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5946 _ACEOF
5950 done
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5953 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5954 if ${ac_cv_header_stat_broken+:} false; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5959 #include <sys/types.h>
5960 #include <sys/stat.h>
5962 #if defined S_ISBLK && defined S_IFDIR
5963 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5964 #endif
5966 #if defined S_ISBLK && defined S_IFCHR
5967 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5968 #endif
5970 #if defined S_ISLNK && defined S_IFREG
5971 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5972 #endif
5974 #if defined S_ISSOCK && defined S_IFREG
5975 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5976 #endif
5978 _ACEOF
5979 if ac_fn_c_try_compile "$LINENO"; then :
5980 ac_cv_header_stat_broken=no
5981 else
5982 ac_cv_header_stat_broken=yes
5984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5987 $as_echo "$ac_cv_header_stat_broken" >&6; }
5988 if test $ac_cv_header_stat_broken = yes; then
5990 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5996 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5997 do :
5998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5999 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6000 #ifdef HAVE_SYS_PARAM_H
6001 # include <sys/param.h>
6002 #endif
6004 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6005 cat >>confdefs.h <<_ACEOF
6006 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6007 _ACEOF
6011 done
6014 for ac_header in \
6015 netinet/ip.h \
6016 net/if.h \
6017 net/if_arp.h \
6018 net/if_dl.h \
6019 net/if_types.h \
6020 net/route.h \
6021 netinet/if_ether.h \
6022 netinet/if_inarp.h \
6023 netinet/in_pcb.h \
6024 netinet/ip_icmp.h \
6025 netinet/ip_var.h \
6026 netinet/udp.h \
6027 netipx/ipx.h \
6028 sys/un.h \
6030 do :
6031 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6032 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6033 #ifdef HAVE_SYS_SOCKET_H
6034 # include <sys/socket.h>
6035 #endif
6036 #ifdef HAVE_SYS_SOCKETVAR_H
6037 # include <sys/socketvar.h>
6038 #endif
6039 #ifdef HAVE_NET_ROUTE_H
6040 # include <net/route.h>
6041 #endif
6042 #ifdef HAVE_NETINET_IN_H
6043 # include <netinet/in.h>
6044 #endif
6045 #ifdef HAVE_NETINET_IN_SYSTM_H
6046 # include <netinet/in_systm.h>
6047 #endif
6048 #ifdef HAVE_NET_IF_H
6049 # include <net/if.h>
6050 #endif
6051 #ifdef HAVE_NETINET_IP_H
6052 # include <netinet/ip.h>
6053 #endif
6055 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6056 cat >>confdefs.h <<_ACEOF
6057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6058 _ACEOF
6062 done
6065 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6066 do :
6067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6068 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6069 #ifdef HAVE_ALIAS_H
6070 # include <alias.h>
6071 #endif
6072 #ifdef HAVE_SYS_SOCKET_H
6073 # include <sys/socket.h>
6074 #endif
6075 #ifdef HAVE_SYS_SOCKETVAR_H
6076 # include <sys/socketvar.h>
6077 #endif
6078 #ifdef HAVE_SYS_TIMEOUT_H
6079 # include <sys/timeout.h>
6080 #endif
6081 #ifdef HAVE_NETINET_IN_H
6082 # include <netinet/in.h>
6083 #endif
6084 #ifdef HAVE_NETINET_IN_SYSTM_H
6085 # include <netinet/in_systm.h>
6086 #endif
6087 #ifdef HAVE_NETINET_IP_H
6088 # include <netinet/ip.h>
6089 #endif
6090 #ifdef HAVE_NETINET_IP_VAR_H
6091 # include <netinet/ip_var.h>
6092 #endif
6093 #ifdef HAVE_NETINET_IP_ICMP_H
6094 # include <netinet/ip_icmp.h>
6095 #endif
6096 #ifdef HAVE_NETINET_UDP_H
6097 # include <netinet/udp.h>
6098 #endif
6099 #ifdef HAVE_NETINET_TCP_H
6100 # include <netinet/tcp.h>
6101 #endif
6102 #ifdef HAVE_NETINET_TCP_TIMER_H
6103 #include <netinet/tcp_timer.h>
6104 #endif
6106 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6107 cat >>confdefs.h <<_ACEOF
6108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6109 _ACEOF
6113 done
6116 for ac_header in linux/ipx.h linux/irda.h
6117 do :
6118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6119 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6120 #ifdef HAVE_ASM_TYPES_H
6121 # include <asm/types.h>
6122 #endif
6123 #ifdef HAVE_SYS_SOCKET_H
6124 # include <sys/socket.h>
6125 #endif
6126 #ifdef HAVE_LINUX_TYPES_H
6127 # include <linux/types.h>
6128 #endif
6130 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6131 cat >>confdefs.h <<_ACEOF
6132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6133 _ACEOF
6137 done
6140 for ac_header in mach-o/dyld_images.h
6141 do :
6142 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6143 # include <stdbool.h>
6144 #endif
6145 #ifdef HAVE_STDINT_H
6146 # include <stdint.h>
6147 #endif
6149 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6150 cat >>confdefs.h <<_ACEOF
6151 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6152 _ACEOF
6156 done
6159 for ac_header in resolv.h
6160 do :
6161 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6162 #ifdef HAVE_SYS_SOCKET_H
6163 # include <sys/socket.h>
6164 #endif
6165 #ifdef HAVE_NETINET_IN_H
6166 # include <netinet/in.h>
6167 #endif
6168 #ifdef HAVE_ARPA_NAMESER_H
6169 # include <arpa/nameser.h>
6170 #endif
6172 if test "x$ac_cv_header_resolv_h" = xyes; then :
6173 cat >>confdefs.h <<_ACEOF
6174 #define HAVE_RESOLV_H 1
6175 _ACEOF
6179 done
6182 for ac_header in ifaddrs.h
6183 do :
6184 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6186 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6187 cat >>confdefs.h <<_ACEOF
6188 #define HAVE_IFADDRS_H 1
6189 _ACEOF
6193 done
6196 for ac_header in ucontext.h
6197 do :
6198 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6200 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6201 cat >>confdefs.h <<_ACEOF
6202 #define HAVE_UCONTEXT_H 1
6203 _ACEOF
6207 done
6210 for ac_header in sys/thr.h
6211 do :
6212 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6213 #ifdef HAVE_UCONTEXT_H
6214 #include <ucontext.h>
6215 #endif
6217 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6218 cat >>confdefs.h <<_ACEOF
6219 #define HAVE_SYS_THR_H 1
6220 _ACEOF
6224 done
6227 for ac_header in pthread_np.h
6228 do :
6229 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6230 #include <pthread.h>
6231 #endif
6233 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6234 cat >>confdefs.h <<_ACEOF
6235 #define HAVE_PTHREAD_NP_H 1
6236 _ACEOF
6240 done
6243 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6244 do :
6245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6246 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6247 #include <sys/time.h>
6248 #endif
6249 #include <sys/types.h>
6250 #ifdef HAVE_ASM_TYPES_H
6251 #include <asm/types.h>
6252 #endif
6254 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6255 cat >>confdefs.h <<_ACEOF
6256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6257 _ACEOF
6261 done
6264 for ac_header in linux/capi.h
6265 do :
6266 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6268 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6269 cat >>confdefs.h <<_ACEOF
6270 #define HAVE_LINUX_CAPI_H 1
6271 _ACEOF
6275 done
6279 DLLEXT=""
6281 DLLFLAGS="-D_REENTRANT"
6283 LDDLLFLAGS=""
6285 IMPLIBEXT="def"
6287 LDRPATH_INSTALL=""
6289 LDRPATH_LOCAL=""
6291 LIBEXT="so"
6292 STATIC_IMPLIBEXT="def.a"
6293 # Extract the first word of "ldd", so it can be a program name with args.
6294 set dummy ldd; ac_word=$2
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296 $as_echo_n "checking for $ac_word... " >&6; }
6297 if ${ac_cv_path_LDD+:} false; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 case $LDD in
6301 [\\/]* | ?:[\\/]*)
6302 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 as_dummy="/sbin:/usr/sbin:$PATH"
6307 for as_dir in $as_dummy
6309 IFS=$as_save_IFS
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 break 2
6317 done
6318 done
6319 IFS=$as_save_IFS
6321 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6323 esac
6325 LDD=$ac_cv_path_LDD
6326 if test -n "$LDD"; then
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6328 $as_echo "$LDD" >&6; }
6329 else
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331 $as_echo "no" >&6; }
6335 if test -n "$ac_tool_prefix"; then
6336 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
6337 set dummy ${ac_tool_prefix}readelf; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if ${ac_cv_prog_READELF+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 if test -n "$READELF"; then
6344 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6357 done
6358 done
6359 IFS=$as_save_IFS
6363 READELF=$ac_cv_prog_READELF
6364 if test -n "$READELF"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6366 $as_echo "$READELF" >&6; }
6367 else
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6374 if test -z "$ac_cv_prog_READELF"; then
6375 ac_ct_READELF=$READELF
6376 # Extract the first word of "readelf", so it can be a program name with args.
6377 set dummy readelf; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 if test -n "$ac_ct_READELF"; then
6384 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393 ac_cv_prog_ac_ct_READELF="readelf"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 break 2
6397 done
6398 done
6399 IFS=$as_save_IFS
6403 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6404 if test -n "$ac_ct_READELF"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6406 $as_echo "$ac_ct_READELF" >&6; }
6407 else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6412 if test "x$ac_ct_READELF" = x; then
6413 READELF="true"
6414 else
6415 case $cross_compiling:$ac_tool_warned in
6416 yes:)
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6419 ac_tool_warned=yes ;;
6420 esac
6421 READELF=$ac_ct_READELF
6423 else
6424 READELF="$ac_cv_prog_READELF"
6428 case $host_os in
6429 cygwin*|mingw32*)
6430 if test -n "$ac_tool_prefix"; then
6431 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6432 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_prog_DLLTOOL+:} false; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 if test -n "$DLLTOOL"; then
6439 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6452 done
6453 done
6454 IFS=$as_save_IFS
6458 DLLTOOL=$ac_cv_prog_DLLTOOL
6459 if test -n "$DLLTOOL"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6461 $as_echo "$DLLTOOL" >&6; }
6462 else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6469 if test -z "$ac_cv_prog_DLLTOOL"; then
6470 ac_ct_DLLTOOL=$DLLTOOL
6471 # Extract the first word of "dlltool", so it can be a program name with args.
6472 set dummy dlltool; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6478 if test -n "$ac_ct_DLLTOOL"; then
6479 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6492 done
6493 done
6494 IFS=$as_save_IFS
6498 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6499 if test -n "$ac_ct_DLLTOOL"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6501 $as_echo "$ac_ct_DLLTOOL" >&6; }
6502 else
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6507 if test "x$ac_ct_DLLTOOL" = x; then
6508 DLLTOOL="false"
6509 else
6510 case $cross_compiling:$ac_tool_warned in
6511 yes:)
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6514 ac_tool_warned=yes ;;
6515 esac
6516 DLLTOOL=$ac_ct_DLLTOOL
6518 else
6519 DLLTOOL="$ac_cv_prog_DLLTOOL"
6522 if test -n "$ac_tool_prefix"; then
6523 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6524 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526 $as_echo_n "checking for $ac_word... " >&6; }
6527 if ${ac_cv_prog_DLLWRAP+:} false; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 if test -n "$DLLWRAP"; then
6531 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6532 else
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 for as_dir in $PATH
6536 IFS=$as_save_IFS
6537 test -z "$as_dir" && as_dir=.
6538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6540 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 break 2
6544 done
6545 done
6546 IFS=$as_save_IFS
6550 DLLWRAP=$ac_cv_prog_DLLWRAP
6551 if test -n "$DLLWRAP"; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6553 $as_echo "$DLLWRAP" >&6; }
6554 else
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556 $as_echo "no" >&6; }
6561 if test -z "$ac_cv_prog_DLLWRAP"; then
6562 ac_ct_DLLWRAP=$DLLWRAP
6563 # Extract the first word of "dllwrap", so it can be a program name with args.
6564 set dummy dllwrap; ac_word=$2
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566 $as_echo_n "checking for $ac_word... " >&6; }
6567 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6568 $as_echo_n "(cached) " >&6
6569 else
6570 if test -n "$ac_ct_DLLWRAP"; then
6571 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6572 else
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6576 IFS=$as_save_IFS
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6580 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 break 2
6584 done
6585 done
6586 IFS=$as_save_IFS
6590 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6591 if test -n "$ac_ct_DLLWRAP"; then
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6593 $as_echo "$ac_ct_DLLWRAP" >&6; }
6594 else
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 $as_echo "no" >&6; }
6599 if test "x$ac_ct_DLLWRAP" = x; then
6600 DLLWRAP="false"
6601 else
6602 case $cross_compiling:$ac_tool_warned in
6603 yes:)
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6606 ac_tool_warned=yes ;;
6607 esac
6608 DLLWRAP=$ac_ct_DLLWRAP
6610 else
6611 DLLWRAP="$ac_cv_prog_DLLWRAP"
6614 if test "$DLLWRAP" = "false"; then
6615 as_fn_error $? "dllwrap is needed to build a dll for Windows" "$LINENO" 5
6617 LIBEXT="dll"
6618 IMPLIBEXT="a"
6619 STATIC_IMPLIBEXT="a"
6620 enable_iphlpapi=${enable_iphlpapi:-no}
6621 enable_kernel32=${enable_kernel32:-no}
6622 enable_msvcrt=${enable_msvcrt:-no}
6623 enable_ntdll=${enable_ntdll:-no}
6624 enable_ws2_32=${enable_ws2_32:-no}
6625 enable_loader=${enable_loader:-no}
6626 enable_server=${enable_server:-no}
6627 with_x=${with_x:-no}
6628 with_pthread=${with_pthread:-no}
6630 crtlibs=""
6631 case $host_os in
6632 mingw32*)
6633 crtlibs="-lmsvcrt"
6634 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
6636 esac
6638 LIBWINE_RULES="
6639 all: libwine.dll libwine.a
6641 libwine.a: wine.def
6642 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
6644 libwine.dll: \$(OBJS) wine.def Makefile.in
6645 \$(DLLWRAP) --def \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
6647 install install-lib:: libwine.dll \$(DESTDIR)\$(libdir) dummy
6648 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
6650 install install-dev:: libwine.a \$(DESTDIR)\$(libdir) dummy
6651 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
6653 uninstall::
6654 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
6656 clean::
6657 \$(RM) libwine.dll version.c
6662 darwin*|macosx*)
6663 DLLEXT=".so"
6664 LIBEXT="dylib"
6665 DLLFLAGS="$DLLFLAGS -fPIC"
6666 LDDLLFLAGS="-bundle -multiply_defined suppress"
6667 LIBWINE_LDFLAGS="-multiply_defined suppress"
6668 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6669 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
6670 COREFOUNDATIONLIB="-framework CoreFoundation"
6672 IOKITLIB="-framework IOKit -framework CoreFoundation"
6674 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6676 CORESERVICESLIB="-framework CoreServices"
6678 case $host_os in
6679 darwin11*)
6680 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"
6683 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6685 esac
6686 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6687 then
6688 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6691 if test "$ac_cv_header_Security_Security_h" = "yes"
6692 then
6693 SECURITYLIB="-framework Security -framework CoreFoundation"
6695 ac_save_LIBS="$LIBS"
6696 LIBS="$LIBS $SECURITYLIB"
6697 for ac_func in SSLCopyPeerCertificates
6698 do :
6699 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6700 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6701 cat >>confdefs.h <<_ACEOF
6702 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6703 _ACEOF
6706 done
6708 LIBS="$ac_save_LIBS"
6709 with_gnutls=${with_gnutls:-no}
6711 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6712 then
6713 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6714 then
6715 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6717 else
6718 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6721 ac_save_LIBS="$LIBS"
6722 LIBS="$LIBS $COREAUDIO"
6723 for ac_func in AUGraphAddNode
6724 do :
6725 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6726 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6727 cat >>confdefs.h <<_ACEOF
6728 #define HAVE_AUGRAPHADDNODE 1
6729 _ACEOF
6732 done
6734 LIBS="$ac_save_LIBS"
6736 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6737 then
6738 FRAMEWORK_OPENAL="-framework OpenAL"
6741 cat >>confdefs.h <<_ACEOF
6742 #define HAVE_OPENAL 1
6743 _ACEOF
6745 ac_cv_lib_openal=yes
6747 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6748 then
6749 LIBOPENCL="-framework OpenCL"
6751 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6753 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6754 then
6755 ac_save_LIBS="$LIBS"
6756 LIBS="$LIBS $IOKITLIB"
6757 for ac_func in IOHIDManagerCreate
6758 do :
6759 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6760 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6761 cat >>confdefs.h <<_ACEOF
6762 #define HAVE_IOHIDMANAGERCREATE 1
6763 _ACEOF
6766 done
6768 LIBS="$ac_save_LIBS"
6770 case $host_cpu in
6771 *powerpc*)
6772 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6773 esac
6774 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6775 then
6776 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6778 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6779 else
6780 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6782 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6783 then
6784 CARBONLIB="-framework Carbon"
6788 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
6789 then
6790 ac_save_LIBS="$LIBS"
6791 LIBS="$LIBS $APPLICATIONSERVICESLIB"
6792 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
6793 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
6794 enable_winemac_drv=${enable_winemac_drv:-yes}
6797 LIBS="$ac_save_LIBS"
6800 if test "x$enable_win16" = "xyes"
6801 then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6803 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6804 if test "$cross_compiling" = yes; then :
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6806 $as_echo "cross-compiling, assuming yes" >&6; }
6807 else
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6810 asm(".text\n"
6811 "bad:\tnop;nop\n"
6812 "good:\tnop;nop\n\t"
6813 ".globl _testfunc\n"
6814 "_testfunc:\tcallw good");
6815 extern void testfunc();
6817 main ()
6819 unsigned short *p = (unsigned short *)testfunc;
6820 return p[0] != 0xe866 || p[1] != 0xfffa
6822 return 0;
6824 _ACEOF
6825 if ac_fn_c_try_run "$LINENO"; then :
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6827 $as_echo "yes" >&6; }
6828 else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6831 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
6833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6834 conftest.$ac_objext conftest.beam conftest.$ac_ext
6839 LIBWINE_RULES="
6840 all: libwine.dylib
6842 libwine.\$(VERSION).dylib: \$(OBJS) \$(RELPATH) Makefile.in
6843 \$(CC) -dynamiclib -install_name @rpath/libwine.\$(SOVERSION).dylib -Wl,-rpath,@loader_path/ -compatibility_version \$(SOVERSION) -current_version \$(VERSION) \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
6845 libwine.\$(SOVERSION).dylib: libwine.\$(VERSION).dylib
6846 \$(RM) \$@ && \$(LN_S) libwine.\$(VERSION).dylib \$@
6848 libwine.dylib: libwine.\$(SOVERSION).dylib
6849 \$(RM) \$@ && \$(LN_S) libwine.\$(SOVERSION).dylib \$@
6851 install install-lib:: libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir) dummy
6852 \$(INSTALL_PROGRAM) libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir)/libwine.\$(VERSION).dylib
6853 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.\$(SOVERSION).dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
6855 install install-dev:: \$(DESTDIR)\$(libdir) dummy
6856 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.dylib
6858 uninstall::
6859 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
6861 clean::
6862 \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib version.c
6867 linux-android*)
6868 DLLFLAGS="$DLLFLAGS -fPIC"
6869 DLLEXT=".so"
6870 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6872 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6873 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 ac_wine_try_cflags_saved=$CFLAGS
6877 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6880 int main(int argc, char **argv) { return 0; }
6881 _ACEOF
6882 if ac_fn_c_try_link "$LINENO"; then :
6883 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6884 else
6885 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6887 rm -f core conftest.err conftest.$ac_objext \
6888 conftest$ac_exeext conftest.$ac_ext
6889 CFLAGS=$ac_wine_try_cflags_saved
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6892 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6893 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6894 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6896 { $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
6897 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6898 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6899 $as_echo_n "(cached) " >&6
6900 else
6901 ac_wine_try_cflags_saved=$CFLAGS
6902 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6905 int main(int argc, char **argv) { return 0; }
6906 _ACEOF
6907 if ac_fn_c_try_link "$LINENO"; then :
6908 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6909 else
6910 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6912 rm -f core conftest.err conftest.$ac_objext \
6913 conftest$ac_exeext conftest.$ac_ext
6914 CFLAGS=$ac_wine_try_cflags_saved
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6917 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6918 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6919 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6922 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6923 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 ac_wine_try_cflags_saved=$CFLAGS
6927 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6930 int main(int argc, char **argv) { return 0; }
6931 _ACEOF
6932 if ac_fn_c_try_link "$LINENO"; then :
6933 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6934 else
6935 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6937 rm -f core conftest.err conftest.$ac_objext \
6938 conftest$ac_exeext conftest.$ac_ext
6939 CFLAGS=$ac_wine_try_cflags_saved
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6942 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6943 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6944 LDEXECFLAGS="-Wl,--export-dynamic"
6947 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6949 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6950 if eval \${$as_ac_var+:} false; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6953 ac_wine_try_cflags_saved=$CFLAGS
6954 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6957 int main(int argc, char **argv) { return 0; }
6958 _ACEOF
6959 if ac_fn_c_try_link "$LINENO"; then :
6960 eval "$as_ac_var=yes"
6961 else
6962 eval "$as_ac_var=no"
6964 rm -f core conftest.err conftest.$ac_objext \
6965 conftest$ac_exeext conftest.$ac_ext
6966 CFLAGS=$ac_wine_try_cflags_saved
6968 eval ac_res=\$$as_ac_var
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6970 $as_echo "$ac_res" >&6; }
6971 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6972 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6973 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6974 else
6975 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6977 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6978 if eval \${$as_ac_var+:} false; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 ac_wine_try_cflags_saved=$CFLAGS
6982 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6985 int main(int argc, char **argv) { return 0; }
6986 _ACEOF
6987 if ac_fn_c_try_link "$LINENO"; then :
6988 eval "$as_ac_var=yes"
6989 else
6990 eval "$as_ac_var=no"
6992 rm -f core conftest.err conftest.$ac_objext \
6993 conftest$ac_exeext conftest.$ac_ext
6994 CFLAGS=$ac_wine_try_cflags_saved
6996 eval ac_res=\$$as_ac_var
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6998 $as_echo "$ac_res" >&6; }
6999 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7000 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7001 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7006 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7007 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7010 ac_wine_try_cflags_saved=$CFLAGS
7011 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7014 int main(int argc, char **argv) { return 0; }
7015 _ACEOF
7016 if ac_fn_c_try_link "$LINENO"; then :
7017 ac_cv_cflags__Wl___enable_new_dtags=yes
7018 else
7019 ac_cv_cflags__Wl___enable_new_dtags=no
7021 rm -f core conftest.err conftest.$ac_objext \
7022 conftest$ac_exeext conftest.$ac_ext
7023 CFLAGS=$ac_wine_try_cflags_saved
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7026 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7027 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7028 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7031 case $host_cpu in
7032 *i[3456789]86* | x86_64)
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7034 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7035 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 ac_wine_try_cflags_saved=$CFLAGS
7039 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041 /* end confdefs.h. */
7042 int main(int argc, char **argv) { return 0; }
7043 _ACEOF
7044 if ac_fn_c_try_link "$LINENO"; then :
7045 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7046 else
7047 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7049 rm -f core conftest.err conftest.$ac_objext \
7050 conftest$ac_exeext conftest.$ac_ext
7051 CFLAGS=$ac_wine_try_cflags_saved
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7054 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7055 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7056 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
7059 esac
7061 LIBWINE_RULES="
7062 all: libwine.so
7064 libwine.so: \$(OBJS) Makefile.in
7065 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7067 install install-lib:: libwine.so \$(DESTDIR)\$(libdir) dummy
7068 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
7070 uninstall::
7071 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
7073 clean::
7074 \$(RM) libwine.so version.c
7080 DLLFLAGS="$DLLFLAGS -fPIC"
7081 DLLEXT=".so"
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
7083 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
7084 if ${ac_cv_c_dll_gnuelf+:} false; then :
7085 $as_echo_n "(cached) " >&6
7086 else
7087 ac_wine_try_cflags_saved=$CFLAGS
7088 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
7089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090 /* end confdefs.h. */
7091 void myfunc() {}
7092 _ACEOF
7093 if ac_fn_c_try_link "$LINENO"; then :
7094 ac_cv_c_dll_gnuelf="yes"
7095 else
7096 ac_cv_c_dll_gnuelf="no"
7098 rm -f core conftest.err conftest.$ac_objext \
7099 conftest$ac_exeext conftest.$ac_ext
7100 CFLAGS=$ac_wine_try_cflags_saved
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
7103 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
7104 if test "$ac_cv_c_dll_gnuelf" = "yes"
7105 then
7106 LDSHARED="\$(CC) -shared"
7107 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
7109 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
7110 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 ac_wine_try_cflags_saved=$CFLAGS
7114 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117 int main(int argc, char **argv) { return 0; }
7118 _ACEOF
7119 if ac_fn_c_try_link "$LINENO"; then :
7120 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
7121 else
7122 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
7124 rm -f core conftest.err conftest.$ac_objext \
7125 conftest$ac_exeext conftest.$ac_ext
7126 CFLAGS=$ac_wine_try_cflags_saved
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
7129 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
7130 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
7131 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.\$(SOVERSION)"
7132 else
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
7134 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
7135 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
7136 $as_echo_n "(cached) " >&6
7137 else
7138 ac_wine_try_cflags_saved=$CFLAGS
7139 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7142 int main(int argc, char **argv) { return 0; }
7143 _ACEOF
7144 if ac_fn_c_try_link "$LINENO"; then :
7145 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
7146 else
7147 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
7149 rm -f core conftest.err conftest.$ac_objext \
7150 conftest$ac_exeext conftest.$ac_ext
7151 CFLAGS=$ac_wine_try_cflags_saved
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
7154 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
7155 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
7156 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.\$(SOVERSION)"
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
7161 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
7162 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 ac_wine_try_cflags_saved=$CFLAGS
7166 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7169 int main(int argc, char **argv) { return 0; }
7170 _ACEOF
7171 if ac_fn_c_try_link "$LINENO"; then :
7172 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
7173 else
7174 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
7176 rm -f core conftest.err conftest.$ac_objext \
7177 conftest$ac_exeext conftest.$ac_ext
7178 CFLAGS=$ac_wine_try_cflags_saved
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
7181 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
7182 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
7183 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
7186 { $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
7187 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
7188 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
7189 $as_echo_n "(cached) " >&6
7190 else
7191 ac_wine_try_cflags_saved=$CFLAGS
7192 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7195 int main(int argc, char **argv) { return 0; }
7196 _ACEOF
7197 if ac_fn_c_try_link "$LINENO"; then :
7198 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
7199 else
7200 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
7202 rm -f core conftest.err conftest.$ac_objext \
7203 conftest$ac_exeext conftest.$ac_ext
7204 CFLAGS=$ac_wine_try_cflags_saved
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
7207 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
7208 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
7209 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
7212 echo '{ global: *; };' >conftest.map
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
7214 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
7215 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
7216 $as_echo_n "(cached) " >&6
7217 else
7218 ac_wine_try_cflags_saved=$CFLAGS
7219 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7222 int main(int argc, char **argv) { return 0; }
7223 _ACEOF
7224 if ac_fn_c_try_link "$LINENO"; then :
7225 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
7226 else
7227 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
7229 rm -f core conftest.err conftest.$ac_objext \
7230 conftest$ac_exeext conftest.$ac_ext
7231 CFLAGS=$ac_wine_try_cflags_saved
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
7234 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
7235 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
7236 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
7238 rm -f conftest.map
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7241 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7242 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7243 $as_echo_n "(cached) " >&6
7244 else
7245 ac_wine_try_cflags_saved=$CFLAGS
7246 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7249 int main(int argc, char **argv) { return 0; }
7250 _ACEOF
7251 if ac_fn_c_try_link "$LINENO"; then :
7252 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7253 else
7254 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7256 rm -f core conftest.err conftest.$ac_objext \
7257 conftest$ac_exeext conftest.$ac_ext
7258 CFLAGS=$ac_wine_try_cflags_saved
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7261 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7262 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7263 LDEXECFLAGS="-Wl,--export-dynamic"
7267 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7269 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7270 if eval \${$as_ac_var+:} false; then :
7271 $as_echo_n "(cached) " >&6
7272 else
7273 ac_wine_try_cflags_saved=$CFLAGS
7274 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7277 int main(int argc, char **argv) { return 0; }
7278 _ACEOF
7279 if ac_fn_c_try_link "$LINENO"; then :
7280 eval "$as_ac_var=yes"
7281 else
7282 eval "$as_ac_var=no"
7284 rm -f core conftest.err conftest.$ac_objext \
7285 conftest$ac_exeext conftest.$ac_ext
7286 CFLAGS=$ac_wine_try_cflags_saved
7288 eval ac_res=\$$as_ac_var
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7290 $as_echo "$ac_res" >&6; }
7291 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7292 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7293 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7294 else
7295 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7297 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7298 if eval \${$as_ac_var+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 ac_wine_try_cflags_saved=$CFLAGS
7302 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7305 int main(int argc, char **argv) { return 0; }
7306 _ACEOF
7307 if ac_fn_c_try_link "$LINENO"; then :
7308 eval "$as_ac_var=yes"
7309 else
7310 eval "$as_ac_var=no"
7312 rm -f core conftest.err conftest.$ac_objext \
7313 conftest$ac_exeext conftest.$ac_ext
7314 CFLAGS=$ac_wine_try_cflags_saved
7316 eval ac_res=\$$as_ac_var
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7318 $as_echo "$ac_res" >&6; }
7319 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7320 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7321 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7326 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7327 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7328 $as_echo_n "(cached) " >&6
7329 else
7330 ac_wine_try_cflags_saved=$CFLAGS
7331 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7334 int main(int argc, char **argv) { return 0; }
7335 _ACEOF
7336 if ac_fn_c_try_link "$LINENO"; then :
7337 ac_cv_cflags__Wl___enable_new_dtags=yes
7338 else
7339 ac_cv_cflags__Wl___enable_new_dtags=no
7341 rm -f core conftest.err conftest.$ac_objext \
7342 conftest$ac_exeext conftest.$ac_ext
7343 CFLAGS=$ac_wine_try_cflags_saved
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7346 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7347 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7348 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7351 case $host_cpu in
7352 *i[3456789]86* | x86_64)
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7354 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7355 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7356 $as_echo_n "(cached) " >&6
7357 else
7358 ac_wine_try_cflags_saved=$CFLAGS
7359 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7362 int main(int argc, char **argv) { return 0; }
7363 _ACEOF
7364 if ac_fn_c_try_link "$LINENO"; then :
7365 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7366 else
7367 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7369 rm -f core conftest.err conftest.$ac_objext \
7370 conftest$ac_exeext conftest.$ac_ext
7371 CFLAGS=$ac_wine_try_cflags_saved
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7374 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7375 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7376 case $host_os in
7377 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
7378 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
7379 esac
7382 # Extract the first word of "prelink", so it can be a program name with args.
7383 set dummy prelink; ac_word=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if ${ac_cv_path_PRELINK+:} false; then :
7387 $as_echo_n "(cached) " >&6
7388 else
7389 case $PRELINK in
7390 [\\/]* | ?:[\\/]*)
7391 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in /sbin /usr/sbin $PATH
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
7402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 break 2
7405 done
7406 done
7407 IFS=$as_save_IFS
7409 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7411 esac
7413 PRELINK=$ac_cv_path_PRELINK
7414 if test -n "$PRELINK"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7416 $as_echo "$PRELINK" >&6; }
7417 else
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7423 if test "x$PRELINK" = xfalse
7424 then
7425 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7428 esac
7430 else
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7432 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7433 if ${ac_cv_c_dll_unixware+:} false; then :
7434 $as_echo_n "(cached) " >&6
7435 else
7436 ac_wine_try_cflags_saved=$CFLAGS
7437 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7440 void myfunc() {}
7441 _ACEOF
7442 if ac_fn_c_try_link "$LINENO"; then :
7443 ac_cv_c_dll_unixware="yes"
7444 else
7445 ac_cv_c_dll_unixware="no"
7447 rm -f core conftest.err conftest.$ac_objext \
7448 conftest$ac_exeext conftest.$ac_ext
7449 CFLAGS=$ac_wine_try_cflags_saved
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7452 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7453 if test "$ac_cv_c_dll_unixware" = "yes"
7454 then
7455 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.\$(SOVERSION)"
7456 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7459 LIBWINE_RULES="
7460 all: libwine.so
7462 libwine.so.\$(VERSION): \$(OBJS) wine.map Makefile.in
7463 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7465 libwine.so.\$(SOVERSION): libwine.so.\$(VERSION)
7466 \$(RM) \$@ && \$(LN_S) libwine.so.\$(VERSION) \$@
7468 libwine.so: libwine.so.\$(SOVERSION)
7469 \$(RM) \$@ && \$(LN_S) libwine.so.\$(SOVERSION) \$@
7471 install install-lib:: libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir) dummy
7472 \$(INSTALL_PROGRAM) libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir)/libwine.so.\$(VERSION)
7473 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.\$(SOVERSION) && \$(LN_S) libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
7475 install install-dev:: \$(DESTDIR)\$(libdir) dummy
7476 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.\$(VERSION) libwine.so
7478 uninstall::
7479 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
7481 clean::
7482 \$(RM) libwine.so.\$(SOVERSION) libwine.so.\$(VERSION) version.c
7486 esac
7488 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7489 enable_winemac_drv=${enable_winemac_drv:-no}
7491 CROSSTEST_DISABLE=\#
7493 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7494 then
7495 case "$host_cpu" in
7496 i[3456789]86*)
7497 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
7498 mingw32-gcc" ;;
7499 x86_64)
7500 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 " ;;
7502 ac_prefix_list="" ;;
7503 esac
7504 for ac_prog in $ac_prefix_list
7506 # Extract the first word of "$ac_prog", so it can be a program name with args.
7507 set dummy $ac_prog; ac_word=$2
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7509 $as_echo_n "checking for $ac_word... " >&6; }
7510 if ${ac_cv_prog_CROSSCC+:} false; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 if test -n "$CROSSCC"; then
7514 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7515 else
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7523 ac_cv_prog_CROSSCC="$ac_prog"
7524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7527 done
7528 done
7529 IFS=$as_save_IFS
7533 CROSSCC=$ac_cv_prog_CROSSCC
7534 if test -n "$CROSSCC"; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7536 $as_echo "$CROSSCC" >&6; }
7537 else
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 $as_echo "no" >&6; }
7543 test -n "$CROSSCC" && break
7544 done
7545 test -n "$CROSSCC" || CROSSCC="false"
7547 if test "$CROSSCC" != "false"
7548 then
7549 ac_save_CC="$CC"
7550 CC="$CROSSCC"
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7552 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7557 main ()
7561 return 0;
7563 _ACEOF
7564 if ac_fn_c_try_compile "$LINENO"; then :
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7566 $as_echo "yes" >&6; }
7567 set x $CROSSCC
7568 shift
7569 target=""
7570 while test $# -ge 1
7572 case "$1" in
7573 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7574 esac
7575 shift
7576 done
7577 if test -n "$target"
7578 then
7579 CROSSTEST_DISABLE=""
7580 CROSSTARGET="$target"
7583 else
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588 CC="$ac_save_CC"
7593 if test "$ac_cv_header_pthread_h" = "yes"
7594 then
7595 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
7596 if test "x$ac_cv_func_pthread_create" = xyes; then :
7598 else
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7600 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7601 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7604 ac_check_lib_save_LIBS=$LIBS
7605 LIBS="-lpthread $LIBS"
7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7609 /* Override any GCC internal prototype to avoid an error.
7610 Use char because int might match the return type of a GCC
7611 builtin and then its argument prototype would still apply. */
7612 #ifdef __cplusplus
7613 extern "C"
7614 #endif
7615 char pthread_create ();
7617 main ()
7619 return pthread_create ();
7621 return 0;
7623 _ACEOF
7624 if ac_fn_c_try_link "$LINENO"; then :
7625 ac_cv_lib_pthread_pthread_create=yes
7626 else
7627 ac_cv_lib_pthread_pthread_create=no
7629 rm -f core conftest.err conftest.$ac_objext \
7630 conftest$ac_exeext conftest.$ac_ext
7631 LIBS=$ac_check_lib_save_LIBS
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7634 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7635 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7636 LIBPTHREAD="-lpthread"
7643 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
7644 case "x$with_pthread" in
7645 xno) ;;
7646 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7647 Wine cannot support threads without libpthread.
7648 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7649 esac
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7654 $as_echo_n "checking for X... " >&6; }
7657 # Check whether --with-x was given.
7658 if test "${with_x+set}" = set; then :
7659 withval=$with_x;
7662 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7663 if test "x$with_x" = xno; then
7664 # The user explicitly disabled X.
7665 have_x=disabled
7666 else
7667 case $x_includes,$x_libraries in #(
7668 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7669 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7670 $as_echo_n "(cached) " >&6
7671 else
7672 # One or both of the vars are not set, and there is no cached value.
7673 ac_x_includes=no ac_x_libraries=no
7674 rm -f -r conftest.dir
7675 if mkdir conftest.dir; then
7676 cd conftest.dir
7677 cat >Imakefile <<'_ACEOF'
7678 incroot:
7679 @echo incroot='${INCROOT}'
7680 usrlibdir:
7681 @echo usrlibdir='${USRLIBDIR}'
7682 libdir:
7683 @echo libdir='${LIBDIR}'
7684 _ACEOF
7685 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7686 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7687 for ac_var in incroot usrlibdir libdir; do
7688 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7689 done
7690 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7691 for ac_extension in a so sl dylib la dll; do
7692 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7693 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7694 ac_im_usrlibdir=$ac_im_libdir; break
7696 done
7697 # Screen out bogus values from the imake configuration. They are
7698 # bogus both because they are the default anyway, and because
7699 # using them would break gcc on systems where it needs fixed includes.
7700 case $ac_im_incroot in
7701 /usr/include) ac_x_includes= ;;
7702 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7703 esac
7704 case $ac_im_usrlibdir in
7705 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7706 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7707 esac
7709 cd ..
7710 rm -f -r conftest.dir
7713 # Standard set of common directories for X headers.
7714 # Check X11 before X11Rn because it is often a symlink to the current release.
7715 ac_x_header_dirs='
7716 /usr/X11/include
7717 /usr/X11R7/include
7718 /usr/X11R6/include
7719 /usr/X11R5/include
7720 /usr/X11R4/include
7722 /usr/include/X11
7723 /usr/include/X11R7
7724 /usr/include/X11R6
7725 /usr/include/X11R5
7726 /usr/include/X11R4
7728 /usr/local/X11/include
7729 /usr/local/X11R7/include
7730 /usr/local/X11R6/include
7731 /usr/local/X11R5/include
7732 /usr/local/X11R4/include
7734 /usr/local/include/X11
7735 /usr/local/include/X11R7
7736 /usr/local/include/X11R6
7737 /usr/local/include/X11R5
7738 /usr/local/include/X11R4
7740 /usr/X386/include
7741 /usr/x386/include
7742 /usr/XFree86/include/X11
7744 /usr/include
7745 /usr/local/include
7746 /usr/unsupported/include
7747 /usr/athena/include
7748 /usr/local/x11r5/include
7749 /usr/lpp/Xamples/include
7751 /usr/openwin/include
7752 /usr/openwin/share/include'
7754 if test "$ac_x_includes" = no; then
7755 # Guess where to find include files, by looking for Xlib.h.
7756 # First, try using that file with no special directory specified.
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7759 #include <X11/Xlib.h>
7760 _ACEOF
7761 if ac_fn_c_try_cpp "$LINENO"; then :
7762 # We can compile using X headers with no special include directory.
7763 ac_x_includes=
7764 else
7765 for ac_dir in $ac_x_header_dirs; do
7766 if test -r "$ac_dir/X11/Xlib.h"; then
7767 ac_x_includes=$ac_dir
7768 break
7770 done
7772 rm -f conftest.err conftest.i conftest.$ac_ext
7773 fi # $ac_x_includes = no
7775 if test "$ac_x_libraries" = no; then
7776 # Check for the libraries.
7777 # See if we find them without any special options.
7778 # Don't add to $LIBS permanently.
7779 ac_save_LIBS=$LIBS
7780 LIBS="-lX11 $LIBS"
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7783 #include <X11/Xlib.h>
7785 main ()
7787 XrmInitialize ()
7789 return 0;
7791 _ACEOF
7792 if ac_fn_c_try_link "$LINENO"; then :
7793 LIBS=$ac_save_LIBS
7794 # We can link X programs with no special library path.
7795 ac_x_libraries=
7796 else
7797 LIBS=$ac_save_LIBS
7798 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7800 # Don't even attempt the hair of trying to link an X program!
7801 for ac_extension in a so sl dylib la dll; do
7802 if test -r "$ac_dir/libX11.$ac_extension"; then
7803 ac_x_libraries=$ac_dir
7804 break 2
7806 done
7807 done
7809 rm -f core conftest.err conftest.$ac_objext \
7810 conftest$ac_exeext conftest.$ac_ext
7811 fi # $ac_x_libraries = no
7813 case $ac_x_includes,$ac_x_libraries in #(
7814 no,* | *,no | *\'*)
7815 # Didn't find X, or a directory has "'" in its name.
7816 ac_cv_have_x="have_x=no";; #(
7818 # Record where we found X for the cache.
7819 ac_cv_have_x="have_x=yes\
7820 ac_x_includes='$ac_x_includes'\
7821 ac_x_libraries='$ac_x_libraries'"
7822 esac
7824 ;; #(
7825 *) have_x=yes;;
7826 esac
7827 eval "$ac_cv_have_x"
7828 fi # $with_x != no
7830 if test "$have_x" != yes; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7832 $as_echo "$have_x" >&6; }
7833 no_x=yes
7834 else
7835 # If each of the values was on the command line, it overrides each guess.
7836 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7837 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7838 # Update the cache value to reflect the command line values.
7839 ac_cv_have_x="have_x=yes\
7840 ac_x_includes='$x_includes'\
7841 ac_x_libraries='$x_libraries'"
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7843 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7846 if test "$no_x" = yes; then
7847 # Not all programs may use this symbol, but it does not hurt to define it.
7849 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7851 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7852 else
7853 if test -n "$x_includes"; then
7854 X_CFLAGS="$X_CFLAGS -I$x_includes"
7857 # It would also be nice to do this for all -L options, not just this one.
7858 if test -n "$x_libraries"; then
7859 X_LIBS="$X_LIBS -L$x_libraries"
7860 # For Solaris; some versions of Sun CC require a space after -R and
7861 # others require no space. Words are not sufficient . . . .
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7863 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7864 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7865 ac_xsave_c_werror_flag=$ac_c_werror_flag
7866 ac_c_werror_flag=yes
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h. */
7871 main ()
7875 return 0;
7877 _ACEOF
7878 if ac_fn_c_try_link "$LINENO"; then :
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7881 X_LIBS="$X_LIBS -R$x_libraries"
7882 else
7883 LIBS="$ac_xsave_LIBS -R $x_libraries"
7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h. */
7888 main ()
7892 return 0;
7894 _ACEOF
7895 if ac_fn_c_try_link "$LINENO"; then :
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7897 $as_echo "yes" >&6; }
7898 X_LIBS="$X_LIBS -R $x_libraries"
7899 else
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7901 $as_echo "neither works" >&6; }
7903 rm -f core conftest.err conftest.$ac_objext \
7904 conftest$ac_exeext conftest.$ac_ext
7906 rm -f core conftest.err conftest.$ac_objext \
7907 conftest$ac_exeext conftest.$ac_ext
7908 ac_c_werror_flag=$ac_xsave_c_werror_flag
7909 LIBS=$ac_xsave_LIBS
7912 # Check for system-dependent libraries X programs must link with.
7913 # Do this before checking for the system-independent R6 libraries
7914 # (-lICE), since we may need -lsocket or whatever for X linking.
7916 if test "$ISC" = yes; then
7917 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7918 else
7919 # Martyn Johnson says this is needed for Ultrix, if the X
7920 # libraries were built with DECnet support. And Karl Berry says
7921 # the Alpha needs dnet_stub (dnet does not exist).
7922 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7926 /* Override any GCC internal prototype to avoid an error.
7927 Use char because int might match the return type of a GCC
7928 builtin and then its argument prototype would still apply. */
7929 #ifdef __cplusplus
7930 extern "C"
7931 #endif
7932 char XOpenDisplay ();
7934 main ()
7936 return XOpenDisplay ();
7938 return 0;
7940 _ACEOF
7941 if ac_fn_c_try_link "$LINENO"; then :
7943 else
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7945 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7946 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7947 $as_echo_n "(cached) " >&6
7948 else
7949 ac_check_lib_save_LIBS=$LIBS
7950 LIBS="-ldnet $LIBS"
7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h. */
7954 /* Override any GCC internal prototype to avoid an error.
7955 Use char because int might match the return type of a GCC
7956 builtin and then its argument prototype would still apply. */
7957 #ifdef __cplusplus
7958 extern "C"
7959 #endif
7960 char dnet_ntoa ();
7962 main ()
7964 return dnet_ntoa ();
7966 return 0;
7968 _ACEOF
7969 if ac_fn_c_try_link "$LINENO"; then :
7970 ac_cv_lib_dnet_dnet_ntoa=yes
7971 else
7972 ac_cv_lib_dnet_dnet_ntoa=no
7974 rm -f core conftest.err conftest.$ac_objext \
7975 conftest$ac_exeext conftest.$ac_ext
7976 LIBS=$ac_check_lib_save_LIBS
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7979 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7980 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7981 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7984 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7986 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7987 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990 ac_check_lib_save_LIBS=$LIBS
7991 LIBS="-ldnet_stub $LIBS"
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
7995 /* Override any GCC internal prototype to avoid an error.
7996 Use char because int might match the return type of a GCC
7997 builtin and then its argument prototype would still apply. */
7998 #ifdef __cplusplus
7999 extern "C"
8000 #endif
8001 char dnet_ntoa ();
8003 main ()
8005 return dnet_ntoa ();
8007 return 0;
8009 _ACEOF
8010 if ac_fn_c_try_link "$LINENO"; then :
8011 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8012 else
8013 ac_cv_lib_dnet_stub_dnet_ntoa=no
8015 rm -f core conftest.err conftest.$ac_objext \
8016 conftest$ac_exeext conftest.$ac_ext
8017 LIBS=$ac_check_lib_save_LIBS
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8020 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8021 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8022 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8027 rm -f core conftest.err conftest.$ac_objext \
8028 conftest$ac_exeext conftest.$ac_ext
8029 LIBS="$ac_xsave_LIBS"
8031 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8032 # to get the SysV transport functions.
8033 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8034 # needs -lnsl.
8035 # The nsl library prevents programs from opening the X display
8036 # on Irix 5.2, according to T.E. Dickey.
8037 # The functions gethostbyname, getservbyname, and inet_addr are
8038 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8039 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8040 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8044 if test $ac_cv_func_gethostbyname = no; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8046 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8047 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8048 $as_echo_n "(cached) " >&6
8049 else
8050 ac_check_lib_save_LIBS=$LIBS
8051 LIBS="-lnsl $LIBS"
8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8055 /* Override any GCC internal prototype to avoid an error.
8056 Use char because int might match the return type of a GCC
8057 builtin and then its argument prototype would still apply. */
8058 #ifdef __cplusplus
8059 extern "C"
8060 #endif
8061 char gethostbyname ();
8063 main ()
8065 return gethostbyname ();
8067 return 0;
8069 _ACEOF
8070 if ac_fn_c_try_link "$LINENO"; then :
8071 ac_cv_lib_nsl_gethostbyname=yes
8072 else
8073 ac_cv_lib_nsl_gethostbyname=no
8075 rm -f core conftest.err conftest.$ac_objext \
8076 conftest$ac_exeext conftest.$ac_ext
8077 LIBS=$ac_check_lib_save_LIBS
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8080 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8081 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8082 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8085 if test $ac_cv_lib_nsl_gethostbyname = no; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8087 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8088 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 ac_check_lib_save_LIBS=$LIBS
8092 LIBS="-lbsd $LIBS"
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8096 /* Override any GCC internal prototype to avoid an error.
8097 Use char because int might match the return type of a GCC
8098 builtin and then its argument prototype would still apply. */
8099 #ifdef __cplusplus
8100 extern "C"
8101 #endif
8102 char gethostbyname ();
8104 main ()
8106 return gethostbyname ();
8108 return 0;
8110 _ACEOF
8111 if ac_fn_c_try_link "$LINENO"; then :
8112 ac_cv_lib_bsd_gethostbyname=yes
8113 else
8114 ac_cv_lib_bsd_gethostbyname=no
8116 rm -f core conftest.err conftest.$ac_objext \
8117 conftest$ac_exeext conftest.$ac_ext
8118 LIBS=$ac_check_lib_save_LIBS
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8121 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8122 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8123 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8129 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8130 # socket/setsockopt and other routines are undefined under SCO ODT
8131 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8132 # on later versions), says Simon Leinen: it contains gethostby*
8133 # variants that don't use the name server (or something). -lsocket
8134 # must be given before -lnsl if both are needed. We assume that
8135 # if connect needs -lnsl, so does gethostbyname.
8136 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8137 if test "x$ac_cv_func_connect" = xyes; then :
8141 if test $ac_cv_func_connect = no; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8143 $as_echo_n "checking for connect in -lsocket... " >&6; }
8144 if ${ac_cv_lib_socket_connect+:} false; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 ac_check_lib_save_LIBS=$LIBS
8148 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8152 /* Override any GCC internal prototype to avoid an error.
8153 Use char because int might match the return type of a GCC
8154 builtin and then its argument prototype would still apply. */
8155 #ifdef __cplusplus
8156 extern "C"
8157 #endif
8158 char connect ();
8160 main ()
8162 return connect ();
8164 return 0;
8166 _ACEOF
8167 if ac_fn_c_try_link "$LINENO"; then :
8168 ac_cv_lib_socket_connect=yes
8169 else
8170 ac_cv_lib_socket_connect=no
8172 rm -f core conftest.err conftest.$ac_objext \
8173 conftest$ac_exeext conftest.$ac_ext
8174 LIBS=$ac_check_lib_save_LIBS
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8177 $as_echo "$ac_cv_lib_socket_connect" >&6; }
8178 if test "x$ac_cv_lib_socket_connect" = xyes; then :
8179 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8184 # Guillermo Gomez says -lposix is necessary on A/UX.
8185 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8186 if test "x$ac_cv_func_remove" = xyes; then :
8190 if test $ac_cv_func_remove = no; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8192 $as_echo_n "checking for remove in -lposix... " >&6; }
8193 if ${ac_cv_lib_posix_remove+:} false; then :
8194 $as_echo_n "(cached) " >&6
8195 else
8196 ac_check_lib_save_LIBS=$LIBS
8197 LIBS="-lposix $LIBS"
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8201 /* Override any GCC internal prototype to avoid an error.
8202 Use char because int might match the return type of a GCC
8203 builtin and then its argument prototype would still apply. */
8204 #ifdef __cplusplus
8205 extern "C"
8206 #endif
8207 char remove ();
8209 main ()
8211 return remove ();
8213 return 0;
8215 _ACEOF
8216 if ac_fn_c_try_link "$LINENO"; then :
8217 ac_cv_lib_posix_remove=yes
8218 else
8219 ac_cv_lib_posix_remove=no
8221 rm -f core conftest.err conftest.$ac_objext \
8222 conftest$ac_exeext conftest.$ac_ext
8223 LIBS=$ac_check_lib_save_LIBS
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8226 $as_echo "$ac_cv_lib_posix_remove" >&6; }
8227 if test "x$ac_cv_lib_posix_remove" = xyes; then :
8228 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8233 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8234 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8235 if test "x$ac_cv_func_shmat" = xyes; then :
8239 if test $ac_cv_func_shmat = no; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8241 $as_echo_n "checking for shmat in -lipc... " >&6; }
8242 if ${ac_cv_lib_ipc_shmat+:} false; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 ac_check_lib_save_LIBS=$LIBS
8246 LIBS="-lipc $LIBS"
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8250 /* Override any GCC internal prototype to avoid an error.
8251 Use char because int might match the return type of a GCC
8252 builtin and then its argument prototype would still apply. */
8253 #ifdef __cplusplus
8254 extern "C"
8255 #endif
8256 char shmat ();
8258 main ()
8260 return shmat ();
8262 return 0;
8264 _ACEOF
8265 if ac_fn_c_try_link "$LINENO"; then :
8266 ac_cv_lib_ipc_shmat=yes
8267 else
8268 ac_cv_lib_ipc_shmat=no
8270 rm -f core conftest.err conftest.$ac_objext \
8271 conftest$ac_exeext conftest.$ac_ext
8272 LIBS=$ac_check_lib_save_LIBS
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8275 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8276 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8277 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8283 # Check for libraries that X11R6 Xt/Xaw programs need.
8284 ac_save_LDFLAGS=$LDFLAGS
8285 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8286 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8287 # check for ICE first), but we must link in the order -lSM -lICE or
8288 # we get undefined symbols. So assume we have SM if we have ICE.
8289 # These have to be linked with before -lX11, unlike the other
8290 # libraries we check for below, so use a different variable.
8291 # John Interrante, Karl Berry
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8293 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8294 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8295 $as_echo_n "(cached) " >&6
8296 else
8297 ac_check_lib_save_LIBS=$LIBS
8298 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8302 /* Override any GCC internal prototype to avoid an error.
8303 Use char because int might match the return type of a GCC
8304 builtin and then its argument prototype would still apply. */
8305 #ifdef __cplusplus
8306 extern "C"
8307 #endif
8308 char IceConnectionNumber ();
8310 main ()
8312 return IceConnectionNumber ();
8314 return 0;
8316 _ACEOF
8317 if ac_fn_c_try_link "$LINENO"; then :
8318 ac_cv_lib_ICE_IceConnectionNumber=yes
8319 else
8320 ac_cv_lib_ICE_IceConnectionNumber=no
8322 rm -f core conftest.err conftest.$ac_objext \
8323 conftest$ac_exeext conftest.$ac_ext
8324 LIBS=$ac_check_lib_save_LIBS
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8327 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8328 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8329 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8332 LDFLAGS=$ac_save_LDFLAGS
8337 if test "$have_x" = "yes"
8338 then
8339 XLIB="-lX11"
8340 ac_save_CPPFLAGS="$CPPFLAGS"
8341 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
8344 $as_echo_n "checking for -lX11... " >&6; }
8345 if ${ac_cv_lib_soname_X11+:} false; then :
8346 $as_echo_n "(cached) " >&6
8347 else
8348 ac_check_soname_save_LIBS=$LIBS
8349 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8353 /* Override any GCC internal prototype to avoid an error.
8354 Use char because int might match the return type of a GCC
8355 builtin and then its argument prototype would still apply. */
8356 #ifdef __cplusplus
8357 extern "C"
8358 #endif
8359 char XCreateWindow ();
8361 main ()
8363 return XCreateWindow ();
8365 return 0;
8367 _ACEOF
8368 if ac_fn_c_try_link "$LINENO"; then :
8369 case "$LIBEXT" in
8370 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8371 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'` ;;
8372 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8373 if test "x$ac_cv_lib_soname_X11" = x; then :
8374 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8375 fi ;;
8376 esac
8378 rm -f core conftest.err conftest.$ac_objext \
8379 conftest$ac_exeext conftest.$ac_ext
8380 LIBS=$ac_check_soname_save_LIBS
8382 if test "x$ac_cv_lib_soname_X11" = "x"; then :
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8384 $as_echo "not found" >&6; }
8386 else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
8388 $as_echo "$ac_cv_lib_soname_X11" >&6; }
8390 cat >>confdefs.h <<_ACEOF
8391 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
8392 _ACEOF
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
8397 $as_echo_n "checking for -lXext... " >&6; }
8398 if ${ac_cv_lib_soname_Xext+:} false; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 ac_check_soname_save_LIBS=$LIBS
8402 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8406 /* Override any GCC internal prototype to avoid an error.
8407 Use char because int might match the return type of a GCC
8408 builtin and then its argument prototype would still apply. */
8409 #ifdef __cplusplus
8410 extern "C"
8411 #endif
8412 char XextCreateExtension ();
8414 main ()
8416 return XextCreateExtension ();
8418 return 0;
8420 _ACEOF
8421 if ac_fn_c_try_link "$LINENO"; then :
8422 case "$LIBEXT" in
8423 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8424 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'` ;;
8425 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8426 if test "x$ac_cv_lib_soname_Xext" = x; then :
8427 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8428 fi ;;
8429 esac
8431 rm -f core conftest.err conftest.$ac_objext \
8432 conftest$ac_exeext conftest.$ac_ext
8433 LIBS=$ac_check_soname_save_LIBS
8435 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8437 $as_echo "not found" >&6; }
8439 else
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8441 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8443 cat >>confdefs.h <<_ACEOF
8444 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8445 _ACEOF
8447 XLIB="-lXext $XLIB"
8450 for ac_header in X11/Xlib.h \
8451 X11/XKBlib.h \
8452 X11/Xutil.h \
8453 X11/Xcursor/Xcursor.h \
8454 X11/extensions/shape.h \
8455 X11/extensions/XInput.h \
8456 X11/extensions/XInput2.h \
8457 X11/extensions/XShm.h \
8458 X11/extensions/Xcomposite.h \
8459 X11/extensions/Xinerama.h \
8460 X11/extensions/Xrandr.h \
8461 X11/extensions/Xrender.h \
8462 X11/extensions/xf86vmode.h \
8463 X11/extensions/xf86vmproto.h
8464 do :
8465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8466 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8467 # include <X11/Xlib.h>
8468 #endif
8469 #ifdef HAVE_X11_XUTIL_H
8470 # include <X11/Xutil.h>
8471 #endif
8473 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8474 cat >>confdefs.h <<_ACEOF
8475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8476 _ACEOF
8480 done
8483 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8484 then
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8486 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8487 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 ac_check_lib_save_LIBS=$LIBS
8491 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h. */
8495 /* Override any GCC internal prototype to avoid an error.
8496 Use char because int might match the return type of a GCC
8497 builtin and then its argument prototype would still apply. */
8498 #ifdef __cplusplus
8499 extern "C"
8500 #endif
8501 char XkbQueryExtension ();
8503 main ()
8505 return XkbQueryExtension ();
8507 return 0;
8509 _ACEOF
8510 if ac_fn_c_try_link "$LINENO"; then :
8511 ac_cv_lib_X11_XkbQueryExtension=yes
8512 else
8513 ac_cv_lib_X11_XkbQueryExtension=no
8515 rm -f core conftest.err conftest.$ac_objext \
8516 conftest$ac_exeext conftest.$ac_ext
8517 LIBS=$ac_check_lib_save_LIBS
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8520 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8521 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8523 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8529 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8530 then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8532 $as_echo_n "checking for -lXcursor... " >&6; }
8533 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8534 $as_echo_n "(cached) " >&6
8535 else
8536 ac_check_soname_save_LIBS=$LIBS
8537 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8541 /* Override any GCC internal prototype to avoid an error.
8542 Use char because int might match the return type of a GCC
8543 builtin and then its argument prototype would still apply. */
8544 #ifdef __cplusplus
8545 extern "C"
8546 #endif
8547 char XcursorImageLoadCursor ();
8549 main ()
8551 return XcursorImageLoadCursor ();
8553 return 0;
8555 _ACEOF
8556 if ac_fn_c_try_link "$LINENO"; then :
8557 case "$LIBEXT" in
8558 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8559 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'` ;;
8560 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8561 if test "x$ac_cv_lib_soname_Xcursor" = x; then :
8562 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8563 fi ;;
8564 esac
8566 rm -f core conftest.err conftest.$ac_objext \
8567 conftest$ac_exeext conftest.$ac_ext
8568 LIBS=$ac_check_soname_save_LIBS
8570 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8572 $as_echo "not found" >&6; }
8574 else
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8576 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8578 cat >>confdefs.h <<_ACEOF
8579 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8580 _ACEOF
8585 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8586 case "x$with_xcursor" in
8587 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8588 xno) ;;
8589 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8590 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8591 esac
8594 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8595 then
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8597 $as_echo_n "checking for -lXi... " >&6; }
8598 if ${ac_cv_lib_soname_Xi+:} false; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 ac_check_soname_save_LIBS=$LIBS
8602 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8606 /* Override any GCC internal prototype to avoid an error.
8607 Use char because int might match the return type of a GCC
8608 builtin and then its argument prototype would still apply. */
8609 #ifdef __cplusplus
8610 extern "C"
8611 #endif
8612 char XOpenDevice ();
8614 main ()
8616 return XOpenDevice ();
8618 return 0;
8620 _ACEOF
8621 if ac_fn_c_try_link "$LINENO"; then :
8622 case "$LIBEXT" in
8623 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8624 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'` ;;
8625 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8626 if test "x$ac_cv_lib_soname_Xi" = x; then :
8627 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8628 fi ;;
8629 esac
8631 rm -f core conftest.err conftest.$ac_objext \
8632 conftest$ac_exeext conftest.$ac_ext
8633 LIBS=$ac_check_soname_save_LIBS
8635 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8637 $as_echo "not found" >&6; }
8639 else
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8641 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8643 cat >>confdefs.h <<_ACEOF
8644 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8645 _ACEOF
8650 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8651 case "x$with_xinput" in
8652 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8653 xno) ;;
8654 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8655 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8656 esac
8659 if test "x$ac_cv_lib_soname_Xi" != x
8660 then
8661 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8662 case "x$with_xinput2" in
8663 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8664 xno) ;;
8665 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8666 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8667 esac
8671 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8672 then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8674 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8675 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8676 $as_echo_n "(cached) " >&6
8677 else
8678 ac_check_lib_save_LIBS=$LIBS
8679 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h. */
8683 /* Override any GCC internal prototype to avoid an error.
8684 Use char because int might match the return type of a GCC
8685 builtin and then its argument prototype would still apply. */
8686 #ifdef __cplusplus
8687 extern "C"
8688 #endif
8689 char XShmQueryExtension ();
8691 main ()
8693 return XShmQueryExtension ();
8695 return 0;
8697 _ACEOF
8698 if ac_fn_c_try_link "$LINENO"; then :
8699 ac_cv_lib_Xext_XShmQueryExtension=yes
8700 else
8701 ac_cv_lib_Xext_XShmQueryExtension=no
8703 rm -f core conftest.err conftest.$ac_objext \
8704 conftest$ac_exeext conftest.$ac_ext
8705 LIBS=$ac_check_lib_save_LIBS
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8708 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8709 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8711 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8716 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8717 case "x$with_xshm" in
8718 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8719 xno) ;;
8720 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8721 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8722 esac
8725 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8726 then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8728 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8729 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 ac_check_lib_save_LIBS=$LIBS
8733 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8737 /* Override any GCC internal prototype to avoid an error.
8738 Use char because int might match the return type of a GCC
8739 builtin and then its argument prototype would still apply. */
8740 #ifdef __cplusplus
8741 extern "C"
8742 #endif
8743 char XShapeQueryExtension ();
8745 main ()
8747 return XShapeQueryExtension ();
8749 return 0;
8751 _ACEOF
8752 if ac_fn_c_try_link "$LINENO"; then :
8753 ac_cv_lib_Xext_XShapeQueryExtension=yes
8754 else
8755 ac_cv_lib_Xext_XShapeQueryExtension=no
8757 rm -f core conftest.err conftest.$ac_objext \
8758 conftest$ac_exeext conftest.$ac_ext
8759 LIBS=$ac_check_lib_save_LIBS
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8762 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8763 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8765 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8770 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8771 case "x$with_xshape" in
8772 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8773 xno) ;;
8774 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8775 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8776 esac
8779 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8780 then
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8782 $as_echo_n "checking for -lXxf86vm... " >&6; }
8783 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8784 $as_echo_n "(cached) " >&6
8785 else
8786 ac_check_soname_save_LIBS=$LIBS
8787 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789 /* end confdefs.h. */
8791 /* Override any GCC internal prototype to avoid an error.
8792 Use char because int might match the return type of a GCC
8793 builtin and then its argument prototype would still apply. */
8794 #ifdef __cplusplus
8795 extern "C"
8796 #endif
8797 char XF86VidModeQueryExtension ();
8799 main ()
8801 return XF86VidModeQueryExtension ();
8803 return 0;
8805 _ACEOF
8806 if ac_fn_c_try_link "$LINENO"; then :
8807 case "$LIBEXT" in
8808 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8809 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'` ;;
8810 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8811 if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
8812 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8813 fi ;;
8814 esac
8816 rm -f core conftest.err conftest.$ac_objext \
8817 conftest$ac_exeext conftest.$ac_ext
8818 LIBS=$ac_check_soname_save_LIBS
8820 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8822 $as_echo "not found" >&6; }
8824 else
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8826 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8828 cat >>confdefs.h <<_ACEOF
8829 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8830 _ACEOF
8835 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8836 case "x$with_xxf86vm" in
8837 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8838 xno) ;;
8839 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8840 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8841 esac
8844 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"
8845 then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8847 $as_echo_n "checking for -lXrender... " >&6; }
8848 if ${ac_cv_lib_soname_Xrender+:} false; then :
8849 $as_echo_n "(cached) " >&6
8850 else
8851 ac_check_soname_save_LIBS=$LIBS
8852 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8854 /* end confdefs.h. */
8856 /* Override any GCC internal prototype to avoid an error.
8857 Use char because int might match the return type of a GCC
8858 builtin and then its argument prototype would still apply. */
8859 #ifdef __cplusplus
8860 extern "C"
8861 #endif
8862 char XRenderQueryExtension ();
8864 main ()
8866 return XRenderQueryExtension ();
8868 return 0;
8870 _ACEOF
8871 if ac_fn_c_try_link "$LINENO"; then :
8872 case "$LIBEXT" in
8873 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8874 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'` ;;
8875 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8876 if test "x$ac_cv_lib_soname_Xrender" = x; then :
8877 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8878 fi ;;
8879 esac
8881 rm -f core conftest.err conftest.$ac_objext \
8882 conftest$ac_exeext conftest.$ac_ext
8883 LIBS=$ac_check_soname_save_LIBS
8885 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8887 $as_echo "not found" >&6; }
8889 else
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8891 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8893 cat >>confdefs.h <<_ACEOF
8894 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8895 _ACEOF
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8898 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8899 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8900 $as_echo_n "(cached) " >&6
8901 else
8902 ac_check_lib_save_LIBS=$LIBS
8903 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h. */
8907 /* Override any GCC internal prototype to avoid an error.
8908 Use char because int might match the return type of a GCC
8909 builtin and then its argument prototype would still apply. */
8910 #ifdef __cplusplus
8911 extern "C"
8912 #endif
8913 char XRenderSetPictureTransform ();
8915 main ()
8917 return XRenderSetPictureTransform ();
8919 return 0;
8921 _ACEOF
8922 if ac_fn_c_try_link "$LINENO"; then :
8923 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8924 else
8925 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8927 rm -f core conftest.err conftest.$ac_objext \
8928 conftest$ac_exeext conftest.$ac_ext
8929 LIBS=$ac_check_lib_save_LIBS
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8932 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8933 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8935 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8940 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8941 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8942 $as_echo_n "(cached) " >&6
8943 else
8944 ac_check_lib_save_LIBS=$LIBS
8945 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8947 /* end confdefs.h. */
8949 /* Override any GCC internal prototype to avoid an error.
8950 Use char because int might match the return type of a GCC
8951 builtin and then its argument prototype would still apply. */
8952 #ifdef __cplusplus
8953 extern "C"
8954 #endif
8955 char XRenderCreateLinearGradient ();
8957 main ()
8959 return XRenderCreateLinearGradient ();
8961 return 0;
8963 _ACEOF
8964 if ac_fn_c_try_link "$LINENO"; then :
8965 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8966 else
8967 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8969 rm -f core conftest.err conftest.$ac_objext \
8970 conftest$ac_exeext conftest.$ac_ext
8971 LIBS=$ac_check_lib_save_LIBS
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8974 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8975 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8977 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8984 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8985 case "x$with_xrender" in
8986 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8987 xno) ;;
8988 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8989 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8990 esac
8993 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8994 then
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
8997 #include <X11/Xlib.h>
8998 #include <X11/extensions/Xrandr.h>
9000 main ()
9002 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
9004 return 0;
9006 _ACEOF
9007 if ac_fn_c_try_compile "$LINENO"; then :
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
9009 $as_echo_n "checking for -lXrandr... " >&6; }
9010 if ${ac_cv_lib_soname_Xrandr+:} false; then :
9011 $as_echo_n "(cached) " >&6
9012 else
9013 ac_check_soname_save_LIBS=$LIBS
9014 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h. */
9018 /* Override any GCC internal prototype to avoid an error.
9019 Use char because int might match the return type of a GCC
9020 builtin and then its argument prototype would still apply. */
9021 #ifdef __cplusplus
9022 extern "C"
9023 #endif
9024 char XRRQueryExtension ();
9026 main ()
9028 return XRRQueryExtension ();
9030 return 0;
9032 _ACEOF
9033 if ac_fn_c_try_link "$LINENO"; then :
9034 case "$LIBEXT" in
9035 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9036 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'` ;;
9037 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9038 if test "x$ac_cv_lib_soname_Xrandr" = x; then :
9039 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9040 fi ;;
9041 esac
9043 rm -f core conftest.err conftest.$ac_objext \
9044 conftest$ac_exeext conftest.$ac_ext
9045 LIBS=$ac_check_soname_save_LIBS
9047 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9049 $as_echo "not found" >&6; }
9051 else
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
9053 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
9055 cat >>confdefs.h <<_ACEOF
9056 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
9057 _ACEOF
9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060 /* end confdefs.h. */
9061 #include <X11/Xlib.h>
9062 #include <X11/extensions/Xrandr.h>
9064 main ()
9066 static typeof(XRRGetScreenResources) *f; if (f) return 0;
9068 return 0;
9070 _ACEOF
9071 if ac_fn_c_try_compile "$LINENO"; then :
9073 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
9076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9081 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9082 case "x$with_xrandr" in
9083 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
9084 xno) ;;
9085 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
9086 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
9087 esac
9090 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
9091 then
9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093 /* end confdefs.h. */
9094 #include <X11/Xlib.h>
9095 #include <X11/extensions/Xinerama.h>
9097 main ()
9099 static typeof(XineramaQueryScreens) * func; if (func) return 0;
9101 return 0;
9103 _ACEOF
9104 if ac_fn_c_try_compile "$LINENO"; then :
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
9106 $as_echo_n "checking for -lXinerama... " >&6; }
9107 if ${ac_cv_lib_soname_Xinerama+:} false; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 ac_check_soname_save_LIBS=$LIBS
9111 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9115 /* Override any GCC internal prototype to avoid an error.
9116 Use char because int might match the return type of a GCC
9117 builtin and then its argument prototype would still apply. */
9118 #ifdef __cplusplus
9119 extern "C"
9120 #endif
9121 char XineramaQueryScreens ();
9123 main ()
9125 return XineramaQueryScreens ();
9127 return 0;
9129 _ACEOF
9130 if ac_fn_c_try_link "$LINENO"; then :
9131 case "$LIBEXT" in
9132 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9133 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'` ;;
9134 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9135 if test "x$ac_cv_lib_soname_Xinerama" = x; then :
9136 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9137 fi ;;
9138 esac
9140 rm -f core conftest.err conftest.$ac_objext \
9141 conftest$ac_exeext conftest.$ac_ext
9142 LIBS=$ac_check_soname_save_LIBS
9144 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9146 $as_echo "not found" >&6; }
9148 else
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
9150 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
9152 cat >>confdefs.h <<_ACEOF
9153 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
9154 _ACEOF
9159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9161 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9162 case "x$with_xinerama" in
9163 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
9164 xno) ;;
9165 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
9166 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
9167 esac
9170 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
9171 then
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
9173 $as_echo_n "checking for -lXcomposite... " >&6; }
9174 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
9175 $as_echo_n "(cached) " >&6
9176 else
9177 ac_check_soname_save_LIBS=$LIBS
9178 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9182 /* Override any GCC internal prototype to avoid an error.
9183 Use char because int might match the return type of a GCC
9184 builtin and then its argument prototype would still apply. */
9185 #ifdef __cplusplus
9186 extern "C"
9187 #endif
9188 char XCompositeRedirectWindow ();
9190 main ()
9192 return XCompositeRedirectWindow ();
9194 return 0;
9196 _ACEOF
9197 if ac_fn_c_try_link "$LINENO"; then :
9198 case "$LIBEXT" in
9199 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9200 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'` ;;
9201 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9202 if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
9203 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9204 fi ;;
9205 esac
9207 rm -f core conftest.err conftest.$ac_objext \
9208 conftest$ac_exeext conftest.$ac_ext
9209 LIBS=$ac_check_soname_save_LIBS
9211 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9213 $as_echo "not found" >&6; }
9215 else
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
9217 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
9219 cat >>confdefs.h <<_ACEOF
9220 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
9221 _ACEOF
9226 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9227 case "x$with_xcomposite" in
9228 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
9229 xno) ;;
9230 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
9231 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
9232 esac
9235 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
9236 #include <X11/Xlib.h>
9237 #endif
9239 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
9241 cat >>confdefs.h <<_ACEOF
9242 #define HAVE_XICCALLBACK_CALLBACK 1
9243 _ACEOF
9247 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
9248 #include <X11/Xlib.h>
9249 #endif
9251 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
9253 cat >>confdefs.h <<_ACEOF
9254 #define HAVE_XEVENT_XCOOKIE 1
9255 _ACEOF
9262 opengl_msg=""
9263 if test "x$with_opengl" != "xno"
9264 then
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9266 $as_echo_n "checking for -lGL... " >&6; }
9267 if ${ac_cv_lib_soname_GL+:} false; then :
9268 $as_echo_n "(cached) " >&6
9269 else
9270 ac_check_soname_save_LIBS=$LIBS
9271 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273 /* end confdefs.h. */
9275 /* Override any GCC internal prototype to avoid an error.
9276 Use char because int might match the return type of a GCC
9277 builtin and then its argument prototype would still apply. */
9278 #ifdef __cplusplus
9279 extern "C"
9280 #endif
9281 char glXCreateContext ();
9283 main ()
9285 return glXCreateContext ();
9287 return 0;
9289 _ACEOF
9290 if ac_fn_c_try_link "$LINENO"; then :
9291 case "$LIBEXT" in
9292 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9293 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'` ;;
9294 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9295 if test "x$ac_cv_lib_soname_GL" = x; then :
9296 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9297 fi ;;
9298 esac
9300 rm -f core conftest.err conftest.$ac_objext \
9301 conftest$ac_exeext conftest.$ac_ext
9302 LIBS=$ac_check_soname_save_LIBS
9304 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9306 $as_echo "not found" >&6; }
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9308 $as_echo_n "checking for -lGL... " >&6; }
9309 if ${ac_cv_lib_soname_GL+:} false; then :
9310 $as_echo_n "(cached) " >&6
9311 else
9312 ac_check_soname_save_LIBS=$LIBS
9313 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"
9314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9315 /* end confdefs.h. */
9317 /* Override any GCC internal prototype to avoid an error.
9318 Use char because int might match the return type of a GCC
9319 builtin and then its argument prototype would still apply. */
9320 #ifdef __cplusplus
9321 extern "C"
9322 #endif
9323 char glXCreateContext ();
9325 main ()
9327 return glXCreateContext ();
9329 return 0;
9331 _ACEOF
9332 if ac_fn_c_try_link "$LINENO"; then :
9333 case "$LIBEXT" in
9334 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9335 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'` ;;
9336 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9337 if test "x$ac_cv_lib_soname_GL" = x; then :
9338 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9339 fi ;;
9340 esac
9342 rm -f core conftest.err conftest.$ac_objext \
9343 conftest$ac_exeext conftest.$ac_ext
9344 LIBS=$ac_check_soname_save_LIBS
9346 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9348 $as_echo "not found" >&6; }
9349 if test -f /usr/X11R6/lib/libGL.a
9350 then
9351 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
9352 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
9353 else
9354 opengl_msg="No OpenGL library found on this system."
9356 else
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9358 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9360 cat >>confdefs.h <<_ACEOF
9361 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9362 _ACEOF
9364 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"
9366 else
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9368 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9370 cat >>confdefs.h <<_ACEOF
9371 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9372 _ACEOF
9374 OPENGL_LIBS="-lGL"
9376 if test "x$with_glu" != "xno"
9377 then
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
9379 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
9380 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
9381 $as_echo_n "(cached) " >&6
9382 else
9383 ac_check_lib_save_LIBS=$LIBS
9384 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9388 /* Override any GCC internal prototype to avoid an error.
9389 Use char because int might match the return type of a GCC
9390 builtin and then its argument prototype would still apply. */
9391 #ifdef __cplusplus
9392 extern "C"
9393 #endif
9394 char gluLookAt ();
9396 main ()
9398 return gluLookAt ();
9400 return 0;
9402 _ACEOF
9403 if ac_fn_c_try_link "$LINENO"; then :
9404 ac_cv_lib_GLU_gluLookAt=yes
9405 else
9406 ac_cv_lib_GLU_gluLookAt=no
9408 rm -f core conftest.err conftest.$ac_objext \
9409 conftest$ac_exeext conftest.$ac_ext
9410 LIBS=$ac_check_lib_save_LIBS
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
9413 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
9414 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
9418 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
9419 case "x$with_glu" in
9420 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
9421 xno) ;;
9422 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9423 This is an error since --with-glu was requested." "$LINENO" 5 ;;
9424 esac
9428 if test "x$with_osmesa" != "xno"
9429 then
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
9431 $as_echo_n "checking for -lOSMesa... " >&6; }
9432 if ${ac_cv_lib_soname_OSMesa+:} false; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 ac_check_soname_save_LIBS=$LIBS
9436 LIBS="-lOSMesa $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438 /* end confdefs.h. */
9440 /* Override any GCC internal prototype to avoid an error.
9441 Use char because int might match the return type of a GCC
9442 builtin and then its argument prototype would still apply. */
9443 #ifdef __cplusplus
9444 extern "C"
9445 #endif
9446 char glAccum ();
9448 main ()
9450 return glAccum ();
9452 return 0;
9454 _ACEOF
9455 if ac_fn_c_try_link "$LINENO"; then :
9456 case "$LIBEXT" in
9457 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9458 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'` ;;
9459 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9460 if test "x$ac_cv_lib_soname_OSMesa" = x; then :
9461 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9462 fi ;;
9463 esac
9465 rm -f core conftest.err conftest.$ac_objext \
9466 conftest$ac_exeext conftest.$ac_ext
9467 LIBS=$ac_check_soname_save_LIBS
9469 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9471 $as_echo "not found" >&6; }
9473 else
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
9475 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
9477 cat >>confdefs.h <<_ACEOF
9478 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
9479 _ACEOF
9483 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9484 case "x$with_osmesa" in
9485 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
9486 xno) ;;
9487 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
9488 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
9489 esac
9493 if test -n "$opengl_msg"; then :
9494 case "x$with_opengl" in
9495 x) as_fn_append wine_warnings "|$opengl_msg
9496 OpenGL and Direct3D won't be supported." ;;
9497 xno) ;;
9498 *) as_fn_error $? "$opengl_msg
9499 OpenGL and Direct3D won't be supported.
9500 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9501 esac
9504 CPPFLAGS="$ac_save_CPPFLAGS"
9505 else
9506 XLIB=""
9507 X_CFLAGS=""
9508 X_LIBS=""
9509 enable_winex11_drv=${enable_winex11_drv:-no}
9511 if test "x$XLIB" = "x"; then :
9512 case "x$with_x" in
9513 xno) ;;
9514 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9515 without X support, which probably isn't what you want. You will need
9516 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9517 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9518 esac
9521 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
9523 if test "$ac_cv_header_CL_cl_h" = "yes"
9524 then
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9526 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9527 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9528 $as_echo_n "(cached) " >&6
9529 else
9530 ac_check_lib_save_LIBS=$LIBS
9531 LIBS="-lOpenCL $LIBS"
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9535 /* Override any GCC internal prototype to avoid an error.
9536 Use char because int might match the return type of a GCC
9537 builtin and then its argument prototype would still apply. */
9538 #ifdef __cplusplus
9539 extern "C"
9540 #endif
9541 char clGetPlatformInfo ();
9543 main ()
9545 return clGetPlatformInfo ();
9547 return 0;
9549 _ACEOF
9550 if ac_fn_c_try_link "$LINENO"; then :
9551 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9552 else
9553 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9555 rm -f core conftest.err conftest.$ac_objext \
9556 conftest$ac_exeext conftest.$ac_ext
9557 LIBS=$ac_check_lib_save_LIBS
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9560 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9561 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9562 LIBOPENCL="-lOpenCL"
9567 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9568 case "x$with_opencl" in
9569 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9570 xno) ;;
9571 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9572 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9573 esac
9575 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9578 if test "x$with_xml" != "xno"
9579 then
9580 ac_save_CPPFLAGS="$CPPFLAGS"
9581 if test -n "$ac_tool_prefix"; then
9582 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9583 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585 $as_echo_n "checking for $ac_word... " >&6; }
9586 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
9587 $as_echo_n "(cached) " >&6
9588 else
9589 if test -n "$PKG_CONFIG"; then
9590 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
9591 else
9592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9593 for as_dir in $PATH
9595 IFS=$as_save_IFS
9596 test -z "$as_dir" && as_dir=.
9597 for ac_exec_ext in '' $ac_executable_extensions; do
9598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9599 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
9600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9601 break 2
9603 done
9604 done
9605 IFS=$as_save_IFS
9609 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
9610 if test -n "$PKG_CONFIG"; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9612 $as_echo "$PKG_CONFIG" >&6; }
9613 else
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615 $as_echo "no" >&6; }
9620 if test -z "$ac_cv_prog_PKG_CONFIG"; then
9621 ac_ct_PKG_CONFIG=$PKG_CONFIG
9622 # Extract the first word of "pkg-config", so it can be a program name with args.
9623 set dummy pkg-config; ac_word=$2
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9625 $as_echo_n "checking for $ac_word... " >&6; }
9626 if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
9627 $as_echo_n "(cached) " >&6
9628 else
9629 if test -n "$ac_ct_PKG_CONFIG"; then
9630 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
9631 else
9632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633 for as_dir in $PATH
9635 IFS=$as_save_IFS
9636 test -z "$as_dir" && as_dir=.
9637 for ac_exec_ext in '' $ac_executable_extensions; do
9638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9639 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
9640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9641 break 2
9643 done
9644 done
9645 IFS=$as_save_IFS
9649 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
9650 if test -n "$ac_ct_PKG_CONFIG"; then
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
9652 $as_echo "$ac_ct_PKG_CONFIG" >&6; }
9653 else
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655 $as_echo "no" >&6; }
9658 if test "x$ac_ct_PKG_CONFIG" = x; then
9659 PKG_CONFIG=""
9660 else
9661 case $cross_compiling:$ac_tool_warned in
9662 yes:)
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9665 ac_tool_warned=yes ;;
9666 esac
9667 PKG_CONFIG=$ac_ct_PKG_CONFIG
9669 else
9670 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
9673 if test -n "$XML2_CFLAGS"; then :
9675 elif test -n "$PKG_CONFIG"; then :
9676 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
9678 XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
9679 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
9680 if test -n "$XML2_LIBS"; then :
9682 elif test -n "$PKG_CONFIG"; then :
9683 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
9685 XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
9686 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
9687 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9688 do :
9689 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9690 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9691 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9692 cat >>confdefs.h <<_ACEOF
9693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9694 _ACEOF
9698 done
9700 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"
9701 then
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9703 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9704 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9705 $as_echo_n "(cached) " >&6
9706 else
9707 ac_check_lib_save_LIBS=$LIBS
9708 LIBS="-lxml2 $XML2_LIBS $LIBS"
9709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9710 /* end confdefs.h. */
9712 /* Override any GCC internal prototype to avoid an error.
9713 Use char because int might match the return type of a GCC
9714 builtin and then its argument prototype would still apply. */
9715 #ifdef __cplusplus
9716 extern "C"
9717 #endif
9718 char xmlParseMemory ();
9720 main ()
9722 return xmlParseMemory ();
9724 return 0;
9726 _ACEOF
9727 if ac_fn_c_try_link "$LINENO"; then :
9728 ac_cv_lib_xml2_xmlParseMemory=yes
9729 else
9730 ac_cv_lib_xml2_xmlParseMemory=no
9732 rm -f core conftest.err conftest.$ac_objext \
9733 conftest$ac_exeext conftest.$ac_ext
9734 LIBS=$ac_check_lib_save_LIBS
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9737 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9738 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9740 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9742 else
9743 XML2_LIBS=""
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9747 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9748 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9749 $as_echo_n "(cached) " >&6
9750 else
9751 ac_check_lib_save_LIBS=$LIBS
9752 LIBS="-lxml2 $XML2_LIBS $LIBS"
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9756 /* Override any GCC internal prototype to avoid an error.
9757 Use char because int might match the return type of a GCC
9758 builtin and then its argument prototype would still apply. */
9759 #ifdef __cplusplus
9760 extern "C"
9761 #endif
9762 char xmlReadMemory ();
9764 main ()
9766 return xmlReadMemory ();
9768 return 0;
9770 _ACEOF
9771 if ac_fn_c_try_link "$LINENO"; then :
9772 ac_cv_lib_xml2_xmlReadMemory=yes
9773 else
9774 ac_cv_lib_xml2_xmlReadMemory=no
9776 rm -f core conftest.err conftest.$ac_objext \
9777 conftest$ac_exeext conftest.$ac_ext
9778 LIBS=$ac_check_lib_save_LIBS
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9781 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9782 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9784 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9789 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9790 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9791 $as_echo_n "(cached) " >&6
9792 else
9793 ac_check_lib_save_LIBS=$LIBS
9794 LIBS="-lxml2 $XML2_LIBS $LIBS"
9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h. */
9798 /* Override any GCC internal prototype to avoid an error.
9799 Use char because int might match the return type of a GCC
9800 builtin and then its argument prototype would still apply. */
9801 #ifdef __cplusplus
9802 extern "C"
9803 #endif
9804 char xmlNewDocPI ();
9806 main ()
9808 return xmlNewDocPI ();
9810 return 0;
9812 _ACEOF
9813 if ac_fn_c_try_link "$LINENO"; then :
9814 ac_cv_lib_xml2_xmlNewDocPI=yes
9815 else
9816 ac_cv_lib_xml2_xmlNewDocPI=no
9818 rm -f core conftest.err conftest.$ac_objext \
9819 conftest$ac_exeext conftest.$ac_ext
9820 LIBS=$ac_check_lib_save_LIBS
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9823 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9824 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9826 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9831 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9832 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9833 $as_echo_n "(cached) " >&6
9834 else
9835 ac_check_lib_save_LIBS=$LIBS
9836 LIBS="-lxml2 $XML2_LIBS $LIBS"
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9840 /* Override any GCC internal prototype to avoid an error.
9841 Use char because int might match the return type of a GCC
9842 builtin and then its argument prototype would still apply. */
9843 #ifdef __cplusplus
9844 extern "C"
9845 #endif
9846 char xmlSchemaSetParserStructuredErrors ();
9848 main ()
9850 return xmlSchemaSetParserStructuredErrors ();
9852 return 0;
9854 _ACEOF
9855 if ac_fn_c_try_link "$LINENO"; then :
9856 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9857 else
9858 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9860 rm -f core conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 LIBS=$ac_check_lib_save_LIBS
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9865 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9866 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9868 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9873 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9874 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9875 $as_echo_n "(cached) " >&6
9876 else
9877 ac_check_lib_save_LIBS=$LIBS
9878 LIBS="-lxml2 $XML2_LIBS $LIBS"
9879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9880 /* end confdefs.h. */
9882 /* Override any GCC internal prototype to avoid an error.
9883 Use char because int might match the return type of a GCC
9884 builtin and then its argument prototype would still apply. */
9885 #ifdef __cplusplus
9886 extern "C"
9887 #endif
9888 char xmlSchemaSetValidStructuredErrors ();
9890 main ()
9892 return xmlSchemaSetValidStructuredErrors ();
9894 return 0;
9896 _ACEOF
9897 if ac_fn_c_try_link "$LINENO"; then :
9898 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9899 else
9900 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9902 rm -f core conftest.err conftest.$ac_objext \
9903 conftest$ac_exeext conftest.$ac_ext
9904 LIBS=$ac_check_lib_save_LIBS
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9907 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9908 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9910 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9915 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9916 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9917 $as_echo_n "(cached) " >&6
9918 else
9919 ac_check_lib_save_LIBS=$LIBS
9920 LIBS="-lxml2 $XML2_LIBS $LIBS"
9921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9922 /* end confdefs.h. */
9924 /* Override any GCC internal prototype to avoid an error.
9925 Use char because int might match the return type of a GCC
9926 builtin and then its argument prototype would still apply. */
9927 #ifdef __cplusplus
9928 extern "C"
9929 #endif
9930 char xmlFirstElementChild ();
9932 main ()
9934 return xmlFirstElementChild ();
9936 return 0;
9938 _ACEOF
9939 if ac_fn_c_try_link "$LINENO"; then :
9940 ac_cv_lib_xml2_xmlFirstElementChild=yes
9941 else
9942 ac_cv_lib_xml2_xmlFirstElementChild=no
9944 rm -f core conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946 LIBS=$ac_check_lib_save_LIBS
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9949 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9950 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9952 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9956 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9958 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9960 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9964 else
9965 XML2_CFLAGS=""
9966 XML2_LIBS=""
9968 CPPFLAGS="$ac_save_CPPFLAGS"
9970 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9971 case "x$with_xml" in
9972 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9973 xno) ;;
9974 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9975 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9976 esac
9979 if test "x$with_xslt" != "xno"
9980 then
9981 ac_save_CPPFLAGS="$CPPFLAGS"
9982 if test -n "$XSLT_CFLAGS"; then :
9984 elif test -n "$PKG_CONFIG"; then :
9985 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
9987 XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
9988 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
9989 if test -n "$XSLT_LIBS"; then :
9991 elif test -n "$PKG_CONFIG"; then :
9992 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
9994 XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
9995 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
9996 for ac_header in libxslt/pattern.h libxslt/transform.h
9997 do :
9998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9999 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
10000 # include <libxslt/pattern.h>
10001 #endif
10003 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10004 cat >>confdefs.h <<_ACEOF
10005 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10006 _ACEOF
10010 done
10012 CPPFLAGS="$ac_save_CPPFLAGS"
10013 if test "$ac_cv_header_libxslt_transform_h" = "yes"
10014 then
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
10016 $as_echo_n "checking for -lxslt... " >&6; }
10017 if ${ac_cv_lib_soname_xslt+:} false; then :
10018 $as_echo_n "(cached) " >&6
10019 else
10020 ac_check_soname_save_LIBS=$LIBS
10021 LIBS="-lxslt $XSLT_LIBS $LIBS"
10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023 /* end confdefs.h. */
10025 /* Override any GCC internal prototype to avoid an error.
10026 Use char because int might match the return type of a GCC
10027 builtin and then its argument prototype would still apply. */
10028 #ifdef __cplusplus
10029 extern "C"
10030 #endif
10031 char xsltCompilePattern ();
10033 main ()
10035 return xsltCompilePattern ();
10037 return 0;
10039 _ACEOF
10040 if ac_fn_c_try_link "$LINENO"; then :
10041 case "$LIBEXT" in
10042 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10043 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'` ;;
10044 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10045 if test "x$ac_cv_lib_soname_xslt" = x; then :
10046 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10047 fi ;;
10048 esac
10050 rm -f core conftest.err conftest.$ac_objext \
10051 conftest$ac_exeext conftest.$ac_ext
10052 LIBS=$ac_check_soname_save_LIBS
10054 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10056 $as_echo "not found" >&6; }
10058 else
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
10060 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
10062 cat >>confdefs.h <<_ACEOF
10063 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
10064 _ACEOF
10068 else
10069 XSLT_CFLAGS=""
10072 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10073 case "x$with_xslt" in
10074 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
10075 xno) ;;
10076 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
10077 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
10078 esac
10081 if test "x$with_dbus" != "xno"
10082 then
10083 ac_save_CPPFLAGS="$CPPFLAGS"
10084 if test -n "$DBUS_CFLAGS"; then :
10086 elif test -n "$PKG_CONFIG"; then :
10087 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
10090 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
10091 if test -n "$DBUS_LIBS"; then :
10093 elif test -n "$PKG_CONFIG"; then :
10094 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
10098 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
10099 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
10101 $as_echo_n "checking for -ldbus-1... " >&6; }
10102 if ${ac_cv_lib_soname_dbus_1+:} false; then :
10103 $as_echo_n "(cached) " >&6
10104 else
10105 ac_check_soname_save_LIBS=$LIBS
10106 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10110 /* Override any GCC internal prototype to avoid an error.
10111 Use char because int might match the return type of a GCC
10112 builtin and then its argument prototype would still apply. */
10113 #ifdef __cplusplus
10114 extern "C"
10115 #endif
10116 char dbus_connection_close ();
10118 main ()
10120 return dbus_connection_close ();
10122 return 0;
10124 _ACEOF
10125 if ac_fn_c_try_link "$LINENO"; then :
10126 case "$LIBEXT" in
10127 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10128 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'` ;;
10129 *) 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'`
10130 if test "x$ac_cv_lib_soname_dbus_1" = x; then :
10131 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10132 fi ;;
10133 esac
10135 rm -f core conftest.err conftest.$ac_objext \
10136 conftest$ac_exeext conftest.$ac_ext
10137 LIBS=$ac_check_soname_save_LIBS
10139 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10141 $as_echo "not found" >&6; }
10142 DBUS_CFLAGS=""
10143 else
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
10145 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
10147 cat >>confdefs.h <<_ACEOF
10148 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
10149 _ACEOF
10153 else
10154 DBUS_CFLAGS=""
10158 CPPFLAGS="$ac_save_CPPFLAGS"
10160 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
10161 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10162 case "x$with_dbus" in
10163 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
10164 xno) ;;
10165 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
10166 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
10167 esac
10170 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
10171 then
10172 ac_save_CPPFLAGS="$CPPFLAGS"
10173 if test -n "$HAL_CFLAGS"; then :
10175 elif test -n "$PKG_CONFIG"; then :
10176 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
10179 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
10180 if test -n "$HAL_LIBS"; then :
10182 elif test -n "$PKG_CONFIG"; then :
10183 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
10186 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
10187 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
10188 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
10190 $as_echo_n "checking for -lhal... " >&6; }
10191 if ${ac_cv_lib_soname_hal+:} false; then :
10192 $as_echo_n "(cached) " >&6
10193 else
10194 ac_check_soname_save_LIBS=$LIBS
10195 LIBS="-lhal $HAL_LIBS $LIBS"
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10199 /* Override any GCC internal prototype to avoid an error.
10200 Use char because int might match the return type of a GCC
10201 builtin and then its argument prototype would still apply. */
10202 #ifdef __cplusplus
10203 extern "C"
10204 #endif
10205 char libhal_ctx_new ();
10207 main ()
10209 return libhal_ctx_new ();
10211 return 0;
10213 _ACEOF
10214 if ac_fn_c_try_link "$LINENO"; then :
10215 case "$LIBEXT" in
10216 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10217 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'` ;;
10218 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10219 if test "x$ac_cv_lib_soname_hal" = x; then :
10220 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10221 fi ;;
10222 esac
10224 rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10226 LIBS=$ac_check_soname_save_LIBS
10228 if test "x$ac_cv_lib_soname_hal" = "x"; then :
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10230 $as_echo "not found" >&6; }
10231 HAL_CFLAGS=""
10232 else
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
10234 $as_echo "$ac_cv_lib_soname_hal" >&6; }
10236 cat >>confdefs.h <<_ACEOF
10237 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
10238 _ACEOF
10242 else
10243 HAL_CFLAGS=""
10247 CPPFLAGS="$ac_save_CPPFLAGS"
10248 if test "x$ac_cv_lib_soname_hal" = "x" -a \
10249 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10250 case "x$with_hal" in
10251 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
10252 xno) ;;
10253 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
10254 This is an error since --with-hal was requested." "$LINENO" 5 ;;
10255 esac
10259 if test "x$with_gnutls" != "xno"
10260 then
10261 ac_save_CPPFLAGS="$CPPFLAGS"
10262 if test -n "$GNUTLS_CFLAGS"; then :
10264 elif test -n "$PKG_CONFIG"; then :
10265 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
10268 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
10269 if test -n "$GNUTLS_LIBS"; then :
10271 elif test -n "$PKG_CONFIG"; then :
10272 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
10276 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
10277 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10280 #include <gnutls/gnutls.h>
10282 main ()
10284 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
10286 return 0;
10288 _ACEOF
10289 if ac_fn_c_try_compile "$LINENO"; then :
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
10291 $as_echo_n "checking for -lgnutls... " >&6; }
10292 if ${ac_cv_lib_soname_gnutls+:} false; then :
10293 $as_echo_n "(cached) " >&6
10294 else
10295 ac_check_soname_save_LIBS=$LIBS
10296 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10300 /* Override any GCC internal prototype to avoid an error.
10301 Use char because int might match the return type of a GCC
10302 builtin and then its argument prototype would still apply. */
10303 #ifdef __cplusplus
10304 extern "C"
10305 #endif
10306 char gnutls_global_init ();
10308 main ()
10310 return gnutls_global_init ();
10312 return 0;
10314 _ACEOF
10315 if ac_fn_c_try_link "$LINENO"; then :
10316 case "$LIBEXT" in
10317 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10318 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'` ;;
10319 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10320 if test "x$ac_cv_lib_soname_gnutls" = x; then :
10321 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10322 fi ;;
10323 esac
10325 rm -f core conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10327 LIBS=$ac_check_soname_save_LIBS
10329 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10331 $as_echo "not found" >&6; }
10332 GNUTLS_CFLAGS=""
10333 else
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
10335 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
10337 cat >>confdefs.h <<_ACEOF
10338 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
10339 _ACEOF
10344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10345 else
10346 GNUTLS_CFLAGS=""
10350 CPPFLAGS="$ac_save_CPPFLAGS"
10352 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10353 case "x$with_gnutls" in
10354 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
10355 xno) ;;
10356 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
10357 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
10358 esac
10361 CURSESLIBS=""
10362 if test "$ac_cv_header_ncurses_h" = "yes"
10363 then
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
10365 $as_echo_n "checking for -lncurses... " >&6; }
10366 if ${ac_cv_lib_soname_ncurses+:} false; then :
10367 $as_echo_n "(cached) " >&6
10368 else
10369 ac_check_soname_save_LIBS=$LIBS
10370 LIBS="-lncurses $LIBS"
10371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10372 /* end confdefs.h. */
10374 /* Override any GCC internal prototype to avoid an error.
10375 Use char because int might match the return type of a GCC
10376 builtin and then its argument prototype would still apply. */
10377 #ifdef __cplusplus
10378 extern "C"
10379 #endif
10380 char waddch ();
10382 main ()
10384 return waddch ();
10386 return 0;
10388 _ACEOF
10389 if ac_fn_c_try_link "$LINENO"; then :
10390 case "$LIBEXT" in
10391 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10392 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'` ;;
10393 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10394 if test "x$ac_cv_lib_soname_ncurses" = x; then :
10395 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10396 fi ;;
10397 esac
10399 rm -f core conftest.err conftest.$ac_objext \
10400 conftest$ac_exeext conftest.$ac_ext
10401 LIBS=$ac_check_soname_save_LIBS
10403 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10405 $as_echo "not found" >&6; }
10407 else
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
10409 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
10411 cat >>confdefs.h <<_ACEOF
10412 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
10413 _ACEOF
10415 CURSESLIBS="-lncurses"
10417 elif test "$ac_cv_header_curses_h" = "yes"
10418 then
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
10420 $as_echo_n "checking for -lcurses... " >&6; }
10421 if ${ac_cv_lib_soname_curses+:} false; then :
10422 $as_echo_n "(cached) " >&6
10423 else
10424 ac_check_soname_save_LIBS=$LIBS
10425 LIBS="-lcurses $LIBS"
10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10429 /* Override any GCC internal prototype to avoid an error.
10430 Use char because int might match the return type of a GCC
10431 builtin and then its argument prototype would still apply. */
10432 #ifdef __cplusplus
10433 extern "C"
10434 #endif
10435 char waddch ();
10437 main ()
10439 return waddch ();
10441 return 0;
10443 _ACEOF
10444 if ac_fn_c_try_link "$LINENO"; then :
10445 case "$LIBEXT" in
10446 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10447 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'` ;;
10448 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10449 if test "x$ac_cv_lib_soname_curses" = x; then :
10450 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10451 fi ;;
10452 esac
10454 rm -f core conftest.err conftest.$ac_objext \
10455 conftest$ac_exeext conftest.$ac_ext
10456 LIBS=$ac_check_soname_save_LIBS
10458 if test "x$ac_cv_lib_soname_curses" = "x"; then :
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10460 $as_echo "not found" >&6; }
10462 else
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
10464 $as_echo "$ac_cv_lib_soname_curses" >&6; }
10466 cat >>confdefs.h <<_ACEOF
10467 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
10468 _ACEOF
10470 CURSESLIBS="-lcurses"
10473 ac_save_LIBS="$LIBS"
10474 LIBS="$LIBS $CURSESLIBS"
10475 for ac_func in mousemask
10476 do :
10477 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
10478 if test "x$ac_cv_func_mousemask" = xyes; then :
10479 cat >>confdefs.h <<_ACEOF
10480 #define HAVE_MOUSEMASK 1
10481 _ACEOF
10484 done
10486 LIBS="$ac_save_LIBS"
10487 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
10488 case "x$with_curses" in
10489 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
10490 xno) ;;
10491 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
10492 This is an error since --with-curses was requested." "$LINENO" 5 ;;
10493 esac
10496 if test "x$with_sane" != "xno"
10497 then
10498 ac_save_CPPFLAGS="$CPPFLAGS"
10499 if test -n "$SANE_CFLAGS"; then :
10501 elif test -n "$PKG_CONFIG"; then :
10502 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
10504 SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
10505 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
10506 if test -n "$SANE_LIBS"; then :
10508 elif test -n "$PKG_CONFIG"; then :
10509 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
10511 SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
10513 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
10514 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
10516 $as_echo_n "checking for -lsane... " >&6; }
10517 if ${ac_cv_lib_soname_sane+:} false; then :
10518 $as_echo_n "(cached) " >&6
10519 else
10520 ac_check_soname_save_LIBS=$LIBS
10521 LIBS="-lsane $SANE_LIBS $LIBS"
10522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h. */
10525 /* Override any GCC internal prototype to avoid an error.
10526 Use char because int might match the return type of a GCC
10527 builtin and then its argument prototype would still apply. */
10528 #ifdef __cplusplus
10529 extern "C"
10530 #endif
10531 char sane_init ();
10533 main ()
10535 return sane_init ();
10537 return 0;
10539 _ACEOF
10540 if ac_fn_c_try_link "$LINENO"; then :
10541 case "$LIBEXT" in
10542 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10543 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'` ;;
10544 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10545 if test "x$ac_cv_lib_soname_sane" = x; then :
10546 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10547 fi ;;
10548 esac
10550 rm -f core conftest.err conftest.$ac_objext \
10551 conftest$ac_exeext conftest.$ac_ext
10552 LIBS=$ac_check_soname_save_LIBS
10554 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10556 $as_echo "not found" >&6; }
10557 SANE_CFLAGS=""
10558 else
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
10560 $as_echo "$ac_cv_lib_soname_sane" >&6; }
10562 cat >>confdefs.h <<_ACEOF
10563 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10564 _ACEOF
10568 SANE_CFLAGS=""
10572 CPPFLAGS="$ac_save_CPPFLAGS"
10574 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10575 case "x$with_sane" in
10576 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10577 xno) ;;
10578 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10579 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10580 esac
10583 if test "x$with_v4l" != "xno"
10584 then
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10586 $as_echo_n "checking for -lv4l1... " >&6; }
10587 if ${ac_cv_lib_soname_v4l1+:} false; then :
10588 $as_echo_n "(cached) " >&6
10589 else
10590 ac_check_soname_save_LIBS=$LIBS
10591 LIBS="-lv4l1 $LIBS"
10592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h. */
10595 /* Override any GCC internal prototype to avoid an error.
10596 Use char because int might match the return type of a GCC
10597 builtin and then its argument prototype would still apply. */
10598 #ifdef __cplusplus
10599 extern "C"
10600 #endif
10601 char v4l1_open ();
10603 main ()
10605 return v4l1_open ();
10607 return 0;
10609 _ACEOF
10610 if ac_fn_c_try_link "$LINENO"; then :
10611 case "$LIBEXT" in
10612 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10613 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'` ;;
10614 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10615 if test "x$ac_cv_lib_soname_v4l1" = x; then :
10616 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10617 fi ;;
10618 esac
10620 rm -f core conftest.err conftest.$ac_objext \
10621 conftest$ac_exeext conftest.$ac_ext
10622 LIBS=$ac_check_soname_save_LIBS
10624 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10626 $as_echo "not found" >&6; }
10628 else
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10630 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10632 cat >>confdefs.h <<_ACEOF
10633 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10634 _ACEOF
10639 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10640 case "x$with_v4l" in
10641 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10642 xno) ;;
10643 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10644 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10645 esac
10648 if test "x$with_gphoto" != "xno"
10649 then
10650 ac_save_CPPFLAGS="$CPPFLAGS"
10651 if test -n "$GPHOTO2_CFLAGS"; then :
10653 elif test -n "$PKG_CONFIG"; then :
10654 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
10656 GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`(gphoto2-config --cflags || gphoto2-port-config --cflags) 2>/dev/null`}
10657 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
10658 if test -n "$GPHOTO2_LIBS"; then :
10660 elif test -n "$PKG_CONFIG"; then :
10661 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
10663 GPHOTO2_LIBS=${GPHOTO2_LIBS:-`(gphoto2-config --libs || gphoto2-port-config --libs) 2>/dev/null`}
10664 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
10665 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10666 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10668 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10669 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10670 $as_echo_n "(cached) " >&6
10671 else
10672 ac_check_lib_save_LIBS=$LIBS
10673 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10677 /* Override any GCC internal prototype to avoid an error.
10678 Use char because int might match the return type of a GCC
10679 builtin and then its argument prototype would still apply. */
10680 #ifdef __cplusplus
10681 extern "C"
10682 #endif
10683 char gp_camera_new ();
10685 main ()
10687 return gp_camera_new ();
10689 return 0;
10691 _ACEOF
10692 if ac_fn_c_try_link "$LINENO"; then :
10693 ac_cv_lib_gphoto2_gp_camera_new=yes
10694 else
10695 ac_cv_lib_gphoto2_gp_camera_new=no
10697 rm -f core conftest.err conftest.$ac_objext \
10698 conftest$ac_exeext conftest.$ac_ext
10699 LIBS=$ac_check_lib_save_LIBS
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10702 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10703 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10705 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10707 else
10708 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
10711 else
10712 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
10716 CPPFLAGS="$ac_save_CPPFLAGS"
10718 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10719 case "x$with_gphoto" in
10720 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10721 xno) ;;
10722 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10723 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10724 esac
10728 if test "$ac_cv_header_resolv_h" = "yes"
10729 then
10730 ac_save_LIBS="$LIBS"
10731 for lib in '' -lresolv
10733 LIBS="$lib $ac_save_LIBS"
10734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h. */
10736 #ifdef HAVE_NETINET_IN_H
10737 #include <netinet/in.h>
10738 #endif
10739 #include <resolv.h>
10741 main ()
10743 res_query("foo",ns_c_in,0,0,0);
10745 return 0;
10747 _ACEOF
10748 if ac_fn_c_try_link "$LINENO"; then :
10750 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10752 RESOLVLIBS="$lib"
10755 rm -f core conftest.err conftest.$ac_objext \
10756 conftest$ac_exeext conftest.$ac_ext
10757 if test "${RESOLVLIBS+set}" = set; then
10758 break
10760 done
10761 LIBS="$ac_save_LIBS"
10764 LCMSLIBS=""
10766 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10767 then
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10769 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10770 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10771 $as_echo_n "(cached) " >&6
10772 else
10773 ac_check_lib_save_LIBS=$LIBS
10774 LIBS="-llcms $LIBS"
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10778 /* Override any GCC internal prototype to avoid an error.
10779 Use char because int might match the return type of a GCC
10780 builtin and then its argument prototype would still apply. */
10781 #ifdef __cplusplus
10782 extern "C"
10783 #endif
10784 char cmsOpenProfileFromFile ();
10786 main ()
10788 return cmsOpenProfileFromFile ();
10790 return 0;
10792 _ACEOF
10793 if ac_fn_c_try_link "$LINENO"; then :
10794 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10795 else
10796 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10798 rm -f core conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
10800 LIBS=$ac_check_lib_save_LIBS
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10803 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10804 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10806 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10808 LCMSLIBS="-llcms"
10812 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10813 case "x$with_cms" in
10814 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10815 xno) ;;
10816 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10817 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10818 esac
10821 if test "x$with_freetype" != "xno"
10822 then
10823 ac_save_CPPFLAGS="$CPPFLAGS"
10824 if test -n "$FREETYPE_CFLAGS"; then :
10826 elif test -n "$PKG_CONFIG"; then :
10827 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
10829 FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
10830 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
10831 if test -n "$FREETYPE_LIBS"; then :
10833 elif test -n "$PKG_CONFIG"; then :
10834 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
10836 FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
10837 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10839 $as_echo_n "checking for -lfreetype... " >&6; }
10840 if ${ac_cv_lib_soname_freetype+:} false; then :
10841 $as_echo_n "(cached) " >&6
10842 else
10843 ac_check_soname_save_LIBS=$LIBS
10844 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
10845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10846 /* end confdefs.h. */
10848 /* Override any GCC internal prototype to avoid an error.
10849 Use char because int might match the return type of a GCC
10850 builtin and then its argument prototype would still apply. */
10851 #ifdef __cplusplus
10852 extern "C"
10853 #endif
10854 char FT_Init_FreeType ();
10856 main ()
10858 return FT_Init_FreeType ();
10860 return 0;
10862 _ACEOF
10863 if ac_fn_c_try_link "$LINENO"; then :
10864 case "$LIBEXT" in
10865 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10866 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'` ;;
10867 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10868 if test "x$ac_cv_lib_soname_freetype" = x; then :
10869 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10870 fi ;;
10871 esac
10873 rm -f core conftest.err conftest.$ac_objext \
10874 conftest$ac_exeext conftest.$ac_ext
10875 LIBS=$ac_check_soname_save_LIBS
10877 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10879 $as_echo "not found" >&6; }
10880 ft_lib=no
10881 else
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10883 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10885 cat >>confdefs.h <<_ACEOF
10886 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10887 _ACEOF
10889 ft_lib=yes
10891 if test "$ft_lib" = "yes"
10892 then
10893 for ac_header in ft2build.h \
10894 freetype/freetype.h \
10895 freetype/ftglyph.h \
10896 freetype/fttypes.h \
10897 freetype/tttables.h \
10898 freetype/ftsnames.h \
10899 freetype/ttnameid.h \
10900 freetype/ftoutln.h \
10901 freetype/ftwinfnt.h \
10902 freetype/ftmodapi.h \
10903 freetype/ftlcdfil.h
10904 do :
10905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10906 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10907 # include <ft2build.h>
10908 #endif
10910 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10911 cat >>confdefs.h <<_ACEOF
10912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10913 _ACEOF
10917 done
10919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10920 /* end confdefs.h. */
10921 #include <ft2build.h>
10922 #include <freetype/fttrigon.h>
10923 _ACEOF
10924 if ac_fn_c_try_cpp "$LINENO"; then :
10926 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10928 wine_cv_fttrigon=yes
10929 else
10930 wine_cv_fttrigon=no
10932 rm -f conftest.err conftest.i conftest.$ac_ext
10933 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10935 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10937 cat >>confdefs.h <<_ACEOF
10938 #define HAVE_FT_TRUETYPEENGINETYPE 1
10939 _ACEOF
10944 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10945 then
10947 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10949 else
10950 FREETYPE_LIBS=""
10952 else
10953 FREETYPE_LIBS=""
10955 CPPFLAGS="$ac_save_CPPFLAGS"
10957 if test "x$ac_cv_header_freetype_freetype_h" != xyes -o "x$wine_cv_fttrigon" != xyes; then :
10958 case "x$with_freetype" in
10959 xno) ;;
10960 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10961 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10962 esac
10964 test "x$ac_cv_header_freetype_freetype_h" = xyes -a "x$wine_cv_fttrigon" = xyes || enable_fonts=${enable_fonts:-no}
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10967 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10968 if ${ac_cv_c_ppdev+:} false; then :
10969 $as_echo_n "(cached) " >&6
10970 else
10971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10972 /* end confdefs.h. */
10973 #ifdef HAVE_SYS_IOCTL_H
10974 # include <sys/ioctl.h>
10975 #endif
10976 #include <linux/ppdev.h>
10978 main ()
10980 ioctl (1,PPCLAIM,0)
10982 return 0;
10984 _ACEOF
10985 if ac_fn_c_try_compile "$LINENO"; then :
10986 ac_cv_c_ppdev="yes"
10987 else
10988 ac_cv_c_ppdev="no"
10990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10993 $as_echo "$ac_cv_c_ppdev" >&6; }
10994 if test "$ac_cv_c_ppdev" = "yes"
10995 then
10997 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
11001 ac_wine_check_funcs_save_LIBS="$LIBS"
11002 LIBS="$LIBS $LIBPTHREAD"
11003 for ac_func in \
11004 pthread_attr_get_np \
11005 pthread_getattr_np \
11006 pthread_getthreadid_np \
11007 pthread_get_stackaddr_np \
11008 pthread_get_stacksize_np
11009 do :
11010 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11011 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11012 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11013 cat >>confdefs.h <<_ACEOF
11014 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11015 _ACEOF
11018 done
11020 LIBS="$ac_wine_check_funcs_save_LIBS"
11022 if test "$ac_cv_header_zlib_h" = "yes"
11023 then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11025 $as_echo_n "checking for inflate in -lz... " >&6; }
11026 if ${ac_cv_lib_z_inflate+:} false; then :
11027 $as_echo_n "(cached) " >&6
11028 else
11029 ac_check_lib_save_LIBS=$LIBS
11030 LIBS="-lz $LIBS"
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11034 /* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
11037 #ifdef __cplusplus
11038 extern "C"
11039 #endif
11040 char inflate ();
11042 main ()
11044 return inflate ();
11046 return 0;
11048 _ACEOF
11049 if ac_fn_c_try_link "$LINENO"; then :
11050 ac_cv_lib_z_inflate=yes
11051 else
11052 ac_cv_lib_z_inflate=no
11054 rm -f core conftest.err conftest.$ac_objext \
11055 conftest$ac_exeext conftest.$ac_ext
11056 LIBS=$ac_check_lib_save_LIBS
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
11059 $as_echo "$ac_cv_lib_z_inflate" >&6; }
11060 if test "x$ac_cv_lib_z_inflate" = xyes; then :
11062 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
11064 ZLIB="-lz"
11069 if test "x$ZLIB" = "x"; then :
11070 case "x$with_zlib" in
11071 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
11072 xno) ;;
11073 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
11074 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
11075 esac
11078 if test "x$enable_tools" != xno
11079 then
11080 if test "$ac_cv_header_gettext_po_h" = "yes"
11081 then
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
11083 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
11084 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
11085 $as_echo_n "(cached) " >&6
11086 else
11087 ac_check_lib_save_LIBS=$LIBS
11088 LIBS="-lgettextpo $LIBS"
11089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11090 /* end confdefs.h. */
11092 /* Override any GCC internal prototype to avoid an error.
11093 Use char because int might match the return type of a GCC
11094 builtin and then its argument prototype would still apply. */
11095 #ifdef __cplusplus
11096 extern "C"
11097 #endif
11098 char po_message_msgctxt ();
11100 main ()
11102 return po_message_msgctxt ();
11104 return 0;
11106 _ACEOF
11107 if ac_fn_c_try_link "$LINENO"; then :
11108 ac_cv_lib_gettextpo_po_message_msgctxt=yes
11109 else
11110 ac_cv_lib_gettextpo_po_message_msgctxt=no
11112 rm -f core conftest.err conftest.$ac_objext \
11113 conftest$ac_exeext conftest.$ac_ext
11114 LIBS=$ac_check_lib_save_LIBS
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
11117 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
11118 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
11120 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
11122 LIBGETTEXTPO="-lgettextpo"
11127 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
11128 case "x$with_gettextpo" in
11129 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
11130 xno) ;;
11131 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
11132 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
11133 esac
11137 if test "x$with_gstreamer" != "xno"
11138 then
11139 ac_save_CPPFLAGS="$CPPFLAGS"
11140 if test -n "$GSTREAMER_CFLAGS"; then :
11142 elif test -n "$PKG_CONFIG"; then :
11143 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
11146 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
11147 if test -n "$GSTREAMER_LIBS"; then :
11149 elif test -n "$PKG_CONFIG"; then :
11150 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
11154 ac_gst_incl=""
11155 for i in $GSTREAMER_CFLAGS
11157 case "$i" in
11158 -I*) ac_gst_incl="$ac_gst_incl $i";;
11159 esac
11160 done
11161 GSTREAMER_CFLAGS=$ac_gst_incl
11162 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
11163 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
11164 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
11165 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
11166 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
11168 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
11169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11171 #include <gst/app/gstappsink.h>
11173 main ()
11175 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
11177 return 0;
11179 _ACEOF
11180 if ac_fn_c_try_compile "$LINENO"; then :
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11182 $as_echo "yes" >&6; }
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
11184 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
11185 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
11186 $as_echo_n "(cached) " >&6
11187 else
11188 ac_check_lib_save_LIBS=$LIBS
11189 LIBS="-lgstreamer-0.10 $LIBS"
11190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11191 /* end confdefs.h. */
11193 /* Override any GCC internal prototype to avoid an error.
11194 Use char because int might match the return type of a GCC
11195 builtin and then its argument prototype would still apply. */
11196 #ifdef __cplusplus
11197 extern "C"
11198 #endif
11199 char gst_pad_get_caps_reffed ();
11201 main ()
11203 return gst_pad_get_caps_reffed ();
11205 return 0;
11207 _ACEOF
11208 if ac_fn_c_try_link "$LINENO"; then :
11209 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
11210 else
11211 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
11213 rm -f core conftest.err conftest.$ac_objext \
11214 conftest$ac_exeext conftest.$ac_ext
11215 LIBS=$ac_check_lib_save_LIBS
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
11218 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
11219 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
11221 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
11222 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
11223 $as_echo_n "(cached) " >&6
11224 else
11225 ac_check_lib_save_LIBS=$LIBS
11226 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
11227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h. */
11230 /* Override any GCC internal prototype to avoid an error.
11231 Use char because int might match the return type of a GCC
11232 builtin and then its argument prototype would still apply. */
11233 #ifdef __cplusplus
11234 extern "C"
11235 #endif
11236 char gst_app_buffer_new ();
11238 main ()
11240 return gst_app_buffer_new ();
11242 return 0;
11244 _ACEOF
11245 if ac_fn_c_try_link "$LINENO"; then :
11246 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
11247 else
11248 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
11250 rm -f core conftest.err conftest.$ac_objext \
11251 conftest$ac_exeext conftest.$ac_ext
11252 LIBS=$ac_check_lib_save_LIBS
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
11255 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
11256 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
11262 else
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11264 $as_echo "no" >&6; }
11266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11270 else
11271 GSTREAMER_CFLAGS=""
11275 CPPFLAGS="$ac_save_CPPFLAGS"
11277 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
11278 case "x$with_gstreamer" in
11279 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
11280 xno) ;;
11281 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
11282 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
11283 esac
11285 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
11287 ALSALIBS=""
11289 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11290 then
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
11292 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
11293 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
11294 $as_echo_n "(cached) " >&6
11295 else
11296 ac_check_lib_save_LIBS=$LIBS
11297 LIBS="-lasound $LIBS"
11298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11301 /* Override any GCC internal prototype to avoid an error.
11302 Use char because int might match the return type of a GCC
11303 builtin and then its argument prototype would still apply. */
11304 #ifdef __cplusplus
11305 extern "C"
11306 #endif
11307 char snd_pcm_hw_params_get_access_mask ();
11309 main ()
11311 return snd_pcm_hw_params_get_access_mask ();
11313 return 0;
11315 _ACEOF
11316 if ac_fn_c_try_link "$LINENO"; then :
11317 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
11318 else
11319 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
11321 rm -f core conftest.err conftest.$ac_objext \
11322 conftest$ac_exeext conftest.$ac_ext
11323 LIBS=$ac_check_lib_save_LIBS
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
11326 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
11327 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
11328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h. */
11330 #ifdef HAVE_ALSA_ASOUNDLIB_H
11331 #include <alsa/asoundlib.h>
11332 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11333 #include <sys/asoundlib.h>
11334 #endif
11336 main ()
11338 snd_pcm_hw_params_get_access_mask(NULL, NULL)
11340 return 0;
11342 _ACEOF
11343 if ac_fn_c_try_compile "$LINENO"; then :
11344 ALSALIBS="-lasound"
11346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11351 if test "x$with_oss" != xno
11352 then
11353 ac_save_CPPFLAGS="$CPPFLAGS"
11354 if test -f /etc/oss.conf
11355 then
11356 . /etc/oss.conf
11358 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
11359 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
11360 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11361 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
11362 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
11364 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
11366 cat >>confdefs.h <<_ACEOF
11367 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
11368 _ACEOF
11370 OSS4INCL="$ac_oss_incl"
11377 CPPFLAGS="$ac_save_CPPFLAGS"
11378 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
11379 then
11380 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
11385 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
11386 then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
11388 $as_echo_n "checking for -lcapi20... " >&6; }
11389 if ${ac_cv_lib_soname_capi20+:} false; then :
11390 $as_echo_n "(cached) " >&6
11391 else
11392 ac_check_soname_save_LIBS=$LIBS
11393 LIBS="-lcapi20 $LIBS"
11394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395 /* end confdefs.h. */
11397 /* Override any GCC internal prototype to avoid an error.
11398 Use char because int might match the return type of a GCC
11399 builtin and then its argument prototype would still apply. */
11400 #ifdef __cplusplus
11401 extern "C"
11402 #endif
11403 char capi20_register ();
11405 main ()
11407 return capi20_register ();
11409 return 0;
11411 _ACEOF
11412 if ac_fn_c_try_link "$LINENO"; then :
11413 case "$LIBEXT" in
11414 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11415 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'` ;;
11416 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11417 if test "x$ac_cv_lib_soname_capi20" = x; then :
11418 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11419 fi ;;
11420 esac
11422 rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11424 LIBS=$ac_check_soname_save_LIBS
11426 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11428 $as_echo "not found" >&6; }
11430 else
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11432 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11434 cat >>confdefs.h <<_ACEOF
11435 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11436 _ACEOF
11441 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11442 case "x$with_capi" in
11443 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11444 xno) ;;
11445 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11446 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11447 esac
11450 CUPSINCL=""
11452 if test "x$with_cups" != "xno"
11453 then
11454 ac_save_CPPFLAGS="$CPPFLAGS"
11455 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11456 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11457 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11458 for ac_header in cups/cups.h
11459 do :
11460 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11461 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11462 cat >>confdefs.h <<_ACEOF
11463 #define HAVE_CUPS_CUPS_H 1
11464 _ACEOF
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11466 $as_echo_n "checking for -lcups... " >&6; }
11467 if ${ac_cv_lib_soname_cups+:} false; then :
11468 $as_echo_n "(cached) " >&6
11469 else
11470 ac_check_soname_save_LIBS=$LIBS
11471 LIBS="-lcups $ac_cups_libs $LIBS"
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h. */
11475 /* Override any GCC internal prototype to avoid an error.
11476 Use char because int might match the return type of a GCC
11477 builtin and then its argument prototype would still apply. */
11478 #ifdef __cplusplus
11479 extern "C"
11480 #endif
11481 char cupsGetDefault ();
11483 main ()
11485 return cupsGetDefault ();
11487 return 0;
11489 _ACEOF
11490 if ac_fn_c_try_link "$LINENO"; then :
11491 case "$LIBEXT" in
11492 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11493 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'` ;;
11494 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11495 if test "x$ac_cv_lib_soname_cups" = x; then :
11496 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11497 fi ;;
11498 esac
11500 rm -f core conftest.err conftest.$ac_objext \
11501 conftest$ac_exeext conftest.$ac_ext
11502 LIBS=$ac_check_soname_save_LIBS
11504 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11506 $as_echo "not found" >&6; }
11508 else
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11510 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11512 cat >>confdefs.h <<_ACEOF
11513 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11514 _ACEOF
11516 CUPSINCL="$ac_cups_cflags"
11520 done
11522 CPPFLAGS="$ac_save_CPPFLAGS"
11524 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11525 case "x$with_cups" in
11526 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11527 xno) ;;
11528 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11529 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11530 esac
11533 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11534 then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11536 $as_echo_n "checking for -lfontconfig... " >&6; }
11537 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11538 $as_echo_n "(cached) " >&6
11539 else
11540 ac_check_soname_save_LIBS=$LIBS
11541 LIBS="-lfontconfig $LIBS"
11542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11543 /* end confdefs.h. */
11545 /* Override any GCC internal prototype to avoid an error.
11546 Use char because int might match the return type of a GCC
11547 builtin and then its argument prototype would still apply. */
11548 #ifdef __cplusplus
11549 extern "C"
11550 #endif
11551 char FcInit ();
11553 main ()
11555 return FcInit ();
11557 return 0;
11559 _ACEOF
11560 if ac_fn_c_try_link "$LINENO"; then :
11561 case "$LIBEXT" in
11562 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11563 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'` ;;
11564 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11565 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11566 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11567 fi ;;
11568 esac
11570 rm -f core conftest.err conftest.$ac_objext \
11571 conftest$ac_exeext conftest.$ac_ext
11572 LIBS=$ac_check_soname_save_LIBS
11574 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11576 $as_echo "not found" >&6; }
11578 else
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11580 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11582 cat >>confdefs.h <<_ACEOF
11583 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11584 _ACEOF
11588 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11589 then
11590 ac_save_CPPFLAGS="$CPPFLAGS"
11591 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11592 $as_unset ac_cv_header_fontconfig_fontconfig_h
11593 for ac_header in fontconfig/fontconfig.h
11594 do :
11595 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11596 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11597 cat >>confdefs.h <<_ACEOF
11598 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11599 _ACEOF
11603 done
11605 CPPFLAGS="$ac_save_CPPFLAGS"
11606 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11607 then
11608 FONTCONFIGINCL="$X_CFLAGS"
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11611 $as_echo_n "checking for -lfontconfig... " >&6; }
11612 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11613 $as_echo_n "(cached) " >&6
11614 else
11615 ac_check_soname_save_LIBS=$LIBS
11616 LIBS="-lfontconfig $X_LIBS $LIBS"
11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11620 /* Override any GCC internal prototype to avoid an error.
11621 Use char because int might match the return type of a GCC
11622 builtin and then its argument prototype would still apply. */
11623 #ifdef __cplusplus
11624 extern "C"
11625 #endif
11626 char FcInit ();
11628 main ()
11630 return FcInit ();
11632 return 0;
11634 _ACEOF
11635 if ac_fn_c_try_link "$LINENO"; then :
11636 case "$LIBEXT" in
11637 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11638 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'` ;;
11639 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11640 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11641 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11642 fi ;;
11643 esac
11645 rm -f core conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11647 LIBS=$ac_check_soname_save_LIBS
11649 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11651 $as_echo "not found" >&6; }
11653 else
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11655 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11657 cat >>confdefs.h <<_ACEOF
11658 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11659 _ACEOF
11665 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11666 case "x$with_fontconfig" in
11667 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11668 xno) ;;
11669 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11670 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11671 esac
11674 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11675 then
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11677 $as_echo_n "checking for -lgsm... " >&6; }
11678 if ${ac_cv_lib_soname_gsm+:} false; then :
11679 $as_echo_n "(cached) " >&6
11680 else
11681 ac_check_soname_save_LIBS=$LIBS
11682 LIBS="-lgsm $LIBS"
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h. */
11686 /* Override any GCC internal prototype to avoid an error.
11687 Use char because int might match the return type of a GCC
11688 builtin and then its argument prototype would still apply. */
11689 #ifdef __cplusplus
11690 extern "C"
11691 #endif
11692 char gsm_create ();
11694 main ()
11696 return gsm_create ();
11698 return 0;
11700 _ACEOF
11701 if ac_fn_c_try_link "$LINENO"; then :
11702 case "$LIBEXT" in
11703 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11704 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'` ;;
11705 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11706 if test "x$ac_cv_lib_soname_gsm" = x; then :
11707 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11708 fi ;;
11709 esac
11711 rm -f core conftest.err conftest.$ac_objext \
11712 conftest$ac_exeext conftest.$ac_ext
11713 LIBS=$ac_check_soname_save_LIBS
11715 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11717 $as_echo "not found" >&6; }
11719 else
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11721 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11723 cat >>confdefs.h <<_ACEOF
11724 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11725 _ACEOF
11730 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11731 case "x$with_gsm" in
11732 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11733 xno) ;;
11734 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11735 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11736 esac
11739 if test "$ac_cv_header_jpeglib_h" = "yes"
11740 then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11742 $as_echo_n "checking for -ljpeg... " >&6; }
11743 if ${ac_cv_lib_soname_jpeg+:} false; then :
11744 $as_echo_n "(cached) " >&6
11745 else
11746 ac_check_soname_save_LIBS=$LIBS
11747 LIBS="-ljpeg $LIBS"
11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h. */
11751 /* Override any GCC internal prototype to avoid an error.
11752 Use char because int might match the return type of a GCC
11753 builtin and then its argument prototype would still apply. */
11754 #ifdef __cplusplus
11755 extern "C"
11756 #endif
11757 char jpeg_start_decompress ();
11759 main ()
11761 return jpeg_start_decompress ();
11763 return 0;
11765 _ACEOF
11766 if ac_fn_c_try_link "$LINENO"; then :
11767 case "$LIBEXT" in
11768 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11769 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'` ;;
11770 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11771 if test "x$ac_cv_lib_soname_jpeg" = x; then :
11772 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11773 fi ;;
11774 esac
11776 rm -f core conftest.err conftest.$ac_objext \
11777 conftest$ac_exeext conftest.$ac_ext
11778 LIBS=$ac_check_soname_save_LIBS
11780 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11782 $as_echo "not found" >&6; }
11784 else
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11786 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11788 cat >>confdefs.h <<_ACEOF
11789 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11790 _ACEOF
11795 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11796 case "x$with_jpeg" in
11797 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11798 xno) ;;
11799 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11800 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11801 esac
11804 if test "$ac_cv_header_png_h" = "yes"
11805 then
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11807 $as_echo_n "checking for -lpng... " >&6; }
11808 if ${ac_cv_lib_soname_png+:} false; then :
11809 $as_echo_n "(cached) " >&6
11810 else
11811 ac_check_soname_save_LIBS=$LIBS
11812 LIBS="-lpng -lm -lz $LIBS"
11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814 /* end confdefs.h. */
11816 /* Override any GCC internal prototype to avoid an error.
11817 Use char because int might match the return type of a GCC
11818 builtin and then its argument prototype would still apply. */
11819 #ifdef __cplusplus
11820 extern "C"
11821 #endif
11822 char png_create_read_struct ();
11824 main ()
11826 return png_create_read_struct ();
11828 return 0;
11830 _ACEOF
11831 if ac_fn_c_try_link "$LINENO"; then :
11832 case "$LIBEXT" in
11833 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11834 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'` ;;
11835 *) 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'`
11836 if test "x$ac_cv_lib_soname_png" = x; then :
11837 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11838 fi ;;
11839 esac
11841 rm -f core conftest.err conftest.$ac_objext \
11842 conftest$ac_exeext conftest.$ac_ext
11843 LIBS=$ac_check_soname_save_LIBS
11845 if test "x$ac_cv_lib_soname_png" = "x"; then :
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11847 $as_echo "not found" >&6; }
11849 else
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11851 $as_echo "$ac_cv_lib_soname_png" >&6; }
11853 cat >>confdefs.h <<_ACEOF
11854 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11855 _ACEOF
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11860 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11861 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 ac_check_lib_save_LIBS=$LIBS
11865 LIBS="-lpng -lm -lz $LIBS"
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11869 /* Override any GCC internal prototype to avoid an error.
11870 Use char because int might match the return type of a GCC
11871 builtin and then its argument prototype would still apply. */
11872 #ifdef __cplusplus
11873 extern "C"
11874 #endif
11875 char png_set_expand_gray_1_2_4_to_8 ();
11877 main ()
11879 return png_set_expand_gray_1_2_4_to_8 ();
11881 return 0;
11883 _ACEOF
11884 if ac_fn_c_try_link "$LINENO"; then :
11885 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11886 else
11887 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11889 rm -f core conftest.err conftest.$ac_objext \
11890 conftest$ac_exeext conftest.$ac_ext
11891 LIBS=$ac_check_lib_save_LIBS
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11894 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11895 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11897 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11902 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11903 then
11904 ac_save_CPPFLAGS="$CPPFLAGS"
11905 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11906 $as_unset ac_cv_header_png_h
11907 for ac_header in png.h
11908 do :
11909 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11910 if test "x$ac_cv_header_png_h" = xyes; then :
11911 cat >>confdefs.h <<_ACEOF
11912 #define HAVE_PNG_H 1
11913 _ACEOF
11917 done
11919 CPPFLAGS="$ac_save_CPPFLAGS"
11920 if test "$ac_cv_header_png_h" = "yes"
11921 then
11922 PNGINCL="$X_CFLAGS"
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11925 $as_echo_n "checking for -lpng... " >&6; }
11926 if ${ac_cv_lib_soname_png+:} false; then :
11927 $as_echo_n "(cached) " >&6
11928 else
11929 ac_check_soname_save_LIBS=$LIBS
11930 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11932 /* end confdefs.h. */
11934 /* Override any GCC internal prototype to avoid an error.
11935 Use char because int might match the return type of a GCC
11936 builtin and then its argument prototype would still apply. */
11937 #ifdef __cplusplus
11938 extern "C"
11939 #endif
11940 char png_create_read_struct ();
11942 main ()
11944 return png_create_read_struct ();
11946 return 0;
11948 _ACEOF
11949 if ac_fn_c_try_link "$LINENO"; then :
11950 case "$LIBEXT" in
11951 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11952 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'` ;;
11953 *) 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'`
11954 if test "x$ac_cv_lib_soname_png" = x; then :
11955 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11956 fi ;;
11957 esac
11959 rm -f core conftest.err conftest.$ac_objext \
11960 conftest$ac_exeext conftest.$ac_ext
11961 LIBS=$ac_check_soname_save_LIBS
11963 if test "x$ac_cv_lib_soname_png" = "x"; then :
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11965 $as_echo "not found" >&6; }
11967 else
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11969 $as_echo "$ac_cv_lib_soname_png" >&6; }
11971 cat >>confdefs.h <<_ACEOF
11972 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11973 _ACEOF
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11978 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11979 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11980 $as_echo_n "(cached) " >&6
11981 else
11982 ac_check_lib_save_LIBS=$LIBS
11983 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h. */
11987 /* Override any GCC internal prototype to avoid an error.
11988 Use char because int might match the return type of a GCC
11989 builtin and then its argument prototype would still apply. */
11990 #ifdef __cplusplus
11991 extern "C"
11992 #endif
11993 char png_set_expand_gray_1_2_4_to_8 ();
11995 main ()
11997 return png_set_expand_gray_1_2_4_to_8 ();
11999 return 0;
12001 _ACEOF
12002 if ac_fn_c_try_link "$LINENO"; then :
12003 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
12004 else
12005 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
12007 rm -f core conftest.err conftest.$ac_objext \
12008 conftest$ac_exeext conftest.$ac_ext
12009 LIBS=$ac_check_lib_save_LIBS
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
12012 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
12013 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
12014 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
12020 if test "x$ac_cv_lib_soname_png" = "x"; then :
12021 case "x$with_png" in
12022 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
12023 xno) ;;
12024 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
12025 This is an error since --with-png was requested." "$LINENO" 5 ;;
12026 esac
12029 if test "$ac_cv_header_tiffio_h" = "yes"
12030 then
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
12032 $as_echo_n "checking for -ltiff... " >&6; }
12033 if ${ac_cv_lib_soname_tiff+:} false; then :
12034 $as_echo_n "(cached) " >&6
12035 else
12036 ac_check_soname_save_LIBS=$LIBS
12037 LIBS="-ltiff $LIBS"
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12041 /* Override any GCC internal prototype to avoid an error.
12042 Use char because int might match the return type of a GCC
12043 builtin and then its argument prototype would still apply. */
12044 #ifdef __cplusplus
12045 extern "C"
12046 #endif
12047 char TIFFClientOpen ();
12049 main ()
12051 return TIFFClientOpen ();
12053 return 0;
12055 _ACEOF
12056 if ac_fn_c_try_link "$LINENO"; then :
12057 case "$LIBEXT" in
12058 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12059 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'` ;;
12060 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12061 if test "x$ac_cv_lib_soname_tiff" = x; then :
12062 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12063 fi ;;
12064 esac
12066 rm -f core conftest.err conftest.$ac_objext \
12067 conftest$ac_exeext conftest.$ac_ext
12068 LIBS=$ac_check_soname_save_LIBS
12070 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12072 $as_echo "not found" >&6; }
12074 else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
12076 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
12078 cat >>confdefs.h <<_ACEOF
12079 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
12080 _ACEOF
12085 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12086 case "x$with_tiff" in
12087 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
12088 xno) ;;
12089 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
12090 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
12091 esac
12094 if test "$ac_cv_header_mpg123_h" = "yes"
12095 then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
12097 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
12098 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 ac_check_lib_save_LIBS=$LIBS
12102 LIBS="-lmpg123 $LIBS"
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h. */
12106 /* Override any GCC internal prototype to avoid an error.
12107 Use char because int might match the return type of a GCC
12108 builtin and then its argument prototype would still apply. */
12109 #ifdef __cplusplus
12110 extern "C"
12111 #endif
12112 char mpg123_feed ();
12114 main ()
12116 return mpg123_feed ();
12118 return 0;
12120 _ACEOF
12121 if ac_fn_c_try_link "$LINENO"; then :
12122 ac_cv_lib_mpg123_mpg123_feed=yes
12123 else
12124 ac_cv_lib_mpg123_mpg123_feed=no
12126 rm -f core conftest.err conftest.$ac_objext \
12127 conftest$ac_exeext conftest.$ac_ext
12128 LIBS=$ac_check_lib_save_LIBS
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
12131 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
12132 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
12133 LIBMPG123="-lmpg123"
12138 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
12139 case "x$with_mpg123" in
12140 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
12141 xno) ;;
12142 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
12143 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
12144 esac
12146 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}
12148 if test "$ac_cv_header_AL_al_h" = "yes"
12149 then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
12151 $as_echo_n "checking for -lopenal... " >&6; }
12152 if ${ac_cv_lib_soname_openal+:} false; then :
12153 $as_echo_n "(cached) " >&6
12154 else
12155 ac_check_soname_save_LIBS=$LIBS
12156 LIBS="-lopenal $LIBS"
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12160 /* Override any GCC internal prototype to avoid an error.
12161 Use char because int might match the return type of a GCC
12162 builtin and then its argument prototype would still apply. */
12163 #ifdef __cplusplus
12164 extern "C"
12165 #endif
12166 char alGetSource3i ();
12168 main ()
12170 return alGetSource3i ();
12172 return 0;
12174 _ACEOF
12175 if ac_fn_c_try_link "$LINENO"; then :
12176 case "$LIBEXT" in
12177 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12178 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'` ;;
12179 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12180 if test "x$ac_cv_lib_soname_openal" = x; then :
12181 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12182 fi ;;
12183 esac
12185 rm -f core conftest.err conftest.$ac_objext \
12186 conftest$ac_exeext conftest.$ac_ext
12187 LIBS=$ac_check_soname_save_LIBS
12189 if test "x$ac_cv_lib_soname_openal" = "x"; then :
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12191 $as_echo "not found" >&6; }
12193 else
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
12195 $as_echo "$ac_cv_lib_soname_openal" >&6; }
12197 cat >>confdefs.h <<_ACEOF
12198 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
12199 _ACEOF
12201 LIBOPENAL="-lopenal"
12203 ac_cv_lib_openal=yes
12205 cat >>confdefs.h <<_ACEOF
12206 #define HAVE_OPENAL 1
12207 _ACEOF
12211 if test "x$ac_cv_lib_openal" != xyes; then :
12212 case "x$with_openal" in
12213 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
12214 xno) ;;
12215 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
12216 This is an error since --with-openal was requested." "$LINENO" 5 ;;
12217 esac
12219 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
12221 if test "$ac_cv_header_kstat_h" = "yes"
12222 then
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12224 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12225 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12226 $as_echo_n "(cached) " >&6
12227 else
12228 ac_check_lib_save_LIBS=$LIBS
12229 LIBS="-lkstat $LIBS"
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12233 /* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12236 #ifdef __cplusplus
12237 extern "C"
12238 #endif
12239 char kstat_open ();
12241 main ()
12243 return kstat_open ();
12245 return 0;
12247 _ACEOF
12248 if ac_fn_c_try_link "$LINENO"; then :
12249 ac_cv_lib_kstat_kstat_open=yes
12250 else
12251 ac_cv_lib_kstat_kstat_open=no
12253 rm -f core conftest.err conftest.$ac_objext \
12254 conftest$ac_exeext conftest.$ac_ext
12255 LIBS=$ac_check_lib_save_LIBS
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12258 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12259 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12261 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12263 LIBKSTAT="-lkstat"
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12270 $as_echo_n "checking for -lodbc... " >&6; }
12271 if ${ac_cv_lib_soname_odbc+:} false; then :
12272 $as_echo_n "(cached) " >&6
12273 else
12274 ac_check_soname_save_LIBS=$LIBS
12275 LIBS="-lodbc $LIBS"
12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12279 /* Override any GCC internal prototype to avoid an error.
12280 Use char because int might match the return type of a GCC
12281 builtin and then its argument prototype would still apply. */
12282 #ifdef __cplusplus
12283 extern "C"
12284 #endif
12285 char SQLConnect ();
12287 main ()
12289 return SQLConnect ();
12291 return 0;
12293 _ACEOF
12294 if ac_fn_c_try_link "$LINENO"; then :
12295 case "$LIBEXT" in
12296 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12297 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'` ;;
12298 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12299 if test "x$ac_cv_lib_soname_odbc" = x; then :
12300 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12301 fi ;;
12302 esac
12304 rm -f core conftest.err conftest.$ac_objext \
12305 conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_soname_save_LIBS
12308 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12310 $as_echo "not found" >&6; }
12311 cat >>confdefs.h <<_ACEOF
12312 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12313 _ACEOF
12315 else
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12317 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12319 cat >>confdefs.h <<_ACEOF
12320 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12321 _ACEOF
12326 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12327 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12328 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
12329 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12331 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
12332 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
12333 "x$with_alsa$with_coreaudio$with_oss" != xnonono
12334 then
12335 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12339 EXTRACFLAGS=""
12341 if test "x${GCC}" = "xyes"
12342 then
12343 EXTRACFLAGS="-Wall -pipe"
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12346 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12347 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12348 $as_echo_n "(cached) " >&6
12349 else
12350 if test "$cross_compiling" = yes; then :
12351 ac_cv_c_gcc_strength_bug="yes"
12352 else
12353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354 /* end confdefs.h. */
12355 int L[4] = {0,1,2,3};
12357 main ()
12359 static int Array[3];
12360 unsigned int B = 3;
12361 int i;
12362 for(i=0; i<B; i++) Array[i] = i - 3;
12363 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12364 L[i] = 4;
12365 return (Array[1] != -2 || L[2] != 3)
12367 return 0;
12369 _ACEOF
12370 if ac_fn_c_try_run "$LINENO"; then :
12371 ac_cv_c_gcc_strength_bug="no"
12372 else
12373 ac_cv_c_gcc_strength_bug="yes"
12375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12376 conftest.$ac_objext conftest.beam conftest.$ac_ext
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12381 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12382 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12383 then
12384 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12388 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12389 if ${ac_cv_cflags__fno_builtin+:} false; then :
12390 $as_echo_n "(cached) " >&6
12391 else
12392 ac_wine_try_cflags_saved=$CFLAGS
12393 CFLAGS="$CFLAGS -fno-builtin"
12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 /* end confdefs.h. */
12396 int main(int argc, char **argv) { return 0; }
12397 _ACEOF
12398 if ac_fn_c_try_link "$LINENO"; then :
12399 ac_cv_cflags__fno_builtin=yes
12400 else
12401 ac_cv_cflags__fno_builtin=no
12403 rm -f core conftest.err conftest.$ac_objext \
12404 conftest$ac_exeext conftest.$ac_ext
12405 CFLAGS=$ac_wine_try_cflags_saved
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12408 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12409 if test $ac_cv_cflags__fno_builtin = yes; then :
12410 BUILTINFLAG="-fno-builtin"
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12414 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12415 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 ac_wine_try_cflags_saved=$CFLAGS
12419 CFLAGS="$CFLAGS -fno-strict-aliasing"
12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h. */
12422 int main(int argc, char **argv) { return 0; }
12423 _ACEOF
12424 if ac_fn_c_try_link "$LINENO"; then :
12425 ac_cv_cflags__fno_strict_aliasing=yes
12426 else
12427 ac_cv_cflags__fno_strict_aliasing=no
12429 rm -f core conftest.err conftest.$ac_objext \
12430 conftest$ac_exeext conftest.$ac_ext
12431 CFLAGS=$ac_wine_try_cflags_saved
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12434 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12435 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12436 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12439 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12440 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442 else
12443 ac_wine_try_cflags_saved=$CFLAGS
12444 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12447 int main(int argc, char **argv) { return 0; }
12448 _ACEOF
12449 if ac_fn_c_try_link "$LINENO"; then :
12450 ac_cv_cflags__Wdeclaration_after_statement=yes
12451 else
12452 ac_cv_cflags__Wdeclaration_after_statement=no
12454 rm -f core conftest.err conftest.$ac_objext \
12455 conftest$ac_exeext conftest.$ac_ext
12456 CFLAGS=$ac_wine_try_cflags_saved
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12459 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12460 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12461 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12464 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12465 if ${ac_cv_cflags__Wempty_body+:} false; then :
12466 $as_echo_n "(cached) " >&6
12467 else
12468 ac_wine_try_cflags_saved=$CFLAGS
12469 CFLAGS="$CFLAGS -Wempty-body"
12470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12471 /* end confdefs.h. */
12472 int main(int argc, char **argv) { return 0; }
12473 _ACEOF
12474 if ac_fn_c_try_link "$LINENO"; then :
12475 ac_cv_cflags__Wempty_body=yes
12476 else
12477 ac_cv_cflags__Wempty_body=no
12479 rm -f core conftest.err conftest.$ac_objext \
12480 conftest$ac_exeext conftest.$ac_ext
12481 CFLAGS=$ac_wine_try_cflags_saved
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12484 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12485 if test $ac_cv_cflags__Wempty_body = yes; then :
12486 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12489 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12490 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12491 $as_echo_n "(cached) " >&6
12492 else
12493 ac_wine_try_cflags_saved=$CFLAGS
12494 CFLAGS="$CFLAGS -Wignored-qualifiers"
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12497 int main(int argc, char **argv) { return 0; }
12498 _ACEOF
12499 if ac_fn_c_try_link "$LINENO"; then :
12500 ac_cv_cflags__Wignored_qualifiers=yes
12501 else
12502 ac_cv_cflags__Wignored_qualifiers=no
12504 rm -f core conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
12506 CFLAGS=$ac_wine_try_cflags_saved
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12509 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12510 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12511 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12514 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12515 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12516 $as_echo_n "(cached) " >&6
12517 else
12518 ac_wine_try_cflags_saved=$CFLAGS
12519 CFLAGS="$CFLAGS -Wstrict-prototypes"
12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521 /* end confdefs.h. */
12522 int main(int argc, char **argv) { return 0; }
12523 _ACEOF
12524 if ac_fn_c_try_link "$LINENO"; then :
12525 ac_cv_cflags__Wstrict_prototypes=yes
12526 else
12527 ac_cv_cflags__Wstrict_prototypes=no
12529 rm -f core conftest.err conftest.$ac_objext \
12530 conftest$ac_exeext conftest.$ac_ext
12531 CFLAGS=$ac_wine_try_cflags_saved
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12534 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12535 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12536 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12539 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12540 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12541 $as_echo_n "(cached) " >&6
12542 else
12543 ac_wine_try_cflags_saved=$CFLAGS
12544 CFLAGS="$CFLAGS -Wtype-limits"
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12547 int main(int argc, char **argv) { return 0; }
12548 _ACEOF
12549 if ac_fn_c_try_link "$LINENO"; then :
12550 ac_cv_cflags__Wtype_limits=yes
12551 else
12552 ac_cv_cflags__Wtype_limits=no
12554 rm -f core conftest.err conftest.$ac_objext \
12555 conftest$ac_exeext conftest.$ac_ext
12556 CFLAGS=$ac_wine_try_cflags_saved
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12559 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12560 if test $ac_cv_cflags__Wtype_limits = yes; then :
12561 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12564 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12565 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12566 $as_echo_n "(cached) " >&6
12567 else
12568 ac_wine_try_cflags_saved=$CFLAGS
12569 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571 /* end confdefs.h. */
12572 int main(int argc, char **argv) { return 0; }
12573 _ACEOF
12574 if ac_fn_c_try_link "$LINENO"; then :
12575 ac_cv_cflags__Wunused_but_set_parameter=yes
12576 else
12577 ac_cv_cflags__Wunused_but_set_parameter=no
12579 rm -f core conftest.err conftest.$ac_objext \
12580 conftest$ac_exeext conftest.$ac_ext
12581 CFLAGS=$ac_wine_try_cflags_saved
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12584 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12585 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12586 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12589 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12590 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12591 $as_echo_n "(cached) " >&6
12592 else
12593 ac_wine_try_cflags_saved=$CFLAGS
12594 CFLAGS="$CFLAGS -Wwrite-strings"
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597 int main(int argc, char **argv) { return 0; }
12598 _ACEOF
12599 if ac_fn_c_try_link "$LINENO"; then :
12600 ac_cv_cflags__Wwrite_strings=yes
12601 else
12602 ac_cv_cflags__Wwrite_strings=no
12604 rm -f core conftest.err conftest.$ac_objext \
12605 conftest$ac_exeext conftest.$ac_ext
12606 CFLAGS=$ac_wine_try_cflags_saved
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12609 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12610 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12611 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12614 for ac_flag in $CFLAGS; do
12615 case $ac_flag in
12616 -g) case $host_os in
12617 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
12618 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
12619 if ${ac_cv_cflags__gstabsp+:} false; then :
12620 $as_echo_n "(cached) " >&6
12621 else
12622 ac_wine_try_cflags_saved=$CFLAGS
12623 CFLAGS="$CFLAGS -gstabs+"
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h. */
12626 int main(int argc, char **argv) { return 0; }
12627 _ACEOF
12628 if ac_fn_c_try_link "$LINENO"; then :
12629 ac_cv_cflags__gstabsp=yes
12630 else
12631 ac_cv_cflags__gstabsp=no
12633 rm -f core conftest.err conftest.$ac_objext \
12634 conftest$ac_exeext conftest.$ac_ext
12635 CFLAGS=$ac_wine_try_cflags_saved
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
12638 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
12639 if test $ac_cv_cflags__gstabsp = yes; then :
12640 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12641 fi ;;
12642 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
12643 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
12644 if ${ac_cv_cflags__gdwarf_2+:} false; then :
12645 $as_echo_n "(cached) " >&6
12646 else
12647 ac_wine_try_cflags_saved=$CFLAGS
12648 CFLAGS="$CFLAGS -gdwarf-2"
12649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650 /* end confdefs.h. */
12651 int main(int argc, char **argv) { return 0; }
12652 _ACEOF
12653 if ac_fn_c_try_link "$LINENO"; then :
12654 ac_cv_cflags__gdwarf_2=yes
12655 else
12656 ac_cv_cflags__gdwarf_2=no
12658 rm -f core conftest.err conftest.$ac_objext \
12659 conftest$ac_exeext conftest.$ac_ext
12660 CFLAGS=$ac_wine_try_cflags_saved
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
12663 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
12664 if test $ac_cv_cflags__gdwarf_2 = yes; then :
12665 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
12668 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
12669 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
12670 $as_echo_n "(cached) " >&6
12671 else
12672 ac_wine_try_cflags_saved=$CFLAGS
12673 CFLAGS="$CFLAGS -gstrict-dwarf"
12674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675 /* end confdefs.h. */
12676 int main(int argc, char **argv) { return 0; }
12677 _ACEOF
12678 if ac_fn_c_try_link "$LINENO"; then :
12679 ac_cv_cflags__gstrict_dwarf=yes
12680 else
12681 ac_cv_cflags__gstrict_dwarf=no
12683 rm -f core conftest.err conftest.$ac_objext \
12684 conftest$ac_exeext conftest.$ac_ext
12685 CFLAGS=$ac_wine_try_cflags_saved
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
12688 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
12689 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
12690 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
12691 fi ;;
12692 esac ;;
12693 esac
12694 done
12696 case $host_cpu in
12697 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12698 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12699 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12700 $as_echo_n "(cached) " >&6
12701 else
12702 ac_wine_try_cflags_saved=$CFLAGS
12703 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12706 int main(int argc, char **argv) { return 0; }
12707 _ACEOF
12708 if ac_fn_c_try_link "$LINENO"; then :
12709 ac_cv_cflags__fno_omit_frame_pointer=yes
12710 else
12711 ac_cv_cflags__fno_omit_frame_pointer=no
12713 rm -f core conftest.err conftest.$ac_objext \
12714 conftest$ac_exeext conftest.$ac_ext
12715 CFLAGS=$ac_wine_try_cflags_saved
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12718 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12719 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12720 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12721 fi ;;
12722 esac
12724 case $host in
12725 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12726 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12727 if ${ac_cv_cflags__Wno_format+:} false; then :
12728 $as_echo_n "(cached) " >&6
12729 else
12730 ac_wine_try_cflags_saved=$CFLAGS
12731 CFLAGS="$CFLAGS -Wno-format"
12732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12733 /* end confdefs.h. */
12734 int main(int argc, char **argv) { return 0; }
12735 _ACEOF
12736 if ac_fn_c_try_link "$LINENO"; then :
12737 ac_cv_cflags__Wno_format=yes
12738 else
12739 ac_cv_cflags__Wno_format=no
12741 rm -f core conftest.err conftest.$ac_objext \
12742 conftest$ac_exeext conftest.$ac_ext
12743 CFLAGS=$ac_wine_try_cflags_saved
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12746 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12747 if test $ac_cv_cflags__Wno_format = yes; then :
12748 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12749 fi ;;
12750 esac
12752 saved_CFLAGS="$CFLAGS"
12753 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12755 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12756 if ${ac_cv_c_string_h_warnings+:} false; then :
12757 $as_echo_n "(cached) " >&6
12758 else
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12761 #include <string.h>
12763 main ()
12767 return 0;
12769 _ACEOF
12770 if ac_fn_c_try_compile "$LINENO"; then :
12771 ac_cv_c_string_h_warnings=no
12772 else
12773 ac_cv_c_string_h_warnings=yes
12775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12778 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12779 CFLAGS="$saved_CFLAGS"
12780 if test "$ac_cv_c_string_h_warnings" = "no"
12781 then
12782 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12785 saved_CFLAGS="$CFLAGS"
12786 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12788 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12789 if ${ac_cv_c_logicalop_noisy+:} false; then :
12790 $as_echo_n "(cached) " >&6
12791 else
12792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h. */
12794 #include <string.h>
12796 main ()
12798 char*f(const char *h,char n) {return strchr(h,n);}
12800 return 0;
12802 _ACEOF
12803 if ac_fn_c_try_compile "$LINENO"; then :
12804 ac_cv_c_logicalop_noisy=no
12805 else
12806 ac_cv_c_logicalop_noisy=yes
12808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12811 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12812 CFLAGS="$saved_CFLAGS"
12813 if test "$ac_cv_c_logicalop_noisy" = "no"
12814 then
12815 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12818 if test "x$enable_maintainer_mode" = "xyes"
12819 then
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12821 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12822 if ${ac_cv_cflags__Werror+:} false; then :
12823 $as_echo_n "(cached) " >&6
12824 else
12825 ac_wine_try_cflags_saved=$CFLAGS
12826 CFLAGS="$CFLAGS -Werror"
12827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12828 /* end confdefs.h. */
12829 int main(int argc, char **argv) { return 0; }
12830 _ACEOF
12831 if ac_fn_c_try_link "$LINENO"; then :
12832 ac_cv_cflags__Werror=yes
12833 else
12834 ac_cv_cflags__Werror=no
12836 rm -f core conftest.err conftest.$ac_objext \
12837 conftest$ac_exeext conftest.$ac_ext
12838 CFLAGS=$ac_wine_try_cflags_saved
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12841 $as_echo "$ac_cv_cflags__Werror" >&6; }
12842 if test $ac_cv_cflags__Werror = yes; then :
12843 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12847 saved_CFLAGS="$CFLAGS"
12848 CFLAGS="$CFLAGS -Werror"
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12850 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12851 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12852 $as_echo_n "(cached) " >&6
12853 else
12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12856 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12858 main ()
12862 return 0;
12864 _ACEOF
12865 if ac_fn_c_try_compile "$LINENO"; then :
12866 ac_cv_have_ms_hook_prologue="yes"
12867 else
12868 ac_cv_have_ms_hook_prologue="no"
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12873 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12874 CFLAGS="$saved_CFLAGS"
12875 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12876 then
12878 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12880 else
12881 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12888 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12889 if ${ac_cv_c_fortify_enabled+:} false; then :
12890 $as_echo_n "(cached) " >&6
12891 else
12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h. */
12894 #include <string.h>
12896 main ()
12898 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12899 #error Fortify enabled
12900 #endif
12902 return 0;
12904 _ACEOF
12905 if ac_fn_c_try_compile "$LINENO"; then :
12906 ac_cv_c_fortify_enabled=no
12907 else
12908 ac_cv_c_fortify_enabled=yes
12910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12913 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12914 if test "$ac_cv_c_fortify_enabled" = yes
12915 then
12916 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12921 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12922 if ${ac_cv_c_extern_prefix+:} false; then :
12923 $as_echo_n "(cached) " >&6
12924 else
12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h. */
12927 extern int ac_test;
12929 main ()
12931 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12933 return 0;
12935 _ACEOF
12936 if ac_fn_c_try_link "$LINENO"; then :
12937 ac_cv_c_extern_prefix="yes"
12938 else
12939 ac_cv_c_extern_prefix="no"
12941 rm -f core conftest.err conftest.$ac_objext \
12942 conftest$ac_exeext conftest.$ac_ext
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12945 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12947 case $host_cpu in
12948 *i[3456789]86*)
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12950 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12951 if ${ac_cv_c_stdcall_suffix+:} false; then :
12952 $as_echo_n "(cached) " >&6
12953 else
12954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12955 /* end confdefs.h. */
12956 #ifndef _MSC_VER
12957 #define __stdcall __attribute__((__stdcall__))
12958 #endif
12959 int __stdcall ac_test(int i) { return i; }
12961 main ()
12963 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12965 return 0;
12967 _ACEOF
12968 if ac_fn_c_try_link "$LINENO"; then :
12969 ac_cv_c_stdcall_suffix="yes"
12970 else
12971 ac_cv_c_stdcall_suffix="no"
12973 rm -f core conftest.err conftest.$ac_objext \
12974 conftest$ac_exeext conftest.$ac_ext
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12977 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12978 *) ac_cv_c_stdcall_suffix="no" ;;
12979 esac
12982 if test "$ac_cv_c_extern_prefix" = "yes"
12983 then
12984 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12986 asm_name_prefix="_"
12987 else
12988 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12990 asm_name_prefix=""
12994 if test "$ac_cv_c_stdcall_suffix" = "yes"
12995 then
12996 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12998 else
12999 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
13005 $as_echo_n "checking how to define a function in assembly code... " >&6; }
13006 if ${ac_cv_asm_func_def+:} false; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h. */
13013 main ()
13015 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
13017 return 0;
13019 _ACEOF
13020 if ac_fn_c_try_link "$LINENO"; then :
13021 ac_cv_asm_func_def=".def"
13022 else
13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13027 main ()
13029 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
13031 return 0;
13033 _ACEOF
13034 if ac_fn_c_try_link "$LINENO"; then :
13035 ac_cv_asm_func_def=".type @function"
13036 else
13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h. */
13041 main ()
13043 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
13045 return 0;
13047 _ACEOF
13048 if ac_fn_c_try_link "$LINENO"; then :
13049 ac_cv_asm_func_def=".type 2"
13050 else
13051 ac_cv_asm_func_def="unknown"
13053 rm -f core conftest.err conftest.$ac_objext \
13054 conftest$ac_exeext conftest.$ac_ext
13056 rm -f core conftest.err conftest.$ac_objext \
13057 conftest$ac_exeext conftest.$ac_ext
13059 rm -f core conftest.err conftest.$ac_objext \
13060 conftest$ac_exeext conftest.$ac_ext
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
13063 $as_echo "$ac_cv_asm_func_def" >&6; }
13066 case "$ac_cv_asm_func_def" in
13067 ".def")
13068 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
13070 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
13071 ".type @function")
13072 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
13074 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
13075 ".type 2")
13076 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
13078 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
13080 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
13082 asm_func_header="" ;;
13083 esac
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
13086 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
13087 if ${ac_cv_c_asm_outside_funcs+:} false; then :
13088 $as_echo_n "(cached) " >&6
13089 else
13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h. */
13092 asm(".text\n\t.long 0");
13094 main ()
13098 return 0;
13100 _ACEOF
13101 if ac_fn_c_try_compile "$LINENO"; then :
13102 ac_cv_c_asm_outside_funcs="yes"
13103 else
13104 ac_cv_c_asm_outside_funcs="no"
13106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
13109 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
13112 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
13113 if ${ac_cv_c_dot_previous+:} false; then :
13114 $as_echo_n "(cached) " >&6
13115 else
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13120 main ()
13122 asm(".text\nac_test:\t.long 0\n\t.previous");
13124 return 0;
13126 _ACEOF
13127 if ac_fn_c_try_link "$LINENO"; then :
13128 ac_cv_c_dot_previous="yes"
13129 else
13130 ac_cv_c_dot_previous="no"
13132 rm -f core conftest.err conftest.$ac_objext \
13133 conftest$ac_exeext conftest.$ac_ext
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
13136 $as_echo "$ac_cv_c_dot_previous" >&6; }
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
13139 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
13140 if ${ac_cv_c_cfi_support+:} false; then :
13141 $as_echo_n "(cached) " >&6
13142 else
13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13144 /* end confdefs.h. */
13145 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
13147 main ()
13151 return 0;
13153 _ACEOF
13154 if ac_fn_c_try_compile "$LINENO"; then :
13155 ac_cv_c_cfi_support="yes"
13156 else
13157 ac_cv_c_cfi_support="no"
13159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
13162 $as_echo "$ac_cv_c_cfi_support" >&6; }
13164 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
13165 asm_func_trailer=""
13166 if test "$ac_cv_c_dot_previous" = "yes"
13167 then
13168 asm_func_trailer="\\n\\t.previous"
13170 if test "$ac_cv_c_cfi_support" = "yes"
13171 then
13172 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
13173 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
13175 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
13177 UNWINDFLAGS=-fasynchronous-unwind-tables
13179 else
13180 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
13184 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
13187 if test "$ac_cv_c_asm_outside_funcs" = "yes"
13188 then
13189 cat >>confdefs.h <<_ACEOF
13190 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
13191 _ACEOF
13193 else
13194 cat >>confdefs.h <<_ACEOF
13195 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
13196 _ACEOF
13200 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
13203 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
13207 LDPATH=""
13209 case $build_os in
13210 cygwin*|mingw32*)
13211 TOOLSEXT=".exe"
13213 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
13215 darwin*|macosx*)
13218 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
13220 esac
13222 MAIN_BINARY="wine"
13224 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
13226 case $host_os in
13227 linux*)
13228 case $host_cpu in
13229 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
13231 x86_64*) EXTRA_BINARIES="wine64-preloader"
13233 esac
13235 esac
13238 ac_save_CFLAGS="$CFLAGS"
13239 CFLAGS="$CFLAGS $BUILTINFLAG"
13240 for ac_func in \
13241 _finite \
13242 _isnan \
13243 _pclose \
13244 _popen \
13245 _snprintf \
13246 _spawnvp \
13247 _strdup \
13248 _stricmp \
13249 _strnicmp \
13250 _strtoi64 \
13251 _strtoui64 \
13252 _vsnprintf \
13253 asctime_r \
13254 chsize \
13255 dlopen \
13256 epoll_create \
13257 ffs \
13258 finite \
13259 fnmatch \
13260 fork \
13261 fpclass \
13262 fstatfs \
13263 fstatvfs \
13264 ftruncate \
13265 futimens \
13266 futimes \
13267 futimesat \
13268 getattrlist \
13269 getdirentries \
13270 getopt_long_only \
13271 getpwuid \
13272 gettimeofday \
13273 getuid \
13274 kqueue \
13275 lstat \
13276 memmove \
13277 mmap \
13278 pclose \
13279 pipe2 \
13280 poll \
13281 popen \
13282 port_create \
13283 prctl \
13284 pread \
13285 pwrite \
13286 readdir \
13287 readlink \
13288 sched_yield \
13289 select \
13290 setproctitle \
13291 setrlimit \
13292 settimeofday \
13293 sigaltstack \
13294 sigprocmask \
13295 snprintf \
13296 statfs \
13297 statvfs \
13298 strcasecmp \
13299 strdup \
13300 strerror \
13301 strncasecmp \
13302 strtold \
13303 strtoll \
13304 strtoull \
13305 symlink \
13306 tcgetattr \
13307 thr_kill2 \
13308 timegm \
13309 usleep \
13310 vsnprintf
13312 do :
13313 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13314 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13315 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13316 cat >>confdefs.h <<_ACEOF
13317 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13318 _ACEOF
13321 done
13323 CFLAGS="$ac_save_CFLAGS"
13325 if test "$ac_cv_func_dlopen" = no
13326 then
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13328 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13329 if ${ac_cv_lib_dl_dlopen+:} false; then :
13330 $as_echo_n "(cached) " >&6
13331 else
13332 ac_check_lib_save_LIBS=$LIBS
13333 LIBS="-ldl $LIBS"
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13337 /* Override any GCC internal prototype to avoid an error.
13338 Use char because int might match the return type of a GCC
13339 builtin and then its argument prototype would still apply. */
13340 #ifdef __cplusplus
13341 extern "C"
13342 #endif
13343 char dlopen ();
13345 main ()
13347 return dlopen ();
13349 return 0;
13351 _ACEOF
13352 if ac_fn_c_try_link "$LINENO"; then :
13353 ac_cv_lib_dl_dlopen=yes
13354 else
13355 ac_cv_lib_dl_dlopen=no
13357 rm -f core conftest.err conftest.$ac_objext \
13358 conftest$ac_exeext conftest.$ac_ext
13359 LIBS=$ac_check_lib_save_LIBS
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13362 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13363 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13364 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13365 LIBDL="-ldl"
13370 ac_wine_check_funcs_save_LIBS="$LIBS"
13371 LIBS="$LIBS $LIBDL"
13372 for ac_func in dladdr
13373 do :
13374 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
13375 if test "x$ac_cv_func_dladdr" = xyes; then :
13376 cat >>confdefs.h <<_ACEOF
13377 #define HAVE_DLADDR 1
13378 _ACEOF
13381 done
13383 LIBS="$ac_wine_check_funcs_save_LIBS"
13385 if test "$ac_cv_func_poll" = no
13386 then
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
13388 $as_echo_n "checking for poll in -lpoll... " >&6; }
13389 if ${ac_cv_lib_poll_poll+:} false; then :
13390 $as_echo_n "(cached) " >&6
13391 else
13392 ac_check_lib_save_LIBS=$LIBS
13393 LIBS="-lpoll $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 poll ();
13405 main ()
13407 return poll ();
13409 return 0;
13411 _ACEOF
13412 if ac_fn_c_try_link "$LINENO"; then :
13413 ac_cv_lib_poll_poll=yes
13414 else
13415 ac_cv_lib_poll_poll=no
13417 rm -f core conftest.err conftest.$ac_objext \
13418 conftest$ac_exeext conftest.$ac_ext
13419 LIBS=$ac_check_lib_save_LIBS
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
13422 $as_echo "$ac_cv_lib_poll_poll" >&6; }
13423 if test "x$ac_cv_lib_poll_poll" = xyes; then :
13424 $as_echo "#define HAVE_POLL 1" >>confdefs.h
13425 LIBPOLL="-lpoll"
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13432 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13433 if ${ac_cv_search_gethostbyname+:} false; then :
13434 $as_echo_n "(cached) " >&6
13435 else
13436 ac_func_search_save_LIBS=$LIBS
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13440 /* Override any GCC internal prototype to avoid an error.
13441 Use char because int might match the return type of a GCC
13442 builtin and then its argument prototype would still apply. */
13443 #ifdef __cplusplus
13444 extern "C"
13445 #endif
13446 char gethostbyname ();
13448 main ()
13450 return gethostbyname ();
13452 return 0;
13454 _ACEOF
13455 for ac_lib in '' nsl; do
13456 if test -z "$ac_lib"; then
13457 ac_res="none required"
13458 else
13459 ac_res=-l$ac_lib
13460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13462 if ac_fn_c_try_link "$LINENO"; then :
13463 ac_cv_search_gethostbyname=$ac_res
13465 rm -f core conftest.err conftest.$ac_objext \
13466 conftest$ac_exeext
13467 if ${ac_cv_search_gethostbyname+:} false; then :
13468 break
13470 done
13471 if ${ac_cv_search_gethostbyname+:} false; then :
13473 else
13474 ac_cv_search_gethostbyname=no
13476 rm conftest.$ac_ext
13477 LIBS=$ac_func_search_save_LIBS
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13480 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13481 ac_res=$ac_cv_search_gethostbyname
13482 if test "$ac_res" != no; then :
13483 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13489 $as_echo_n "checking for library containing connect... " >&6; }
13490 if ${ac_cv_search_connect+:} false; then :
13491 $as_echo_n "(cached) " >&6
13492 else
13493 ac_func_search_save_LIBS=$LIBS
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13497 /* Override any GCC internal prototype to avoid an error.
13498 Use char because int might match the return type of a GCC
13499 builtin and then its argument prototype would still apply. */
13500 #ifdef __cplusplus
13501 extern "C"
13502 #endif
13503 char connect ();
13505 main ()
13507 return connect ();
13509 return 0;
13511 _ACEOF
13512 for ac_lib in '' socket; do
13513 if test -z "$ac_lib"; then
13514 ac_res="none required"
13515 else
13516 ac_res=-l$ac_lib
13517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13519 if ac_fn_c_try_link "$LINENO"; then :
13520 ac_cv_search_connect=$ac_res
13522 rm -f core conftest.err conftest.$ac_objext \
13523 conftest$ac_exeext
13524 if ${ac_cv_search_connect+:} false; then :
13525 break
13527 done
13528 if ${ac_cv_search_connect+:} false; then :
13530 else
13531 ac_cv_search_connect=no
13533 rm conftest.$ac_ext
13534 LIBS=$ac_func_search_save_LIBS
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13537 $as_echo "$ac_cv_search_connect" >&6; }
13538 ac_res=$ac_cv_search_connect
13539 if test "$ac_res" != no; then :
13540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13546 $as_echo_n "checking for library containing inet_aton... " >&6; }
13547 if ${ac_cv_search_inet_aton+:} false; then :
13548 $as_echo_n "(cached) " >&6
13549 else
13550 ac_func_search_save_LIBS=$LIBS
13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13554 /* Override any GCC internal prototype to avoid an error.
13555 Use char because int might match the return type of a GCC
13556 builtin and then its argument prototype would still apply. */
13557 #ifdef __cplusplus
13558 extern "C"
13559 #endif
13560 char inet_aton ();
13562 main ()
13564 return inet_aton ();
13566 return 0;
13568 _ACEOF
13569 for ac_lib in '' resolv; do
13570 if test -z "$ac_lib"; then
13571 ac_res="none required"
13572 else
13573 ac_res=-l$ac_lib
13574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13576 if ac_fn_c_try_link "$LINENO"; then :
13577 ac_cv_search_inet_aton=$ac_res
13579 rm -f core conftest.err conftest.$ac_objext \
13580 conftest$ac_exeext
13581 if ${ac_cv_search_inet_aton+:} false; then :
13582 break
13584 done
13585 if ${ac_cv_search_inet_aton+:} false; then :
13587 else
13588 ac_cv_search_inet_aton=no
13590 rm conftest.$ac_ext
13591 LIBS=$ac_func_search_save_LIBS
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13594 $as_echo "$ac_cv_search_inet_aton" >&6; }
13595 ac_res=$ac_cv_search_inet_aton
13596 if test "$ac_res" != no; then :
13597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13602 for ac_func in \
13603 getaddrinfo \
13604 getnameinfo \
13605 getnetbyname \
13606 getprotobyname \
13607 getprotobynumber \
13608 getservbyport \
13609 inet_network \
13610 inet_ntop \
13611 inet_pton \
13612 sendmsg \
13613 socketpair \
13615 do :
13616 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13617 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13618 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13619 cat >>confdefs.h <<_ACEOF
13620 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13621 _ACEOF
13624 done
13627 ac_save_LIBS=$LIBS
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13629 $as_echo_n "checking for library containing clock_gettime... " >&6; }
13630 if ${ac_cv_search_clock_gettime+:} false; then :
13631 $as_echo_n "(cached) " >&6
13632 else
13633 ac_func_search_save_LIBS=$LIBS
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13637 /* Override any GCC internal prototype to avoid an error.
13638 Use char because int might match the return type of a GCC
13639 builtin and then its argument prototype would still apply. */
13640 #ifdef __cplusplus
13641 extern "C"
13642 #endif
13643 char clock_gettime ();
13645 main ()
13647 return clock_gettime ();
13649 return 0;
13651 _ACEOF
13652 for ac_lib in '' rt; do
13653 if test -z "$ac_lib"; then
13654 ac_res="none required"
13655 else
13656 ac_res=-l$ac_lib
13657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13659 if ac_fn_c_try_link "$LINENO"; then :
13660 ac_cv_search_clock_gettime=$ac_res
13662 rm -f core conftest.err conftest.$ac_objext \
13663 conftest$ac_exeext
13664 if ${ac_cv_search_clock_gettime+:} false; then :
13665 break
13667 done
13668 if ${ac_cv_search_clock_gettime+:} false; then :
13670 else
13671 ac_cv_search_clock_gettime=no
13673 rm conftest.$ac_ext
13674 LIBS=$ac_func_search_save_LIBS
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13677 $as_echo "$ac_cv_search_clock_gettime" >&6; }
13678 ac_res=$ac_cv_search_clock_gettime
13679 if test "$ac_res" != no; then :
13680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13682 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13684 test "$ac_res" = "none required" || LIBRT="$ac_res"
13688 LIBS=$ac_save_LIBS
13690 LDAPLIBS=""
13692 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13693 then
13694 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13696 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13698 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13699 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13700 $as_echo_n "(cached) " >&6
13701 else
13702 ac_check_lib_save_LIBS=$LIBS
13703 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h. */
13707 /* Override any GCC internal prototype to avoid an error.
13708 Use char because int might match the return type of a GCC
13709 builtin and then its argument prototype would still apply. */
13710 #ifdef __cplusplus
13711 extern "C"
13712 #endif
13713 char ldap_initialize ();
13715 main ()
13717 return ldap_initialize ();
13719 return 0;
13721 _ACEOF
13722 if ac_fn_c_try_link "$LINENO"; then :
13723 ac_cv_lib_ldap_r_ldap_initialize=yes
13724 else
13725 ac_cv_lib_ldap_r_ldap_initialize=no
13727 rm -f core conftest.err conftest.$ac_objext \
13728 conftest$ac_exeext conftest.$ac_ext
13729 LIBS=$ac_check_lib_save_LIBS
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13732 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13733 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13735 $as_echo_n "checking for ber_init in -llber... " >&6; }
13736 if ${ac_cv_lib_lber_ber_init+:} false; then :
13737 $as_echo_n "(cached) " >&6
13738 else
13739 ac_check_lib_save_LIBS=$LIBS
13740 LIBS="-llber $LIBPTHREAD $LIBS"
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13744 /* Override any GCC internal prototype to avoid an error.
13745 Use char because int might match the return type of a GCC
13746 builtin and then its argument prototype would still apply. */
13747 #ifdef __cplusplus
13748 extern "C"
13749 #endif
13750 char ber_init ();
13752 main ()
13754 return ber_init ();
13756 return 0;
13758 _ACEOF
13759 if ac_fn_c_try_link "$LINENO"; then :
13760 ac_cv_lib_lber_ber_init=yes
13761 else
13762 ac_cv_lib_lber_ber_init=no
13764 rm -f core conftest.err conftest.$ac_objext \
13765 conftest$ac_exeext conftest.$ac_ext
13766 LIBS=$ac_check_lib_save_LIBS
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13769 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13770 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13772 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13774 LDAPLIBS="-lldap_r -llber"
13781 ac_wine_check_funcs_save_LIBS="$LIBS"
13782 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13783 for ac_func in \
13784 ldap_count_references \
13785 ldap_first_reference \
13786 ldap_next_reference \
13787 ldap_parse_reference \
13788 ldap_parse_sort_control \
13789 ldap_parse_sortresponse_control \
13790 ldap_parse_vlv_control \
13791 ldap_parse_vlvresponse_control
13792 do :
13793 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13794 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13795 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13796 cat >>confdefs.h <<_ACEOF
13797 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13798 _ACEOF
13801 done
13803 LIBS="$ac_wine_check_funcs_save_LIBS"
13805 if test "x$LDAPLIBS" = "x"; then :
13806 case "x$with_ldap" in
13807 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13808 xno) ;;
13809 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13810 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13811 esac
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13815 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13816 if ${wine_cv_one_arg_mkdir+:} false; then :
13817 $as_echo_n "(cached) " >&6
13818 else
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13821 #include <sys/stat.h>
13823 main ()
13825 mkdir("foo");
13827 return 0;
13829 _ACEOF
13830 if ac_fn_c_try_compile "$LINENO"; then :
13831 wine_cv_one_arg_mkdir=yes
13832 else
13833 wine_cv_one_arg_mkdir=no
13835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13838 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13839 if test "$wine_cv_one_arg_mkdir" = "yes"
13840 then
13842 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13847 $as_echo_n "checking for sched_setaffinity... " >&6; }
13848 if ${wine_cv_have_sched_setaffinity+:} false; then :
13849 $as_echo_n "(cached) " >&6
13850 else
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13853 #define _GNU_SOURCE
13854 #include <sched.h>
13856 main ()
13858 sched_setaffinity(0, 0, 0);
13860 return 0;
13862 _ACEOF
13863 if ac_fn_c_try_link "$LINENO"; then :
13864 wine_cv_have_sched_setaffinity=yes
13865 else
13866 wine_cv_have_sched_setaffinity=no
13868 rm -f core conftest.err conftest.$ac_objext \
13869 conftest$ac_exeext conftest.$ac_ext
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13872 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13873 if test "$wine_cv_have_sched_setaffinity" = "yes"
13874 then
13876 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
13881 $as_echo_n "checking for fallocate... " >&6; }
13882 if ${wine_cv_have_fallocate+:} false; then :
13883 $as_echo_n "(cached) " >&6
13884 else
13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h. */
13887 #define _GNU_SOURCE
13888 #include <fcntl.h>
13890 main ()
13892 fallocate(-1, 0, 0, 0);
13894 return 0;
13896 _ACEOF
13897 if ac_fn_c_try_link "$LINENO"; then :
13898 wine_cv_have_fallocate=yes
13899 else
13900 wine_cv_have_fallocate=no
13902 rm -f core conftest.err conftest.$ac_objext \
13903 conftest$ac_exeext conftest.$ac_ext
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
13906 $as_echo "$wine_cv_have_fallocate" >&6; }
13907 if test "$wine_cv_have_fallocate" = "yes"
13908 then
13910 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13916 $as_echo_n "checking for inline... " >&6; }
13917 if ${ac_cv_c_inline+:} false; then :
13918 $as_echo_n "(cached) " >&6
13919 else
13920 ac_cv_c_inline=no
13921 for ac_kw in inline __inline__ __inline; do
13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h. */
13924 #ifndef __cplusplus
13925 typedef int foo_t;
13926 static $ac_kw foo_t static_foo () {return 0; }
13927 $ac_kw foo_t foo () {return 0; }
13928 #endif
13930 _ACEOF
13931 if ac_fn_c_try_compile "$LINENO"; then :
13932 ac_cv_c_inline=$ac_kw
13934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13935 test "$ac_cv_c_inline" != no && break
13936 done
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13940 $as_echo "$ac_cv_c_inline" >&6; }
13942 case $ac_cv_c_inline in
13943 inline | yes) ;;
13945 case $ac_cv_c_inline in
13946 no) ac_val=;;
13947 *) ac_val=$ac_cv_c_inline;;
13948 esac
13949 cat >>confdefs.h <<_ACEOF
13950 #ifndef __cplusplus
13951 #define inline $ac_val
13952 #endif
13953 _ACEOF
13955 esac
13957 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13958 if test "x$ac_cv_type_mode_t" = xyes; then :
13960 cat >>confdefs.h <<_ACEOF
13961 #define HAVE_MODE_T 1
13962 _ACEOF
13966 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13967 if test "x$ac_cv_type_off_t" = xyes; then :
13969 cat >>confdefs.h <<_ACEOF
13970 #define HAVE_OFF_T 1
13971 _ACEOF
13975 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13976 if test "x$ac_cv_type_pid_t" = xyes; then :
13978 cat >>confdefs.h <<_ACEOF
13979 #define HAVE_PID_T 1
13980 _ACEOF
13984 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13985 if test "x$ac_cv_type_size_t" = xyes; then :
13987 cat >>confdefs.h <<_ACEOF
13988 #define HAVE_SIZE_T 1
13989 _ACEOF
13993 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13994 if test "x$ac_cv_type_ssize_t" = xyes; then :
13996 cat >>confdefs.h <<_ACEOF
13997 #define HAVE_SSIZE_T 1
13998 _ACEOF
14002 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
14003 if test "x$ac_cv_type_long_long" = xyes; then :
14005 cat >>confdefs.h <<_ACEOF
14006 #define HAVE_LONG_LONG 1
14007 _ACEOF
14011 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
14012 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
14014 cat >>confdefs.h <<_ACEOF
14015 #define HAVE_FSBLKCNT_T 1
14016 _ACEOF
14020 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
14021 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
14023 cat >>confdefs.h <<_ACEOF
14024 #define HAVE_FSFILCNT_T 1
14025 _ACEOF
14030 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
14031 #include <signal.h>
14033 if test "x$ac_cv_type_sigset_t" = xyes; then :
14035 cat >>confdefs.h <<_ACEOF
14036 #define HAVE_SIGSET_T 1
14037 _ACEOF
14042 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
14044 if test "x$ac_cv_type_request_sense" = xyes; then :
14046 cat >>confdefs.h <<_ACEOF
14047 #define HAVE_REQUEST_SENSE 1
14048 _ACEOF
14054 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
14055 #ifdef HAVE_SYS_SOCKET_H
14056 #include <sys/socket.h>
14057 #endif
14058 #ifdef HAVE_SYS_SOCKETVAR_H
14059 #include <sys/socketvar.h>
14060 #endif
14061 #ifdef HAVE_NET_ROUTE_H
14062 #include <net/route.h>
14063 #endif
14064 #ifdef HAVE_NETINET_IN_H
14065 #include <netinet/in.h>
14066 #endif
14067 #ifdef HAVE_NETINET_IN_SYSTM_H
14068 #include <netinet/in_systm.h>
14069 #endif
14070 #ifdef HAVE_NETINET_IP_H
14071 #include <netinet/ip.h>
14072 #endif
14073 #ifdef HAVE_NETINET_IN_PCB_H
14074 #include <netinet/in_pcb.h>
14075 #endif
14077 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
14079 cat >>confdefs.h <<_ACEOF
14080 #define HAVE_STRUCT_XINPGEN 1
14081 _ACEOF
14087 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
14088 #include <linux/input.h>
14089 #endif
14091 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
14093 cat >>confdefs.h <<_ACEOF
14094 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
14095 _ACEOF
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
14102 $as_echo_n "checking for sigaddset... " >&6; }
14103 if ${wine_cv_have_sigaddset+:} false; then :
14104 $as_echo_n "(cached) " >&6
14105 else
14106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107 /* end confdefs.h. */
14108 #include <signal.h>
14110 main ()
14112 sigset_t set; sigaddset(&set,SIGTERM);
14114 return 0;
14116 _ACEOF
14117 if ac_fn_c_try_link "$LINENO"; then :
14118 wine_cv_have_sigaddset=yes
14119 else
14120 wine_cv_have_sigaddset=no
14122 rm -f core conftest.err conftest.$ac_objext \
14123 conftest$ac_exeext conftest.$ac_ext
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
14126 $as_echo "$wine_cv_have_sigaddset" >&6; }
14127 if test "$wine_cv_have_sigaddset" = "yes"
14128 then
14130 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
14136 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
14137 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
14138 $as_echo_n "(cached) " >&6
14139 else
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h. */
14142 #include <netdb.h>
14144 main ()
14147 char *name=0;
14148 struct hostent he;
14149 struct hostent *result;
14150 char *buf=0;
14151 int bufsize=0;
14152 int errnr;
14153 char *addr=0;
14154 int addrlen=0;
14155 int addrtype=0;
14156 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14157 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
14160 return 0;
14162 _ACEOF
14163 if ac_fn_c_try_link "$LINENO"; then :
14164 wine_cv_linux_gethostbyname_r_6=yes
14165 else
14166 wine_cv_linux_gethostbyname_r_6=no
14169 rm -f core conftest.err conftest.$ac_objext \
14170 conftest$ac_exeext conftest.$ac_ext
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
14174 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
14175 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14176 then
14178 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
14182 if test "$ac_cv_header_linux_joystick_h" = "yes"
14183 then
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
14185 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
14186 if ${wine_cv_linux_joystick_22_api+:} false; then :
14187 $as_echo_n "(cached) " >&6
14188 else
14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h. */
14192 #include <sys/ioctl.h>
14193 #include <sys/types.h>
14194 #include <linux/joystick.h>
14196 struct js_event blub;
14197 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14198 #error "no 2.2 header"
14199 #endif
14202 main ()
14204 /*empty*/
14206 return 0;
14208 _ACEOF
14209 if ac_fn_c_try_compile "$LINENO"; then :
14210 wine_cv_linux_joystick_22_api=yes
14211 else
14212 wine_cv_linux_joystick_22_api=no
14214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
14218 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
14219 if test "$wine_cv_linux_joystick_22_api" = "yes"
14220 then
14222 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
14228 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
14229 #ifdef HAVE_SYS_PARAM_H
14230 # include <sys/param.h>
14231 #endif
14232 #ifdef HAVE_SYS_MOUNT_H
14233 # include <sys/mount.h>
14234 #endif
14235 #ifdef HAVE_SYS_VFS_H
14236 # include <sys/vfs.h>
14237 #endif
14238 #ifdef HAVE_SYS_STATFS_H
14239 # include <sys/statfs.h>
14240 #endif
14242 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
14244 cat >>confdefs.h <<_ACEOF
14245 #define HAVE_STRUCT_STATFS_F_BFREE 1
14246 _ACEOF
14250 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
14251 #ifdef HAVE_SYS_PARAM_H
14252 # include <sys/param.h>
14253 #endif
14254 #ifdef HAVE_SYS_MOUNT_H
14255 # include <sys/mount.h>
14256 #endif
14257 #ifdef HAVE_SYS_VFS_H
14258 # include <sys/vfs.h>
14259 #endif
14260 #ifdef HAVE_SYS_STATFS_H
14261 # include <sys/statfs.h>
14262 #endif
14264 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
14266 cat >>confdefs.h <<_ACEOF
14267 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
14268 _ACEOF
14272 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
14273 #ifdef HAVE_SYS_PARAM_H
14274 # include <sys/param.h>
14275 #endif
14276 #ifdef HAVE_SYS_MOUNT_H
14277 # include <sys/mount.h>
14278 #endif
14279 #ifdef HAVE_SYS_VFS_H
14280 # include <sys/vfs.h>
14281 #endif
14282 #ifdef HAVE_SYS_STATFS_H
14283 # include <sys/statfs.h>
14284 #endif
14286 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
14288 cat >>confdefs.h <<_ACEOF
14289 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
14290 _ACEOF
14294 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
14295 #ifdef HAVE_SYS_PARAM_H
14296 # include <sys/param.h>
14297 #endif
14298 #ifdef HAVE_SYS_MOUNT_H
14299 # include <sys/mount.h>
14300 #endif
14301 #ifdef HAVE_SYS_VFS_H
14302 # include <sys/vfs.h>
14303 #endif
14304 #ifdef HAVE_SYS_STATFS_H
14305 # include <sys/statfs.h>
14306 #endif
14308 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
14310 cat >>confdefs.h <<_ACEOF
14311 #define HAVE_STRUCT_STATFS_F_FFREE 1
14312 _ACEOF
14316 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
14317 #ifdef HAVE_SYS_PARAM_H
14318 # include <sys/param.h>
14319 #endif
14320 #ifdef HAVE_SYS_MOUNT_H
14321 # include <sys/mount.h>
14322 #endif
14323 #ifdef HAVE_SYS_VFS_H
14324 # include <sys/vfs.h>
14325 #endif
14326 #ifdef HAVE_SYS_STATFS_H
14327 # include <sys/statfs.h>
14328 #endif
14330 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
14332 cat >>confdefs.h <<_ACEOF
14333 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
14334 _ACEOF
14338 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
14339 #ifdef HAVE_SYS_PARAM_H
14340 # include <sys/param.h>
14341 #endif
14342 #ifdef HAVE_SYS_MOUNT_H
14343 # include <sys/mount.h>
14344 #endif
14345 #ifdef HAVE_SYS_VFS_H
14346 # include <sys/vfs.h>
14347 #endif
14348 #ifdef HAVE_SYS_STATFS_H
14349 # include <sys/statfs.h>
14350 #endif
14352 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
14354 cat >>confdefs.h <<_ACEOF
14355 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
14356 _ACEOF
14362 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
14363 #include <sys/statvfs.h>
14364 #endif
14366 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
14368 cat >>confdefs.h <<_ACEOF
14369 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
14370 _ACEOF
14376 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
14377 #include <dirent.h>
14378 #endif
14380 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
14382 cat >>confdefs.h <<_ACEOF
14383 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
14384 _ACEOF
14390 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
14391 #ifdef HAVE_SYS_SOCKET_H
14392 # include <sys/socket.h>
14393 #endif
14394 #ifdef HAVE_SYS_UN_H
14395 # include <sys/un.h>
14396 #endif
14398 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
14400 cat >>confdefs.h <<_ACEOF
14401 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
14402 _ACEOF
14406 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14407 #ifdef HAVE_SYS_SOCKET_H
14408 # include <sys/socket.h>
14409 #endif
14410 #ifdef HAVE_SYS_UN_H
14411 # include <sys/un.h>
14412 #endif
14414 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14416 cat >>confdefs.h <<_ACEOF
14417 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14418 _ACEOF
14422 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
14423 #ifdef HAVE_SYS_SOCKET_H
14424 # include <sys/socket.h>
14425 #endif
14426 #ifdef HAVE_SYS_UN_H
14427 # include <sys/un.h>
14428 #endif
14430 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
14432 cat >>confdefs.h <<_ACEOF
14433 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
14434 _ACEOF
14440 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
14441 #ifdef HAVE_SCSI_SG_H
14442 #include <scsi/sg.h>
14443 #endif
14445 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
14447 cat >>confdefs.h <<_ACEOF
14448 #define HAVE_SCSIREQ_T_CMD 1
14449 _ACEOF
14453 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>
14454 #ifdef HAVE_SCSI_SG_H
14455 #include <scsi/sg.h>
14456 #endif
14458 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
14460 cat >>confdefs.h <<_ACEOF
14461 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
14462 _ACEOF
14468 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14470 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
14472 cat >>confdefs.h <<_ACEOF
14473 #define HAVE_SIGINFO_T_SI_FD 1
14474 _ACEOF
14480 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14481 #ifdef HAVE_SYS_MTIO_H
14482 #include <sys/mtio.h>
14483 #endif
14485 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14487 cat >>confdefs.h <<_ACEOF
14488 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14489 _ACEOF
14493 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14494 #ifdef HAVE_SYS_MTIO_H
14495 #include <sys/mtio.h>
14496 #endif
14498 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14500 cat >>confdefs.h <<_ACEOF
14501 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14502 _ACEOF
14506 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14507 #ifdef HAVE_SYS_MTIO_H
14508 #include <sys/mtio.h>
14509 #endif
14511 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14513 cat >>confdefs.h <<_ACEOF
14514 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14515 _ACEOF
14521 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14522 #include <getopt.h>
14523 #endif
14525 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14527 cat >>confdefs.h <<_ACEOF
14528 #define HAVE_STRUCT_OPTION_NAME 1
14529 _ACEOF
14535 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14536 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14538 cat >>confdefs.h <<_ACEOF
14539 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14540 _ACEOF
14544 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14545 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14547 cat >>confdefs.h <<_ACEOF
14548 #define HAVE_STRUCT_STAT_ST_MTIM 1
14549 _ACEOF
14553 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
14554 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
14556 cat >>confdefs.h <<_ACEOF
14557 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
14558 _ACEOF
14562 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14563 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14565 cat >>confdefs.h <<_ACEOF
14566 #define HAVE_STRUCT_STAT_ST_CTIM 1
14567 _ACEOF
14571 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
14572 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
14574 cat >>confdefs.h <<_ACEOF
14575 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
14576 _ACEOF
14580 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14581 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14583 cat >>confdefs.h <<_ACEOF
14584 #define HAVE_STRUCT_STAT_ST_ATIM 1
14585 _ACEOF
14589 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
14590 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
14592 cat >>confdefs.h <<_ACEOF
14593 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
14594 _ACEOF
14598 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
14599 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
14601 cat >>confdefs.h <<_ACEOF
14602 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
14603 _ACEOF
14607 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
14608 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
14610 cat >>confdefs.h <<_ACEOF
14611 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
14612 _ACEOF
14616 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
14617 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
14619 cat >>confdefs.h <<_ACEOF
14620 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
14621 _ACEOF
14625 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
14626 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
14628 cat >>confdefs.h <<_ACEOF
14629 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
14630 _ACEOF
14634 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
14635 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
14637 cat >>confdefs.h <<_ACEOF
14638 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
14639 _ACEOF
14645 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
14646 #include <sys/types.h>
14647 #endif
14648 #ifdef HAVE_NETINET_IN_H
14649 #include <netinet/in.h>
14650 #endif
14652 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14654 cat >>confdefs.h <<_ACEOF
14655 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14656 _ACEOF
14662 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14663 #include <sys/types.h>
14664 #endif
14665 #ifdef HAVE_NETINET_IN_H
14666 # include <netinet/in.h>
14667 #endif
14668 #ifdef HAVE_ARPA_NAMESER_H
14669 # include <arpa/nameser.h>
14670 #endif
14672 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14674 cat >>confdefs.h <<_ACEOF
14675 #define HAVE_NS_MSG__MSG_PTR 1
14676 _ACEOF
14682 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
14683 #include <sys/types.h>
14684 #endif
14685 #ifdef HAVE_NETINET_IP_H
14686 #include <netinet/ip.h>
14687 #endif
14688 #ifdef HAVE_NETINET_IP_ICMP_H
14689 #include <netinet/ip_icmp.h>
14690 #endif
14691 #ifdef HAVE_NETINET_ICMP_VAR_H
14692 #include <netinet/icmp_var.h>
14693 #endif
14695 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
14697 cat >>confdefs.h <<_ACEOF
14698 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
14699 _ACEOF
14705 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14706 #include <sys/types.h>
14707 #endif
14708 #ifdef HAVE_ALIAS_H
14709 #include <alias.h>
14710 #endif
14711 #ifdef HAVE_SYS_SOCKET_H
14712 #include <sys/socket.h>
14713 #endif
14714 #ifdef HAVE_SYS_SOCKETVAR_H
14715 #include <sys/socketvar.h>
14716 #endif
14717 #ifdef HAVE_SYS_TIMEOUT_H
14718 #include <sys/timeout.h>
14719 #endif
14720 #ifdef HAVE_NETINET_IN_H
14721 #include <netinet/in.h>
14722 #endif
14723 #ifdef HAVE_NETINET_IN_SYSTM_H
14724 #include <netinet/in_systm.h>
14725 #endif
14726 #ifdef HAVE_NETINET_IP_H
14727 #include <netinet/ip.h>
14728 #endif
14729 #ifdef HAVE_NETINET_IP_VAR_H
14730 #include <netinet/ip_var.h>
14731 #endif
14732 #ifdef HAVE_NETINET_IP_ICMP_H
14733 #include <netinet/ip_icmp.h>
14734 #endif
14735 #ifdef HAVE_NETINET_ICMP_VAR_H
14736 #include <netinet/icmp_var.h>
14737 #endif
14739 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14741 cat >>confdefs.h <<_ACEOF
14742 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14743 _ACEOF
14749 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
14750 #include <sys/types.h>
14751 #endif
14752 #ifdef HAVE_SYS_SOCKETVAR_H
14753 #include <sys/socketvar.h>
14754 #endif
14755 #ifdef HAVE_NETINET_IN_H
14756 #include <netinet/in.h>
14757 #endif
14758 #ifdef HAVE_NETINET_IP_VAR_H
14759 #include <netinet/ip_var.h>
14760 #endif
14762 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
14764 cat >>confdefs.h <<_ACEOF
14765 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
14766 _ACEOF
14772 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
14773 #include <netinet/ip_var.h>
14774 #endif
14776 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
14778 cat >>confdefs.h <<_ACEOF
14779 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
14780 _ACEOF
14786 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
14787 #include <sys/types.h>
14788 #endif
14789 #ifdef HAVE_SYS_SOCKETVAR_H
14790 #include <sys/socketvar.h>
14791 #endif
14792 #ifdef HAVE_NETINET_IN_H
14793 #include <netinet/in.h>
14794 #endif
14795 #ifdef HAVE_NETINET_TCP_H
14796 #include <netinet/tcp.h>
14797 #endif
14798 #ifdef HAVE_NETINET_TCP_VAR_H
14799 #include <netinet/tcp_var.h>
14800 #endif
14802 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
14804 cat >>confdefs.h <<_ACEOF
14805 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
14806 _ACEOF
14812 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
14813 #include <netinet/tcp_var.h>
14814 #endif
14816 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
14818 cat >>confdefs.h <<_ACEOF
14819 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
14820 _ACEOF
14826 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
14827 #include <sys/types.h>
14828 #endif
14829 #ifdef HAVE_NETINET_IN_H
14830 #include <netinet/in.h>
14831 #endif
14832 #ifdef HAVE_NETINET_IP_VAR_H
14833 #include <netinet/ip_var.h>
14834 #endif
14835 #ifdef HAVE_NETINET_UDP_H
14836 #include <netinet/udp.h>
14837 #endif
14838 #ifdef HAVE_NETINET_UDP_VAR_H
14839 #include <netinet/udp_var.h>
14840 #endif
14842 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
14844 cat >>confdefs.h <<_ACEOF
14845 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
14846 _ACEOF
14852 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14853 #include <sys/types.h>
14854 #endif
14855 #ifdef HAVE_NET_IF_H
14856 # include <net/if.h>
14857 #endif
14859 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14861 cat >>confdefs.h <<_ACEOF
14862 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14863 _ACEOF
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14870 $as_echo_n "checking for timezone variable... " >&6; }
14871 if ${ac_cv_have_timezone+:} false; then :
14872 $as_echo_n "(cached) " >&6
14873 else
14874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875 /* end confdefs.h. */
14876 #include <time.h>
14878 main ()
14880 timezone = 1
14882 return 0;
14884 _ACEOF
14885 if ac_fn_c_try_link "$LINENO"; then :
14886 ac_cv_have_timezone="yes"
14887 else
14888 ac_cv_have_timezone="no"
14890 rm -f core conftest.err conftest.$ac_objext \
14891 conftest$ac_exeext conftest.$ac_ext
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14894 $as_echo "$ac_cv_have_timezone" >&6; }
14895 if test "$ac_cv_have_timezone" = "yes"
14896 then
14898 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14902 $as_echo_n "checking for daylight variable... " >&6; }
14903 if ${ac_cv_have_daylight+:} false; then :
14904 $as_echo_n "(cached) " >&6
14905 else
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14908 #include <time.h>
14910 main ()
14912 daylight = 1
14914 return 0;
14916 _ACEOF
14917 if ac_fn_c_try_link "$LINENO"; then :
14918 ac_cv_have_daylight="yes"
14919 else
14920 ac_cv_have_daylight="no"
14922 rm -f core conftest.err conftest.$ac_objext \
14923 conftest$ac_exeext conftest.$ac_ext
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14926 $as_echo "$ac_cv_have_daylight" >&6; }
14927 if test "$ac_cv_have_daylight" = "yes"
14928 then
14930 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14934 ac_save_LIBS="$LIBS"
14935 LIBS="$LIBS -lm"
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14937 $as_echo_n "checking for isinf... " >&6; }
14938 if ${ac_cv_have_isinf+:} false; then :
14939 $as_echo_n "(cached) " >&6
14940 else
14941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14942 /* end confdefs.h. */
14943 #include <math.h>
14945 main ()
14947 float f = 0.0; return isinf(f)
14949 return 0;
14951 _ACEOF
14952 if ac_fn_c_try_link "$LINENO"; then :
14953 ac_cv_have_isinf="yes"
14954 else
14955 ac_cv_have_isinf="no"
14957 rm -f core conftest.err conftest.$ac_objext \
14958 conftest$ac_exeext conftest.$ac_ext
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14961 $as_echo "$ac_cv_have_isinf" >&6; }
14962 if test "$ac_cv_have_isinf" = "yes"
14963 then
14965 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14970 $as_echo_n "checking for isnan... " >&6; }
14971 if ${ac_cv_have_isnan+:} false; then :
14972 $as_echo_n "(cached) " >&6
14973 else
14974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14975 /* end confdefs.h. */
14976 #include <math.h>
14978 main ()
14980 float f = 0.0; return isnan(f)
14982 return 0;
14984 _ACEOF
14985 if ac_fn_c_try_link "$LINENO"; then :
14986 ac_cv_have_isnan="yes"
14987 else
14988 ac_cv_have_isnan="no"
14990 rm -f core conftest.err conftest.$ac_objext \
14991 conftest$ac_exeext conftest.$ac_ext
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14994 $as_echo "$ac_cv_have_isnan" >&6; }
14995 if test "$ac_cv_have_isnan" = "yes"
14996 then
14998 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
15001 LIBS="$ac_save_LIBS"
15004 case $host_cpu in
15005 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
15006 $as_echo_n "checking whether we need to define __i386__... " >&6; }
15007 if ${ac_cv_cpp_def___i386__+:} false; then :
15008 $as_echo_n "(cached) " >&6
15009 else
15010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h. */
15012 #ifndef __i386__
15014 #endif
15015 _ACEOF
15016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15017 $EGREP "yes" >/dev/null 2>&1; then :
15018 ac_cv_cpp_def___i386__=yes
15019 else
15020 ac_cv_cpp_def___i386__=no
15022 rm -f conftest*
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
15026 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
15027 if test $ac_cv_cpp_def___i386__ = yes; then :
15028 CFLAGS="$CFLAGS -D__i386__"
15029 LINTFLAGS="$LINTFLAGS -D__i386__"
15030 fi ;;
15031 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
15032 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
15033 if ${ac_cv_cpp_def___x86_64__+:} false; then :
15034 $as_echo_n "(cached) " >&6
15035 else
15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15038 #ifndef __x86_64__
15040 #endif
15041 _ACEOF
15042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15043 $EGREP "yes" >/dev/null 2>&1; then :
15044 ac_cv_cpp_def___x86_64__=yes
15045 else
15046 ac_cv_cpp_def___x86_64__=no
15048 rm -f conftest*
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
15052 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
15053 if test $ac_cv_cpp_def___x86_64__ = yes; then :
15054 CFLAGS="$CFLAGS -D__x86_64__"
15055 LINTFLAGS="$LINTFLAGS -D__x86_64__"
15056 fi ;;
15057 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
15058 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
15059 if ${ac_cv_cpp_def___sparc64__+:} false; then :
15060 $as_echo_n "(cached) " >&6
15061 else
15062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15063 /* end confdefs.h. */
15064 #ifndef __sparc64__
15066 #endif
15067 _ACEOF
15068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15069 $EGREP "yes" >/dev/null 2>&1; then :
15070 ac_cv_cpp_def___sparc64__=yes
15071 else
15072 ac_cv_cpp_def___sparc64__=no
15074 rm -f conftest*
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
15078 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
15079 if test $ac_cv_cpp_def___sparc64__ = yes; then :
15080 CFLAGS="$CFLAGS -D__sparc64__"
15081 LINTFLAGS="$LINTFLAGS -D__sparc64__"
15082 fi ;;
15083 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
15084 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
15085 if ${ac_cv_cpp_def___sparc__+:} false; then :
15086 $as_echo_n "(cached) " >&6
15087 else
15088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089 /* end confdefs.h. */
15090 #ifndef __sparc__
15092 #endif
15093 _ACEOF
15094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15095 $EGREP "yes" >/dev/null 2>&1; then :
15096 ac_cv_cpp_def___sparc__=yes
15097 else
15098 ac_cv_cpp_def___sparc__=no
15100 rm -f conftest*
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
15104 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
15105 if test $ac_cv_cpp_def___sparc__ = yes; then :
15106 CFLAGS="$CFLAGS -D__sparc__"
15107 LINTFLAGS="$LINTFLAGS -D__sparc__"
15108 fi ;;
15109 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
15110 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
15111 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
15112 $as_echo_n "(cached) " >&6
15113 else
15114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115 /* end confdefs.h. */
15116 #ifndef __powerpc64__
15118 #endif
15119 _ACEOF
15120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15121 $EGREP "yes" >/dev/null 2>&1; then :
15122 ac_cv_cpp_def___powerpc64__=yes
15123 else
15124 ac_cv_cpp_def___powerpc64__=no
15126 rm -f conftest*
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
15130 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
15131 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
15132 CFLAGS="$CFLAGS -D__powerpc64__"
15133 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
15134 fi ;;
15135 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
15136 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
15137 if ${ac_cv_cpp_def___powerpc__+:} false; then :
15138 $as_echo_n "(cached) " >&6
15139 else
15140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15141 /* end confdefs.h. */
15142 #ifndef __powerpc__
15144 #endif
15145 _ACEOF
15146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15147 $EGREP "yes" >/dev/null 2>&1; then :
15148 ac_cv_cpp_def___powerpc__=yes
15149 else
15150 ac_cv_cpp_def___powerpc__=no
15152 rm -f conftest*
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
15156 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
15157 if test $ac_cv_cpp_def___powerpc__ = yes; then :
15158 CFLAGS="$CFLAGS -D__powerpc__"
15159 LINTFLAGS="$LINTFLAGS -D__powerpc__"
15160 fi ;;
15161 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
15162 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
15163 if ${ac_cv_cpp_def___aarch64__+:} false; then :
15164 $as_echo_n "(cached) " >&6
15165 else
15166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167 /* end confdefs.h. */
15168 #ifndef __aarch64__
15170 #endif
15171 _ACEOF
15172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15173 $EGREP "yes" >/dev/null 2>&1; then :
15174 ac_cv_cpp_def___aarch64__=yes
15175 else
15176 ac_cv_cpp_def___aarch64__=no
15178 rm -f conftest*
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
15182 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
15183 if test $ac_cv_cpp_def___aarch64__ = yes; then :
15184 CFLAGS="$CFLAGS -D__aarch64__"
15185 LINTFLAGS="$LINTFLAGS -D__aarch64__"
15186 fi ;;
15187 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
15188 $as_echo_n "checking whether we need to define __arm__... " >&6; }
15189 if ${ac_cv_cpp_def___arm__+:} false; then :
15190 $as_echo_n "(cached) " >&6
15191 else
15192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15193 /* end confdefs.h. */
15194 #ifndef __arm__
15196 #endif
15197 _ACEOF
15198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15199 $EGREP "yes" >/dev/null 2>&1; then :
15200 ac_cv_cpp_def___arm__=yes
15201 else
15202 ac_cv_cpp_def___arm__=no
15204 rm -f conftest*
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
15208 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
15209 if test $ac_cv_cpp_def___arm__ = yes; then :
15210 CFLAGS="$CFLAGS -D__arm__"
15211 LINTFLAGS="$LINTFLAGS -D__arm__"
15212 fi ;;
15213 esac
15215 case $host_vendor in
15216 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
15217 $as_echo_n "checking whether we need to define __sun__... " >&6; }
15218 if ${ac_cv_cpp_def___sun__+:} false; then :
15219 $as_echo_n "(cached) " >&6
15220 else
15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h. */
15223 #ifndef __sun__
15225 #endif
15226 _ACEOF
15227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15228 $EGREP "yes" >/dev/null 2>&1; then :
15229 ac_cv_cpp_def___sun__=yes
15230 else
15231 ac_cv_cpp_def___sun__=no
15233 rm -f conftest*
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
15237 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
15238 if test $ac_cv_cpp_def___sun__ = yes; then :
15239 CFLAGS="$CFLAGS -D__sun__"
15240 LINTFLAGS="$LINTFLAGS -D__sun__"
15241 fi ;;
15242 esac
15248 ac_config_commands="$ac_config_commands include/stamp-h"
15251 ALL_MAKEFILE_DEPENDS="
15252 # Rules automatically generated by configure
15254 .INIT: Makefile
15255 .MAKEFILEDEPS:
15256 all: Makefile
15257 Makefile: Makefile.in Make.vars.in Make.rules config.status
15258 @./config.status Make.tmp Makefile"
15260 ALL_POT_FILES=""
15261 ALL_TEST_RESOURCES=""
15264 wine_fn_append_file ()
15266 as_fn_append $1 " \\$as_nl $2"
15269 wine_fn_append_rule ()
15271 as_fn_append $1 "$as_nl$2"
15274 wine_fn_has_flag ()
15276 expr ",$2," : ".*,$1,.*" >/dev/null
15279 wine_fn_all_dir_rules ()
15281 ac_dir=$1
15282 ac_alldeps=$2
15283 ac_makedep="\$(MAKEDEP)"
15284 ac_input=Make.vars.in:$ac_dir/Makefile.in
15285 if test $ac_dir != tools
15286 then
15287 ac_alldeps="$2 $ac_makedep"
15288 else
15289 ac_alldeps="$2 include/config.h"
15291 case $2 in
15292 *.in) ac_input=$ac_input:$2 ;;
15293 *) ac_makedep="$2 $ac_makedep" ;;
15294 esac
15296 wine_fn_append_file ALL_DIRS $ac_dir
15297 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15298 "__clean__: $ac_dir/__clean__
15299 .PHONY: $ac_dir/__clean__
15300 $ac_dir/__clean__: $ac_dir/Makefile
15301 @cd $ac_dir && \$(MAKE) clean
15302 \$(RM) $ac_dir/Makefile
15303 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
15304 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
15305 depend: $ac_dir/__depend__
15306 .PHONY: $ac_dir/__depend__
15307 $ac_dir/__depend__: $ac_makedep dummy
15308 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
15311 wine_fn_pot_rules ()
15313 ac_dir=$1
15314 ac_flags=$2
15316 test "x$with_gettextpo" = xyes || return
15318 if wine_fn_has_flag mc $ac_flags
15319 then
15320 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
15321 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15322 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
15323 @cd $ac_dir && \$(MAKE) msg.pot
15324 $ac_dir/msg.pot: tools/wmc include"
15326 if wine_fn_has_flag po $ac_flags
15327 then
15328 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
15329 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15330 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
15331 @cd $ac_dir && \$(MAKE) rsrc.pot
15332 $ac_dir/rsrc.pot: tools/wrc include"
15336 wine_fn_config_makefile ()
15338 ac_dir=$1
15339 ac_enable=$2
15340 ac_flags=$3
15341 ac_rules=$4
15342 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15343 return 0
15346 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
15347 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15348 "all: $ac_dir
15349 .PHONY: $ac_dir
15350 $ac_dir: $ac_dir/Makefile dummy
15351 @cd $ac_dir && \$(MAKE)"
15353 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
15355 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15356 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15357 $ac_dir/__install__:: $ac_dir
15358 @cd $ac_dir && \$(MAKE) install
15359 $ac_dir/__uninstall__:: $ac_dir/Makefile
15360 @cd $ac_dir && \$(MAKE) uninstall
15361 install:: $ac_dir/__install__
15362 __uninstall__: $ac_dir/__uninstall__"
15364 if wine_fn_has_flag install-lib $ac_flags
15365 then
15366 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15367 ".PHONY: $ac_dir/__install-lib__
15368 $ac_dir/__install-lib__:: $ac_dir
15369 @cd $ac_dir && \$(MAKE) install-lib
15370 install-lib:: $ac_dir/__install-lib__"
15373 if wine_fn_has_flag install-dev $ac_flags
15374 then
15375 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15376 ".PHONY: $ac_dir/__install-dev
15377 $ac_dir/__install-dev__:: $ac_dir
15378 @cd $ac_dir && \$(MAKE) install-dev
15379 install-dev:: $ac_dir/__install-dev__"
15383 wine_fn_config_lib ()
15385 ac_name=$1
15386 ac_flags=$2
15387 ac_dir=dlls/$ac_name
15388 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
15390 if wine_fn_has_flag install-dev $ac_flags
15391 then :
15392 else
15393 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15394 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15395 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
15396 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15397 $ac_dir/__uninstall__::
15398 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15399 install install-dev:: $ac_dir/__install__
15400 __uninstall__: $ac_dir/__uninstall__"
15403 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
15404 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
15407 wine_fn_config_dll ()
15409 ac_name=$1
15410 ac_dir=dlls/$ac_name
15411 ac_enable=$2
15412 ac_flags=$3
15413 ac_implib=${4:-$ac_name}
15414 ac_file=$ac_dir/lib$ac_implib
15415 ac_dll=$ac_name
15416 ac_deps="tools/widl tools/winebuild tools/winegcc include"
15417 ac_implibflags=""
15419 case $ac_name in
15420 *16) ac_implibflags=" -m16" ;;
15421 *.*) ;;
15422 *) ac_dll=$ac_dll.dll ;;
15423 esac
15425 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
15427 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15428 test "$ac_enable" != enable_win16 || return 0
15429 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
15430 else
15431 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15432 "$ac_dir: __builddeps__
15433 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
15434 @cd $ac_dir && \$(MAKE) \$@"
15436 if wine_fn_has_flag install-lib $ac_flags
15437 then :
15438 else
15439 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15440 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
15441 install install-lib:: $ac_dir/__install-lib__
15442 __uninstall__: $ac_dir/__uninstall__"
15443 if test -n "$DLLEXT"
15444 then
15445 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15446 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15447 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
15448 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
15449 $ac_dir/__uninstall__::
15450 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
15451 else
15452 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15453 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15454 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
15455 $ac_dir/__uninstall__::
15456 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
15460 wine_fn_pot_rules $ac_dir $ac_flags
15463 if wine_fn_has_flag staticimplib $ac_flags
15464 then
15465 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15466 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
15467 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
15468 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
15469 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
15470 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
15471 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
15472 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15473 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15474 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15475 $ac_dir/__uninstall__::
15476 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15477 install install-dev:: $ac_dir/__install-dev__
15478 __uninstall__: $ac_dir/__uninstall__"
15480 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
15481 then
15482 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15483 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
15484 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
15485 $ac_dir/__uninstall__::
15486 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
15489 if test "x$CROSSTEST_DISABLE" = x
15490 then
15491 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15492 "__builddeps__: $ac_file.cross.a
15493 $ac_file.cross.a: $ac_dir/Makefile dummy
15494 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
15497 elif wine_fn_has_flag implib $ac_flags
15498 then
15499 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15500 "__builddeps__: $ac_file.$IMPLIBEXT
15501 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15502 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15503 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15504 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15505 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15506 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15507 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15508 $ac_dir/__uninstall__::
15509 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15510 install install-dev:: $ac_dir/__install-dev__
15511 __uninstall__: $ac_dir/__uninstall__"
15512 if test "x$CROSSTEST_DISABLE" = x
15513 then
15514 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15515 "__builddeps__: $ac_file.cross.a
15516 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15517 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
15520 if test "$ac_name" != "$ac_implib"
15521 then
15522 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15523 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
15524 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
15525 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
15526 clean::
15527 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
15528 if test "x$CROSSTEST_DISABLE" = x
15529 then
15530 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15531 "__builddeps__: dlls/lib$ac_implib.cross.a
15532 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
15533 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
15539 wine_fn_config_program ()
15541 ac_name=$1
15542 ac_dir=programs/$ac_name
15543 ac_enable=$2
15544 ac_flags=$3
15545 ac_program=$ac_name
15547 case $ac_name in
15548 *.*) ;;
15549 *) ac_program=$ac_program.exe ;;
15550 esac
15552 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
15554 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15556 else
15557 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15558 "$ac_dir: __builddeps__"
15560 wine_fn_pot_rules $ac_dir $ac_flags
15562 wine_fn_has_flag install $ac_flags || return
15563 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15564 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15565 install install-lib:: $ac_dir/__install__
15566 __uninstall__: $ac_dir/__uninstall__"
15568 if test -n "$DLLEXT"
15569 then
15570 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15571 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15572 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
15573 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
15574 $ac_dir/__uninstall__::
15575 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
15577 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
15578 then
15579 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15580 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
15581 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
15582 $ac_dir/__uninstall__::
15583 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
15585 else
15586 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15587 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15588 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
15589 $ac_dir/__uninstall__::
15590 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
15593 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
15594 then
15595 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15596 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
15597 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
15598 $ac_dir/__uninstall__::
15599 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
15604 wine_fn_config_test ()
15606 ac_dir=$1
15607 ac_name=$2
15608 ac_flags=$3
15609 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
15610 wine_fn_all_dir_rules $ac_dir Maketest.rules
15612 if test "x$enable_tests" = xno; then :
15614 else
15615 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15616 "all: $ac_dir
15617 .PHONY: $ac_dir
15618 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
15619 @cd $ac_dir && \$(MAKE)
15620 programs/winetest: $ac_dir
15621 check test: $ac_dir/__test__
15622 .PHONY: $ac_dir/__test__
15623 $ac_dir/__test__: dummy
15624 @cd $ac_dir && \$(MAKE) test
15625 testclean::
15626 \$(RM) $ac_dir/*.ok"
15628 if test "x$CROSSTEST_DISABLE" = x
15629 then
15630 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15631 "crosstest: $ac_dir/__crosstest__
15632 .PHONY: $ac_dir/__crosstest__
15633 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
15634 @cd $ac_dir && \$(MAKE) crosstest"
15639 wine_fn_config_tool ()
15641 ac_dir=$1
15642 ac_flags=$2
15643 if test "x$enable_tools" = xno; then :
15644 return 0
15647 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
15649 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
15650 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
15651 case $ac_dir in
15652 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
15653 esac
15656 wine_fn_config_makerules ()
15658 ac_rules=$1
15659 ac_deps=$2
15660 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15661 "$ac_rules: $ac_rules.in $ac_deps config.status
15662 @./config.status $ac_rules
15663 distclean::
15664 \$(RM) $ac_rules"
15667 wine_fn_config_symlink ()
15669 ac_link=$1
15670 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15671 "$ac_link:
15672 @./config.status $ac_link
15673 distclean::
15674 \$(RM) $ac_link"
15677 if test "x$CROSSTEST_DISABLE" != x
15678 then
15679 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15680 "crosstest:
15681 @echo \"crosstest is not supported (mingw not installed?)\" && false"
15683 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
15684 wine_fn_config_symlink dlls/shell32/AUTHORS
15685 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
15686 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
15687 if test "x$enable_fonts" != xno; then
15688 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
15689 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
15691 if test "x$enable_fonts" != xno; then
15692 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
15693 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
15695 if test "x$enable_fonts" != xno; then
15696 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
15697 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
15699 if test "x$enable_fonts" != xno; then
15700 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
15701 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
15703 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
15704 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
15705 if test "x$enable_tools" != xno; then
15706 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
15707 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
15709 ac_config_links="$ac_config_links wine:tools/winewrapper"
15710 wine_fn_config_symlink wine
15711 if test "x$enable_win64" != xno; then
15712 ac_config_links="$ac_config_links wine64:tools/winewrapper"
15713 wine_fn_config_symlink wine64
15716 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
15718 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
15720 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
15722 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
15724 ac_config_commands="$ac_config_commands dlls/user32/resources"
15726 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
15728 ac_config_commands="$ac_config_commands include/wine"
15731 wine_fn_config_makerules Make.rules
15732 MAKE_RULES=Make.rules
15733 ac_config_files="$ac_config_files Make.rules"
15735 wine_fn_config_makerules Maketest.rules Make.rules
15736 MAKE_TEST_RULES=Maketest.rules
15737 ac_config_files="$ac_config_files Maketest.rules"
15739 wine_fn_config_makerules dlls/Makedll.rules Make.rules
15740 MAKE_DLL_RULES=dlls/Makedll.rules
15741 ac_config_files="$ac_config_files dlls/Makedll.rules"
15743 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
15744 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
15745 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
15747 wine_fn_config_makerules programs/Makeprog.rules Make.rules
15748 MAKE_PROG_RULES=programs/Makeprog.rules
15749 ac_config_files="$ac_config_files programs/Makeprog.rules"
15752 wine_fn_config_dll acledit enable_acledit
15753 wine_fn_config_dll aclui enable_aclui implib
15754 wine_fn_config_dll activeds enable_activeds implib
15755 wine_fn_config_dll actxprxy enable_actxprxy
15756 wine_fn_config_lib adsiid
15757 wine_fn_config_dll advapi32 enable_advapi32 implib
15758 wine_fn_config_test dlls/advapi32/tests advapi32_test
15759 wine_fn_config_dll advpack enable_advpack implib
15760 wine_fn_config_test dlls/advpack/tests advpack_test
15761 wine_fn_config_dll amstream enable_amstream
15762 wine_fn_config_test dlls/amstream/tests amstream_test
15763 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
15764 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
15765 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
15766 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
15767 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
15768 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
15769 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
15770 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
15771 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
15772 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
15773 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
15774 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
15775 wine_fn_config_dll apphelp enable_apphelp
15776 wine_fn_config_test dlls/apphelp/tests apphelp_test
15777 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
15778 wine_fn_config_dll atl enable_atl implib
15779 wine_fn_config_test dlls/atl/tests atl_test
15780 wine_fn_config_dll atl100 enable_atl100 implib
15781 wine_fn_config_test dlls/atl100/tests atl100_test
15782 wine_fn_config_dll atl80 enable_atl80 implib
15783 wine_fn_config_test dlls/atl80/tests atl80_test
15784 wine_fn_config_dll authz enable_authz
15785 wine_fn_config_dll avicap32 enable_avicap32 implib
15786 wine_fn_config_dll avifil32 enable_avifil32 implib,po
15787 wine_fn_config_test dlls/avifil32/tests avifil32_test
15788 wine_fn_config_dll avifile.dll16 enable_win16
15789 wine_fn_config_dll avrt enable_avrt implib
15790 wine_fn_config_dll bcrypt enable_bcrypt
15791 wine_fn_config_dll browseui enable_browseui po
15792 wine_fn_config_test dlls/browseui/tests browseui_test
15793 wine_fn_config_dll cabinet enable_cabinet implib
15794 wine_fn_config_test dlls/cabinet/tests cabinet_test
15795 wine_fn_config_dll capi2032 enable_capi2032 implib
15796 wine_fn_config_dll cards enable_cards implib
15797 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
15798 wine_fn_config_dll clusapi enable_clusapi implib
15799 wine_fn_config_dll comcat enable_comcat
15800 wine_fn_config_test dlls/comcat/tests comcat_test
15801 wine_fn_config_dll comctl32 enable_comctl32 implib,po
15802 wine_fn_config_test dlls/comctl32/tests comctl32_test
15803 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
15804 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
15805 wine_fn_config_dll comm.drv16 enable_win16
15806 wine_fn_config_dll commdlg.dll16 enable_win16
15807 wine_fn_config_dll compobj.dll16 enable_win16
15808 wine_fn_config_dll compstui enable_compstui implib
15809 wine_fn_config_dll credui enable_credui implib,po
15810 wine_fn_config_test dlls/credui/tests credui_test
15811 wine_fn_config_dll crtdll enable_crtdll implib
15812 wine_fn_config_dll crypt32 enable_crypt32 implib,po
15813 wine_fn_config_test dlls/crypt32/tests crypt32_test
15814 wine_fn_config_dll cryptdlg enable_cryptdlg po
15815 wine_fn_config_dll cryptdll enable_cryptdll implib
15816 wine_fn_config_dll cryptnet enable_cryptnet implib
15817 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
15818 wine_fn_config_dll cryptui enable_cryptui implib,po
15819 wine_fn_config_test dlls/cryptui/tests cryptui_test
15820 wine_fn_config_dll ctapi32 enable_ctapi32
15821 wine_fn_config_dll ctl3d.dll16 enable_win16
15822 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
15823 wine_fn_config_dll ctl3dv2.dll16 enable_win16
15824 wine_fn_config_dll d3d10 enable_d3d10 implib
15825 wine_fn_config_test dlls/d3d10/tests d3d10_test
15826 wine_fn_config_dll d3d10core enable_d3d10core implib
15827 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
15828 wine_fn_config_dll d3d11 enable_d3d11
15829 wine_fn_config_dll d3d8 enable_d3d8 implib
15830 wine_fn_config_test dlls/d3d8/tests d3d8_test
15831 wine_fn_config_dll d3d9 enable_d3d9 implib
15832 wine_fn_config_test dlls/d3d9/tests d3d9_test
15833 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
15834 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
15835 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
15836 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
15837 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
15838 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
15839 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
15840 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
15841 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
15842 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
15843 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
15844 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
15845 wine_fn_config_dll d3dim enable_d3dim implib
15846 wine_fn_config_dll d3drm enable_d3drm implib
15847 wine_fn_config_test dlls/d3drm/tests d3drm_test
15848 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15849 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15850 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15851 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15852 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15853 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15854 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15855 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15856 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15857 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15858 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15859 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15860 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15861 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15862 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15863 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15864 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15865 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15866 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15867 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15868 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15869 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15870 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15871 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15872 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15873 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15874 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15875 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15876 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15877 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15878 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15879 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15880 wine_fn_config_dll d3dxof enable_d3dxof implib
15881 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15882 wine_fn_config_dll dbgeng enable_dbgeng implib
15883 wine_fn_config_dll dbghelp enable_dbghelp implib
15884 wine_fn_config_dll dciman32 enable_dciman32 implib
15885 wine_fn_config_dll ddeml.dll16 enable_win16
15886 wine_fn_config_dll ddraw enable_ddraw implib
15887 wine_fn_config_test dlls/ddraw/tests ddraw_test
15888 wine_fn_config_dll ddrawex enable_ddrawex
15889 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15890 wine_fn_config_dll devenum enable_devenum po
15891 wine_fn_config_test dlls/devenum/tests devenum_test
15892 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15893 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15894 wine_fn_config_test dlls/dinput/tests dinput_test
15895 wine_fn_config_dll dinput8 enable_dinput8 implib
15896 wine_fn_config_test dlls/dinput8/tests dinput8_test
15897 wine_fn_config_dll dispdib.dll16 enable_win16
15898 wine_fn_config_dll dispex enable_dispex
15899 wine_fn_config_test dlls/dispex/tests dispex_test
15900 wine_fn_config_dll display.drv16 enable_win16
15901 wine_fn_config_dll dmband enable_dmband
15902 wine_fn_config_test dlls/dmband/tests dmband_test
15903 wine_fn_config_dll dmcompos enable_dmcompos
15904 wine_fn_config_dll dmime enable_dmime
15905 wine_fn_config_test dlls/dmime/tests dmime_test
15906 wine_fn_config_dll dmloader enable_dmloader
15907 wine_fn_config_test dlls/dmloader/tests dmloader_test
15908 wine_fn_config_dll dmscript enable_dmscript
15909 wine_fn_config_dll dmstyle enable_dmstyle
15910 wine_fn_config_dll dmsynth enable_dmsynth
15911 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
15912 wine_fn_config_dll dmusic enable_dmusic
15913 wine_fn_config_test dlls/dmusic/tests dmusic_test
15914 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15915 wine_fn_config_dll dnsapi enable_dnsapi implib
15916 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15917 wine_fn_config_dll dplay enable_dplay implib
15918 wine_fn_config_dll dplayx enable_dplayx implib
15919 wine_fn_config_test dlls/dplayx/tests dplayx_test
15920 wine_fn_config_dll dpnaddr enable_dpnaddr
15921 wine_fn_config_dll dpnet enable_dpnet implib
15922 wine_fn_config_test dlls/dpnet/tests dpnet_test
15923 wine_fn_config_dll dpnhpast enable_dpnhpast
15924 wine_fn_config_dll dpnlobby enable_dpnlobby
15925 wine_fn_config_dll dpwsockx enable_dpwsockx
15926 wine_fn_config_dll drmclien enable_drmclien
15927 wine_fn_config_dll dsound enable_dsound implib
15928 wine_fn_config_test dlls/dsound/tests dsound_test
15929 wine_fn_config_dll dssenh enable_dssenh
15930 wine_fn_config_test dlls/dssenh/tests dssenh_test
15931 wine_fn_config_dll dswave enable_dswave
15932 wine_fn_config_dll dwmapi enable_dwmapi implib
15933 wine_fn_config_dll dwrite enable_dwrite implib
15934 wine_fn_config_test dlls/dwrite/tests dwrite_test
15935 wine_fn_config_dll dxdiagn enable_dxdiagn po
15936 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15937 wine_fn_config_lib dxerr8
15938 wine_fn_config_lib dxerr9
15939 wine_fn_config_dll dxgi enable_dxgi implib
15940 wine_fn_config_test dlls/dxgi/tests dxgi_test
15941 wine_fn_config_lib dxguid
15942 wine_fn_config_dll explorerframe enable_explorerframe
15943 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15944 wine_fn_config_dll faultrep enable_faultrep implib
15945 wine_fn_config_test dlls/faultrep/tests faultrep_test
15946 wine_fn_config_dll fltlib enable_fltlib
15947 wine_fn_config_dll fusion enable_fusion
15948 wine_fn_config_test dlls/fusion/tests fusion_test
15949 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15950 wine_fn_config_dll gameux enable_gameux
15951 wine_fn_config_test dlls/gameux/tests gameux_test
15952 wine_fn_config_dll gdi.exe16 enable_win16
15953 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15954 wine_fn_config_test dlls/gdi32/tests gdi32_test
15955 wine_fn_config_dll gdiplus enable_gdiplus implib
15956 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15957 wine_fn_config_dll glu32 enable_glu32 implib
15958 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15959 wine_fn_config_dll gpkcsp enable_gpkcsp
15960 wine_fn_config_dll hal enable_hal
15961 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx implib,po htmlhelp
15962 wine_fn_config_dll hid enable_hid implib
15963 wine_fn_config_dll hlink enable_hlink implib
15964 wine_fn_config_test dlls/hlink/tests hlink_test
15965 wine_fn_config_dll hnetcfg enable_hnetcfg
15966 wine_fn_config_dll httpapi enable_httpapi
15967 wine_fn_config_dll iccvid enable_iccvid po
15968 wine_fn_config_dll icmp enable_icmp
15969 wine_fn_config_dll ieframe enable_ieframe implib,po
15970 wine_fn_config_test dlls/ieframe/tests ieframe_test
15971 wine_fn_config_dll ifsmgr.vxd enable_win16
15972 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15973 wine_fn_config_dll imagehlp enable_imagehlp implib
15974 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15975 wine_fn_config_dll imm.dll16 enable_win16
15976 wine_fn_config_dll imm32 enable_imm32 implib
15977 wine_fn_config_test dlls/imm32/tests imm32_test
15978 wine_fn_config_dll inetcomm enable_inetcomm implib
15979 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15980 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15981 wine_fn_config_dll inetmib1 enable_inetmib1
15982 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15983 wine_fn_config_dll infosoft enable_infosoft
15984 wine_fn_config_test dlls/infosoft/tests infosoft_test
15985 wine_fn_config_dll initpki enable_initpki
15986 wine_fn_config_dll inkobj enable_inkobj
15987 wine_fn_config_dll inseng enable_inseng
15988 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15989 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15990 wine_fn_config_dll itircl enable_itircl
15991 wine_fn_config_dll itss enable_itss
15992 wine_fn_config_test dlls/itss/tests itss_test
15993 wine_fn_config_dll joy.cpl enable_joy_cpl po
15994 wine_fn_config_dll jscript enable_jscript po
15995 wine_fn_config_test dlls/jscript/tests jscript_test
15996 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15997 wine_fn_config_test dlls/kernel32/tests kernel32_test
15998 wine_fn_config_dll keyboard.drv16 enable_win16
15999 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
16000 wine_fn_config_dll ktmw32 enable_ktmw32
16001 wine_fn_config_dll loadperf enable_loadperf implib
16002 wine_fn_config_dll localspl enable_localspl po
16003 wine_fn_config_test dlls/localspl/tests localspl_test
16004 wine_fn_config_dll localui enable_localui po
16005 wine_fn_config_test dlls/localui/tests localui_test
16006 wine_fn_config_dll lz32 enable_lz32 implib
16007 wine_fn_config_test dlls/lz32/tests lz32_test
16008 wine_fn_config_dll lzexpand.dll16 enable_win16
16009 wine_fn_config_dll mapi32 enable_mapi32 implib,po
16010 wine_fn_config_test dlls/mapi32/tests mapi32_test
16011 wine_fn_config_dll mapistub enable_mapistub
16012 wine_fn_config_dll mciavi32 enable_mciavi32
16013 wine_fn_config_dll mcicda enable_mcicda
16014 wine_fn_config_dll mciqtz32 enable_mciqtz32
16015 wine_fn_config_dll mciseq enable_mciseq
16016 wine_fn_config_dll mciwave enable_mciwave
16017 wine_fn_config_dll mgmtapi enable_mgmtapi
16018 wine_fn_config_dll midimap enable_midimap
16019 wine_fn_config_dll mlang enable_mlang implib
16020 wine_fn_config_test dlls/mlang/tests mlang_test
16021 wine_fn_config_dll mmcndmgr enable_mmcndmgr
16022 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
16023 wine_fn_config_dll mmdevapi enable_mmdevapi
16024 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
16025 wine_fn_config_dll mmdevldr.vxd enable_win16
16026 wine_fn_config_dll mmsystem.dll16 enable_win16
16027 wine_fn_config_dll monodebg.vxd enable_win16
16028 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
16029 wine_fn_config_dll mouse.drv16 enable_win16
16030 wine_fn_config_dll mpr enable_mpr implib,po
16031 wine_fn_config_test dlls/mpr/tests mpr_test
16032 wine_fn_config_dll mprapi enable_mprapi implib
16033 wine_fn_config_dll msacm.dll16 enable_win16
16034 wine_fn_config_dll msacm32.drv enable_msacm32_drv
16035 wine_fn_config_dll msacm32 enable_msacm32 implib,po
16036 wine_fn_config_test dlls/msacm32/tests msacm32_test
16037 wine_fn_config_dll msadp32.acm enable_msadp32_acm
16038 wine_fn_config_dll mscat32 enable_mscat32
16039 wine_fn_config_dll mscms enable_mscms implib
16040 wine_fn_config_test dlls/mscms/tests mscms_test
16041 wine_fn_config_dll mscoree enable_mscoree
16042 wine_fn_config_test dlls/mscoree/tests mscoree_test
16043 wine_fn_config_dll msctf enable_msctf
16044 wine_fn_config_test dlls/msctf/tests msctf_test
16045 wine_fn_config_dll msdaps enable_msdaps
16046 wine_fn_config_dll msdmo enable_msdmo implib
16047 wine_fn_config_dll msftedit enable_msftedit
16048 wine_fn_config_dll msg711.acm enable_msg711_acm
16049 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
16050 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
16051 wine_fn_config_dll mshtml enable_mshtml implib,po
16052 wine_fn_config_test dlls/mshtml/tests mshtml_test
16053 wine_fn_config_dll msi enable_msi implib,po
16054 wine_fn_config_test dlls/msi/tests msi_test
16055 wine_fn_config_dll msident enable_msident
16056 wine_fn_config_dll msimg32 enable_msimg32 implib
16057 wine_fn_config_dll msimsg enable_msimsg
16058 wine_fn_config_dll msimtf enable_msimtf
16059 wine_fn_config_dll msisip enable_msisip
16060 wine_fn_config_dll msisys.ocx enable_msisys_ocx
16061 wine_fn_config_dll msls31 enable_msls31
16062 wine_fn_config_dll msnet32 enable_msnet32
16063 wine_fn_config_dll mspatcha enable_mspatcha
16064 wine_fn_config_dll msrle32 enable_msrle32 po
16065 wine_fn_config_dll mssign32 enable_mssign32
16066 wine_fn_config_dll mssip32 enable_mssip32
16067 wine_fn_config_dll mstask enable_mstask
16068 wine_fn_config_test dlls/mstask/tests mstask_test
16069 wine_fn_config_dll msvcirt enable_msvcirt
16070 wine_fn_config_dll msvcm80 enable_msvcm80
16071 wine_fn_config_dll msvcm90 enable_msvcm90
16072 wine_fn_config_dll msvcp100 enable_msvcp100
16073 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
16074 wine_fn_config_dll msvcp110 enable_msvcp110
16075 wine_fn_config_dll msvcp60 enable_msvcp60
16076 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
16077 wine_fn_config_dll msvcp70 enable_msvcp70
16078 wine_fn_config_dll msvcp71 enable_msvcp71
16079 wine_fn_config_dll msvcp80 enable_msvcp80
16080 wine_fn_config_dll msvcp90 enable_msvcp90
16081 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
16082 wine_fn_config_dll msvcr100 enable_msvcr100
16083 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
16084 wine_fn_config_dll msvcr110 enable_msvcr110
16085 wine_fn_config_dll msvcr70 enable_msvcr70 implib
16086 wine_fn_config_dll msvcr71 enable_msvcr71 implib
16087 wine_fn_config_dll msvcr80 enable_msvcr80
16088 wine_fn_config_dll msvcr90 enable_msvcr90
16089 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
16090 wine_fn_config_dll msvcrt enable_msvcrt implib
16091 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
16092 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
16093 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
16094 wine_fn_config_dll msvcrtd enable_msvcrtd implib
16095 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
16096 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
16097 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
16098 wine_fn_config_dll msvidc32 enable_msvidc32 po
16099 wine_fn_config_dll msvideo.dll16 enable_win16
16100 wine_fn_config_dll mswsock enable_mswsock implib
16101 wine_fn_config_dll msxml enable_msxml
16102 wine_fn_config_dll msxml2 enable_msxml2
16103 wine_fn_config_dll msxml3 enable_msxml3
16104 wine_fn_config_test dlls/msxml3/tests msxml3_test
16105 wine_fn_config_dll msxml4 enable_msxml4
16106 wine_fn_config_dll msxml6 enable_msxml6
16107 wine_fn_config_dll nddeapi enable_nddeapi implib
16108 wine_fn_config_dll netapi32 enable_netapi32 implib
16109 wine_fn_config_test dlls/netapi32/tests netapi32_test
16110 wine_fn_config_dll newdev enable_newdev implib
16111 wine_fn_config_dll normaliz enable_normaliz implib
16112 wine_fn_config_dll npmshtml enable_npmshtml
16113 wine_fn_config_dll ntdll enable_ntdll implib
16114 wine_fn_config_test dlls/ntdll/tests ntdll_test
16115 wine_fn_config_dll ntdsapi enable_ntdsapi implib
16116 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
16117 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
16118 wine_fn_config_dll ntprint enable_ntprint
16119 wine_fn_config_test dlls/ntprint/tests ntprint_test
16120 wine_fn_config_dll objsel enable_objsel
16121 wine_fn_config_dll odbc32 enable_odbc32 implib
16122 wine_fn_config_dll odbccp32 enable_odbccp32 implib
16123 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
16124 wine_fn_config_dll odbccu32 enable_odbccu32
16125 wine_fn_config_dll ole2.dll16 enable_win16
16126 wine_fn_config_dll ole2conv.dll16 enable_win16
16127 wine_fn_config_dll ole2disp.dll16 enable_win16
16128 wine_fn_config_dll ole2nls.dll16 enable_win16
16129 wine_fn_config_dll ole2prox.dll16 enable_win16
16130 wine_fn_config_dll ole2thk.dll16 enable_win16
16131 wine_fn_config_dll ole32 enable_ole32 implib
16132 wine_fn_config_test dlls/ole32/tests ole32_test
16133 wine_fn_config_dll oleacc enable_oleacc implib,po
16134 wine_fn_config_test dlls/oleacc/tests oleacc_test
16135 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
16136 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
16137 wine_fn_config_dll olecli.dll16 enable_win16
16138 wine_fn_config_dll olecli32 enable_olecli32 implib
16139 wine_fn_config_dll oledb32 enable_oledb32
16140 wine_fn_config_test dlls/oledb32/tests oledb32_test
16141 wine_fn_config_dll oledlg enable_oledlg implib,po
16142 wine_fn_config_dll olepro32 enable_olepro32 implib
16143 wine_fn_config_dll olesvr.dll16 enable_win16
16144 wine_fn_config_dll olesvr32 enable_olesvr32 implib
16145 wine_fn_config_dll olethk32 enable_olethk32
16146 wine_fn_config_dll openal32 enable_openal32
16147 wine_fn_config_dll opencl enable_opencl
16148 wine_fn_config_dll opengl32 enable_opengl32 implib
16149 wine_fn_config_test dlls/opengl32/tests opengl32_test
16150 wine_fn_config_dll pdh enable_pdh implib
16151 wine_fn_config_test dlls/pdh/tests pdh_test
16152 wine_fn_config_dll photometadatahandler enable_photometadatahandler
16153 wine_fn_config_dll pidgen enable_pidgen
16154 wine_fn_config_dll powrprof enable_powrprof implib
16155 wine_fn_config_dll printui enable_printui
16156 wine_fn_config_dll propsys enable_propsys implib
16157 wine_fn_config_test dlls/propsys/tests propsys_test
16158 wine_fn_config_dll psapi enable_psapi implib
16159 wine_fn_config_test dlls/psapi/tests psapi_test
16160 wine_fn_config_dll pstorec enable_pstorec
16161 wine_fn_config_dll qcap enable_qcap
16162 wine_fn_config_dll qedit enable_qedit
16163 wine_fn_config_test dlls/qedit/tests qedit_test
16164 wine_fn_config_dll qmgr enable_qmgr
16165 wine_fn_config_test dlls/qmgr/tests qmgr_test
16166 wine_fn_config_dll qmgrprxy enable_qmgrprxy
16167 wine_fn_config_dll quartz enable_quartz implib
16168 wine_fn_config_test dlls/quartz/tests quartz_test
16169 wine_fn_config_dll query enable_query
16170 wine_fn_config_dll rasapi16.dll16 enable_win16
16171 wine_fn_config_dll rasapi32 enable_rasapi32 implib
16172 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
16173 wine_fn_config_dll rasdlg enable_rasdlg implib
16174 wine_fn_config_dll regapi enable_regapi
16175 wine_fn_config_dll resutils enable_resutils implib
16176 wine_fn_config_dll riched20 enable_riched20 implib
16177 wine_fn_config_test dlls/riched20/tests riched20_test
16178 wine_fn_config_dll riched32 enable_riched32
16179 wine_fn_config_test dlls/riched32/tests riched32_test
16180 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
16181 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
16182 wine_fn_config_dll rsabase enable_rsabase
16183 wine_fn_config_dll rsaenh enable_rsaenh implib
16184 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
16185 wine_fn_config_dll rstrtmgr enable_rstrtmgr
16186 wine_fn_config_dll rtutils enable_rtutils implib
16187 wine_fn_config_dll samlib enable_samlib
16188 wine_fn_config_dll sane.ds enable_sane_ds po
16189 wine_fn_config_dll scarddlg enable_scarddlg
16190 wine_fn_config_dll sccbase enable_sccbase
16191 wine_fn_config_dll schannel enable_schannel
16192 wine_fn_config_test dlls/schannel/tests schannel_test
16193 wine_fn_config_dll scrrun enable_scrrun
16194 wine_fn_config_test dlls/scrrun/tests scrrun_test
16195 wine_fn_config_dll scsiport.sys enable_scsiport_sys
16196 wine_fn_config_dll secur32 enable_secur32 implib
16197 wine_fn_config_test dlls/secur32/tests secur32_test
16198 wine_fn_config_dll security enable_security
16199 wine_fn_config_dll sensapi enable_sensapi implib
16200 wine_fn_config_dll serialui enable_serialui implib,po
16201 wine_fn_config_test dlls/serialui/tests serialui_test
16202 wine_fn_config_dll setupapi enable_setupapi implib,po
16203 wine_fn_config_test dlls/setupapi/tests setupapi_test
16204 wine_fn_config_dll setupx.dll16 enable_win16
16205 wine_fn_config_dll sfc enable_sfc implib
16206 wine_fn_config_dll sfc_os enable_sfc_os implib
16207 wine_fn_config_dll shdoclc enable_shdoclc po
16208 wine_fn_config_dll shdocvw enable_shdocvw implib
16209 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
16210 wine_fn_config_dll shell.dll16 enable_win16
16211 wine_fn_config_dll shell32 enable_shell32 implib,po
16212 wine_fn_config_test dlls/shell32/tests shell32_test
16213 wine_fn_config_dll shfolder enable_shfolder implib
16214 wine_fn_config_dll shlwapi enable_shlwapi implib,po
16215 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
16216 wine_fn_config_dll slbcsp enable_slbcsp
16217 wine_fn_config_dll slc enable_slc implib
16218 wine_fn_config_dll snmpapi enable_snmpapi implib
16219 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
16220 wine_fn_config_dll softpub enable_softpub
16221 wine_fn_config_dll sound.drv16 enable_win16
16222 wine_fn_config_dll spoolss enable_spoolss implib
16223 wine_fn_config_test dlls/spoolss/tests spoolss_test
16224 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
16225 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
16226 wine_fn_config_dll sti enable_sti implib
16227 wine_fn_config_test dlls/sti/tests sti_test
16228 wine_fn_config_dll storage.dll16 enable_win16
16229 wine_fn_config_dll stress.dll16 enable_win16
16230 wine_fn_config_lib strmbase
16231 wine_fn_config_lib strmiids
16232 wine_fn_config_dll svrapi enable_svrapi
16233 wine_fn_config_dll sxs enable_sxs implib
16234 wine_fn_config_test dlls/sxs/tests sxs_test
16235 wine_fn_config_dll system.drv16 enable_win16
16236 wine_fn_config_dll t2embed enable_t2embed
16237 wine_fn_config_dll tapi32 enable_tapi32 implib
16238 wine_fn_config_dll toolhelp.dll16 enable_win16
16239 wine_fn_config_dll traffic enable_traffic
16240 wine_fn_config_dll twain.dll16 enable_win16
16241 wine_fn_config_dll twain_32 enable_twain_32
16242 wine_fn_config_test dlls/twain_32/tests twain_32_test
16243 wine_fn_config_dll typelib.dll16 enable_win16
16244 wine_fn_config_dll unicows enable_unicows implib
16245 wine_fn_config_dll updspapi enable_updspapi
16246 wine_fn_config_dll url enable_url implib
16247 wine_fn_config_dll urlmon enable_urlmon implib,po
16248 wine_fn_config_test dlls/urlmon/tests urlmon_test
16249 wine_fn_config_dll usbd.sys enable_usbd_sys implib
16250 wine_fn_config_dll user.exe16 enable_win16
16251 wine_fn_config_dll user32 enable_user32 implib,po
16252 wine_fn_config_test dlls/user32/tests user32_test
16253 wine_fn_config_dll userenv enable_userenv implib
16254 wine_fn_config_test dlls/userenv/tests userenv_test
16255 wine_fn_config_dll usp10 enable_usp10 implib
16256 wine_fn_config_test dlls/usp10/tests usp10_test
16257 wine_fn_config_lib uuid
16258 wine_fn_config_dll uxtheme enable_uxtheme implib
16259 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
16260 wine_fn_config_dll vbscript enable_vbscript
16261 wine_fn_config_test dlls/vbscript/tests vbscript_test
16262 wine_fn_config_dll vcomp enable_vcomp
16263 wine_fn_config_dll vcomp100 enable_vcomp100
16264 wine_fn_config_dll vcomp90 enable_vcomp90
16265 wine_fn_config_dll vdhcp.vxd enable_win16
16266 wine_fn_config_dll vdmdbg enable_vdmdbg implib
16267 wine_fn_config_dll ver.dll16 enable_win16
16268 wine_fn_config_dll version enable_version implib
16269 wine_fn_config_test dlls/version/tests version_test
16270 wine_fn_config_dll vmm.vxd enable_win16
16271 wine_fn_config_dll vnbt.vxd enable_win16
16272 wine_fn_config_dll vnetbios.vxd enable_win16
16273 wine_fn_config_dll vtdapi.vxd enable_win16
16274 wine_fn_config_dll vwin32.vxd enable_win16
16275 wine_fn_config_dll w32skrnl enable_win16
16276 wine_fn_config_dll w32sys.dll16 enable_win16
16277 wine_fn_config_dll wbemprox enable_wbemprox
16278 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
16279 wine_fn_config_dll webservices enable_webservices implib
16280 wine_fn_config_dll wer enable_wer implib
16281 wine_fn_config_test dlls/wer/tests wer_test
16282 wine_fn_config_dll wevtapi enable_wevtapi
16283 wine_fn_config_dll wiaservc enable_wiaservc
16284 wine_fn_config_dll win32s16.dll16 enable_win16
16285 wine_fn_config_dll win87em.dll16 enable_win16
16286 wine_fn_config_dll winaspi.dll16 enable_win16
16287 wine_fn_config_dll windebug.dll16 enable_win16
16288 wine_fn_config_dll windowscodecs enable_windowscodecs implib
16289 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
16290 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
16291 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
16292 wine_fn_config_dll winealsa.drv enable_winealsa_drv
16293 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
16294 wine_fn_config_lib winecrt0
16295 wine_fn_config_dll wined3d enable_wined3d implib
16296 wine_fn_config_dll winegstreamer enable_winegstreamer
16297 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
16298 wine_fn_config_dll winemac.drv enable_winemac_drv
16299 wine_fn_config_dll winemapi enable_winemapi
16300 wine_fn_config_dll winemp3.acm enable_winemp3_acm
16301 wine_fn_config_dll wineoss.drv enable_wineoss_drv
16302 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
16303 wine_fn_config_dll wineps16.drv16 enable_win16
16304 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
16305 wine_fn_config_dll winex11.drv enable_winex11_drv
16306 wine_fn_config_dll wing.dll16 enable_win16
16307 wine_fn_config_dll wing32 enable_wing32
16308 wine_fn_config_dll winhttp enable_winhttp implib
16309 wine_fn_config_test dlls/winhttp/tests winhttp_test
16310 wine_fn_config_dll wininet enable_wininet implib,po
16311 wine_fn_config_test dlls/wininet/tests wininet_test
16312 wine_fn_config_dll winmm enable_winmm implib,po
16313 wine_fn_config_test dlls/winmm/tests winmm_test
16314 wine_fn_config_dll winnls.dll16 enable_win16
16315 wine_fn_config_dll winnls32 enable_winnls32 implib
16316 wine_fn_config_dll winscard enable_winscard implib
16317 wine_fn_config_dll winsock.dll16 enable_win16
16318 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
16319 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
16320 wine_fn_config_dll winsta enable_winsta
16321 wine_fn_config_dll wintab.dll16 enable_win16
16322 wine_fn_config_dll wintab32 enable_wintab32 implib
16323 wine_fn_config_test dlls/wintab32/tests wintab32_test
16324 wine_fn_config_dll wintrust enable_wintrust implib
16325 wine_fn_config_test dlls/wintrust/tests wintrust_test
16326 wine_fn_config_dll wlanapi enable_wlanapi
16327 wine_fn_config_dll wldap32 enable_wldap32 implib,po
16328 wine_fn_config_test dlls/wldap32/tests wldap32_test
16329 wine_fn_config_dll wmi enable_wmi
16330 wine_fn_config_dll wmiutils enable_wmiutils
16331 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
16332 wine_fn_config_dll wmvcore enable_wmvcore
16333 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
16334 wine_fn_config_dll wow32 enable_win16 implib
16335 wine_fn_config_dll ws2_32 enable_ws2_32 implib
16336 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
16337 wine_fn_config_dll wshom.ocx enable_wshom_ocx
16338 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
16339 wine_fn_config_dll wsnmp32 enable_wsnmp32
16340 wine_fn_config_dll wsock32 enable_wsock32 implib
16341 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
16342 wine_fn_config_dll wuapi enable_wuapi
16343 wine_fn_config_dll wuaueng enable_wuaueng
16344 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
16345 wine_fn_config_dll xinput1_1 enable_xinput1_1
16346 wine_fn_config_dll xinput1_2 enable_xinput1_2
16347 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
16348 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
16349 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
16350 wine_fn_config_dll xmllite enable_xmllite
16351 wine_fn_config_test dlls/xmllite/tests xmllite_test
16352 wine_fn_config_dll xolehlp enable_xolehlp
16353 wine_fn_config_dll xpsprint enable_xpsprint
16354 wine_fn_config_dll xpssvcs enable_xpssvcs
16355 wine_fn_config_makefile documentation enable_documentation
16356 wine_fn_config_makefile fonts enable_fonts install-lib
16357 wine_fn_config_makefile include enable_include install-dev
16358 wine_fn_config_makefile libs/port enable_libs_port
16359 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
16360 wine_fn_config_makefile libs/wpp enable_libs_wpp
16361 wine_fn_config_makefile loader enable_loader install-lib,manpage
16362 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
16363 wine_fn_config_program attrib enable_attrib install,po
16364 wine_fn_config_program cabarc enable_cabarc install
16365 wine_fn_config_program cacls enable_cacls install
16366 wine_fn_config_program clock enable_clock install,po
16367 wine_fn_config_program cmd enable_cmd install,po
16368 wine_fn_config_test programs/cmd/tests cmd.exe_test
16369 wine_fn_config_program conhost enable_conhost install
16370 wine_fn_config_program control enable_control install
16371 wine_fn_config_program cscript enable_cscript install
16372 wine_fn_config_program dxdiag enable_dxdiag install,po
16373 wine_fn_config_program eject enable_eject install
16374 wine_fn_config_program expand enable_expand install
16375 wine_fn_config_program explorer enable_explorer install,po
16376 wine_fn_config_program extrac32 enable_extrac32 install
16377 wine_fn_config_program findstr enable_findstr install
16378 wine_fn_config_program hh enable_hh install
16379 wine_fn_config_program hostname enable_hostname install,po
16380 wine_fn_config_program icinfo enable_icinfo install
16381 wine_fn_config_program iexplore enable_iexplore install
16382 wine_fn_config_program ipconfig enable_ipconfig install,po
16383 wine_fn_config_program lodctr enable_lodctr install
16384 wine_fn_config_program mofcomp enable_mofcomp install
16385 wine_fn_config_program mshta enable_mshta install
16386 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
16387 wine_fn_config_program net enable_net install,po
16388 wine_fn_config_program netsh enable_netsh install
16389 wine_fn_config_program netstat enable_netstat install,po
16390 wine_fn_config_program ngen enable_ngen install
16391 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
16392 wine_fn_config_program oleview enable_oleview install,po
16393 wine_fn_config_program ping enable_ping install
16394 wine_fn_config_program plugplay enable_plugplay install
16395 wine_fn_config_program presentationfontcache enable_presentationfontcache install
16396 wine_fn_config_program progman enable_progman install,po
16397 wine_fn_config_program reg enable_reg install,po
16398 wine_fn_config_program regasm enable_regasm install
16399 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
16400 wine_fn_config_test programs/regedit/tests regedit.exe_test
16401 wine_fn_config_program regsvcs enable_regsvcs install
16402 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
16403 wine_fn_config_program rpcss enable_rpcss install
16404 wine_fn_config_program rundll.exe16 enable_win16 install
16405 wine_fn_config_program rundll32 enable_rundll32 install
16406 wine_fn_config_program sc enable_sc install
16407 wine_fn_config_program schtasks enable_schtasks install
16408 wine_fn_config_program secedit enable_secedit install
16409 wine_fn_config_program servicemodelreg enable_servicemodelreg install
16410 wine_fn_config_program services enable_services install
16411 wine_fn_config_test programs/services/tests services.exe_test
16412 wine_fn_config_program spoolsv enable_spoolsv install
16413 wine_fn_config_program start enable_start install,po
16414 wine_fn_config_program svchost enable_svchost install
16415 wine_fn_config_program taskkill enable_taskkill install,po
16416 wine_fn_config_program taskmgr enable_taskmgr install,po
16417 wine_fn_config_program termsv enable_termsv install
16418 wine_fn_config_program uninstaller enable_uninstaller install,po
16419 wine_fn_config_program unlodctr enable_unlodctr install
16420 wine_fn_config_program view enable_view install,po
16421 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
16422 wine_fn_config_program winebrowser enable_winebrowser install
16423 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
16424 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
16425 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
16426 wine_fn_config_program winedevice enable_winedevice install
16427 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
16428 wine_fn_config_program winemenubuilder enable_winemenubuilder install
16429 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
16430 wine_fn_config_program winemsibuilder enable_winemsibuilder install
16431 wine_fn_config_program winepath enable_winepath install,installbin,manpage
16432 wine_fn_config_program winetest enable_winetest
16433 wine_fn_config_program winevdm enable_win16 install
16434 wine_fn_config_program winhelp.exe16 enable_win16 install
16435 wine_fn_config_program winhlp32 enable_winhlp32 install,po
16436 wine_fn_config_program winoldap.mod16 enable_win16 install
16437 wine_fn_config_program winver enable_winver install
16438 wine_fn_config_program wmic enable_wmic install,po
16439 wine_fn_config_program wordpad enable_wordpad install,po
16440 wine_fn_config_program write enable_write install,po
16441 wine_fn_config_program wscript enable_wscript install
16442 wine_fn_config_test programs/wscript/tests wscript.exe_test
16443 wine_fn_config_program wusa enable_wusa install
16444 wine_fn_config_program xcopy enable_xcopy install,po
16445 wine_fn_config_makefile server enable_server install-lib,manpage
16446 wine_fn_config_tool tools install-dev,install-lib,manpage
16447 wine_fn_config_tool tools/widl install-dev,manpage
16448 wine_fn_config_tool tools/winebuild install-dev,manpage
16449 wine_fn_config_tool tools/winedump install-dev,manpage
16450 wine_fn_config_tool tools/winegcc install-dev,manpage
16451 wine_fn_config_tool tools/wmc install-dev,manpage
16452 wine_fn_config_tool tools/wrc install-dev,manpage
16454 LINGUAS="\
16455 ar \
16456 bg \
16457 ca \
16458 cs \
16459 da \
16460 de \
16461 el \
16462 en \
16463 en_US \
16464 eo \
16465 es \
16466 fa \
16467 fi \
16468 fr \
16469 he \
16470 hi \
16471 hu \
16472 it \
16473 ja \
16474 ko \
16475 lt \
16476 ml \
16477 nb_NO \
16478 nl \
16479 or \
16480 pa \
16481 pl \
16482 pt_BR \
16483 pt_PT \
16484 rm \
16485 ro \
16486 ru \
16487 sk \
16488 sl \
16489 sr_RS@cyrillic \
16490 sr_RS@latin \
16491 sv \
16492 te \
16493 th \
16494 tr \
16495 uk \
16496 wa \
16497 zh_CN \
16498 zh_TW"
16502 ac_config_commands="$ac_config_commands Makefile"
16505 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
16509 if test "x$enable_maintainer_mode" = xyes
16510 then
16511 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
16512 cd \$(srcdir) && autoconf --warnings=all
16513 \$(srcdir)/include/config.h.in: include/stamp-h.in
16514 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
16515 cd \$(srcdir) && autoheader --warnings=all
16516 @echo timestamp > \$@"
16519 if test "x$with_gettextpo" = xyes
16520 then
16521 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
16522 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
16523 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
16524 msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
16525 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
16526 msgcat -o \$@ \$(ALL_POT_FILES)"
16529 if test "$MSGFMT" != false
16530 then
16531 PORCFLAGS="--po-dir=\$(top_builddir)/po"
16533 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
16534 else
16535 LINGUAS=
16538 if test "x$enable_tools" != xno
16539 then
16540 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
16541 clean:: __clean__
16542 \$(RM) tools/makedep\$(EXEEXT)"
16545 if test -n "$with_wine64"
16546 then
16547 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
16548 fonts server tools:
16549 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
16550 $with_wine64/loader/wine:
16551 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
16552 $with_wine64/loader/wine-preloader:
16553 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
16554 clean::
16555 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
16558 cat >confcache <<\_ACEOF
16559 # This file is a shell script that caches the results of configure
16560 # tests run on this system so they can be shared between configure
16561 # scripts and configure runs, see configure's option --config-cache.
16562 # It is not useful on other systems. If it contains results you don't
16563 # want to keep, you may remove or edit it.
16565 # config.status only pays attention to the cache file if you give it
16566 # the --recheck option to rerun configure.
16568 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16569 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16570 # following values.
16572 _ACEOF
16574 # The following way of writing the cache mishandles newlines in values,
16575 # but we know of no workaround that is simple, portable, and efficient.
16576 # So, we kill variables containing newlines.
16577 # Ultrix sh set writes to stderr and can't be redirected directly,
16578 # and sets the high bit in the cache file unless we assign to the vars.
16580 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16581 eval ac_val=\$$ac_var
16582 case $ac_val in #(
16583 *${as_nl}*)
16584 case $ac_var in #(
16585 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16586 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16587 esac
16588 case $ac_var in #(
16589 _ | IFS | as_nl) ;; #(
16590 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16591 *) { eval $ac_var=; unset $ac_var;} ;;
16592 esac ;;
16593 esac
16594 done
16596 (set) 2>&1 |
16597 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16598 *${as_nl}ac_space=\ *)
16599 # `set' does not quote correctly, so add quotes: double-quote
16600 # substitution turns \\\\ into \\, and sed turns \\ into \.
16601 sed -n \
16602 "s/'/'\\\\''/g;
16603 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16604 ;; #(
16606 # `set' quotes correctly as required by POSIX, so do not add quotes.
16607 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16609 esac |
16610 sort
16612 sed '
16613 /^ac_cv_env_/b end
16614 t clear
16615 :clear
16616 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16617 t end
16618 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16619 :end' >>confcache
16620 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16621 if test -w "$cache_file"; then
16622 if test "x$cache_file" != "x/dev/null"; then
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16624 $as_echo "$as_me: updating cache $cache_file" >&6;}
16625 if test ! -f "$cache_file" || test -h "$cache_file"; then
16626 cat confcache >"$cache_file"
16627 else
16628 case $cache_file in #(
16629 */* | ?:*)
16630 mv -f confcache "$cache_file"$$ &&
16631 mv -f "$cache_file"$$ "$cache_file" ;; #(
16633 mv -f confcache "$cache_file" ;;
16634 esac
16637 else
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16639 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16642 rm -f confcache
16644 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16645 # Let make expand exec_prefix.
16646 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16648 DEFS=-DHAVE_CONFIG_H
16650 ac_libobjs=
16651 ac_ltlibobjs=
16653 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16654 # 1. Remove the extension, and $U if already installed.
16655 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16656 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16657 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16658 # will be set to the directory where LIBOBJS objects are built.
16659 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16660 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16661 done
16662 LIBOBJS=$ac_libobjs
16664 LTLIBOBJS=$ac_ltlibobjs
16668 : "${CONFIG_STATUS=./config.status}"
16669 ac_write_fail=0
16670 ac_clean_files_save=$ac_clean_files
16671 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16673 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16674 as_write_fail=0
16675 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16676 #! $SHELL
16677 # Generated by $as_me.
16678 # Run this file to recreate the current configuration.
16679 # Compiler output produced by configure, useful for debugging
16680 # configure, is in config.log if it exists.
16682 debug=false
16683 ac_cs_recheck=false
16684 ac_cs_silent=false
16686 SHELL=\${CONFIG_SHELL-$SHELL}
16687 export SHELL
16688 _ASEOF
16689 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16690 ## -------------------- ##
16691 ## M4sh Initialization. ##
16692 ## -------------------- ##
16694 # Be more Bourne compatible
16695 DUALCASE=1; export DUALCASE # for MKS sh
16696 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16697 emulate sh
16698 NULLCMD=:
16699 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16700 # is contrary to our usage. Disable this feature.
16701 alias -g '${1+"$@"}'='"$@"'
16702 setopt NO_GLOB_SUBST
16703 else
16704 case `(set -o) 2>/dev/null` in #(
16705 *posix*) :
16706 set -o posix ;; #(
16707 *) :
16709 esac
16713 as_nl='
16715 export as_nl
16716 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16717 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16718 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16719 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16720 # Prefer a ksh shell builtin over an external printf program on Solaris,
16721 # but without wasting forks for bash or zsh.
16722 if test -z "$BASH_VERSION$ZSH_VERSION" \
16723 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16724 as_echo='print -r --'
16725 as_echo_n='print -rn --'
16726 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16727 as_echo='printf %s\n'
16728 as_echo_n='printf %s'
16729 else
16730 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16731 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16732 as_echo_n='/usr/ucb/echo -n'
16733 else
16734 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16735 as_echo_n_body='eval
16736 arg=$1;
16737 case $arg in #(
16738 *"$as_nl"*)
16739 expr "X$arg" : "X\\(.*\\)$as_nl";
16740 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16741 esac;
16742 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16744 export as_echo_n_body
16745 as_echo_n='sh -c $as_echo_n_body as_echo'
16747 export as_echo_body
16748 as_echo='sh -c $as_echo_body as_echo'
16751 # The user is always right.
16752 if test "${PATH_SEPARATOR+set}" != set; then
16753 PATH_SEPARATOR=:
16754 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16755 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16756 PATH_SEPARATOR=';'
16761 # IFS
16762 # We need space, tab and new line, in precisely that order. Quoting is
16763 # there to prevent editors from complaining about space-tab.
16764 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16765 # splitting by setting IFS to empty value.)
16766 IFS=" "" $as_nl"
16768 # Find who we are. Look in the path if we contain no directory separator.
16769 as_myself=
16770 case $0 in #((
16771 *[\\/]* ) as_myself=$0 ;;
16772 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16773 for as_dir in $PATH
16775 IFS=$as_save_IFS
16776 test -z "$as_dir" && as_dir=.
16777 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16778 done
16779 IFS=$as_save_IFS
16782 esac
16783 # We did not find ourselves, most probably we were run as `sh COMMAND'
16784 # in which case we are not to be found in the path.
16785 if test "x$as_myself" = x; then
16786 as_myself=$0
16788 if test ! -f "$as_myself"; then
16789 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16790 exit 1
16793 # Unset variables that we do not need and which cause bugs (e.g. in
16794 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16795 # suppresses any "Segmentation fault" message there. '((' could
16796 # trigger a bug in pdksh 5.2.14.
16797 for as_var in BASH_ENV ENV MAIL MAILPATH
16798 do eval test x\${$as_var+set} = xset \
16799 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16800 done
16801 PS1='$ '
16802 PS2='> '
16803 PS4='+ '
16805 # NLS nuisances.
16806 LC_ALL=C
16807 export LC_ALL
16808 LANGUAGE=C
16809 export LANGUAGE
16811 # CDPATH.
16812 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16815 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16816 # ----------------------------------------
16817 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16818 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16819 # script with STATUS, using 1 if that was 0.
16820 as_fn_error ()
16822 as_status=$1; test $as_status -eq 0 && as_status=1
16823 if test "$4"; then
16824 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16825 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16827 $as_echo "$as_me: error: $2" >&2
16828 as_fn_exit $as_status
16829 } # as_fn_error
16832 # as_fn_set_status STATUS
16833 # -----------------------
16834 # Set $? to STATUS, without forking.
16835 as_fn_set_status ()
16837 return $1
16838 } # as_fn_set_status
16840 # as_fn_exit STATUS
16841 # -----------------
16842 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16843 as_fn_exit ()
16845 set +e
16846 as_fn_set_status $1
16847 exit $1
16848 } # as_fn_exit
16850 # as_fn_unset VAR
16851 # ---------------
16852 # Portably unset VAR.
16853 as_fn_unset ()
16855 { eval $1=; unset $1;}
16857 as_unset=as_fn_unset
16858 # as_fn_append VAR VALUE
16859 # ----------------------
16860 # Append the text in VALUE to the end of the definition contained in VAR. Take
16861 # advantage of any shell optimizations that allow amortized linear growth over
16862 # repeated appends, instead of the typical quadratic growth present in naive
16863 # implementations.
16864 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16865 eval 'as_fn_append ()
16867 eval $1+=\$2
16869 else
16870 as_fn_append ()
16872 eval $1=\$$1\$2
16874 fi # as_fn_append
16876 # as_fn_arith ARG...
16877 # ------------------
16878 # Perform arithmetic evaluation on the ARGs, and store the result in the
16879 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16880 # must be portable across $(()) and expr.
16881 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16882 eval 'as_fn_arith ()
16884 as_val=$(( $* ))
16886 else
16887 as_fn_arith ()
16889 as_val=`expr "$@" || test $? -eq 1`
16891 fi # as_fn_arith
16894 if expr a : '\(a\)' >/dev/null 2>&1 &&
16895 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16896 as_expr=expr
16897 else
16898 as_expr=false
16901 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16902 as_basename=basename
16903 else
16904 as_basename=false
16907 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16908 as_dirname=dirname
16909 else
16910 as_dirname=false
16913 as_me=`$as_basename -- "$0" ||
16914 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16915 X"$0" : 'X\(//\)$' \| \
16916 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16917 $as_echo X/"$0" |
16918 sed '/^.*\/\([^/][^/]*\)\/*$/{
16919 s//\1/
16922 /^X\/\(\/\/\)$/{
16923 s//\1/
16926 /^X\/\(\/\).*/{
16927 s//\1/
16930 s/.*/./; q'`
16932 # Avoid depending upon Character Ranges.
16933 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16934 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16935 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16936 as_cr_digits='0123456789'
16937 as_cr_alnum=$as_cr_Letters$as_cr_digits
16939 ECHO_C= ECHO_N= ECHO_T=
16940 case `echo -n x` in #(((((
16941 -n*)
16942 case `echo 'xy\c'` in
16943 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16944 xy) ECHO_C='\c';;
16945 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16946 ECHO_T=' ';;
16947 esac;;
16949 ECHO_N='-n';;
16950 esac
16952 rm -f conf$$ conf$$.exe conf$$.file
16953 if test -d conf$$.dir; then
16954 rm -f conf$$.dir/conf$$.file
16955 else
16956 rm -f conf$$.dir
16957 mkdir conf$$.dir 2>/dev/null
16959 if (echo >conf$$.file) 2>/dev/null; then
16960 if ln -s conf$$.file conf$$ 2>/dev/null; then
16961 as_ln_s='ln -s'
16962 # ... but there are two gotchas:
16963 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16964 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16965 # In both cases, we have to default to `cp -pR'.
16966 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16967 as_ln_s='cp -pR'
16968 elif ln conf$$.file conf$$ 2>/dev/null; then
16969 as_ln_s=ln
16970 else
16971 as_ln_s='cp -pR'
16973 else
16974 as_ln_s='cp -pR'
16976 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16977 rmdir conf$$.dir 2>/dev/null
16980 # as_fn_mkdir_p
16981 # -------------
16982 # Create "$as_dir" as a directory, including parents if necessary.
16983 as_fn_mkdir_p ()
16986 case $as_dir in #(
16987 -*) as_dir=./$as_dir;;
16988 esac
16989 test -d "$as_dir" || eval $as_mkdir_p || {
16990 as_dirs=
16991 while :; do
16992 case $as_dir in #(
16993 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16994 *) as_qdir=$as_dir;;
16995 esac
16996 as_dirs="'$as_qdir' $as_dirs"
16997 as_dir=`$as_dirname -- "$as_dir" ||
16998 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16999 X"$as_dir" : 'X\(//\)[^/]' \| \
17000 X"$as_dir" : 'X\(//\)$' \| \
17001 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17002 $as_echo X"$as_dir" |
17003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17004 s//\1/
17007 /^X\(\/\/\)[^/].*/{
17008 s//\1/
17011 /^X\(\/\/\)$/{
17012 s//\1/
17015 /^X\(\/\).*/{
17016 s//\1/
17019 s/.*/./; q'`
17020 test -d "$as_dir" && break
17021 done
17022 test -z "$as_dirs" || eval "mkdir $as_dirs"
17023 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17026 } # as_fn_mkdir_p
17027 if mkdir -p . 2>/dev/null; then
17028 as_mkdir_p='mkdir -p "$as_dir"'
17029 else
17030 test -d ./-p && rmdir ./-p
17031 as_mkdir_p=false
17035 # as_fn_executable_p FILE
17036 # -----------------------
17037 # Test if FILE is an executable regular file.
17038 as_fn_executable_p ()
17040 test -f "$1" && test -x "$1"
17041 } # as_fn_executable_p
17042 as_test_x='test -x'
17043 as_executable_p=as_fn_executable_p
17045 # Sed expression to map a string onto a valid CPP name.
17046 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17048 # Sed expression to map a string onto a valid variable name.
17049 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17052 exec 6>&1
17053 ## ----------------------------------- ##
17054 ## Main body of $CONFIG_STATUS script. ##
17055 ## ----------------------------------- ##
17056 _ASEOF
17057 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17060 # Save the log message, to keep $0 and so on meaningful, and to
17061 # report actual input values of CONFIG_FILES etc. instead of their
17062 # values after options handling.
17063 ac_log="
17064 This file was extended by Wine $as_me 1.5.29, which was
17065 generated by GNU Autoconf 2.69. Invocation command line was
17067 CONFIG_FILES = $CONFIG_FILES
17068 CONFIG_HEADERS = $CONFIG_HEADERS
17069 CONFIG_LINKS = $CONFIG_LINKS
17070 CONFIG_COMMANDS = $CONFIG_COMMANDS
17071 $ $0 $@
17073 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17076 _ACEOF
17078 case $ac_config_files in *"
17079 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17080 esac
17082 case $ac_config_headers in *"
17083 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17084 esac
17087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17088 # Files that config.status was made for.
17089 config_files="$ac_config_files"
17090 config_headers="$ac_config_headers"
17091 config_links="$ac_config_links"
17092 config_commands="$ac_config_commands"
17094 _ACEOF
17096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17097 ac_cs_usage="\
17098 \`$as_me' instantiates files and other configuration actions
17099 from templates according to the current configuration. Unless the files
17100 and actions are specified as TAGs, all are instantiated by default.
17102 Usage: $0 [OPTION]... [TAG]...
17104 -h, --help print this help, then exit
17105 -V, --version print version number and configuration settings, then exit
17106 --config print configuration, then exit
17107 -q, --quiet, --silent
17108 do not print progress messages
17109 -d, --debug don't remove temporary files
17110 --recheck update $as_me by reconfiguring in the same conditions
17111 --file=FILE[:TEMPLATE]
17112 instantiate the configuration file FILE
17113 --header=FILE[:TEMPLATE]
17114 instantiate the configuration header FILE
17116 Configuration files:
17117 $config_files
17119 Configuration headers:
17120 $config_headers
17122 Configuration links:
17123 $config_links
17125 Configuration commands:
17126 $config_commands
17128 Report bugs to <wine-devel@winehq.org>.
17129 Wine home page: <http://www.winehq.org>."
17131 _ACEOF
17132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17133 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17134 ac_cs_version="\\
17135 Wine config.status 1.5.29
17136 configured by $0, generated by GNU Autoconf 2.69,
17137 with options \\"\$ac_cs_config\\"
17139 Copyright (C) 2012 Free Software Foundation, Inc.
17140 This config.status script is free software; the Free Software Foundation
17141 gives unlimited permission to copy, distribute and modify it."
17143 ac_pwd='$ac_pwd'
17144 srcdir='$srcdir'
17145 INSTALL='$INSTALL'
17146 test -n "\$AWK" || AWK=awk
17147 _ACEOF
17149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17150 # The default lists apply if the user does not specify any file.
17151 ac_need_defaults=:
17152 while test $# != 0
17154 case $1 in
17155 --*=?*)
17156 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17157 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17158 ac_shift=:
17160 --*=)
17161 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17162 ac_optarg=
17163 ac_shift=:
17166 ac_option=$1
17167 ac_optarg=$2
17168 ac_shift=shift
17170 esac
17172 case $ac_option in
17173 # Handling of the options.
17174 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17175 ac_cs_recheck=: ;;
17176 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17177 $as_echo "$ac_cs_version"; exit ;;
17178 --config | --confi | --conf | --con | --co | --c )
17179 $as_echo "$ac_cs_config"; exit ;;
17180 --debug | --debu | --deb | --de | --d | -d )
17181 debug=: ;;
17182 --file | --fil | --fi | --f )
17183 $ac_shift
17184 case $ac_optarg in
17185 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17186 '') as_fn_error $? "missing file argument" ;;
17187 esac
17188 as_fn_append CONFIG_FILES " '$ac_optarg'"
17189 ac_need_defaults=false;;
17190 --header | --heade | --head | --hea )
17191 $ac_shift
17192 case $ac_optarg in
17193 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17194 esac
17195 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17196 ac_need_defaults=false;;
17197 --he | --h)
17198 # Conflict between --help and --header
17199 as_fn_error $? "ambiguous option: \`$1'
17200 Try \`$0 --help' for more information.";;
17201 --help | --hel | -h )
17202 $as_echo "$ac_cs_usage"; exit ;;
17203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17204 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17205 ac_cs_silent=: ;;
17207 # This is an error.
17208 -*) as_fn_error $? "unrecognized option: \`$1'
17209 Try \`$0 --help' for more information." ;;
17211 *) as_fn_append ac_config_targets " $1"
17212 ac_need_defaults=false ;;
17214 esac
17215 shift
17216 done
17218 ac_configure_extra_args=
17220 if $ac_cs_silent; then
17221 exec 6>/dev/null
17222 ac_configure_extra_args="$ac_configure_extra_args --silent"
17225 _ACEOF
17226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17227 if \$ac_cs_recheck; then
17228 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17229 shift
17230 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17231 CONFIG_SHELL='$SHELL'
17232 export CONFIG_SHELL
17233 exec "\$@"
17236 _ACEOF
17237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17238 exec 5>>config.log
17240 echo
17241 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17242 ## Running $as_me. ##
17243 _ASBOX
17244 $as_echo "$ac_log"
17245 } >&5
17247 _ACEOF
17248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17250 # INIT-COMMANDS
17252 wine_fn_output_makefile ()
17254 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
17255 $ALL_MAKEFILE_DEPENDS
17256 _WINE_EOF
17257 as_fn_error $? "could not create Makefile" "$LINENO" 5
17260 _ACEOF
17262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17264 # Handling of arguments.
17265 for ac_config_target in $ac_config_targets
17267 case $ac_config_target in
17268 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17269 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
17270 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
17271 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
17272 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
17273 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
17274 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
17275 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
17276 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
17277 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
17278 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
17279 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
17280 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
17281 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
17282 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
17283 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
17284 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
17285 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
17286 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17287 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17288 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
17289 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17290 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
17291 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17292 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
17293 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
17295 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17296 esac
17297 done
17300 # If the user did not use the arguments to specify the items to instantiate,
17301 # then the envvar interface is used. Set only those that are not.
17302 # We use the long form for the default assignment because of an extremely
17303 # bizarre bug on SunOS 4.1.3.
17304 if $ac_need_defaults; then
17305 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17306 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17307 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17308 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17311 # Have a temporary directory for convenience. Make it in the build tree
17312 # simply because there is no reason against having it here, and in addition,
17313 # creating and moving files from /tmp can sometimes cause problems.
17314 # Hook for its removal unless debugging.
17315 # Note that there is a small window in which the directory will not be cleaned:
17316 # after its creation but before its name has been assigned to `$tmp'.
17317 $debug ||
17319 tmp= ac_tmp=
17320 trap 'exit_status=$?
17321 : "${ac_tmp:=$tmp}"
17322 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17324 trap 'as_fn_exit 1' 1 2 13 15
17326 # Create a (secure) tmp directory for tmp files.
17329 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17330 test -d "$tmp"
17331 } ||
17333 tmp=./conf$$-$RANDOM
17334 (umask 077 && mkdir "$tmp")
17335 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17336 ac_tmp=$tmp
17338 # Set up the scripts for CONFIG_FILES section.
17339 # No need to generate them if there are no CONFIG_FILES.
17340 # This happens for instance with `./config.status config.h'.
17341 if test -n "$CONFIG_FILES"; then
17343 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17344 ac_cs_awk_getline=:
17345 ac_cs_awk_pipe_init=
17346 ac_cs_awk_read_file='
17347 while ((getline aline < (F[key])) > 0)
17348 print(aline)
17349 close(F[key])'
17350 ac_cs_awk_pipe_fini=
17351 else
17352 ac_cs_awk_getline=false
17353 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17354 ac_cs_awk_read_file='
17355 print "|#_!!_#|"
17356 print "cat " F[key] " &&"
17357 '$ac_cs_awk_pipe_init
17358 # The final `:' finishes the AND list.
17359 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17361 ac_cr=`echo X | tr X '\015'`
17362 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17363 # But we know of no other shell where ac_cr would be empty at this
17364 # point, so we can use a bashism as a fallback.
17365 if test "x$ac_cr" = x; then
17366 eval ac_cr=\$\'\\r\'
17368 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17369 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17370 ac_cs_awk_cr='\\r'
17371 else
17372 ac_cs_awk_cr=$ac_cr
17375 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17376 _ACEOF
17378 # Create commands to substitute file output variables.
17380 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17381 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
17382 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17383 echo "_ACAWK" &&
17384 echo "_ACEOF"
17385 } >conf$$files.sh &&
17386 . ./conf$$files.sh ||
17387 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17388 rm -f conf$$files.sh
17391 echo "cat >conf$$subs.awk <<_ACEOF" &&
17392 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17393 echo "_ACEOF"
17394 } >conf$$subs.sh ||
17395 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17396 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17397 ac_delim='%!_!# '
17398 for ac_last_try in false false false false false :; do
17399 . ./conf$$subs.sh ||
17400 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17402 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17403 if test $ac_delim_n = $ac_delim_num; then
17404 break
17405 elif $ac_last_try; then
17406 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17407 else
17408 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17410 done
17411 rm -f conf$$subs.sh
17413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17414 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17415 _ACEOF
17416 sed -n '
17418 s/^/S["/; s/!.*/"]=/
17421 s/^[^!]*!//
17422 :repl
17423 t repl
17424 s/'"$ac_delim"'$//
17425 t delim
17428 s/\(.\{148\}\)..*/\1/
17429 t more1
17430 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17433 b repl
17434 :more1
17435 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17438 s/.\{148\}//
17439 t nl
17440 :delim
17442 s/\(.\{148\}\)..*/\1/
17443 t more2
17444 s/["\\]/\\&/g; s/^/"/; s/$/"/
17447 :more2
17448 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17451 s/.\{148\}//
17452 t delim
17453 ' <conf$$subs.awk | sed '
17454 /^[^""]/{
17456 s/\n//
17458 ' >>$CONFIG_STATUS || ac_write_fail=1
17459 rm -f conf$$subs.awk
17460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17461 _ACAWK
17462 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17463 for (key in S) S_is_set[key] = 1
17464 FS = "\a"
17465 \$ac_cs_awk_pipe_init
17468 line = $ 0
17469 nfields = split(line, field, "@")
17470 substed = 0
17471 len = length(field[1])
17472 for (i = 2; i < nfields; i++) {
17473 key = field[i]
17474 keylen = length(key)
17475 if (S_is_set[key]) {
17476 value = S[key]
17477 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17478 len += length(value) + length(field[++i])
17479 substed = 1
17480 } else
17481 len += 1 + keylen
17483 if (nfields == 3 && !substed) {
17484 key = field[2]
17485 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17486 \$ac_cs_awk_read_file
17487 next
17490 print line
17492 \$ac_cs_awk_pipe_fini
17493 _ACAWK
17494 _ACEOF
17495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17496 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17497 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17498 else
17500 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17501 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17502 _ACEOF
17504 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17505 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17506 # trailing colons and then remove the whole line if VPATH becomes empty
17507 # (actually we leave an empty line to preserve line numbers).
17508 if test "x$srcdir" = x.; then
17509 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17511 s///
17512 s/^/:/
17513 s/[ ]*$/:/
17514 s/:\$(srcdir):/:/g
17515 s/:\${srcdir}:/:/g
17516 s/:@srcdir@:/:/g
17517 s/^:*//
17518 s/:*$//
17520 s/\(=[ ]*\).*/\1/
17522 s/\n//
17523 s/^[^=]*=[ ]*$//
17527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17528 fi # test -n "$CONFIG_FILES"
17530 # Set up the scripts for CONFIG_HEADERS section.
17531 # No need to generate them if there are no CONFIG_HEADERS.
17532 # This happens for instance with `./config.status Makefile'.
17533 if test -n "$CONFIG_HEADERS"; then
17534 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17535 BEGIN {
17536 _ACEOF
17538 # Transform confdefs.h into an awk script `defines.awk', embedded as
17539 # here-document in config.status, that substitutes the proper values into
17540 # config.h.in to produce config.h.
17542 # Create a delimiter string that does not exist in confdefs.h, to ease
17543 # handling of long lines.
17544 ac_delim='%!_!# '
17545 for ac_last_try in false false :; do
17546 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17547 if test -z "$ac_tt"; then
17548 break
17549 elif $ac_last_try; then
17550 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17551 else
17552 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17554 done
17556 # For the awk script, D is an array of macro values keyed by name,
17557 # likewise P contains macro parameters if any. Preserve backslash
17558 # newline sequences.
17560 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17561 sed -n '
17562 s/.\{148\}/&'"$ac_delim"'/g
17563 t rset
17564 :rset
17565 s/^[ ]*#[ ]*define[ ][ ]*/ /
17566 t def
17568 :def
17569 s/\\$//
17570 t bsnl
17571 s/["\\]/\\&/g
17572 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17573 D["\1"]=" \3"/p
17574 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17576 :bsnl
17577 s/["\\]/\\&/g
17578 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17579 D["\1"]=" \3\\\\\\n"\\/p
17580 t cont
17581 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17582 t cont
17584 :cont
17586 s/.\{148\}/&'"$ac_delim"'/g
17587 t clear
17588 :clear
17589 s/\\$//
17590 t bsnlc
17591 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17593 :bsnlc
17594 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17595 b cont
17596 ' <confdefs.h | sed '
17597 s/'"$ac_delim"'/"\\\
17598 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17601 for (key in D) D_is_set[key] = 1
17602 FS = "\a"
17604 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17605 line = \$ 0
17606 split(line, arg, " ")
17607 if (arg[1] == "#") {
17608 defundef = arg[2]
17609 mac1 = arg[3]
17610 } else {
17611 defundef = substr(arg[1], 2)
17612 mac1 = arg[2]
17614 split(mac1, mac2, "(") #)
17615 macro = mac2[1]
17616 prefix = substr(line, 1, index(line, defundef) - 1)
17617 if (D_is_set[macro]) {
17618 # Preserve the white space surrounding the "#".
17619 print prefix "define", macro P[macro] D[macro]
17620 next
17621 } else {
17622 # Replace #undef with comments. This is necessary, for example,
17623 # in the case of _POSIX_SOURCE, which is predefined and required
17624 # on some systems where configure will not decide to define it.
17625 if (defundef == "undef") {
17626 print "/*", prefix defundef, macro, "*/"
17627 next
17631 { print }
17632 _ACAWK
17633 _ACEOF
17634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17635 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17636 fi # test -n "$CONFIG_HEADERS"
17639 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17640 shift
17641 for ac_tag
17643 case $ac_tag in
17644 :[FHLC]) ac_mode=$ac_tag; continue;;
17645 esac
17646 case $ac_mode$ac_tag in
17647 :[FHL]*:*);;
17648 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17649 :[FH]-) ac_tag=-:-;;
17650 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17651 esac
17652 ac_save_IFS=$IFS
17653 IFS=:
17654 set x $ac_tag
17655 IFS=$ac_save_IFS
17656 shift
17657 ac_file=$1
17658 shift
17660 case $ac_mode in
17661 :L) ac_source=$1;;
17662 :[FH])
17663 ac_file_inputs=
17664 for ac_f
17666 case $ac_f in
17667 -) ac_f="$ac_tmp/stdin";;
17668 *) # Look for the file first in the build tree, then in the source tree
17669 # (if the path is not absolute). The absolute path cannot be DOS-style,
17670 # because $ac_f cannot contain `:'.
17671 test -f "$ac_f" ||
17672 case $ac_f in
17673 [\\/$]*) false;;
17674 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17675 esac ||
17676 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17677 esac
17678 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17679 as_fn_append ac_file_inputs " '$ac_f'"
17680 done
17682 # Let's still pretend it is `configure' which instantiates (i.e., don't
17683 # use $as_me), people would be surprised to read:
17684 # /* config.h. Generated by config.status. */
17685 configure_input='Generated from '`
17686 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17687 `' by configure.'
17688 if test x"$ac_file" != x-; then
17689 configure_input="$ac_file. $configure_input"
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17691 $as_echo "$as_me: creating $ac_file" >&6;}
17693 # Neutralize special characters interpreted by sed in replacement strings.
17694 case $configure_input in #(
17695 *\&* | *\|* | *\\* )
17696 ac_sed_conf_input=`$as_echo "$configure_input" |
17697 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17698 *) ac_sed_conf_input=$configure_input;;
17699 esac
17701 case $ac_tag in
17702 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17703 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17704 esac
17706 esac
17708 ac_dir=`$as_dirname -- "$ac_file" ||
17709 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17710 X"$ac_file" : 'X\(//\)[^/]' \| \
17711 X"$ac_file" : 'X\(//\)$' \| \
17712 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17713 $as_echo X"$ac_file" |
17714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17715 s//\1/
17718 /^X\(\/\/\)[^/].*/{
17719 s//\1/
17722 /^X\(\/\/\)$/{
17723 s//\1/
17726 /^X\(\/\).*/{
17727 s//\1/
17730 s/.*/./; q'`
17731 as_dir="$ac_dir"; as_fn_mkdir_p
17732 ac_builddir=.
17734 case "$ac_dir" in
17735 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17737 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17738 # A ".." for each directory in $ac_dir_suffix.
17739 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17740 case $ac_top_builddir_sub in
17741 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17742 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17743 esac ;;
17744 esac
17745 ac_abs_top_builddir=$ac_pwd
17746 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17747 # for backward compatibility:
17748 ac_top_builddir=$ac_top_build_prefix
17750 case $srcdir in
17751 .) # We are building in place.
17752 ac_srcdir=.
17753 ac_top_srcdir=$ac_top_builddir_sub
17754 ac_abs_top_srcdir=$ac_pwd ;;
17755 [\\/]* | ?:[\\/]* ) # Absolute name.
17756 ac_srcdir=$srcdir$ac_dir_suffix;
17757 ac_top_srcdir=$srcdir
17758 ac_abs_top_srcdir=$srcdir ;;
17759 *) # Relative name.
17760 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17761 ac_top_srcdir=$ac_top_build_prefix$srcdir
17762 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17763 esac
17764 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17767 case $ac_mode in
17770 # CONFIG_FILE
17773 case $INSTALL in
17774 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17775 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17776 esac
17777 _ACEOF
17779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17780 # If the template does not know about datarootdir, expand it.
17781 # FIXME: This hack should be removed a few years after 2.60.
17782 ac_datarootdir_hack=; ac_datarootdir_seen=
17783 ac_sed_dataroot='
17784 /datarootdir/ {
17788 /@datadir@/p
17789 /@docdir@/p
17790 /@infodir@/p
17791 /@localedir@/p
17792 /@mandir@/p'
17793 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17794 *datarootdir*) ac_datarootdir_seen=yes;;
17795 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17797 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17798 _ACEOF
17799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17800 ac_datarootdir_hack='
17801 s&@datadir@&$datadir&g
17802 s&@docdir@&$docdir&g
17803 s&@infodir@&$infodir&g
17804 s&@localedir@&$localedir&g
17805 s&@mandir@&$mandir&g
17806 s&\\\${datarootdir}&$datarootdir&g' ;;
17807 esac
17808 _ACEOF
17810 # Neutralize VPATH when `$srcdir' = `.'.
17811 # Shell code in configure.ac might set extrasub.
17812 # FIXME: do we really want to maintain this feature?
17813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17814 ac_sed_extra="$ac_vpsub
17815 $extrasub
17816 _ACEOF
17817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17819 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17820 s|@configure_input@|$ac_sed_conf_input|;t t
17821 s&@top_builddir@&$ac_top_builddir_sub&;t t
17822 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17823 s&@srcdir@&$ac_srcdir&;t t
17824 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17825 s&@top_srcdir@&$ac_top_srcdir&;t t
17826 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17827 s&@builddir@&$ac_builddir&;t t
17828 s&@abs_builddir@&$ac_abs_builddir&;t t
17829 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17830 s&@INSTALL@&$ac_INSTALL&;t t
17831 $ac_datarootdir_hack
17833 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17834 if $ac_cs_awk_getline; then
17835 $AWK -f "$ac_tmp/subs.awk"
17836 else
17837 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17838 fi \
17839 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17841 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17842 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17843 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17844 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17846 which seems to be undefined. Please make sure it is defined" >&5
17847 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17848 which seems to be undefined. Please make sure it is defined" >&2;}
17850 rm -f "$ac_tmp/stdin"
17851 case $ac_file in
17852 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17853 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17854 esac \
17855 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17859 # CONFIG_HEADER
17861 if test x"$ac_file" != x-; then
17863 $as_echo "/* $configure_input */" \
17864 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17865 } >"$ac_tmp/config.h" \
17866 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17867 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17869 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17870 else
17871 rm -f "$ac_file"
17872 mv "$ac_tmp/config.h" "$ac_file" \
17873 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17875 else
17876 $as_echo "/* $configure_input */" \
17877 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17878 || as_fn_error $? "could not create -" "$LINENO" 5
17883 # CONFIG_LINK
17886 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17888 else
17889 # Prefer the file from the source tree if names are identical.
17890 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17891 ac_source=$srcdir/$ac_source
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17895 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17897 if test ! -r "$ac_source"; then
17898 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17900 rm -f "$ac_file"
17902 # Try a relative symlink, then a hard link, then a copy.
17903 case $ac_source in
17904 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17905 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17906 esac
17907 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17908 ln "$ac_source" "$ac_file" 2>/dev/null ||
17909 cp -p "$ac_source" "$ac_file" ||
17910 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17913 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17914 $as_echo "$as_me: executing $ac_file commands" >&6;}
17916 esac
17919 case $ac_file$ac_mode in
17920 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17921 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17922 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17923 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17924 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17925 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17926 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17927 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17928 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17929 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17930 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17931 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17932 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17933 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17934 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17935 "Makefile":C) wine_fn_output_makefile Makefile ;;
17937 esac
17938 done # for ac_tag
17941 as_fn_exit 0
17942 _ACEOF
17943 ac_clean_files=$ac_clean_files_save
17945 test $ac_write_fail = 0 ||
17946 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17949 # configure is writing to config.log, and then calls config.status.
17950 # config.status does its own redirection, appending to config.log.
17951 # Unfortunately, on DOS this fails, as config.log is still kept open
17952 # by configure, so config.status won't be able to write to it; its
17953 # output is simply discarded. So we exec the FD to /dev/null,
17954 # effectively closing config.log, so it can be properly (re)opened and
17955 # appended to by config.status. When coming back to configure, we
17956 # need to make the FD available again.
17957 if test "$no_create" != yes; then
17958 ac_cs_success=:
17959 ac_config_status_args=
17960 test "$silent" = yes &&
17961 ac_config_status_args="$ac_config_status_args --quiet"
17962 exec 5>/dev/null
17963 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17964 exec 5>>config.log
17965 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17966 # would make configure fail if this is the last instruction.
17967 $ac_cs_success || as_fn_exit 1
17969 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17971 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17975 if test "$no_create" = "yes"
17976 then
17977 exit 0
17980 ac_save_IFS="$IFS"
17981 if test "x$wine_notices != "x; then
17982 echo >&6
17983 IFS="|"
17984 for msg in $wine_notices; do
17985 IFS="$ac_save_IFS"
17986 if test -n "$msg"; then
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17988 $as_echo "$as_me: $msg" >&6;}
17990 done
17992 IFS="|"
17993 for msg in $wine_warnings; do
17994 IFS="$ac_save_IFS"
17995 if test -n "$msg"; then
17996 echo >&2
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17998 $as_echo "$as_me: WARNING: $msg" >&2;}
18000 done
18001 IFS="$ac_save_IFS"
18003 echo "
18004 $as_me: Finished. Do '${ac_make}' to compile Wine.
18005 " >&6